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 - CAST ( + 90 AS INTEGER ) AS col0
----
-90

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

skipif mysql # not compatible
query II rowsort label-6241
SELECT + 71, COUNT ( * ) AS col0
----
71
1

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

skipif mysql # not compatible
query II rowsort label-6242
SELECT ALL + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6243
SELECT DISTINCT 60 + 79 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT 60 + 79 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 90 * + + 69 + + + 8 AS col2
----
6218

query I rowsort
SELECT 22 * + + 17 AS col0
----
374

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT DISTINCT - MAX( ALL 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - MAX ( ALL 43 ) AS col0
----
-43

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

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

query I rowsort
SELECT ALL 11 * - - 65 AS col0
----
715

onlyif mysql # aggregate syntax: 
query II rowsort label-6250
SELECT ( + COUNT( * ) ) col2, 78 col1
----
1
78

skipif mysql # not compatible
query II rowsort label-6250
SELECT ( + COUNT ( * ) ) col2, 78 col1
----
1
78

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

skipif mysql # not compatible
query II rowsort label-6251
SELECT ALL + + ( COUNT ( * ) ), CAST ( - + 88 AS INTEGER ) AS col1
----
1
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6252
SELECT ALL ( CAST( - COUNT( * ) AS SIGNED ) ) DIV + 69 col1
----
0

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL ( CAST ( - COUNT ( * ) AS INTEGER ) ) / + 69 col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT + + CAST( 95 AS SIGNED ) + - 89
----
6

skipif mysql # not compatible
query I rowsort label-6254
SELECT + + CAST ( 95 AS INTEGER ) + - 89
----
6

query I rowsort
SELECT - 8 + + 63
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-6256
SELECT ALL SUM( DISTINCT + 80 ) AS col1, + NULLIF ( - MAX( ( + 63 ) ), + 89 ) AS col0
----
80
-63

skipif mysql # not compatible
query II rowsort label-6256
SELECT ALL SUM ( DISTINCT + 80 ) AS col1, + NULLIF ( - MAX ( ( + 63 ) ), + 89 ) AS col0
----
80
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT + COUNT( ALL 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6257
SELECT + COUNT ( ALL 38 ) AS col0
----
1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL - - 34 + + - 10 * COUNT( * ) col2
----
24

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL - - 34 + + - 10 * COUNT ( * ) col2
----
24

query I rowsort
SELECT 37 + 75 - - 35 AS col0
----
147

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

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

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

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

query I rowsort
SELECT DISTINCT 18 * 77
----
1386

query I rowsort
SELECT ALL + 45 col0
----
45

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

skipif mysql # not compatible
query I rowsort label-6267
SELECT - + 68 / + COUNT ( * ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT + 20 * SUM( DISTINCT ( - 56 ) )
----
-1120

skipif mysql # not compatible
query I rowsort label-6268
SELECT + 20 * SUM ( DISTINCT ( - 56 ) )
----
-1120

query I rowsort
SELECT ALL ( + - 42 ) AS col0
----
-42

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6273
SELECT ALL + 25 DIV - 40 + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + 25 / - 40 + 13 AS col1
----
13

query I rowsort
SELECT + - 99 * + + 86 AS col2
----
-8514

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6280
SELECT ALL - COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT DISTINCT - 57 - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT - 57 - COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6282
SELECT 50 col1, - COUNT( * ) + + + 83 AS col2
----
50
82

skipif mysql # not compatible
query II rowsort label-6282
SELECT 50 col1, - COUNT ( * ) + + + 83 AS col2
----
50
82

query I rowsort
SELECT DISTINCT - 20 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT ALL 94 + + - NULLIF ( + + COUNT( * ), - + 87 * - 32 )
----
93

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL 94 + + - NULLIF ( + + COUNT ( * ), - + 87 * - 32 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL 65 + - MIN( - - 93 ) - + 10 - - - 45 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL 65 + - MIN ( - - 93 ) - + 10 - - - 45 AS col0
----
-83

query I rowsort
SELECT - - 61 * + - 78
----
-4758

query I rowsort
SELECT ALL + - 93 * - 45 col0
----
4185

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT DISTINCT MIN( DISTINCT 53 ) * - - 30 + + ( COUNT( * ) ) * + COUNT( * )
----
1591

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT MIN ( DISTINCT 53 ) * - - 30 + + ( COUNT ( * ) ) * + COUNT ( * )
----
1591

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT ALL COUNT( * ) * - 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6292
SELECT ALL COUNT ( * ) * - 48 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT MIN( DISTINCT - + ( + + 7 ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-6293
SELECT MIN ( DISTINCT - + ( + + 7 ) ) AS col1
----
-7

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

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

query II rowsort
SELECT DISTINCT - 58, + 88 AS col1
----
-58
88

query I rowsort
SELECT ALL ( - ( 89 ) ) * + 70
----
-6230

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

skipif mysql # not compatible
query I rowsort label-6297
SELECT NULLIF ( + + 81, - + COUNT ( * ) ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6298
SELECT - MIN( ALL + 92 ), - ( - - 1 ) AS col1
----
-92
-1

skipif mysql # not compatible
query II rowsort label-6298
SELECT - MIN ( ALL + 92 ), - ( - - 1 ) AS col1
----
-92
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT - SUM( + 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - SUM ( + 22 ) AS col1
----
-22

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

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT 78 / + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT + MAX( ALL - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-6301
SELECT + MAX ( ALL - 54 ) AS col1
----
-54

query II rowsort
SELECT + 59, 8 AS col1
----
59
8

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

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

query I rowsort
SELECT + 39 - + - ( + 26 ) AS col0
----
65

query I rowsort
SELECT 71 * 38 AS col1
----
2698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT 71 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT 71 * - CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6307
SELECT - MAX ( DISTINCT 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL + COUNT( - - 96 ) + + - COUNT( - + 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL + COUNT ( - - 96 ) + + - COUNT ( - + 82 ) AS col0
----
0

query I rowsort
SELECT + 23 * + 28 AS col1
----
644

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

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

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

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

query I rowsort
SELECT ALL + ( - 73 ) * + - 95 AS col2
----
6935

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6315
SELECT + + 7 + + - 85 + COUNT ( * ) AS col2
----
-77

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6317
SELECT ALL + COUNT( - 91 ) + + 24 DIV + + COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + COUNT ( - 91 ) + + 24 / + + COUNT ( * ) AS col1
----
25

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6319
SELECT DISTINCT 18, 35 DIV 99 AS col1
----
18
0

skipif mysql # not compatible
query II rowsort label-6319
SELECT DISTINCT 18, 35 / 99 AS col1
----
18
0

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

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

query I rowsort
SELECT ALL + 95 + + 35
----
130

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

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

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

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

query I rowsort
SELECT + ( + 26 ) * + + 41 AS col2
----
1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6325
SELECT ALL 5 * + CAST( NULL AS SIGNED ), + SUM( - - 14 ) col2
----
NULL
14

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6327
SELECT ALL - MIN( ALL CAST( NULL AS DECIMAL ) )
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT 44 * - COUNT( * ) col1
----
-44

skipif mysql # not compatible
query I rowsort label-6330
SELECT 44 * - COUNT ( * ) col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6331
SELECT ALL 82 DIV - - NULLIF ( - 10, CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) )
----
-8

skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL 82 / - - NULLIF ( - 10, CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) )
----
-8

query I rowsort
SELECT + 85 * 56
----
4760

query I rowsort
SELECT + 98 + 51 AS col1
----
149

query I rowsort
SELECT - 12 + - + 11
----
-23

query I rowsort
SELECT ALL + 3 * - 12 AS col2
----
-36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT ALL + 19 * - COUNT( DISTINCT - - 22 ) - 78 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL + 19 * - COUNT ( DISTINCT - - 22 ) - 78 AS col1
----
-97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6340
SELECT DISTINCT - 93, COUNT( * ) col2
----
-93
1

skipif mysql # not compatible
query II rowsort label-6340
SELECT DISTINCT - 93, COUNT ( * ) col2
----
-93
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6342
SELECT - 3 DIV - 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 3 / - 79 AS col0
----
0

query I rowsort
SELECT ALL + 24 * 97
----
2328

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT 75 DIV ( + - 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-6345
SELECT 75 / ( + - 56 )
----
-1

query I rowsort
SELECT ALL + 28 * - 21
----
-588

query I rowsort
SELECT ALL + 87 + 3
----
90

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL SUM( ALL + - 96 ) - - - 54 AS col0
----
-150

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL SUM ( ALL + - 96 ) - - - 54 AS col0
----
-150

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

query II rowsort
SELECT DISTINCT + 68, - 54 AS col0
----
68
-54

query I rowsort
SELECT DISTINCT 77 * + 72 AS col0
----
5544

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT + 69 + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6354
SELECT + 69 + COUNT ( * ) AS col2
----
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6356
SELECT + CAST( 54 AS SIGNED ) + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6356
SELECT + CAST ( 54 AS INTEGER ) + COUNT ( * ) AS col0
----
55

query I rowsort
SELECT 94 + - 61 AS col2
----
33

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

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

query I rowsort
SELECT + 19 * 90 AS col0
----
1710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6360
SELECT CAST( 7 AS SIGNED ) + + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6360
SELECT CAST ( 7 AS INTEGER ) + + COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT DISTINCT - ( COUNT( * ) ) + - 26
----
-27

skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT - ( COUNT ( * ) ) + - 26
----
-27

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT ALL 0 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL 0 / 92
----
0

query I rowsort
SELECT - 72 * - 14
----
1008

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT MAX( DISTINCT 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6365
SELECT MAX ( DISTINCT 36 ) AS col2
----
36

query I rowsort
SELECT + 88 col2
----
88

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

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

query I rowsort
SELECT - + 84 col1
----
-84

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT - 77 * - 28 - - COUNT( - 90 )
----
2157

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 77 * - 28 - - COUNT ( - 90 )
----
2157

query I rowsort
SELECT 80 + - 39
----
41

query I rowsort
SELECT 70 * - 10 AS col2
----
-700

query I rowsort
SELECT 97 + - - 4
----
101

query I rowsort
SELECT ALL 94 * - 41
----
-3854

query I rowsort
SELECT ( - 35 ) * ( - 22 )
----
770

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL + - 76 + + 21 * - COUNT( * ) * - 79
----
1583

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + - 76 + + 21 * - COUNT ( * ) * - 79
----
1583

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6386
SELECT + COUNT( ALL - 25 ) DIV - ( - 36 ) + + 86 AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6386
SELECT + COUNT ( ALL - 25 ) / - ( - 36 ) + + 86 AS col2
----
86

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6388
SELECT ALL CAST( NULL AS SIGNED ), + ( - 31 ) + - + 10 col1
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-6388
SELECT ALL CAST ( NULL AS INTEGER ), + ( - 31 ) + - + 10 col1
----
NULL
-41

query I rowsort
SELECT + 92 - + + 79
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT + SUM( - + 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-6390
SELECT + SUM ( - + 26 ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL + SUM( DISTINCT - + 63 ) * + + 17
----
-1071

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL + SUM ( DISTINCT - + 63 ) * + + 17
----
-1071

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT - 48 * COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT - 48 * COUNT ( * ) AS col0
----
-48

query I rowsort
SELECT DISTINCT 6 + + - 23 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - 62 * 10 + + COUNT( * )
----
-619

skipif mysql # not compatible
query I rowsort label-6394
SELECT - 62 * 10 + + COUNT ( * )
----
-619

query I rowsort
SELECT 1 + 47
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6396
SELECT COUNT( ALL + - 83 ) DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-6396
SELECT COUNT ( ALL + - 83 ) / + 23
----
0

query I rowsort
SELECT 47 * 92 AS col1
----
4324

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT DISTINCT 63 AS col1, - COUNT( * ) col1
----
63
-1

skipif mysql # not compatible
query II rowsort label-6400
SELECT DISTINCT 63 AS col1, - COUNT ( * ) col1
----
63
-1

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

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

query I rowsort
SELECT - - ( - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT DISTINCT - ( + COUNT( * ) ) * - - 38 col0
----
-38

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT - ( + COUNT ( * ) ) * - - 38 col0
----
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT + MIN( 34 ) + 38
----
72

skipif mysql # not compatible
query I rowsort label-6405
SELECT + MIN ( 34 ) + 38
----
72

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT + COUNT( * ) * MAX( + 52 ) + + 81
----
133

skipif mysql # not compatible
query I rowsort label-6407
SELECT + COUNT ( * ) * MAX ( + 52 ) + + 81
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT - COALESCE ( - - 83, + + 54 ) + + MIN( - - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-6408
SELECT - COALESCE ( - - 83, + + 54 ) + + MIN ( - - 84 )
----
1

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

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

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

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

query I rowsort
SELECT DISTINCT 70 * + 24
----
1680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6413
SELECT - COUNT( * ) DIV - - COUNT( * ) - 42 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6413
SELECT - COUNT ( * ) / - - COUNT ( * ) - 42 AS col0
----
-43

query II rowsort
SELECT ALL + 59 + - 32 AS col1, - 74 * - 58 AS col0
----
27
4292

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

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

query I rowsort
SELECT - 59 * - 68 AS col1
----
4012

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT - COUNT( * ) + - 87 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6418
SELECT - COUNT ( * ) + - 87 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6419
SELECT ( - COUNT( 61 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6419
SELECT ( - COUNT ( 61 ) )
----
-1

query I rowsort
SELECT ALL ( 15 ) AS col1
----
15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT ALL - MIN( 5 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL - MIN ( 5 ) col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6425
SELECT ALL MIN( + - 89 ) + 3 + 52 DIV + 39 - + CAST( - + 64 AS SIGNED ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL MIN ( + - 89 ) + 3 + 52 / + 39 - + CAST ( - + 64 AS INTEGER ) AS col0
----
-21

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

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

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

skipif mysql # not compatible
query II rowsort label-6427
SELECT 66 col0, CAST ( NULL AS INTEGER )
----
66
NULL

query I rowsort
SELECT 94 + + 91 AS col0
----
185

query I rowsort
SELECT ALL + + 18 col0
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT - 74 * COUNT( * ) + - - ( + 68 ) - - ( + 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6431
SELECT - 74 * COUNT ( * ) + - - ( + 68 ) - - ( + 7 ) AS col2
----
1

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 61 * - 64
----
-3904

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6441
SELECT NULLIF ( 82, 28 ) + ( + NULLIF ( 96, + ( - CAST( NULL AS SIGNED ) ) ) )
----
178

skipif mysql # not compatible
query I rowsort label-6441
SELECT NULLIF ( 82, 28 ) + ( + NULLIF ( 96, + ( - CAST ( NULL AS INTEGER ) ) ) )
----
178

query II rowsort
SELECT - 4 AS col0, 52
----
-4
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL - - MAX( DISTINCT 80 ) col0
----
80

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - - MAX ( DISTINCT 80 ) col0
----
80

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6447
SELECT DISTINCT 56, + CAST( NULL AS SIGNED ) AS col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-6447
SELECT DISTINCT 56, + CAST ( NULL AS INTEGER ) AS col1
----
56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT COUNT( * ) * + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6448
SELECT COUNT ( * ) * + 19 AS col0
----
19

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

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL CAST ( NULL AS INTEGER ) * - - 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT COUNT( * ) + + + 30 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6450
SELECT COUNT ( * ) + + + 30 AS col2
----
31

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

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

query I rowsort
SELECT - + 70 * + + ( 65 )
----
-4550

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT ALL + COUNT( * ) AS col1, - 62 AS col2
----
1
-62

skipif mysql # not compatible
query II rowsort label-6453
SELECT ALL + COUNT ( * ) AS col1, - 62 AS col2
----
1
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT 74 * + ( + + 88 ) + COUNT( * ) * - - MIN( + 33 ) col2
----
6545

skipif mysql # not compatible
query I rowsort label-6454
SELECT 74 * + ( + + 88 ) + COUNT ( * ) * - - MIN ( + 33 ) col2
----
6545

query I rowsort
SELECT + 22 + - + 38
----
-16

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6457
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 49 / + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 49 / + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT NULLIF ( ( + - COUNT( * ) ), + + 3 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6458
SELECT NULLIF ( ( + - COUNT ( * ) ), + + 3 ) col0
----
-1

query I rowsort
SELECT ALL 46 * - ( + 19 )
----
-874

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6460
SELECT + + MAX( 18 ) DIV 6 DIV - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-6460
SELECT + + MAX ( 18 ) / 6 / - COUNT ( * )
----
-3

query I rowsort
SELECT DISTINCT 80 * + - 47
----
-3760

query II rowsort
SELECT 36 AS col2, + 97 + + - 35
----
36
62

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6466
SELECT 17 * - COUNT ( * ) + + 85 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6467
SELECT ALL - ( - - NULLIF ( MAX( DISTINCT + 57 ), - COUNT( * ) + - + CAST( NULL AS DECIMAL ) ) )
----
-57

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - ( - - NULLIF ( MAX ( DISTINCT + 57 ), - COUNT ( * ) + - + CAST ( NULL AS REAL ) ) )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT COUNT( * ) + - - 70 * - - COUNT( - 18 )
----
71

skipif mysql # not compatible
query I rowsort label-6468
SELECT COUNT ( * ) + - - 70 * - - COUNT ( - 18 )
----
71

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT - + ( - MAX( - 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-6471
SELECT - + ( - MAX ( - 74 ) )
----
-74

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

query I rowsort
SELECT DISTINCT - 25 + + 73 AS col0
----
48

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6475
SELECT - NULLIF ( 76, CAST( NULL AS SIGNED ) )
----
-76

skipif mysql # not compatible
query I rowsort label-6475
SELECT - NULLIF ( 76, CAST ( NULL AS INTEGER ) )
----
-76

query II rowsort
SELECT - 77 AS col1, + 84 * - 76
----
-77
-6384

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6478
SELECT ALL CAST( - 97 AS SIGNED ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL CAST ( - 97 AS INTEGER ) AS col2
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6479
SELECT ( + + COUNT( * ) ) AS col0, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6479
SELECT ( + + COUNT ( * ) ) AS col0, - CAST ( NULL AS INTEGER )
----
1
NULL

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

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

query I rowsort
SELECT ALL + 9 - 27 col1
----
-18

query I rowsort
SELECT 83 - - 73 AS col2
----
156

query I rowsort
SELECT 89 + - - 70
----
159

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

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

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

query I rowsort
SELECT DISTINCT - 91 + + - 2
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT ALL 37 AS col1, 87 + - SUM( DISTINCT + 98 ) col1
----
37
-11

skipif mysql # not compatible
query II rowsort label-6487
SELECT ALL 37 AS col1, 87 + - SUM ( DISTINCT + 98 ) col1
----
37
-11

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT ALL - 5 DIV + + 49
----
0

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - 5 / + + 49
----
0

query I rowsort
SELECT - 26 + 85 * - 30 AS col1
----
-2576

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

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL 88 * 10 * - COUNT ( * ) AS col0
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT DISTINCT + COUNT( * ) * MAX( ALL + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + COUNT ( * ) * MAX ( ALL + - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT + 91 * + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT + 91 * + COUNT ( * )
----
91

query I rowsort
SELECT 64 - 62 AS col1
----
2

query I rowsort
SELECT 99 * 38
----
3762

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

query I rowsort
SELECT + - 68 + + 76 AS col2
----
8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT + COUNT( * ) * + 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-6501
SELECT + COUNT ( * ) * + 93 AS col0
----
93

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

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

query I rowsort
SELECT - ( + 57 ) * 25 AS col0
----
-1425

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT COUNT( ALL + - 9 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6505
SELECT COUNT ( ALL + - 9 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT DISTINCT + COUNT( * ) + + 59 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT + COUNT ( * ) + + 59 AS col0
----
60

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

query I rowsort
SELECT 94 + - - 94 AS col1
----
188

query II rowsort
SELECT + 34, ( + + 86 ) AS col1
----
34
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6510
SELECT ALL - 86 DIV - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL - 86 / - COUNT ( * )
----
86

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

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

query I rowsort
SELECT - + COALESCE ( - 54, 57 )
----
54

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT 4 - + - COUNT( DISTINCT 50 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT 4 - + - COUNT ( DISTINCT 50 ) AS col1
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT ALL - + COUNT( * ) + 69
----
68

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL - + COUNT ( * ) + 69
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT DISTINCT + - ( - 11 ) + - COUNT( * ) col2
----
10

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT + - ( - 11 ) + - COUNT ( * ) col2
----
10

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

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

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

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

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

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

query I rowsort
SELECT ( + + 55 ) * + - 54 + + 42 AS col0
----
-2928

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT MIN( ALL 29 )
----
29

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT MIN ( ALL 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT COALESCE ( + 48, COUNT( * ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6526
SELECT COALESCE ( + 48, COUNT ( * ) ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL - 47 + COUNT( 49 )
----
-46

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL - 47 + COUNT ( 49 )
----
-46

query I rowsort
SELECT - - 36 - + 13 col1
----
23

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

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

query I rowsort
SELECT DISTINCT - 83 * + + 95 AS col0
----
-7885

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT ALL + MAX( + - 80 ) col0
----
-80

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL + MAX ( + - 80 ) col0
----
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT - COUNT( * ) + - COUNT( * ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-6533
SELECT - COUNT ( * ) + - COUNT ( * ) col1
----
-2

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

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

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

query II rowsort
SELECT DISTINCT - 75 AS col1, 5
----
-75
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT 32 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT 32 * - - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

query I rowsort
SELECT 63 * + 43 AS col2
----
2709

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT COUNT( * ) - + 87 col2
----
-86

skipif mysql # not compatible
query I rowsort label-6541
SELECT COUNT ( * ) - + 87 col2
----
-86

query I rowsort
SELECT ALL + + 86 - - - 93
----
-7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL 62 + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL 62 + COUNT ( * ) AS col1
----
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL - COUNT( * ) + - 70
----
-71

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL - COUNT ( * ) + - 70
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT DISTINCT + - NULLIF ( COUNT( * ), - - COUNT( * ) ) * - + AVG ( DISTINCT 58 ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT + - NULLIF ( COUNT ( * ), - - COUNT ( * ) ) * - + AVG ( DISTINCT 58 ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT NULLIF ( - COUNT( * ), + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT NULLIF ( - COUNT ( * ), + COUNT ( * ) ) AS col0
----
-1

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

query II rowsort
SELECT + 10, - ( - 66 ) AS col0
----
10
66

query I rowsort
SELECT - 57 - + + 47
----
-104

query I rowsort
SELECT - 75 * + 74 AS col2
----
-5550

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT NULLIF ( 77, - 88 / + - COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-6554
SELECT NULLIF ( 77, - 88 / + - COUNT ( * ) )
----
77

query I rowsort
SELECT ALL 32 * 96 col2
----
3072

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6558
SELECT ALL - 64 DIV - 20 + - - COUNT( * ) col0
----
4

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - 64 / - 20 + - - COUNT ( * ) col0
----
4

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6561
SELECT + CAST( - + 17 AS SIGNED ) + - 99
----
-116

skipif mysql # not compatible
query I rowsort label-6561
SELECT + CAST ( - + 17 AS INTEGER ) + - 99
----
-116

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6563
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2, 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-6563
SELECT ALL - CAST ( NULL AS REAL ) AS col2, 86
----
NULL
86

query I rowsort
SELECT - - 95 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT - + SUM( - ( 46 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-6565
SELECT - + SUM ( - ( 46 ) ) AS col2
----
46

query II rowsort
SELECT 53, - 2 AS col0
----
53
-2

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

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

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

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

query II rowsort
SELECT - 1 AS col1, 97 AS col2
----
-1
97

query I rowsort
SELECT + 45 + + 43 col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6571
SELECT ALL 26, COUNT( * ) + COUNT( * ) AS col2
----
26
2

skipif mysql # not compatible
query II rowsort label-6571
SELECT ALL 26, COUNT ( * ) + COUNT ( * ) AS col2
----
26
2

query I rowsort
SELECT ALL 9 * + 9 AS col0
----
81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT - COUNT( DISTINCT + + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-6575
SELECT - COUNT ( DISTINCT + + 35 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT DISTINCT + + MAX( + 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT + + MAX ( + 30 ) AS col1
----
30

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

skipif mysql # not compatible
query I rowsort label-6577
SELECT MAX ( DISTINCT 62 )
----
62

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

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

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

skipif mysql # not compatible
query I rowsort label-6579
SELECT NULLIF ( + COUNT ( * ), 16 )
----
1

query I rowsort
SELECT 12 * 85 AS col0
----
1020

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

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

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

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

query I rowsort
SELECT 25 * - + 38 col1
----
-950

query II rowsort
SELECT DISTINCT 69 AS col2, 69 - - + 66 AS col1
----
69
135

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6586
SELECT 94 DIV + + 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6586
SELECT 94 / + + 69 AS col2
----
1

query I rowsort
SELECT + 24 * + 20 + + 36
----
516

query I rowsort
SELECT DISTINCT 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + COUNT( DISTINCT + 46 )
----
1

skipif mysql # not compatible
query I rowsort label-6589
SELECT + COUNT ( DISTINCT + 46 )
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT DISTINCT 15 - - COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT 15 - - COUNT ( * ) AS col2
----
16

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

query I rowsort
SELECT ALL - 0 col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL 81 * NULLIF ( - 43, - COUNT( * ) ) AS col1
----
-3483

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL 81 * NULLIF ( - 43, - COUNT ( * ) ) AS col1
----
-3483

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT DISTINCT + SUM( DISTINCT 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT + SUM ( DISTINCT 6 ) AS col1
----
6

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT DISTINCT - 34 + SUM( 19 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT - 34 + SUM ( 19 ) AS col1
----
-15

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

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

query II rowsort
SELECT - 50 AS col1, 42
----
-50
42

query I rowsort
SELECT ALL 8 * + 53
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + MIN( ALL + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-6605
SELECT + MIN ( ALL + 48 ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT + CAST( NULL AS SIGNED ) * ( - 82 ) + + + 2 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT + CAST ( NULL AS INTEGER ) * ( - 82 ) + + + 2 * 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6607
SELECT DISTINCT - - ( - 95 ), - CAST( + 89 AS SIGNED ) col0
----
-95
-89

skipif mysql # not compatible
query II rowsort label-6607
SELECT DISTINCT - - ( - 95 ), - CAST ( + 89 AS INTEGER ) col0
----
-95
-89

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL + - COUNT( * ) - + 45
----
-46

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + - COUNT ( * ) - + 45
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT + 17 DIV 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6613
SELECT + 17 / 67 AS col1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6615
SELECT CAST( - - COUNT( * ) AS SIGNED ), + 53 + + 29 AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-6615
SELECT CAST ( - - COUNT ( * ) AS INTEGER ), + 53 + + 29 AS col2
----
1
82

query I rowsort
SELECT DISTINCT + 33 * 5 * - + 41
----
-6765

query I rowsort
SELECT ALL + 60 + + - 57 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + 91 + - COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 91 + - COUNT ( * ) AS col2
----
90

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

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

query I rowsort
SELECT - ( 62 )
----
-62

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

skipif mysql # not compatible
query II rowsort label-6621
SELECT - COUNT ( * ) AS col1, 76
----
-1
76

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT + - 17 * COUNT( * ) * - 20 + + COUNT( * )
----
341

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + - 17 * COUNT ( * ) * - 20 + + COUNT ( * )
----
341

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT DISTINCT NULLIF ( - CAST( NULL AS SIGNED ), - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT NULLIF ( - CAST ( NULL AS INTEGER ), - 89 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT ALL 49 * - CAST( NULL AS SIGNED ) * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL 49 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6631
SELECT ALL - + 74 DIV + 94 + - + 34 + + + 67
----
33

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - + 74 / + 94 + - + 34 + + + 67
----
33

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6636
SELECT DISTINCT - 10, COUNT( * ) AS col1
----
-10
1

skipif mysql # not compatible
query II rowsort label-6636
SELECT DISTINCT - 10, COUNT ( * ) AS col1
----
-10
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT 67 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT 67 / 84
----
0

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT 39 DIV + ( + 68 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT 39 / + ( + 68 ) AS col1
----
0

query II rowsort
SELECT + 44 col0, + 6 AS col0
----
44
6

query I rowsort
SELECT 83 * 51
----
4233

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + 67 * 39
----
-2613

query I rowsort
SELECT - 72 * + 80 AS col2
----
-5760

query I rowsort
SELECT - 49 * + 54
----
-2646

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

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

query I rowsort
SELECT ALL + 86 * - 79 AS col0
----
-6794

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT ALL + + 21 DIV - NULLIF ( + + 67, - 62 )
----
0

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + + 21 / - NULLIF ( + + 67, - 62 )
----
0

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

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

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

query I rowsort
SELECT DISTINCT - 45 + + 57 col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6658
SELECT ALL - MIN( 91 ) DIV + 68 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL - MIN ( 91 ) / + 68 AS col0
----
-1

query I rowsort
SELECT DISTINCT 69 + 97 AS col0
----
166

onlyif mysql # DIV for integer division: 
query I rowsort label-6660
SELECT 11 DIV + 9 col1
----
1

skipif mysql # not compatible
query I rowsort label-6660
SELECT 11 / + 9 col1
----
1

query I rowsort
SELECT + 89 + 19
----
108

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT + 20 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-6666
SELECT + 20 + - COUNT ( * )
----
19

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 36 - ( - + ( + 70 ) )
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT DISTINCT CAST( - - 0 AS SIGNED ) * + 82
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT CAST ( - - 0 AS INTEGER ) * + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT - 39 - + COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - 39 - + COUNT ( * ) AS col1
----
-40

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

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

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

query I rowsort
SELECT ( 31 ) col2
----
31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT DISTINCT + 80 * 54 + COUNT( * )
----
4321

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + 80 * 54 + COUNT ( * )
----
4321

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL + ( - MAX( DISTINCT - 23 ) ) * 66 + - - 42 + - MAX( DISTINCT - + 0 ) AS col2
----
1560

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL + ( - MAX ( DISTINCT - 23 ) ) * 66 + - - 42 + - MAX ( DISTINCT - + 0 ) AS col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT NULLIF ( - 83, + 85 / MIN( 42 ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-6683
SELECT NULLIF ( - 83, + 85 / MIN ( 42 ) ) AS col0
----
-83

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

query I rowsort
SELECT ALL + 60 * 18
----
1080

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

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

query I rowsort
SELECT 14 * + 60
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + SUM( + 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-6688
SELECT + SUM ( + 97 ) AS col1
----
97

query I rowsort
SELECT - 44 + 95 AS col1
----
51

query I rowsort
SELECT ALL + 34 * + 24
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT + COUNT( * ) * + - SUM( DISTINCT + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6691
SELECT + COUNT ( * ) * + - SUM ( DISTINCT + 71 )
----
-71

query I rowsort
SELECT - 51 + 63
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT + MIN( + - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6693
SELECT + MIN ( + - 62 ) AS col1
----
-62

query I rowsort
SELECT - 62 + 6
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6695
SELECT - - AVG ( DISTINCT + 9 ) * CAST( NULL AS DECIMAL ) / - + 22 * 61 + + + 11 / - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT - - AVG ( DISTINCT + 9 ) * CAST ( NULL AS REAL ) / - + 22 * 61 + + + 11 / - + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6696
SELECT + CAST( NULL AS DECIMAL ) + 23 - + - NULLIF ( - + 58, + 60 * + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6696
SELECT + CAST ( NULL AS REAL ) + 23 - + - NULLIF ( - + 58, + 60 * + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6697
SELECT ALL - 86 DIV 21 + + - 87 - + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL - 86 / 21 + + - 87 - + COUNT ( * )
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT COUNT( * ) - - 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-6699
SELECT COUNT ( * ) - - 50 AS col0
----
51

query I rowsort
SELECT 55 + - + 46
----
9

query I rowsort
SELECT 60 * 48 AS col2
----
2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6702
SELECT DISTINCT - ( + CAST( + CAST( - + 38 AS SIGNED ) AS SIGNED ) ) + + 99 col0
----
137

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT - ( + CAST ( + CAST ( - + 38 AS INTEGER ) AS INTEGER ) ) + + 99 col0
----
137

query I rowsort
SELECT DISTINCT - - 53
----
53

query I rowsort
SELECT + 11 * + 0 + + 41
----
41

query II rowsort
SELECT 48 AS col1, + 53
----
48
53

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

skipif mysql # not compatible
query I rowsort label-6706
SELECT DISTINCT COUNT ( * ) / + 75
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6707
SELECT ALL 47, - COUNT( * ) col2
----
47
-1

skipif mysql # not compatible
query II rowsort label-6707
SELECT ALL 47, - COUNT ( * ) col2
----
47
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT - SUM( ALL 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-6708
SELECT - SUM ( ALL 65 ) col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-6709
SELECT ALL + + 25, + SUM( DISTINCT + + ( + - 63 ) ) AS col2
----
25
-63

skipif mysql # not compatible
query II rowsort label-6709
SELECT ALL + + 25, + SUM ( DISTINCT + + ( + - 63 ) ) AS col2
----
25
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT + COUNT( * ) + + MIN( ALL + + 91 )
----
92

skipif mysql # not compatible
query I rowsort label-6711
SELECT + COUNT ( * ) + + MIN ( ALL + + 91 )
----
92

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

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

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

query I rowsort
SELECT + 97 * + 33
----
3201

query I rowsort
SELECT ALL COALESCE ( 61, + 96 - 62 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - MIN( - - 32 ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-6716
SELECT - MIN ( - - 32 ) AS col1
----
-32

query I rowsort
SELECT ALL + - 42 + 15
----
-27

query I rowsort
SELECT 40 + 84
----
124

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

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

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

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

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

query II rowsort
SELECT + 76, 34 AS col2
----
76
34

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

skipif mysql # not compatible
query I rowsort label-6723
SELECT - 68 * COUNT ( * )
----
-68

query I rowsort
SELECT - 80 * 9 AS col0
----
-720

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

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

query I rowsort
SELECT + - 16 * + 10
----
-160

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

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL + COUNT ( DISTINCT + - 0 ) AS col2
----
1

query I rowsort
SELECT ( - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - MIN( + ( - + 64 ) ) + + 92 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-6729
SELECT - MIN ( + ( - + 64 ) ) + + 92 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL 56 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL 56 * - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT DISTINCT + - COUNT( * ) * + - 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-6731
SELECT DISTINCT + - COUNT ( * ) * + - 17 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6732
SELECT ALL COALESCE ( - COUNT( * ), - 41 - - CAST( + 1 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL COALESCE ( - COUNT ( * ), - 41 - - CAST ( + 1 AS INTEGER ) )
----
-1

query I rowsort
SELECT 19 * + 97 + 54
----
1897

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

skipif mysql # not compatible
query II rowsort label-6734
SELECT - 82 AS col2, COUNT ( * ) AS col0
----
-82
1

query I rowsort
SELECT ALL 15 * - 87
----
-1305

query II rowsort
SELECT + 53, + 94 + + + 39 AS col0
----
53
133

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL - MIN( + + 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - MIN ( + + 77 ) AS col0
----
-77

query I rowsort
SELECT DISTINCT - 93 - 45
----
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-6741
SELECT ALL 78 AS col1, ( COUNT( * ) ) col2
----
78
1

skipif mysql # not compatible
query II rowsort label-6741
SELECT ALL 78 AS col1, ( COUNT ( * ) ) col2
----
78
1

query I rowsort
SELECT ALL + 21 * 34
----
714

query I rowsort
SELECT ALL - 6 * 19 AS col1
----
-114

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6744
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) AS col1, - 43 * - COUNT( * ) AS col1
----
NULL
43

skipif mysql # not compatible
query II rowsort label-6744
SELECT ALL ( + CAST ( NULL AS REAL ) ) AS col1, - 43 * - COUNT ( * ) AS col1
----
NULL
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6745
SELECT - 15 DIV - NULLIF ( - 22, + - CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT - 15 / - NULLIF ( - 22, + - CAST ( NULL AS INTEGER ) ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6746
SELECT ALL CAST( 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL CAST ( 99 AS INTEGER ) AS col2
----
99

query I rowsort
SELECT - 11 + 45 AS col1
----
34

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

query I rowsort
SELECT ALL 85 + + 96 AS col1
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT COUNT( * ) + + 28
----
29

skipif mysql # not compatible
query I rowsort label-6750
SELECT COUNT ( * ) + + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT COUNT( * ) * - COUNT( * ) + + 8
----
7

skipif mysql # not compatible
query I rowsort label-6751
SELECT COUNT ( * ) * - COUNT ( * ) + + 8
----
7

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

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

query I rowsort
SELECT DISTINCT - ( + 88 ) * - 19 AS col1
----
1672

query I rowsort
SELECT + - 98 col1
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6755
SELECT 19 * ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT 19 * ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6757
SELECT DISTINCT 67 * + 83 + 98 DIV COUNT( * ) AS col0
----
5659

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT 67 * + 83 + 98 / COUNT ( * ) AS col0
----
5659

query I rowsort
SELECT DISTINCT + 62 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT + + COUNT( + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-6759
SELECT + + COUNT ( + 12 )
----
1

query I rowsort
SELECT - 20 + 29 AS col0
----
9

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

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

query I rowsort
SELECT DISTINCT + 73 * + + 61 AS col2
----
4453

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6763
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / + + COUNT( - 95 ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT - CAST ( NULL AS REAL ) / + + COUNT ( - 95 ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT + 12 + - 93 + - - 77 AS col0
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT ALL + + 53 * - - COUNT( * ) + 72 * + 45 AS col2
----
3293

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL + + 53 * - - COUNT ( * ) + 72 * + 45 AS col2
----
3293

query I rowsort
SELECT DISTINCT + + ( + + 60 ) AS col0
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT DISTINCT + COUNT( * ) + COUNT( * ) + + 90
----
92

skipif mysql # not compatible
query I rowsort label-6769
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) + + 90
----
92

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

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

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

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL CAST ( NULL AS INTEGER ) * - 65 - - - 40
----
NULL

query I rowsort
SELECT ALL 56 * 60
----
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-6773
SELECT DISTINCT 85 DIV 6
----
14

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT 85 / 6
----
14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT MAX( + + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-6776
SELECT MAX ( + + 30 )
----
30

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

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

query II rowsort
SELECT 89 AS col2, - 17
----
89
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT COUNT( * ) * + + 6 col1
----
6

skipif mysql # not compatible
query I rowsort label-6779
SELECT COUNT ( * ) * + + 6 col1
----
6

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

skipif mysql # not compatible
query II rowsort label-6780
SELECT - COUNT ( * ) col2, - 34 AS col1
----
-1
-34

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

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

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

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

query II rowsort
SELECT - + 63 + 69 AS col1, 52 col0
----
6
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT - SUM( + + 49 ) * + 44 AS col1
----
-2156

skipif mysql # not compatible
query I rowsort label-6784
SELECT - SUM ( + + 49 ) * + 44 AS col1
----
-2156

query I rowsort
SELECT ALL + 28 * - + 82 AS col1
----
-2296

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

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

query I rowsort
SELECT ALL + 91 * - 92 + + 31
----
-8341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6788
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0, 52 col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-6788
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0, 52 col2
----
NULL
52

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT - ( + COUNT( * ) ) + + 96 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-6791
SELECT - ( + COUNT ( * ) ) + + 96 AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-6792
SELECT ALL - 35 DIV - 20 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL - 35 / - 20 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT 12 - - + 25 + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-6793
SELECT 12 - - + 25 + - COUNT ( * )
----
36

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

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

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

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

query I rowsort
SELECT + 26 * - 41 AS col1
----
-1066

query I rowsort
SELECT 57 * + + 56 * + - 11 AS col1
----
-35112

query I rowsort
SELECT - 89 * - 70 AS col2
----
6230

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + NULLIF ( + COUNT( DISTINCT + + 6 ), ( + ( - + 82 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6799
SELECT + NULLIF ( + COUNT ( DISTINCT + + 6 ), ( + ( - + 82 ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT + + MAX( - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-6800
SELECT + + MAX ( - 87 )
----
-87

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

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

query I rowsort
SELECT - NULLIF ( - + 73, - 17 ) AS col1
----
73

query I rowsort
SELECT ( - + 69 ) * + + 27 col0
----
-1863

onlyif mysql # aggregate syntax: 
query II rowsort label-6804
SELECT - 42 AS col1, + MIN( ALL + ( - + 45 ) ) AS col1
----
-42
-45

skipif mysql # not compatible
query II rowsort label-6804
SELECT - 42 AS col1, + MIN ( ALL + ( - + 45 ) ) AS col1
----
-42
-45

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

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

query I rowsort
SELECT - 29 + - 17 AS col0
----
-46

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

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

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

skipif mysql # not compatible
query I rowsort label-6808
SELECT SUM ( DISTINCT 87 )
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6809
SELECT - 61 DIV 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6809
SELECT - 61 / 57 AS col0
----
-1

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

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

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

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

query I rowsort
SELECT DISTINCT + - 34 col0
----
-34

query I rowsort
SELECT + 93 * 87 AS col0
----
8091

query I rowsort
SELECT ALL ( + 93 ) AS col0
----
93

query I rowsort
SELECT DISTINCT ( - 44 ) AS col0
----
-44

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

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

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

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

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

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

query II rowsort
SELECT ALL - - 7 AS col2, - NULLIF ( 92, 0 ) AS col1
----
7
-92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6821
SELECT - CAST( + 55 AS SIGNED ) + + ( + 2 )
----
-53

skipif mysql # not compatible
query I rowsort label-6821
SELECT - CAST ( + 55 AS INTEGER ) + + ( + 2 )
----
-53

query I rowsort
SELECT DISTINCT + 3 + + + 67 AS col2
----
70

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

query I rowsort
SELECT DISTINCT - 40 * - ( - + 15 )
----
-600

query I rowsort
SELECT ALL + CASE WHEN NOT NULL > NULL THEN - 89 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT 38 / - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT 38 / - - CAST ( NULL AS INTEGER ) col2
----
NULL

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

query I rowsort
SELECT DISTINCT - 47 * 10 * + - 80 AS col1
----
37600

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL + COUNT( * ) + COUNT( * ) * + 98 * + - 14
----
-1371

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL + COUNT ( * ) + COUNT ( * ) * + 98 * + - 14
----
-1371

query I rowsort
SELECT + 82 * + 72 AS col2
----
5904

query II rowsort
SELECT DISTINCT + + 88 AS col1, 45 AS col2
----
88
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL COUNT( DISTINCT 17 )
----
1

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL COUNT ( DISTINCT 17 )
----
1

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

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

query I rowsort
SELECT ALL - 37 + - ( 3 ) AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-6836
SELECT ALL ( + 81 ) DIV 1 + + NULLIF ( 13, - + 55 ) - - 95 AS col2
----
189

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL ( + 81 ) / 1 + + NULLIF ( 13, - + 55 ) - - 95 AS col2
----
189

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

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

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

query I rowsort
SELECT + + 46 * + 5 AS col1
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-6840
SELECT DISTINCT - 33 DIV - NULLIF ( + 84, + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT - 33 / - NULLIF ( + 84, + 15 )
----
0

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

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

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

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

query I rowsort
SELECT 35 + - + 94
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL 25 + + MIN( DISTINCT 57 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL 25 + + MIN ( DISTINCT 57 ) AS col0
----
82

query I rowsort
SELECT DISTINCT - 96 col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT + SUM( DISTINCT + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6846
SELECT + SUM ( DISTINCT + 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT + MAX( DISTINCT - 1 ) * - 21 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-6847
SELECT + MAX ( DISTINCT - 1 ) * - 21 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6848
SELECT DISTINCT + CAST( NULL AS SIGNED ), 23 AS col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-6848
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 23 AS col2
----
NULL
23

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT + + 14 + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6850
SELECT + + 14 + COUNT ( * ) AS col2
----
15

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

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

query I rowsort
SELECT ALL - 84 * + - ( 54 )
----
4536

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

query I rowsort
SELECT 86 * - 61
----
-5246

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6856
SELECT + CASE + COUNT( ALL - - 43 ) WHEN - COUNT( * ) THEN + + NULLIF ( NULLIF ( - + COUNT( * ), - CAST( NULL AS SIGNED ) + + - 87 ), + 22 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6856
SELECT + CASE + COUNT ( ALL - - 43 ) WHEN - COUNT ( * ) THEN + + NULLIF ( NULLIF ( - + COUNT ( * ), - CAST ( NULL AS INTEGER ) + + - 87 ), + 22 ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 9 col2
----
9

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

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

query I rowsort
SELECT - ( - 30 ) - 1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT MAX( - - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-6860
SELECT MAX ( - - 76 )
----
76

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

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

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

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

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

query I rowsort
SELECT - 19 * 50
----
-950

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT DISTINCT ( - COUNT( * ) ), 55 * - 21 * + 98 AS col1
----
-1
-113190

skipif mysql # not compatible
query II rowsort label-6866
SELECT DISTINCT ( - COUNT ( * ) ), 55 * - 21 * + 98 AS col1
----
-1
-113190

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL - MIN( ALL + 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - MIN ( ALL + 1 ) AS col2
----
-1

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

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

query I rowsort
SELECT ALL - ( - 34 ) col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT DISTINCT - SUM( - + 52 ) * - - 13 AS col1
----
676

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - SUM ( - + 52 ) * - - 13 AS col1
----
676

query I rowsort
SELECT CASE 38 WHEN 5 THEN NULL ELSE - - ( + 20 ) END - - - 7
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT - 50 * - - COUNT( * ) + + 93
----
43

skipif mysql # not compatible
query I rowsort label-6878
SELECT - 50 * - - COUNT ( * ) + + 93
----
43

query I rowsort
SELECT - 39 + 88
----
49

query I rowsort
SELECT DISTINCT - 25 * - 67 AS col1
----
1675

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6881
SELECT + 40 DIV NULLIF ( - 88, MIN( 88 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6881
SELECT + 40 / NULLIF ( - 88, MIN ( 88 ) )
----
0

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

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

query I rowsort
SELECT 15 * ( - 12 )
----
-180

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6886
SELECT DISTINCT COUNT( * ) DIV - - 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT COUNT ( * ) / - - 53 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT CAST( NULL AS SIGNED ) / + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT CAST ( NULL AS INTEGER ) / + 44 AS col2
----
NULL

query I rowsort
SELECT ( - 33 ) AS col2
----
-33

query I rowsort
SELECT DISTINCT + - 97 * - 12
----
1164

query II rowsort
SELECT 74, 15 AS col0
----
74
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT ALL 30 / CAST( NULL AS SIGNED ) * + 62
----
NULL

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

query I rowsort
SELECT + + 58 * 69
----
4002

onlyif mysql # aggregate syntax: 
query II rowsort label-6893
SELECT DISTINCT + + COUNT( * ) AS col1, - 37 AS col0
----
1
-37

skipif mysql # not compatible
query II rowsort label-6893
SELECT DISTINCT + + COUNT ( * ) AS col1, - 37 AS col0
----
1
-37

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

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

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL 53 * - - 26 * + COUNT ( * ) AS col1
----
1378

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL + COUNT( DISTINCT + 19 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL + COUNT ( DISTINCT + 19 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT - CAST( - + SUM( 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6897
SELECT - CAST ( - + SUM ( 0 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6898
SELECT + CAST( NULL AS DECIMAL ) + + CAST( + 61 AS DECIMAL ) AS col2, 77 AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-6898
SELECT + CAST ( NULL AS REAL ) + + CAST ( + 61 AS REAL ) AS col2, 77 AS col1
----
NULL
77

query II rowsort
SELECT ALL + 51, - 37 AS col2
----
51
-37

query I rowsort
SELECT + 6 + - 23 AS col0
----
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT - SUM( - 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6902
SELECT - SUM ( - 83 ) AS col0
----
83

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

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

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

query I rowsort
SELECT 87 * - 18 + + + 78
----
-1488

query II rowsort
SELECT ALL + 38, 11 AS col0
----
38
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT - MIN( DISTINCT + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6908
SELECT - MIN ( DISTINCT + 68 ) AS col0
----
-68

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

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

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

skipif mysql # not compatible
query I rowsort label-6910
SELECT ( - SUM ( DISTINCT 85 ) )
----
-85

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

query I rowsort
SELECT + + 80 col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6913
SELECT DISTINCT 33 / COUNT( * ) + + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT 33 / COUNT ( * ) + + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6914
SELECT DISTINCT - 24 - - + CAST( - 25 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT - 24 - - + CAST ( - 25 AS INTEGER )
----
-49

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

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

query I rowsort
SELECT ALL - NULLIF ( + 41, 50 ) col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT DISTINCT SUM( + - 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT SUM ( + - 12 ) AS col0
----
-12

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

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

query I rowsort
SELECT 64 * - 93
----
-5952

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

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

query II rowsort
SELECT ALL + 37 AS col1, - 76 AS col0
----
37
-76

query I rowsort
SELECT DISTINCT ( + - 7 ) AS col0
----
-7

query I rowsort
SELECT ALL + ( - + 58 ) * 34
----
-1972

query I rowsort
SELECT DISTINCT 88 + + 71
----
159

query I rowsort
SELECT - 99 - - 66 * 36
----
2277

query I rowsort
SELECT ALL + + 3 col0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT - NULLIF ( COUNT( * ), 25 ) + - 15 * + 92 AS col1
----
-1381

skipif mysql # not compatible
query I rowsort label-6928
SELECT - NULLIF ( COUNT ( * ), 25 ) + - 15 * + 92 AS col1
----
-1381

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 16 col2
----
-16

query I rowsort
SELECT DISTINCT 94 col0
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT ALL - - SUM( - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL - - SUM ( - 0 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6937
SELECT + CAST( NULL AS SIGNED ) * + 32 + + + 19 * + 8 * 99 * + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-6937
SELECT + CAST ( NULL AS INTEGER ) * + 32 + + + 19 * + 8 * 99 * + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT + 46 - + + COUNT( + + 14 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6938
SELECT + 46 - + + COUNT ( + + 14 ) AS col2
----
45

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

skipif mysql # not compatible
query I rowsort label-6939
SELECT + COUNT ( * ) + - - 6 * - + COUNT ( * ) / + - COUNT ( * )
----
7

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

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

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

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL ( + + SUM ( ALL 40 ) ) * + + COUNT ( ALL - 83 ) col2
----
40

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

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

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

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

query II rowsort
SELECT + 50 AS col2, 88
----
50
88

query I rowsort
SELECT DISTINCT ( - 2 ) AS col0
----
-2

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

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

query I rowsort
SELECT ALL - ( 13 ) col0
----
-13

query I rowsort
SELECT + 64 * + + 79
----
5056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6949
SELECT + CAST( AVG ( DISTINCT - 31 ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-6949
SELECT + CAST ( AVG ( DISTINCT - 31 ) AS INTEGER )
----
-31

query I rowsort
SELECT DISTINCT + 75 * - 24 AS col0
----
-1800

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

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + + COUNT ( * ) + - - ( + 45 ) AS col0
----
46

query I rowsort
SELECT 95 - + 70 AS col1
----
25

query I rowsort
SELECT ALL + ( - + 42 ) * - + ( + 29 ) + 14
----
1232

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6955
SELECT DISTINCT + ( - CAST( + COUNT( ALL - CAST( NULL AS DECIMAL ) ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT + ( - CAST ( + COUNT ( ALL - CAST ( NULL AS REAL ) ) AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT 57 * 38
----
2166

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT + 43 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT + 43 / 55
----
0

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

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

query I rowsort
SELECT DISTINCT + ( - 40 ) * 2 col1
----
-80

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - - ( + CAST ( 95 AS INTEGER ) ) AS col0
----
95

query II rowsort
SELECT ALL + 41, - 37 col2
----
41
-37

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

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

query I rowsort
SELECT 74 * + 70 + - + 10 AS col2
----
5170

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6969
SELECT CAST( NULL AS SIGNED ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6969
SELECT CAST ( NULL AS INTEGER ) * 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6970
SELECT 0 DIV - COUNT( * ) + + 53 - + 94 DIV + 1 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-6970
SELECT 0 / - COUNT ( * ) + + 53 - + 94 / + 1 AS col2
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT - 11 DIV 24 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6971
SELECT - 11 / 24 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT ALL CAST( + - COUNT( * ) AS SIGNED ) * - 31 + + + 57 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL CAST ( + - COUNT ( * ) AS INTEGER ) * - 31 + + + 57 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + MIN( DISTINCT 20 ) * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-6973
SELECT + MIN ( DISTINCT 20 ) * COUNT ( * )
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6974
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0, + 68 col2
----
NULL
68

skipif mysql # not compatible
query II rowsort label-6974
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0, + 68 col2
----
NULL
68

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

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

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

skipif mysql # not compatible
query I rowsort label-6976
SELECT COUNT ( * ) * 81
----
81

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

skipif mysql # not compatible
query I rowsort label-6977
SELECT MIN ( + + 95 )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6978
SELECT - CAST( + - COUNT( * ) AS SIGNED ) DIV + - 60 * + ( + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6978
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) / + - 60 * + ( + 86 )
----
0

query I rowsort
SELECT ALL - 89 - - 6 AS col2
----
-83

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

query I rowsort
SELECT - - 35 AS col2
----
35

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 22 - - - 9 col0
----
13

query I rowsort
SELECT - + 96 col0
----
-96

query II rowsort
SELECT DISTINCT - 9, - 37 AS col0
----
-9
-37

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT COUNT( DISTINCT + - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-6989
SELECT COUNT ( DISTINCT + - 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT DISTINCT - ( + - 25 ) + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - ( + - 25 ) + + COUNT ( * )
----
26

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

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL COUNT ( * ) + + + COUNT ( * ) * - 21 AS col2
----
-20

query I rowsort
SELECT ALL ( + - 19 ) col2
----
-19

query II rowsort
SELECT - 53 AS col2, 34
----
-53
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6994
SELECT ALL - 76 DIV - 47
----
1

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL - 76 / - 47
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6995
SELECT DISTINCT - 11 DIV - 55 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT - 11 / - 55 * COUNT ( * )
----
0

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

skipif mysql # not compatible
query I rowsort label-6996
SELECT 64 / - - COUNT ( * )
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT + + NULLIF ( - MAX( 97 ), - 35 * - 69 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6998
SELECT + + NULLIF ( - MAX ( 97 ), - 35 * - 69 ) AS col1
----
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT - 24 DIV - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7000
SELECT - 24 / - 52 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7001
SELECT ALL 35 DIV - CAST( + 33 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL 35 / - CAST ( + 33 AS INTEGER ) AS col0
----
-1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT + COUNT( * ) * 51 + - COUNT( * ) + + 61 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-7004
SELECT + COUNT ( * ) * 51 + - COUNT ( * ) + + 61 AS col0
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-7005
SELECT DISTINCT + 89 DIV - - 73
----
1

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT + 89 / - - 73
----
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7008
SELECT DISTINCT + CAST( - - ( COUNT( * ) ) AS SIGNED ) DIV + ( + 74 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7008
SELECT DISTINCT + CAST ( - - ( COUNT ( * ) ) AS INTEGER ) / + ( + 74 ) AS col1
----
0

query II rowsort
SELECT ALL + ( + 24 ) * 47 AS col1, 92 col2
----
1128
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7010
SELECT ( - 53 ) - COUNT( * ) AS col2, 15
----
-54
15

skipif mysql # not compatible
query II rowsort label-7010
SELECT ( - 53 ) - COUNT ( * ) AS col2, 15
----
-54
15

onlyif mysql # aggregate syntax: 
query II rowsort label-7011
SELECT DISTINCT 31 AS col1, + MIN( - + 61 )
----
31
-61

skipif mysql # not compatible
query II rowsort label-7011
SELECT DISTINCT 31 AS col1, + MIN ( - + 61 )
----
31
-61

query I rowsort
SELECT 55 * + - 9 AS col0
----
-495

query II rowsort
SELECT ALL 5 AS col0, - 62 col1
----
5
-62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT ALL - 10 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - 10 / 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT - MAX( + - 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-7016
SELECT - MAX ( + - 65 ) AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7017
SELECT ALL + COALESCE ( + + 66, SUM( - 47 ), + CAST( 72 AS SIGNED ) ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL + COALESCE ( + + 66, SUM ( - 47 ), + CAST ( 72 AS INTEGER ) ) AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT - CAST( NULL AS SIGNED ) * - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT - CAST ( NULL AS INTEGER ) * - - 70
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7020
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7021
SELECT DISTINCT 21 * + COUNT( * ) - 48 * CAST( 61 AS SIGNED ) - - 80
----
-2827

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT 21 * + COUNT ( * ) - 48 * CAST ( 61 AS INTEGER ) - - 80
----
-2827

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

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

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

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

query I rowsort
SELECT ALL 16 * 25
----
400

query I rowsort
SELECT + ( + 83 ) * - ( + + 52 ) AS col2
----
-4316

query I rowsort
SELECT + - 88 - - 73 col0
----
-15

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

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

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

skipif mysql # not compatible
query II rowsort label-7028
SELECT ALL + COUNT ( * ), COUNT ( * ) col1
----
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7030
SELECT DISTINCT + CAST( - 33 AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT + CAST ( - 33 AS INTEGER )
----
-33

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT DISTINCT + COUNT( * ) * - 32 AS col2, + 65
----
-32
65

skipif mysql # not compatible
query II rowsort label-7032
SELECT DISTINCT + COUNT ( * ) * - 32 AS col2, + 65
----
-32
65

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

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

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

query I rowsort
SELECT - 35 + 6
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7036
SELECT CAST( + - NULLIF ( + 85, + + SUM( DISTINCT - 27 ) ) AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-7036
SELECT CAST ( + - NULLIF ( + 85, + + SUM ( DISTINCT - 27 ) ) AS INTEGER )
----
-85

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

query I rowsort
SELECT ALL + - ( 63 ) col0
----
-63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT + 4 DIV 78 * ( + - 89 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7040
SELECT + 4 / 78 * ( + - 89 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7041
SELECT ALL 29 DIV - 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL 29 / - 42 AS col0
----
0

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

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

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

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

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

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

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

query I rowsort
SELECT - 31 + + 81 AS col0
----
50

query I rowsort
SELECT ALL 88 + 57 AS col0
----
145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - MIN( ALL - - 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-7049
SELECT - MIN ( ALL - - 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7050
SELECT NULLIF ( ( + COUNT( * ) ), + 65 ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7050
SELECT NULLIF ( ( + COUNT ( * ) ), + 65 ) / - COUNT ( * )
----
-1

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

query II rowsort
SELECT + 79 AS col2, + 53
----
79
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7053
SELECT ALL + - COUNT( * ) + - - MAX( ALL NULLIF ( + + CAST( - 22 AS SIGNED ), 43 ) ) AS col1, + 14 + - 38
----
-23
-24

skipif mysql # not compatible
query II rowsort label-7053
SELECT ALL + - COUNT ( * ) + - - MAX ( ALL NULLIF ( + + CAST ( - 22 AS INTEGER ), 43 ) ) AS col1, + 14 + - 38
----
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7054
SELECT - COALESCE ( - 5, + 26 * + - CAST( NULL AS SIGNED ) )
----
5

skipif mysql # not compatible
query I rowsort label-7054
SELECT - COALESCE ( - 5, + 26 * + - CAST ( NULL AS INTEGER ) )
----
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7056
SELECT 39 * + COUNT( * ) + - 76 * + CAST( NULL AS DECIMAL )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT MAX( ALL + - 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-7057
SELECT MAX ( ALL + - 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + COUNT( * ) + + NULLIF ( + 69, - 58 ) + - - 91
----
161

skipif mysql # not compatible
query I rowsort label-7058
SELECT + COUNT ( * ) + + NULLIF ( + 69, - 58 ) + - - 91
----
161

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

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

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

skipif mysql # not compatible
query I rowsort label-7060
SELECT - SUM ( + + ( + 57 ) )
----
-57

query I rowsort
SELECT - - 84 col0
----
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT - MIN( DISTINCT - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT - MIN ( DISTINCT - 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL 15 * COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL 15 * COUNT ( * ) AS col1
----
15

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7067
SELECT COALESCE ( ( + COUNT ( * ) ), COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7068
SELECT + SUM( ALL - CAST( + 29 AS SIGNED ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7068
SELECT + SUM ( ALL - CAST ( + 29 AS INTEGER ) ) AS col2
----
-29

query II rowsort
SELECT + 96 AS col2, + 43
----
96
43

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

query II rowsort
SELECT ALL + 32 AS col0, 67 + - + 21 * + 95 AS col1
----
32
-1928

query I rowsort
SELECT ALL 85 * - 4 AS col0
----
-340

onlyif mysql # DIV for integer division: 
query III rowsort label-7073
SELECT 17 AS col1, 76 AS col0, 14 DIV + 31
----
17
76
0

skipif mysql # not compatible
query III rowsort label-7073
SELECT 17 AS col1, 76 AS col0, 14 / + 31
----
17
76
0

query I rowsort
SELECT + + 31 + 58
----
89

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

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

query I rowsort
SELECT - + 82 + - 29
----
-111

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

skipif mysql # not compatible
query I rowsort label-7077
SELECT - 93 * + ( + + ( 99 ) ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT + 33 * + - 14 * + - COUNT( * ) AS col1
----
462

skipif mysql # not compatible
query I rowsort label-7078
SELECT + 33 * + - 14 * + - COUNT ( * ) AS col1
----
462

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

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

query II rowsort
SELECT - 52 + + 1 AS col2, ( + 77 )
----
-51
77

query I rowsort
SELECT 93 * + 73 AS col0
----
6789

query I rowsort
SELECT - ( + 67 ) - 83 col0
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-7083
SELECT 16 AS col0, 88 * - COUNT( * ) AS col1
----
16
-88

skipif mysql # not compatible
query II rowsort label-7083
SELECT 16 AS col0, 88 * - COUNT ( * ) AS col1
----
16
-88

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

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

query II rowsort
SELECT + 50 col2, + 7
----
50
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT MAX( DISTINCT + + 6 ) * + + 23
----
138

skipif mysql # not compatible
query I rowsort label-7086
SELECT MAX ( DISTINCT + + 6 ) * + + 23
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL + 15 * - COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL + 15 * - COUNT ( * ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT + ( 46 ) + + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7088
SELECT + ( 46 ) + + COUNT ( * )
----
47

query I rowsort
SELECT ALL + - NULLIF ( + 38, - 23 ) col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT 44 * + COUNT( * ) + COUNT( * ) + - 36
----
9

skipif mysql # not compatible
query I rowsort label-7090
SELECT 44 * + COUNT ( * ) + COUNT ( * ) + - 36
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT DISTINCT + CAST( - + 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-7091
SELECT DISTINCT + CAST ( - + 28 AS INTEGER )
----
-28

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

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

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

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

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

query II rowsort
SELECT DISTINCT 3 AS col0, 89
----
3
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT - CAST( - ( + - 39 ) AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7096
SELECT - CAST ( - ( + - 39 ) AS INTEGER ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL - MIN( ALL - 86 ) - - 78
----
164

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL - MIN ( ALL - 86 ) - - 78
----
164

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7098
SELECT 76 * + + 89 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7098
SELECT 76 * + + 89 * + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 60 - + 1
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7100
SELECT - 34 + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT - 34 + - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7101
SELECT CAST( - - SUM( - 22 ) AS SIGNED ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7101
SELECT CAST ( - - SUM ( - 22 ) AS INTEGER ) AS col1
----
-22

query I rowsort
SELECT + 87 * - 27 col2
----
-2349

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT + 51 + - COUNT( * ) * - + 63 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-7103
SELECT + 51 + - COUNT ( * ) * - + 63 AS col2
----
114

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7105
SELECT + 47 DIV + + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7105
SELECT + 47 / + + 71 AS col2
----
0

query I rowsort
SELECT - ( - 9 ) col2
----
9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT DISTINCT 99 + + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT 99 + + COUNT ( * )
----
100

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

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

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

query I rowsort
SELECT DISTINCT - 79 col1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT DISTINCT 6 AS col1, - ( - - COUNT( * ) )
----
6
-1

skipif mysql # not compatible
query II rowsort label-7112
SELECT DISTINCT 6 AS col1, - ( - - COUNT ( * ) )
----
6
-1

query I rowsort
SELECT + 52 * 90 AS col2
----
4680

query I rowsort
SELECT ALL + 11 * 66
----
726

query I rowsort
SELECT ALL 58 + - 2 AS col0
----
56

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

skipif mysql # not compatible
query II rowsort label-7116
SELECT 75 AS col0, COUNT ( * ) AS col2
----
75
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ( + MIN( 40 ) ) + ( - 99 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7118
SELECT ( + MIN ( 40 ) ) + ( - 99 ) AS col0
----
-59

query I rowsort
SELECT ALL + 33 * - 51
----
-1683

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT ALL - SUM( - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-7120
SELECT ALL - SUM ( - 21 )
----
21

query I rowsort
SELECT - - 36 * - 47
----
-1692

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

skipif mysql # not compatible
query I rowsort label-7122
SELECT + MIN ( 6 )
----
6

query I rowsort
SELECT - 44 * - 85 AS col0
----
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT DISTINCT - 93 * - + COUNT( * ) + - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT - 93 * - + COUNT ( * ) + - COUNT ( * ) AS col1
----
92

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

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

query I rowsort
SELECT DISTINCT + ( + 11 ) AS col0
----
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ( - + MIN( - 24 ) ) col0
----
24

skipif mysql # not compatible
query I rowsort label-7128
SELECT ( - + MIN ( - 24 ) ) col0
----
24

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT - 56 + + MIN( + - 43 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT - 56 + + MIN ( + - 43 ) AS col1
----
-99

query I rowsort
SELECT - 49 + + 81
----
32

query I rowsort
SELECT 12 * + 23 col0
----
276

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

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

query I rowsort
SELECT 61 * + 39 * - 24
----
-57096

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT COUNT( * ) * + 33 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7135
SELECT COUNT ( * ) * + 33 AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7136
SELECT ALL 69 DIV COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL 69 / COUNT ( * ) col1
----
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL - SUM( DISTINCT 3 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL - SUM ( DISTINCT 3 ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7139
SELECT 85 DIV - COUNT( * ), 54 AS col2
----
-85
54

skipif mysql # not compatible
query II rowsort label-7139
SELECT 85 / - COUNT ( * ), 54 AS col2
----
-85
54

query I rowsort
SELECT ALL - 54 + + + 99 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT NULLIF ( + COUNT( * ), 31 ) + - 80 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7141
SELECT NULLIF ( + COUNT ( * ), 31 ) + - 80 AS col2
----
-79

query I rowsort
SELECT DISTINCT - 14 col2
----
-14

query I rowsort
SELECT + 40 * 12 * + 86
----
41280

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT + + 98 * + - COUNT( * ) + COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT + + 98 * + - COUNT ( * ) + COUNT ( * ) AS col1
----
-97

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

skipif mysql # not compatible
query I rowsort label-7145
SELECT - COUNT ( * ) / + - NULLIF ( + CAST ( NULL AS INTEGER ), - 13 ) AS col2
----
NULL

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

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

query I rowsort
SELECT + ( + 1 ) - - 29
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT + MIN( DISTINCT + 96 ) * + - 2
----
-192

skipif mysql # not compatible
query I rowsort label-7148
SELECT + MIN ( DISTINCT + 96 ) * + - 2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT DISTINCT 27 + COUNT( + 84 )
----
28

skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT 27 + COUNT ( + 84 )
----
28

query II rowsort
SELECT ALL + + 68 AS col2, - 92 AS col0
----
68
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-7151
SELECT + 44 AS col2, COUNT( * ) * 4
----
44
4

skipif mysql # not compatible
query II rowsort label-7151
SELECT + 44 AS col2, COUNT ( * ) * 4
----
44
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT + - COUNT( * ) + 11 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7152
SELECT + - COUNT ( * ) + 11 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7153
SELECT DISTINCT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, 93 col1
----
NULL
93

skipif mysql # not compatible
query II rowsort label-7153
SELECT DISTINCT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, 93 col1
----
NULL
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT - 93 + - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-7154
SELECT - 93 + - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT + 13 * - COUNT( * ) col1, 68 + - + COALESCE ( COUNT( * ), - - 86 )
----
-13
67

skipif mysql # not compatible
query II rowsort label-7155
SELECT + 13 * - COUNT ( * ) col1, 68 + - + COALESCE ( COUNT ( * ), - - 86 )
----
-13
67

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7157
SELECT 56 DIV - 74 col1
----
0

skipif mysql # not compatible
query I rowsort label-7157
SELECT 56 / - 74 col1
----
0

query II rowsort
SELECT - 7 AS col2, + 76 AS col2
----
-7
76

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7160
SELECT ALL 39 * 78 AS col2, - COUNT( * )
----
3042
-1

skipif mysql # not compatible
query II rowsort label-7160
SELECT ALL 39 * 78 AS col2, - COUNT ( * )
----
3042
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT - ( - - 24 ) + - COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-7162
SELECT - ( - - 24 ) + - COUNT ( * ) AS col1
----
-25

query I rowsort
SELECT ALL 62 col1
----
62

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

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

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

query I rowsort
SELECT - NULLIF ( - + 78, - 53 )
----
78

query I rowsort
SELECT ALL + 27 * - - 57
----
1539

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

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

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

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

query I rowsort
SELECT ALL 89 + + 70
----
159

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7175
SELECT COUNT( * ) DIV - CAST( 80 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7175
SELECT COUNT ( * ) / - CAST ( 80 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT ALL - MIN( - 73 ) + - 14
----
59

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - MIN ( - 73 ) + - 14
----
59

query I rowsort
SELECT - 89 + - 44 AS col2
----
-133

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

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL COUNT ( * ) + - 98 AS col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7179
SELECT 61 DIV - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7179
SELECT 61 / - COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT - + MAX( 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - + MAX ( 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT ALL + 26 * + 18 - + COUNT( * ) AS col0
----
467

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + 26 * + 18 - + COUNT ( * ) AS col0
----
467

query I rowsort
SELECT - + ( + 46 ) * - 40
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - 16 + MIN( ALL 14 )
----
-2

skipif mysql # not compatible
query I rowsort label-7183
SELECT - 16 + MIN ( ALL 14 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT 34 * 62 + + COUNT( * )
----
2109

skipif mysql # not compatible
query I rowsort label-7184
SELECT 34 * 62 + + COUNT ( * )
----
2109

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

skipif mysql # not compatible
query I rowsort label-7185
SELECT MIN ( + 17 )
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT + NULLIF ( + 71, + COUNT( * ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-7187
SELECT + NULLIF ( + 71, + COUNT ( * ) ) AS col2
----
71

query I rowsort
SELECT ALL 54 * + 71 AS col2
----
3834

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL + COUNT( * ) - - + COUNT( * ) * 72
----
73

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL + COUNT ( * ) - - + COUNT ( * ) * 72
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7191
SELECT DISTINCT + MIN( DISTINCT + 98 ) DIV + COUNT( DISTINCT - + 17 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7191
SELECT DISTINCT + MIN ( DISTINCT + 98 ) / + COUNT ( DISTINCT - + 17 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT + COUNT( * ) * - 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT + COUNT ( * ) * - 40 AS col1
----
-40

query I rowsort
SELECT + ( - 65 ) * - + 97
----
6305

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT - 10 + - ( + - MIN( + 16 ) )
----
6

skipif mysql # not compatible
query I rowsort label-7196
SELECT - 10 + - ( + - MIN ( + 16 ) )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7197
SELECT + 92 * - 45, + COUNT( * ) AS col2
----
-4140
1

skipif mysql # not compatible
query II rowsort label-7197
SELECT + 92 * - 45, + COUNT ( * ) AS col2
----
-4140
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7199
SELECT DISTINCT - 78 DIV + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT - 78 / + COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT ALL - + 15 - - 37
----
22

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

query I rowsort
SELECT + - 43 col0
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7203
SELECT + CASE + CAST( NULL AS SIGNED ) WHEN + COUNT( DISTINCT - 66 ) + - COUNT( * ) THEN NULL ELSE + 96 END col0
----
96

skipif mysql # not compatible
query I rowsort label-7203
SELECT + CASE + CAST ( NULL AS INTEGER ) WHEN + COUNT ( DISTINCT - 66 ) + - COUNT ( * ) THEN NULL ELSE + 96 END col0
----
96

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7205
SELECT ALL + - 50 AS col2, 38 * MAX( + 57 ) col1
----
-50
2166

skipif mysql # not compatible
query II rowsort label-7205
SELECT ALL + - 50 AS col2, 38 * MAX ( + 57 ) col1
----
-50
2166

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

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

query I rowsort
SELECT + 68 + - 60
----
8

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

query I rowsort
SELECT ALL - COALESCE ( 51, + + 64 ) * - 13 + + 22 * - 34 AS col0
----
-85

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

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

query I rowsort
SELECT 10 * 31
----
310

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT DISTINCT + MAX( ALL - - 42 ) + MIN( 25 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-7213
SELECT DISTINCT + MAX ( ALL - - 42 ) + MIN ( 25 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT COUNT( * ) * - 18 AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7214
SELECT COUNT ( * ) * - 18 AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7215
SELECT 7 * + MIN( COALESCE ( + 77, 31 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT 7 * + MIN ( COALESCE ( + 77, 31 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 93 + + 16
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT - 33 DIV + ( 53 ) * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7217
SELECT - 33 / + ( 53 ) * COUNT ( * ) AS col0
----
0

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

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

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

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

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

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

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

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

query I rowsort
SELECT - - ( - - 40 )
----
40

query I rowsort
SELECT - 98 - 73
----
-171

query I rowsort
SELECT ( + 25 ) + - - ( + 54 )
----
79

query II rowsort
SELECT ALL - 27 AS col1, 34
----
-27
34

query I rowsort
SELECT 1 + + 51 + - - 77
----
129

query I rowsort
SELECT ALL + 5 * - - 68 AS col2
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT 92 + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-7228
SELECT 92 + - COUNT ( * )
----
91

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7230
SELECT ALL 52 - + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL 52 - + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT + ( 82 ) AS col0
----
82

query I rowsort
SELECT 66 * + 11 AS col1
----
726

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT + NULLIF ( + COUNT( * ), + - 8 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7233
SELECT + NULLIF ( + COUNT ( * ), + - 8 ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7234
SELECT ALL + + MAX( + - 37 ) AS col2, - 35
----
-37
-35

skipif mysql # not compatible
query II rowsort label-7234
SELECT ALL + + MAX ( + - 37 ) AS col2, - 35
----
-37
-35

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7239
SELECT DISTINCT - CAST( NULL AS SIGNED ) * CAST( - ( + 63 ) AS DECIMAL ), + 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-7239
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * CAST ( - ( + 63 ) AS REAL ), + 79 AS col1
----
NULL
79

query I rowsort
SELECT DISTINCT + 50 * + - 53 AS col1
----
-2650

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7242
SELECT ALL CAST( NULL AS DECIMAL ) - + 15 AS col2, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-7242
SELECT ALL CAST ( NULL AS REAL ) - + 15 AS col2, - 15
----
NULL
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT DISTINCT + + 77 * + ( - + COUNT( * ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT + + 77 * + ( - + COUNT ( * ) ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT 64 * MIN( 61 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7244
SELECT 64 * MIN ( 61 ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 2 * + + 2 AS col1
----
4

query I rowsort
SELECT + 19 + + ( - 98 ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7247
SELECT ALL COUNT( * ) col0, CAST( NULL AS SIGNED ) + - 54
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7247
SELECT ALL COUNT ( * ) col0, CAST ( NULL AS INTEGER ) + - 54
----
1
NULL

query I rowsort
SELECT - NULLIF ( - - 95, + 57 ) AS col1
----
-95

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

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

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

query I rowsort
SELECT ALL + ( + + 71 ) col1
----
71

query I rowsort
SELECT + 78 + 77
----
155

onlyif mysql # aggregate syntax: 
query II rowsort label-7253
SELECT + 55 + + MAX( DISTINCT + - 81 ), 6 col2
----
-26
6

skipif mysql # not compatible
query II rowsort label-7253
SELECT + 55 + + MAX ( DISTINCT + - 81 ), 6 col2
----
-26
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7254
SELECT ALL 74 DIV 7
----
10

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL 74 / 7
----
10

query I rowsort
SELECT 45 * + 71
----
3195

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

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

query I rowsort
SELECT + 20 * 64 * + 50 AS col0
----
64000

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

skipif mysql # not compatible
query I rowsort label-7258
SELECT MIN ( - 40 ) AS col2
----
-40

query I rowsort
SELECT + 64 - + 72 * + 76
----
-5408

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT + 4 * COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + 4 * COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7261
SELECT ALL + - MIN( - 83 ) - - + 70 + - + CAST( - + SUM( + - 75 ) AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL + - MIN ( - 83 ) - - + 70 + - + CAST ( - + SUM ( + - 75 ) AS INTEGER ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL + MIN( 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + MIN ( 61 ) AS col0
----
61

query I rowsort
SELECT ALL 83 col0
----
83

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

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

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

query I rowsort
SELECT ALL - 6 * + 80
----
-480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT 16 + - MAX( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT 16 + - MAX ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL COUNT ( * ) + - 28 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT DISTINCT 61 + + - COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7271
SELECT DISTINCT 61 + + - COUNT ( * ) AS col0
----
60

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

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

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

skipif mysql # not compatible
query II rowsort label-7273
SELECT COUNT ( * ) AS col0, + 53
----
1
53

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

skipif mysql # not compatible
query II rowsort label-7274
SELECT + COUNT ( * ) AS col0, - 27 AS col0
----
1
-27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL + COUNT( * ) * + + 98 col2
----
98

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL + COUNT ( * ) * + + 98 col2
----
98

query I rowsort
SELECT DISTINCT + + 66 + 54
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT DISTINCT + ( + - COUNT( * ) ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT + ( + - COUNT ( * ) ) + COUNT ( * )
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT ALL - + 18 DIV + - 77 col2
----
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT ALL - + 18 / + - 77 col2
----
0

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

query I rowsort
SELECT - 47 * + + 54 + + 4 AS col1
----
-2534

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL - - 0 + + + COUNT ( * ) AS col0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT - - 6 * + - 82 * - - COUNT( DISTINCT 93 ) - 37 + - 59
----
-588

skipif mysql # not compatible
query I rowsort label-7288
SELECT - - 6 * + - 82 * - - COUNT ( DISTINCT 93 ) - 37 + - 59
----
-588

query I rowsort
SELECT 50 * - 84 AS col1
----
-4200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7290
SELECT + NULLIF ( COUNT( * ), COUNT( * ) ) / + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT + NULLIF ( COUNT ( * ), COUNT ( * ) ) / + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 12 + + 95
----
107

query II rowsort
SELECT DISTINCT - 85, 5 AS col1
----
-85
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7293
SELECT SUM( 70 ) * + + 34 AS col1, - 20 AS col1
----
2380
-20

skipif mysql # not compatible
query II rowsort label-7293
SELECT SUM ( 70 ) * + + 34 AS col1, - 20 AS col1
----
2380
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL 36 * - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL 36 * - COUNT ( * )
----
-36

query I rowsort
SELECT ALL + - 57 * 66
----
-3762

query I rowsort
SELECT ALL + - 23
----
-23

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

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

query I rowsort
SELECT ALL 3 * - - 19
----
57

query I rowsort
SELECT - ( - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - COUNT( * ) * 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7300
SELECT - COUNT ( * ) * 14 AS col1
----
-14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7302
SELECT NULLIF ( + 61, 43 * + COUNT( * ) + + - CAST( NULL AS SIGNED ) ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7302
SELECT NULLIF ( + 61, 43 * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) ) AS col0
----
61

query I rowsort
SELECT ALL + 68 + - 71 AS col1
----
-3

query II rowsort
SELECT 6, 86 col0
----
6
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7306
SELECT CAST( COALESCE ( + COUNT( * ), 19 ) AS SIGNED ) * - ( MAX( 47 ) ) DIV + + ( + 71 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7306
SELECT CAST ( COALESCE ( + COUNT ( * ), 19 ) AS INTEGER ) * - ( MAX ( 47 ) ) / + + ( + 71 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT + SUM( - - 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7307
SELECT + SUM ( - - 44 ) AS col1
----
44

query I rowsort
SELECT DISTINCT + 43 col0
----
43

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

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

query I rowsort
SELECT DISTINCT + 23 * ( - 21 ) AS col2
----
-483

query I rowsort
SELECT DISTINCT - - 49 * 0 + + 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - MAX( - - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-7312
SELECT - MAX ( - - 41 )
----
-41

query I rowsort
SELECT 23 * 79 * 0 AS col1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + NULLIF ( + COUNT( * ), - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7316
SELECT + NULLIF ( + COUNT ( * ), - 76 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT 36 * COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7317
SELECT 36 * COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT - - 0 * + COUNT( * ) * + ( 96 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7318
SELECT - - 0 * + COUNT ( * ) * + ( 96 ) AS col0
----
0

query I rowsort
SELECT DISTINCT ( 25 ) AS col1
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL COUNT( * ) + - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL COUNT ( * ) + - COUNT ( * ) col2
----
0

query I rowsort
SELECT DISTINCT - ( 73 ) * + - 98
----
7154

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

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

query I rowsort
SELECT ALL - 78 * + 26
----
-2028

query I rowsort
SELECT DISTINCT - + ( - + 96 ) col1
----
96

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

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

query II rowsort
SELECT 81 AS col1, + 79
----
81
79

query I rowsort
SELECT + + 61 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + MAX( - 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-7329
SELECT + MAX ( - 21 ) AS col0
----
-21

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7331
SELECT + + COUNT( DISTINCT - 29 ) DIV + 43 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7331
SELECT + + COUNT ( DISTINCT - 29 ) / + 43 AS col2
----
0

query I rowsort
SELECT ALL - 85 + + 59 * - 33
----
-2032

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT 97 AS col2, 82
----
97
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT DISTINCT - COUNT( * ) * 51 AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-7340
SELECT DISTINCT - COUNT ( * ) * 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + COUNT( * ) * COUNT( + 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7341
SELECT + COUNT ( * ) * COUNT ( + 92 ) AS col1
----
1

query I rowsort
SELECT + 12 * 86
----
1032

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

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

query I rowsort
SELECT - 61 + + 57
----
-4

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT + - 72 + - + COUNT( - 32 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7347
SELECT + - 72 + - + COUNT ( - 32 ) AS col0
----
-73

query II rowsort
SELECT ALL 5 col2, 25 AS col0
----
5
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT COUNT( + 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7350
SELECT COUNT ( + 93 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7351
SELECT ALL 69 * COALESCE ( COUNT( * ), + 64 ) DIV 49
----
1

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL 69 * COALESCE ( COUNT ( * ), + 64 ) / 49
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT + COUNT( * ) * - COALESCE ( - 8, COUNT( * ) ) * + + 36
----
288

skipif mysql # not compatible
query I rowsort label-7352
SELECT + COUNT ( * ) * - COALESCE ( - 8, COUNT ( * ) ) * + + 36
----
288

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL 49 + - COUNT( * ) col0
----
48

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL 49 + - COUNT ( * ) col0
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ALL - MAX( + 35 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL - MAX ( + 35 ) col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT DISTINCT - CAST( - 36 AS SIGNED ) col2
----
36

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT - CAST ( - 36 AS INTEGER ) col2
----
36

query I rowsort
SELECT - 19 * - 42
----
798

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

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

query I rowsort
SELECT DISTINCT 24 col1
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7361
SELECT NULLIF ( + + 5, + CAST( NULL AS DECIMAL ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7361
SELECT NULLIF ( + + 5, + CAST ( NULL AS REAL ) ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - NULLIF ( + ( + 24 ), + 12 + - COUNT( * ) ) + 70 col2
----
46

skipif mysql # not compatible
query I rowsort label-7362
SELECT - NULLIF ( + ( + 24 ), + 12 + - COUNT ( * ) ) + 70 col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - NULLIF ( COUNT( * ), - 74 * COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7363
SELECT - NULLIF ( COUNT ( * ), - 74 * COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - 6 * + + 62 * + COUNT( * ) AS col1
----
-372

skipif mysql # not compatible
query I rowsort label-7364
SELECT - 6 * + + 62 * + COUNT ( * ) AS col1
----
-372

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

query I rowsort
SELECT ALL - + NULLIF ( 28, - 21 ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7367
SELECT - 48 * CAST( COUNT( * ) AS SIGNED ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7367
SELECT - 48 * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-48

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

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL 73 / + - COUNT ( * ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7369
SELECT CAST( ( 3 ) AS SIGNED ) DIV SUM( + 71 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7369
SELECT CAST ( ( 3 ) AS INTEGER ) / SUM ( + 71 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7370
SELECT COUNT( * ) * CAST( - 84 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7370
SELECT COUNT ( * ) * CAST ( - 84 AS INTEGER ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT ALL + COUNT( * ) + - 35
----
-34

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL + COUNT ( * ) + - 35
----
-34

query I rowsort
SELECT DISTINCT 32 * 55
----
1760

query I rowsort
SELECT 1 + + - 4 * - - 10 * 20 - + 47
----
-846

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT - 67 * 81 + - COUNT( * ) AS col0
----
-5428

skipif mysql # not compatible
query I rowsort label-7374
SELECT - 67 * 81 + - COUNT ( * ) AS col0
----
-5428

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

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

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

query I rowsort
SELECT + 45 + + + 90 AS col1
----
135

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT + COALESCE ( - COUNT( * ), - 48 * - COUNT( * ) * 68 * + - 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-7379
SELECT + COALESCE ( - COUNT ( * ), - 48 * - COUNT ( * ) * 68 * + - 24 )
----
-1

query I rowsort
SELECT - + 79 col0
----
-79

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7382
SELECT DISTINCT + COUNT( * ) DIV - 58 AS col2, AVG ( ALL + CAST( NULL AS SIGNED ) )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7382
SELECT DISTINCT + COUNT ( * ) / - 58 AS col2, AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
0
NULL

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

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

query I rowsort
SELECT ALL - 39 col2
----
-39

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

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT + - 6 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 87 col2
----
-87

query I rowsort
SELECT + 70 - - - 70 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-7388
SELECT MAX ( 45 )
----
45

query I rowsort
SELECT DISTINCT + + 10
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7390
SELECT - + 31 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7390
SELECT - + 31 / - 54 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ALL + COUNT( * ) * + + 50 * + 56
----
2800

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL + COUNT ( * ) * + + 50 * + 56
----
2800

query I rowsort
SELECT DISTINCT + - 8
----
-8

query I rowsort
SELECT ALL + 41 + 72 col1
----
113

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

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT + 24 - + COUNT ( * ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-7396
SELECT + 23 AS col1, ( + + 44 ) + - COUNT( ALL 28 ) AS col0
----
23
43

skipif mysql # not compatible
query II rowsort label-7396
SELECT + 23 AS col1, ( + + 44 ) + - COUNT ( ALL 28 ) AS col0
----
23
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT - 65 * + COUNT( DISTINCT - 59 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT - 65 * + COUNT ( DISTINCT - 59 ) AS col1
----
-65

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

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

query II rowsort
SELECT ALL 25, 86 AS col1
----
25
86

query I rowsort
SELECT 74 * - 47 AS col1
----
-3478

query I rowsort
SELECT ALL - - ( 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT ALL ( - 57 ) * - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL ( - 57 ) * - COUNT ( * ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7404
SELECT + ( + 2 ) + - 21 col2, - 54 - - COUNT( * )
----
-19
-53

skipif mysql # not compatible
query II rowsort label-7404
SELECT + ( + 2 ) + - 21 col2, - 54 - - COUNT ( * )
----
-19
-53

query I rowsort
SELECT DISTINCT + 79 * - 93
----
-7347

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7408
SELECT - MIN( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

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

query I rowsort
SELECT + 18 + + 38 * 88 AS col2
----
3362

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT - COUNT( * ) + + 28 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7412
SELECT - COUNT ( * ) + + 28 AS col2
----
27

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

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

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

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

query I rowsort
SELECT - - 11 AS col0
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT MIN( ALL + 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7417
SELECT MIN ( ALL + 55 ) AS col0
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT - COUNT( * ) + - 45 + - 10
----
-56

skipif mysql # not compatible
query I rowsort label-7419
SELECT - COUNT ( * ) + - 45 + - 10
----
-56

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

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

query I rowsort
SELECT - + COALESCE ( + 59, + 27 )
----
-59

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

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

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

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

query I rowsort
SELECT DISTINCT 48 * + 84
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT MIN( ALL + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7425
SELECT MIN ( ALL + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT SUM( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-7426
SELECT SUM ( 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT COALESCE ( COUNT( * ), - 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT COALESCE ( COUNT ( * ), - 78 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-7428
SELECT - - COALESCE ( + COUNT ( * ), - 94 ) col1
----
1

query I rowsort
SELECT - + 10 + + 26 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT DISTINCT COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7431
SELECT 33 AS col2, MIN( + 67 ) AS col0
----
33
67

skipif mysql # not compatible
query II rowsort label-7431
SELECT 33 AS col2, MIN ( + 67 ) AS col0
----
33
67

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

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

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

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

query I rowsort
SELECT ( 89 )
----
89

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

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

query I rowsort
SELECT ALL + - 44 * - 70 + - 24
----
3056

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT DISTINCT + 12 * - COUNT( * ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT + 12 * - COUNT ( * ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL - 67 * + MIN( ALL - ( + 8 ) )
----
536

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL - 67 * + MIN ( ALL - ( + 8 ) )
----
536

query II rowsort
SELECT 10, + 77 AS col2
----
10
77

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7443
SELECT ALL 94 DIV 51, 34 AS col1
----
1
34

skipif mysql # not compatible
query II rowsort label-7443
SELECT ALL 94 / 51, 34 AS col1
----
1
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT ALL + 7 - + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7445
SELECT ALL + 7 - + + COUNT ( * )
----
6

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

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

query I rowsort
SELECT ALL + + 92 * + 70 + - 25 AS col0
----
6415

onlyif mysql # aggregate syntax: 
query II rowsort label-7448
SELECT + 79 AS col1, 37 + - - COUNT( * )
----
79
38

skipif mysql # not compatible
query II rowsort label-7448
SELECT + 79 AS col1, 37 + - - COUNT ( * )
----
79
38

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT 36 * 95 + + COUNT( * ) AS col0
----
3421

skipif mysql # not compatible
query I rowsort label-7451
SELECT 36 * 95 + + COUNT ( * ) AS col0
----
3421

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

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

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

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

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

query I rowsort
SELECT 33 * + 50
----
1650

query I rowsort
SELECT + 62 + + 15 AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT CAST( NULL AS SIGNED ) / 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT CAST ( NULL AS INTEGER ) / 63 AS col1
----
NULL

query I rowsort
SELECT ALL 88 * - 75
----
-6600

query III rowsort
SELECT 88 AS col0, 7 AS col1, + 56 AS col2
----
88
7
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7460
SELECT ALL 17 AS col0, + 24 * + COUNT( * ) col0
----
17
24

skipif mysql # not compatible
query II rowsort label-7460
SELECT ALL 17 AS col0, + 24 * + COUNT ( * ) col0
----
17
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL - + 54 + + COUNT( * ) * - 61 AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - + 54 + + COUNT ( * ) * - 61 AS col1
----
-115

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

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

query II rowsort
SELECT ALL + 37 col2, 49
----
37
49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7465
SELECT - CAST( NULL AS SIGNED ) + 29 + - - MAX( DISTINCT - 27 ) col0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT - CAST( NULL AS SIGNED ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-7466
SELECT - CAST ( NULL AS INTEGER ) * 96
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT - ( + COUNT ( 52 ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7469
SELECT - COUNT( * ) DIV + COUNT( + 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-7469
SELECT - COUNT ( * ) / + COUNT ( + 89 )
----
-1

query I rowsort
SELECT + 99 + + 82 AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL + MIN( DISTINCT + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + MIN ( DISTINCT + - 53 )
----
-53

query I rowsort
SELECT + - 87 * - - 30 col2
----
-2610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT - CAST( NULL AS SIGNED ) + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7473
SELECT - CAST ( NULL AS INTEGER ) + + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT ALL MIN( + + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL MIN ( + + 54 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL + CAST( 92 AS SIGNED ) + + 37
----
129

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + CAST ( 92 AS INTEGER ) + + 37
----
129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7476
SELECT 72 DIV + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7476
SELECT 72 / + COUNT ( * ) AS col1
----
72

query I rowsort
SELECT - 79 + + 73
----
-6

query I rowsort
SELECT DISTINCT 18 * - + 95
----
-1710

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT COUNT( * ) + + 52 col1
----
53

skipif mysql # not compatible
query I rowsort label-7479
SELECT COUNT ( * ) + + 52 col1
----
53

query I rowsort
SELECT 18 + - 38
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT 24 + - + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT 24 + - + COUNT ( * )
----
23

query I rowsort
SELECT ALL - - 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL - 24 * - NULLIF ( - ( - - 57 ), - ( + 61 ) ) + - COUNT( * )
----
-1369

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL - 24 * - NULLIF ( - ( - - 57 ), - ( + 61 ) ) + - COUNT ( * )
----
-1369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7484
SELECT - CAST( NULL AS SIGNED ) + - SUM( - 12 ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT - CAST ( NULL AS INTEGER ) + - SUM ( - 12 ) - - COUNT ( * )
----
NULL

query II rowsort
SELECT - 34, - 9 AS col1
----
-34
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7486
SELECT - COUNT( * ) AS col1, 85 + + COUNT( ALL 33 ) AS col2
----
-1
86

skipif mysql # not compatible
query II rowsort label-7486
SELECT - COUNT ( * ) AS col1, 85 + + COUNT ( ALL 33 ) AS col2
----
-1
86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7487
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( + 83 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( + 83 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT ( + SUM( - 66 ) ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7488
SELECT ( + SUM ( - 66 ) ) AS col2
----
-66

query I rowsort
SELECT + ( - 28 ) AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7490
SELECT + - 63 * + ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT + - 63 * + ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT + COUNT( * ) + + 33
----
34

skipif mysql # not compatible
query I rowsort label-7491
SELECT + COUNT ( * ) + + 33
----
34

query I rowsort
SELECT 78 * 89 * + 42 + + - 31 AS col2
----
291533

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL + COUNT( * ) * 59
----
59

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL + COUNT ( * ) * 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT DISTINCT - 21 + COUNT( * ) + + 61
----
41

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT - 21 + COUNT ( * ) + + 61
----
41

query I rowsort
SELECT DISTINCT - ( 39 ) AS col0
----
-39

query I rowsort
SELECT ALL - 70 + - 3 col0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL 69 - + + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL 69 - + + COUNT ( * )
----
68

query I rowsort
SELECT 47 * 57 AS col0
----
2679

query I rowsort
SELECT ALL - 7 * 55
----
-385

query I rowsort
SELECT DISTINCT - 53 * 99 col2
----
-5247

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT SUM( DISTINCT 38 ) col1
----
38

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT SUM ( DISTINCT 38 ) col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT ALL + - COUNT( * ) + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL + - COUNT ( * ) + - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT + COUNT( * ) * - 12 col1
----
-12

skipif mysql # not compatible
query I rowsort label-7503
SELECT + COUNT ( * ) * - 12 col1
----
-12

query I rowsort
SELECT ALL - ( - - 29 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7505
SELECT ALL 17 + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL 17 + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7506
SELECT - SUM( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7506
SELECT - SUM ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT DISTINCT + COUNT( * ) + 19
----
20

skipif mysql # not compatible
query I rowsort label-7507
SELECT DISTINCT + COUNT ( * ) + 19
----
20

query I rowsort
SELECT DISTINCT + - 29 AS col1
----
-29

query II rowsort
SELECT DISTINCT + 4 AS col1, 37
----
4
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + SUM( ALL - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7510
SELECT + SUM ( ALL - 37 ) AS col1
----
-37

query I rowsort
SELECT + - 52 * + 74 AS col1
----
-3848

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL + + COUNT( ALL - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + + COUNT ( ALL - 63 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT DISTINCT - 58 + + CAST( NULL AS SIGNED ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT - 58 + + CAST ( NULL AS INTEGER ) * - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT 62 + + COUNT( * ) * - + COUNT( * ) + + + 59
----
120

skipif mysql # not compatible
query I rowsort label-7514
SELECT 62 + + COUNT ( * ) * - + COUNT ( * ) + + + 59
----
120

query I rowsort
SELECT ALL ( - - 59 )
----
59

query I rowsort
SELECT DISTINCT - NULLIF ( - 25, 71 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - 53 * + 71 + COUNT( * ) AS col0
----
-3762

skipif mysql # not compatible
query I rowsort label-7517
SELECT - 53 * + 71 + COUNT ( * ) AS col0
----
-3762

onlyif mysql # DIV for integer division: 
query I rowsort label-7518
SELECT 52 DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7518
SELECT 52 / 97 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL - MIN( + 12 ) col1
----
-12

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - MIN ( + 12 ) col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT ALL - - COUNT( * ) * - 15
----
-15

skipif mysql # not compatible
query I rowsort label-7520
SELECT ALL - - COUNT ( * ) * - 15
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL - SUM( ALL - 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - SUM ( ALL - 69 ) AS col0
----
69

query I rowsort
SELECT ALL - 79 * + 33 + + 12 AS col0
----
-2595

onlyif mysql # aggregate syntax: 
query II rowsort label-7523
SELECT + COUNT( * ) AS col0, 78
----
1
78

skipif mysql # not compatible
query II rowsort label-7523
SELECT + COUNT ( * ) AS col0, 78
----
1
78

query I rowsort
SELECT - 99 * - 89
----
8811

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7525
SELECT ALL - - 50 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL - - 50 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT ( + CAST( - 28 AS SIGNED ) ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-7526
SELECT ( + CAST ( - 28 AS INTEGER ) ) col1
----
-28

query I rowsort
SELECT DISTINCT + + 63 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ( - NULLIF ( - 10, + ( - - COUNT( DISTINCT + 30 ) ) ) ) * - 18 col1
----
-180

skipif mysql # not compatible
query I rowsort label-7528
SELECT ( - NULLIF ( - 10, + ( - - COUNT ( DISTINCT + 30 ) ) ) ) * - 18 col1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT DISTINCT - ( - MIN( 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT - ( - MIN ( 86 ) )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT 6 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT 6 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT + 70 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT + 70 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT + SUM( 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7532
SELECT + SUM ( 12 ) AS col1
----
12

query I rowsort
SELECT ALL ( ( 92 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT + 63 + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-7534
SELECT + 63 + COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + 41 * + COUNT( * ) + COALESCE ( - COUNT( * ), + + 86 ) + + 9
----
49

skipif mysql # not compatible
query I rowsort label-7535
SELECT + 41 * + COUNT ( * ) + COALESCE ( - COUNT ( * ), + + 86 ) + + 9
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT COUNT( * ) + + COUNT( 76 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT COUNT ( * ) + + COUNT ( 76 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7537
SELECT - COUNT( * ), 99 AS col2
----
-1
99

skipif mysql # not compatible
query II rowsort label-7537
SELECT - COUNT ( * ), 99 AS col2
----
-1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT 98 * + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7538
SELECT 98 * + COUNT ( * ) AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7539
SELECT ALL + 41 + + - 93 DIV + 18 col0
----
36

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL + 41 + + - 93 / + 18 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT 50 - + MIN( DISTINCT + 65 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7540
SELECT 50 - + MIN ( DISTINCT + 65 ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT 69 + COUNT( * ) * + - 26
----
43

skipif mysql # not compatible
query I rowsort label-7541
SELECT 69 + COUNT ( * ) * + - 26
----
43

query I rowsort
SELECT ALL - - 87 col2
----
87

query I rowsort
SELECT DISTINCT - ( - 3 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT CAST( + CAST( - - 1 AS SIGNED ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7544
SELECT CAST ( + CAST ( - - 1 AS INTEGER ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT + + 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT MAX( + COALESCE ( 3, - + 63 ) )
----
3

skipif mysql # not compatible
query I rowsort label-7546
SELECT MAX ( + COALESCE ( 3, - + 63 ) )
----
3

query I rowsort
SELECT ALL ( 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT + 98 + + + 3 - COUNT( * ) + + 0 * + 62 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-7548
SELECT + 98 + + + 3 - COUNT ( * ) + + 0 * + 62 AS col0
----
100

query I rowsort
SELECT + 80 + + + 47
----
127

query I rowsort
SELECT + 91 * - - 87 AS col0
----
7917

query II rowsort
SELECT DISTINCT + 50 col0, - 96
----
50
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-7552
SELECT DISTINCT ( - 21 ) DIV + 93 * 29 + 68 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT ( - 21 ) / + 93 * 29 + 68 AS col1
----
68

query I rowsort
SELECT ( + ( + 85 ) ) AS col0
----
85

query I rowsort
SELECT ( - + 54 ) AS col2
----
-54

query I rowsort
SELECT ALL - ( - + 84 ) col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT ALL - + COUNT( ALL 97 )
----
-1

skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - + COUNT ( ALL 97 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT 31 * - COUNT( * ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7557
SELECT 31 * - COUNT ( * ) AS col2
----
-31

query I rowsort
SELECT DISTINCT - ( + 65 ) col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL - COUNT( DISTINCT - 51 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - COUNT ( DISTINCT - 51 ) AS col0
----
-1

query II rowsort
SELECT 17 AS col0, + 50
----
17
50

query I rowsort
SELECT ALL - - 27 * - 17 AS col0
----
-459

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT MIN( ALL - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-7562
SELECT MIN ( ALL - 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL COUNT( * ) * + 37 + + 26 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL COUNT ( * ) * + 37 + + 26 AS col1
----
63

query I rowsort
SELECT DISTINCT + ( + + 15 )
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7565
SELECT ALL - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( - + 2, 32 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT + COALESCE ( COUNT( * ), - - 4 ) * - 90 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7567
SELECT + COALESCE ( COUNT ( * ), - - 4 ) * - 90 AS col0
----
-90

query I rowsort
SELECT ( + + 33 ) AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT + CAST( NULL AS SIGNED ) * - ( 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT + CAST ( NULL AS INTEGER ) * - ( 90 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT + CAST( 85 AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7570
SELECT + CAST ( 85 AS INTEGER ) AS col1
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT + CAST( NULL AS SIGNED ) * - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT + CAST ( NULL AS INTEGER ) * - 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7572
SELECT ALL + CAST( NULL AS SIGNED ) + 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL + CAST ( NULL AS INTEGER ) + 38 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 67 - 62
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT 88 + + COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT 88 + + COUNT ( * ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT ALL + COUNT( * ) * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + COUNT ( * ) * - 46
----
-46

query I rowsort
SELECT ALL - - 81 AS col1
----
81

query I rowsort
SELECT ALL - - 21 AS col0
----
21

query I rowsort
SELECT ALL + + 25 * + - 34
----
-850

onlyif mysql # aggregate syntax: 
query II rowsort label-7579
SELECT - 17 AS col2, - COUNT( * ) AS col0
----
-17
-1

skipif mysql # not compatible
query II rowsort label-7579
SELECT - 17 AS col2, - COUNT ( * ) AS col0
----
-17
-1

query I rowsort
SELECT - 93 * + 63 AS col0
----
-5859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT - 61 * + + ( - 36 ) * + CAST( NULL AS SIGNED ) + 34 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7581
SELECT - 61 * + + ( - 36 ) * + CAST ( NULL AS INTEGER ) + 34 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + MAX( 30 ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-7582
SELECT + MAX ( 30 ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT - COUNT( DISTINCT + 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7583
SELECT - COUNT ( DISTINCT + 4 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7584
SELECT ALL CAST( AVG ( + 69 ) AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL CAST ( AVG ( + 69 ) AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - 69 - + COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-7585
SELECT - 69 - + COUNT ( * ) AS col1
----
-70

query I rowsort
SELECT ( - 26 ) AS col0
----
-26

query I rowsort
SELECT ALL 66 + - 44 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + SUM( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-7588
SELECT + SUM ( + 43 )
----
43

query I rowsort
SELECT + ( - 77 ) AS col0
----
-77

query I rowsort
SELECT DISTINCT 99 col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL + + ( - ( - - 34 ) ) + - MAX( - 6 )
----
-28

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL + + ( - ( - - 34 ) ) + - MAX ( - 6 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL + COUNT( * ) + + + 89 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + COUNT ( * ) + + + 89 AS col0
----
90

query I rowsort
SELECT ALL + 28 + - + 84
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL COUNT( * ) * + 83
----
83

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL COUNT ( * ) * + 83
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7595
SELECT DISTINCT COUNT( CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT COUNT ( CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT - NULLIF ( + 94, 83 ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7597
SELECT - - ( - COUNT( * ) ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7597
SELECT - - ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT + COUNT( ALL 61 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7598
SELECT + COUNT ( ALL 61 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 22 * - 33 AS col0
----
726

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + COUNT( - - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-7600
SELECT + COUNT ( - - 41 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7601
SELECT DISTINCT + CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) * 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7602
SELECT + 56 AS col2, + MIN( ALL 89 )
----
56
89

skipif mysql # not compatible
query II rowsort label-7602
SELECT + 56 AS col2, + MIN ( ALL 89 )
----
56
89

query II rowsort
SELECT + 22 AS col0, - 48 AS col2
----
22
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT NULLIF ( + - 57, - CAST( NULL AS SIGNED ) * - 74 )
----
-57

skipif mysql # not compatible
query I rowsort label-7604
SELECT NULLIF ( + - 57, - CAST ( NULL AS INTEGER ) * - 74 )
----
-57

query I rowsort
SELECT DISTINCT - ( - 91 ) AS col2
----
91

query I rowsort
SELECT ALL 83 * 83
----
6889

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT - - SUM( 84 ) col1
----
84

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT - - SUM ( 84 ) col1
----
84

query I rowsort
SELECT ALL 65 + + + 14
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT 28 * COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7609
SELECT 28 * COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL + COUNT( * ) * + 1 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL + COUNT ( * ) * + 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT MAX( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-7611
SELECT MAX ( - 88 )
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7612
SELECT - ( - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7612
SELECT - ( - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7613
SELECT ALL - 28 DIV + 5 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL - 28 / + 5 AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT + 1 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-7614
SELECT + 1 / 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7615
SELECT ALL + COUNT( * ) + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL + COUNT ( * ) + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ( + + 0 ), 80 AS col1
----
0
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT DISTINCT - COUNT( DISTINCT 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT - COUNT ( DISTINCT 92 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL + - 25 + + SUM( - - 31 )
----
6

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL + - 25 + + SUM ( - - 31 )
----
6

query I rowsort
SELECT DISTINCT + 8 * + + 93 AS col1
----
744

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7620
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7621
SELECT 42 DIV - COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-7621
SELECT 42 / - COUNT ( * ) AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7622
SELECT ( + COUNT( DISTINCT + + 44 ) ) DIV COUNT( - 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7622
SELECT ( + COUNT ( DISTINCT + + 44 ) ) / COUNT ( - 57 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7623
SELECT ALL COUNT( * ) - 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL COUNT ( * ) - 22 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT COUNT( * ) * + + MAX( + 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7624
SELECT COUNT ( * ) * + + MAX ( + 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT COUNT( + 23 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7625
SELECT COUNT ( + 23 ) AS col0
----
1

query I rowsort
SELECT ALL - 1 + + 44
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL - + COUNT( + 89 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - + COUNT ( + 89 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT + 69 + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-7628
SELECT + 69 + COUNT ( * )
----
70

query I rowsort
SELECT ALL 51 + + - 59
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT + COUNT( * ) + - + 6 * + + 81 AS col1
----
-485

skipif mysql # not compatible
query I rowsort label-7630
SELECT + COUNT ( * ) + - + 6 * + + 81 AS col1
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT + COUNT( ALL 8 )
----
1

skipif mysql # not compatible
query I rowsort label-7631
SELECT + COUNT ( ALL 8 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7632
SELECT ALL + CAST( NULL AS SIGNED ) + - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL + CAST ( NULL AS INTEGER ) + - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT ALL + COUNT( * ) + - - 63
----
64

skipif mysql # not compatible
query I rowsort label-7633
SELECT ALL + COUNT ( * ) + - - 63
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT DISTINCT COUNT( * ) * - 73
----
-73

skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT COUNT ( * ) * - 73
----
-73

query I rowsort
SELECT + 43 + - 18
----
25

query I rowsort
SELECT ALL - 38 * + 15 AS col2
----
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT CAST( NULL AS SIGNED ) + + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT CAST ( NULL AS INTEGER ) + + - 99 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 89
----
89

query I rowsort
SELECT - ( + 73 ) col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7640
SELECT DISTINCT - 83 + - ( + CAST( NULL AS SIGNED ) ) - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT - 83 + - ( + CAST ( NULL AS INTEGER ) ) - + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL ( COUNT( * ) ) + - MAX( + 71 )
----
-70

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL ( COUNT ( * ) ) + - MAX ( + 71 )
----
-70

query II rowsort
SELECT DISTINCT 63 + - + 90 col0, 39
----
-27
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT - MIN( DISTINCT - 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7643
SELECT - MIN ( DISTINCT - 66 ) AS col1
----
66

query I rowsort
SELECT ALL + 65 * + 71
----
4615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 11 AS col1
----
NULL

query I rowsort
SELECT - - 43 col0
----
43

query I rowsort
SELECT DISTINCT + + 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT - 47 + + - COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7648
SELECT - 47 + + - COUNT ( * ) AS col0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ( ( - + 90 ) )
----
-90

query I rowsort
SELECT - 57 + - 54 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT + COUNT( * ) * 45 + - - 15
----
60

skipif mysql # not compatible
query I rowsort label-7652
SELECT + COUNT ( * ) * 45 + - - 15
----
60

query I rowsort
SELECT - + ( + + 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT - MAX( ALL 72 ) + + 51 col2
----
-21

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT - MAX ( ALL 72 ) + + 51 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT SUM( - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-7655
SELECT SUM ( - 30 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7656
SELECT DISTINCT - CAST( 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT - CAST ( 28 AS INTEGER )
----
-28

query II rowsort
SELECT 22, 88 AS col0
----
22
88

query I rowsort
SELECT 57 + + 91 * + - 49 AS col2
----
-4402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7659
SELECT ALL + CAST( NULL AS SIGNED ) + - + ( - 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL + CAST ( NULL AS INTEGER ) + - + ( - 46 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT + COUNT( ALL 87 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7660
SELECT + COUNT ( ALL 87 ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7661
SELECT + CAST( NULL AS SIGNED ), + 77 AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-7661
SELECT + CAST ( NULL AS INTEGER ), + 77 AS col0
----
NULL
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7662
SELECT + - CAST( + COUNT( * ) AS SIGNED ) - ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-7662
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) - ( - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT SUM( ALL + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7663
SELECT SUM ( ALL + 5 ) AS col2
----
5

query I rowsort
SELECT ALL + - 93 - + 74 AS col2
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT DISTINCT + SUM( - CAST( - + 40 AS SIGNED ) ) col0
----
40

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT + SUM ( - CAST ( - + 40 AS INTEGER ) ) col0
----
40

query II rowsort
SELECT - 59 * - 87 AS col1, - 59 AS col2
----
5133
-59

query I rowsort
SELECT - 23 * + + 13 AS col0
----
-299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 7 / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 7 / + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7669
SELECT + CAST( - CAST( - + 72 AS SIGNED ) AS SIGNED ) + - - COUNT( * ) + + 72 col1, + CAST( NULL AS SIGNED )
----
145
NULL

skipif mysql # not compatible
query II rowsort label-7669
SELECT + CAST ( - CAST ( - + 72 AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) + + 72 col1, + CAST ( NULL AS INTEGER )
----
145
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7670
SELECT ALL COUNT( * ) * + 20 DIV 40 * + 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7670
SELECT ALL COUNT ( * ) * + 20 / 40 * + 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL ( + 53 ) * COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL ( + 53 ) * COUNT ( * ) AS col2
----
53

query I rowsort
SELECT ALL ( + 58 )
----
58

query II rowsort
SELECT - + 3 + + 73 AS col1, + 68 * - - 34 AS col1
----
70
2312

onlyif mysql # aggregate syntax: 
query II rowsort label-7674
SELECT + - COUNT( * ) AS col1, - 78
----
-1
-78

skipif mysql # not compatible
query II rowsort label-7674
SELECT + - COUNT ( * ) AS col1, - 78
----
-1
-78

query I rowsort
SELECT ALL - - 77 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7676
SELECT - 76 * + NULLIF ( - 92, - - ( + 46 ) - + CAST( NULL AS SIGNED ) ), 16 col0
----
6992
16

skipif mysql # not compatible
query II rowsort label-7676
SELECT - 76 * + NULLIF ( - 92, - - ( + 46 ) - + CAST ( NULL AS INTEGER ) ), 16 col0
----
6992
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT DISTINCT - MIN( DISTINCT 27 ) AS col0, 46 AS col1
----
-27
46

skipif mysql # not compatible
query II rowsort label-7677
SELECT DISTINCT - MIN ( DISTINCT 27 ) AS col0, 46 AS col1
----
-27
46

query I rowsort
SELECT - ( 91 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7679
SELECT + CAST( NULL AS SIGNED ) / - + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7679
SELECT + CAST ( NULL AS INTEGER ) / - + 54
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT DISTINCT + SUM( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT + SUM ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT + - 21 AS col2
----
-21

query I rowsort
SELECT + + 21 * + 21
----
441

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT COUNT( * ) AS col2, + ( 54 ) col1
----
1
54

skipif mysql # not compatible
query II rowsort label-7683
SELECT COUNT ( * ) AS col2, + ( 54 ) col1
----
1
54

query I rowsort
SELECT - ( + 21 )
----
-21

query II rowsort
SELECT + 26 + + 91 AS col2, + 96 - - + 21
----
117
117

onlyif mysql # aggregate syntax: 
query II rowsort label-7686
SELECT DISTINCT MIN( 97 ) AS col0, + 53
----
97
53

skipif mysql # not compatible
query II rowsort label-7686
SELECT DISTINCT MIN ( 97 ) AS col0, + 53
----
97
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7687
SELECT ALL + + 46 AS col0, - COUNT( * ) + + COUNT( * )
----
46
0

skipif mysql # not compatible
query II rowsort label-7687
SELECT ALL + + 46 AS col0, - COUNT ( * ) + + COUNT ( * )
----
46
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT + + CAST( + 50 AS SIGNED ) + + - 70
----
-20

skipif mysql # not compatible
query I rowsort label-7688
SELECT + + CAST ( + 50 AS INTEGER ) + + - 70
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT DISTINCT + 9 - MAX( DISTINCT - 99 ) - - 52 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + 9 - MAX ( DISTINCT - 99 ) - - 52 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT DISTINCT + 27 + - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT + 27 + - + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT 55 * + COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-7691
SELECT 55 * + COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT DISTINCT 62 + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-7692
SELECT DISTINCT 62 + COUNT ( * ) AS col0
----
63

query I rowsort
SELECT - 58 * 13
----
-754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT - 4 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT - 4 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + 54 AS col2, ( - + 37 )
----
54
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT ALL + - SUM( - + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + - SUM ( - + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + + MIN( 68 ) * - 65
----
-4420

skipif mysql # not compatible
query I rowsort label-7697
SELECT + + MIN ( 68 ) * - 65
----
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT - 85 * - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT - 85 * - COUNT ( * )
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7699
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7700
SELECT DISTINCT - 1 * - 60 + + CAST( - - 66 AS SIGNED )
----
126

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT - 1 * - 60 + + CAST ( - - 66 AS INTEGER )
----
126

query I rowsort
SELECT ALL - ( + + 48 ) * 15 AS col0
----
-720

query I rowsort
SELECT 94 * - 83
----
-7802

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7703
SELECT 45 / CAST( NULL AS DECIMAL ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT 45 / CAST ( NULL AS REAL ) * + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 37 + + 44 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - SUM( DISTINCT 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7705
SELECT - SUM ( DISTINCT 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7706
SELECT ( 64 ) DIV + COUNT( DISTINCT 29 )
----
64

skipif mysql # not compatible
query I rowsort label-7706
SELECT ( 64 ) / + COUNT ( DISTINCT 29 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT MAX( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7707
SELECT MAX ( - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 94 * + 39
----
3666

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT COUNT( * ) + + 31
----
32

skipif mysql # not compatible
query I rowsort label-7709
SELECT COUNT ( * ) + + 31
----
32

query I rowsort
SELECT - - 10 * + + 91 AS col0
----
910

query I rowsort
SELECT + 11 - + 7 + 17 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT ( - + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT ( - + COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT ( - + 88 )
----
-88

query I rowsort
SELECT + ( + - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + COUNT( DISTINCT + 88 )
----
1

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + COUNT ( DISTINCT + 88 )
----
1

query I rowsort
SELECT + + 89 + 61
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT + 75 + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-7717
SELECT + 75 + COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT - 87 + + COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-7718
SELECT - 87 + + COUNT ( * ) AS col0
----
-86

query I rowsort
SELECT ALL ( + 31 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT ALL CAST( - ( 68 ) AS SIGNED )
----
-68

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL CAST ( - ( 68 ) AS INTEGER )
----
-68

query I rowsort
SELECT DISTINCT ( - ( ( - 72 ) ) )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT ALL ( 7 ) + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL ( 7 ) + - COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT - COUNT( 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT - COUNT ( 13 )
----
-1

query I rowsort
SELECT ALL 81 - + - 87
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT COUNT( ALL + 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7725
SELECT COUNT ( ALL + 71 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT 38 + + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-7726
SELECT 38 + + - COUNT ( * ) AS col0
----
37

query II rowsort
SELECT DISTINCT 43, - 43 AS col1
----
43
-43

query II rowsort
SELECT 54, 2 AS col1
----
54
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL - MAX( DISTINCT 95 ) * - COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - MAX ( DISTINCT 95 ) * - COUNT ( * ) AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7730
SELECT + 30, - 44 * + CAST( NULL AS SIGNED ) col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-7730
SELECT + 30, - 44 * + CAST ( NULL AS INTEGER ) col2
----
30
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT - COUNT( - 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-7731
SELECT - COUNT ( - 40 )
----
-1

query I rowsort
SELECT ALL + + 18 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL + MIN( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL + MIN ( - 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7734
SELECT - 16 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT - 16 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7735
SELECT + COUNT( * ) * 63 AS col0, 27 AS col0
----
63
27

skipif mysql # not compatible
query II rowsort label-7735
SELECT + COUNT ( * ) * 63 AS col0, 27 AS col0
----
63
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT - COUNT( * ) + + 15 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7736
SELECT - COUNT ( * ) + + 15 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT - SUM( - 87 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-7737
SELECT - SUM ( - 87 ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7738
SELECT DISTINCT + + 19 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT + + 19 / + 77
----
0

query I rowsort
SELECT ALL + 65 * - 37
----
-2405

query I rowsort
SELECT DISTINCT + - ( - ( - 0 ) )
----
0

query I rowsort
SELECT ALL + - 59 AS col1
----
-59

query I rowsort
SELECT ALL - 97 + 61 - + + 72 AS col0
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT 76 DIV - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7743
SELECT 76 / - 80 AS col1
----
0

query I rowsort
SELECT ALL - 29 + ( 96 ) col0
----
67

query I rowsort
SELECT ALL 26 col1
----
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7746
SELECT CAST( NULL AS SIGNED ) - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7746
SELECT CAST ( NULL AS INTEGER ) - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT + COUNT( * ) * + 74
----
74

skipif mysql # not compatible
query I rowsort label-7747
SELECT + COUNT ( * ) * + 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT + COUNT( ALL + - ( + 43 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7748
SELECT + COUNT ( ALL + - ( + 43 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT ALL + COUNT( * ) - - 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL + COUNT ( * ) - - 45 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT - MIN( - 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7750
SELECT - MIN ( - 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT - - COUNT( * ) * - 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-7751
SELECT - - COUNT ( * ) * - 82 AS col1
----
-82

query II rowsort
SELECT + 88 AS col0, + 37 AS col2
----
88
37

query II rowsort
SELECT + 53 col1, 7
----
53
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ( - COUNT( DISTINCT - - 45 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7754
SELECT ( - COUNT ( DISTINCT - - 45 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT COUNT( * ) * 3 + + ( + 96 )
----
99

skipif mysql # not compatible
query I rowsort label-7755
SELECT COUNT ( * ) * 3 + + ( + 96 )
----
99

query II rowsort
SELECT + ( + 45 ), 50 col2
----
45
50

query II rowsort
SELECT 4 + - - 17 AS col1, - 94 col1
----
21
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT DISTINCT COUNT( * ) * + 45
----
45

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT COUNT ( * ) * + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT ALL - SUM( DISTINCT + 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL - SUM ( DISTINCT + 59 ) AS col1
----
-59

query II rowsort
SELECT + - 1, - 48 col0
----
-1
-48

query I rowsort
SELECT ALL - 78 * - + 20
----
1560

query I rowsort
SELECT ( 46 ) AS col0
----
46

query I rowsort
SELECT ALL + 17 * - + 11 + - + 25 AS col0
----
-212

query I rowsort
SELECT + + 5 col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL + CAST( - 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL + CAST ( - 87 AS INTEGER ) AS col2
----
-87

query I rowsort
SELECT + 19 - - 56 * - 3
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT - + COUNT( * ) * - 62
----
62

skipif mysql # not compatible
query I rowsort label-7767
SELECT - + COUNT ( * ) * - 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7768
SELECT DISTINCT + COUNT( * ) + - - 22 col0
----
23

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT + COUNT ( * ) + - - 22 col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT ALL - 86 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL - 86 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7770
SELECT CAST( + 89 AS SIGNED ) DIV - + 84 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7770
SELECT CAST ( + 89 AS INTEGER ) / - + 84 AS col0
----
-1

query II rowsort
SELECT ALL 60 AS col0, ( + + 89 ) * + 58 AS col1
----
60
5162

query I rowsort
SELECT + - 20 col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT DISTINCT + + 64 DIV - - 8 col2
----
8

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT + + 64 / - - 8 col2
----
8

query I rowsort
SELECT 76 * - 25
----
-1900

query I rowsort
SELECT ALL 76 * - - 95 + + 56
----
7276

query I rowsort
SELECT + - 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT DISTINCT 92 + - COUNT( * ) * + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT 92 + - COUNT ( * ) * + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - MIN( DISTINCT ( - - 26 ) ) * COUNT( + + 34 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7778
SELECT - MIN ( DISTINCT ( - - 26 ) ) * COUNT ( + + 34 ) AS col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7779
SELECT + - SUM( CAST( NULL AS DECIMAL ) ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT + - SUM ( CAST ( NULL AS REAL ) ) + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7780
SELECT - ( - 96 ) DIV + 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7780
SELECT - ( - 96 ) / + 63 AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7781
SELECT + 90, SUM( DISTINCT + 71 ) AS col2
----
90
71

skipif mysql # not compatible
query II rowsort label-7781
SELECT + 90, SUM ( DISTINCT + 71 ) AS col2
----
90
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT ALL CAST( + 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-7782
SELECT ALL CAST ( + 46 AS INTEGER )
----
46

query II rowsort
SELECT 45 AS col0, 73
----
45
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT - + MIN( + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7784
SELECT - + MIN ( + 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT - COUNT( * ) * + 67 col2
----
-67

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT - COUNT ( * ) * + 67 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT + MIN( ALL ( + - 74 ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT + MIN ( ALL ( + - 74 ) ) AS col0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-7787
SELECT DISTINCT - ( + 50 ) DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - ( + 50 ) / - + 92
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT DISTINCT + 21 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT + 21 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT ALL - MAX( + 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - MAX ( + 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT ALL COUNT( + 97 ) * + 46
----
46

skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL COUNT ( + 97 ) * + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT - SUM( 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - SUM ( 57 )
----
-57

query I rowsort
SELECT ( + 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT - COUNT( * ) * + 35
----
-35

skipif mysql # not compatible
query I rowsort label-7793
SELECT - COUNT ( * ) * + 35
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT DISTINCT CASE - 33 WHEN 79 + COUNT( * ) THEN - 19 + + 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT CASE - 33 WHEN 79 + COUNT ( * ) THEN - 19 + + 1 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7795
SELECT DISTINCT COUNT( * ) DIV + MAX( ALL - 41 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT COUNT ( * ) / + MAX ( ALL - 41 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT ALL - 6 + + COUNT( * ) + + ( - COUNT( * ) ) * - 0 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - 6 + + COUNT ( * ) + + ( - COUNT ( * ) ) * - 0 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL + ( - COUNT( * ) ) * 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL + ( - COUNT ( * ) ) * 88 AS col2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT 62 * + CAST( - + 62 AS SIGNED ) AS col1
----
-3844

skipif mysql # not compatible
query I rowsort label-7798
SELECT 62 * + CAST ( - + 62 AS INTEGER ) AS col1
----
-3844

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT - SUM( - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-7799
SELECT - SUM ( - 60 )
----
60

query II rowsort
SELECT 68 * 67 AS col1, - 47
----
4556
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT COUNT( * ) * - - 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7801
SELECT COUNT ( * ) * - - 20 AS col2
----
20

query I rowsort
SELECT DISTINCT + - 10
----
-10

query I rowsort
SELECT - 59 + + 74
----
15

query I rowsort
SELECT ALL 38 * - - 24
----
912

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT DISTINCT 84 * - COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT 84 * - COUNT ( * ) AS col0
----
-84

query I rowsort
SELECT + + ( + 52 ) AS col2
----
52

query I rowsort
SELECT DISTINCT + + 64 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7808
SELECT + CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT + CAST ( NULL AS INTEGER ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7809
SELECT - 45 AS col0, + COUNT( * ) AS col0
----
-45
1

skipif mysql # not compatible
query II rowsort label-7809
SELECT - 45 AS col0, + COUNT ( * ) AS col0
----
-45
1

query I rowsort
SELECT DISTINCT + 93 - - + 96 AS col2
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT DISTINCT + CAST( 92 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT + CAST ( 92 AS INTEGER ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL MAX( DISTINCT - 18 ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL MAX ( DISTINCT - 18 ) col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7813
SELECT ( + ( + - 62 ) ) + - COUNT( * ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7813
SELECT ( + ( + - 62 ) ) + - COUNT ( * ) AS col1
----
-63

query I rowsort
SELECT 90 + 49 col2
----
139

query I rowsort
SELECT ALL + 79 * + 19 AS col2
----
1501

query I rowsort
SELECT ALL - - ( - 26 )
----
-26

query I rowsort
SELECT ALL - ( + - 94 )
----
94

query I rowsort
SELECT 61 * - + 62
----
-3782

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT - MIN( 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-7819
SELECT - MIN ( 48 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT - + 68 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-7820
SELECT - + 68 / + 71
----
0

query II rowsort
SELECT ALL + - 54 AS col2, 64
----
-54
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT + SUM( + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT + SUM ( + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT COUNT( DISTINCT - - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-7823
SELECT COUNT ( DISTINCT - - 3 )
----
1

query I rowsort
SELECT - 27 * 48
----
-1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7825
SELECT MIN( DISTINCT + 45 ) col1, CAST( ( + - 23 ) AS SIGNED )
----
45
-23

skipif mysql # not compatible
query II rowsort label-7825
SELECT MIN ( DISTINCT + 45 ) col1, CAST ( ( + - 23 ) AS INTEGER )
----
45
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT - COUNT( * ) + + + 54 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7826
SELECT - COUNT ( * ) + + + 54 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT DISTINCT + 44 * + 47 * + ( + + COUNT( * ) ) AS col2
----
2068

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT + 44 * + 47 * + ( + + COUNT ( * ) ) AS col2
----
2068

query I rowsort
SELECT ALL 1 + + 7
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7829
SELECT ALL + + COUNT( * ) DIV ( - - 14 ) - 15 + - ( 11 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL + + COUNT ( * ) / ( - - 14 ) - 15 + - ( 11 ) AS col2
----
-26

query I rowsort
SELECT - 21 + - 92
----
-113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7831
SELECT COUNT( * ) DIV + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7831
SELECT COUNT ( * ) / + 91 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - COUNT( * ) + 44
----
43

skipif mysql # not compatible
query I rowsort label-7832
SELECT - COUNT ( * ) + 44
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7833
SELECT + COUNT( * ), 20 AS col0
----
1
20

skipif mysql # not compatible
query II rowsort label-7833
SELECT + COUNT ( * ), 20 AS col0
----
1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT ALL + ( + 66 ) * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-7834
SELECT ALL + ( + 66 ) * + COUNT ( * )
----
66

query I rowsort
SELECT 5 * - 77 * 10 AS col1
----
-3850

query I rowsort
SELECT + 65 + + 58 AS col0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-7837
SELECT ALL COUNT( 70 ), + 28 AS col0
----
1
28

skipif mysql # not compatible
query II rowsort label-7837
SELECT ALL COUNT ( 70 ), + 28 AS col0
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT - SUM( ALL - 95 ) * - 16 + - 17
----
-1537

skipif mysql # not compatible
query I rowsort label-7838
SELECT - SUM ( ALL - 95 ) * - 16 + - 17
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT ALL + + COALESCE ( + COUNT( * ), + + 30 ) + + + 46
----
47

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + + COALESCE ( + COUNT ( * ), + + 30 ) + + + 46
----
47

query I rowsort
SELECT ( + 24 )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT ALL ( - CAST( - 83 AS SIGNED ) )
----
83

skipif mysql # not compatible
query I rowsort label-7841
SELECT ALL ( - CAST ( - 83 AS INTEGER ) )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT + + 68 DIV - - 96 * 14
----
0

skipif mysql # not compatible
query I rowsort label-7842
SELECT + + 68 / - - 96 * 14
----
0

query I rowsort
SELECT ALL - ( - + 58 ) AS col0
----
58

query I rowsort
SELECT ALL - 86 + - 34
----
-120

query I rowsort
SELECT 95 * + 17
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT ALL COUNT( * ) * + + 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL COUNT ( * ) * + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT + MAX( ALL - + 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7847
SELECT + MAX ( ALL - + 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7848
SELECT 65 DIV + + COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-7848
SELECT 65 / + + COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT - + 34 + + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-7849
SELECT - + 34 + + - COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + ( + - SUM( DISTINCT NULLIF ( - 57, + 60 ) ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7850
SELECT + ( + - SUM ( DISTINCT NULLIF ( - 57, + 60 ) ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7851
SELECT ( - 27 ) AS col2, 89 * + - COUNT( * ) AS col2
----
-27
-89

skipif mysql # not compatible
query II rowsort label-7851
SELECT ( - 27 ) AS col2, 89 * + - COUNT ( * ) AS col2
----
-27
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT + + COUNT( * ) * - 29 + + + 51 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-7852
SELECT + + COUNT ( * ) * - 29 + + + 51 AS col1
----
22

query I rowsort
SELECT DISTINCT + - 61
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7854
SELECT DISTINCT + MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT + MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7855
SELECT COUNT( * ) AS col2, + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7855
SELECT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + ( + - COUNT( * ) ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7856
SELECT + ( + - COUNT ( * ) ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT + MIN( ALL - + 4 ) + + 9 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT + MIN ( ALL - + 4 ) + + 9 AS col0
----
5

query I rowsort
SELECT + 14 * 27 + 52 + - 69
----
361

query I rowsort
SELECT DISTINCT - + 28 AS col2
----
-28

query I rowsort
SELECT 50 + - 32 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT DISTINCT 50 + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT 50 + - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT DISTINCT + MAX( - - 9 ) * - + 21
----
-189

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT + MAX ( - - 9 ) * - + 21
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT 10 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-7863
SELECT 10 + + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT 2 * + + COUNT( * ) + + + ( 0 ) col2
----
2

skipif mysql # not compatible
query I rowsort label-7864
SELECT 2 * + + COUNT ( * ) + + + ( 0 ) col2
----
2

query II rowsort
SELECT ALL - 81 + + 70 col2, - 87 AS col0
----
-11
-87

query I rowsort
SELECT + 26 + - - 31
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7867
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) + - 80 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7867
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) + - 80 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT MAX( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-7868
SELECT MAX ( 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT - 67 * - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7869
SELECT - 67 * - - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7870
SELECT - 43 * - MIN( DISTINCT + 56 ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
2408
NULL

skipif mysql # not compatible
query II rowsort label-7870
SELECT - 43 * - MIN ( DISTINCT + 56 ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
2408
NULL

query I rowsort
SELECT ( + - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT SUM( - - 13 ) * + - COALESCE ( 1, + 68 )
----
-13

skipif mysql # not compatible
query I rowsort label-7872
SELECT SUM ( - - 13 ) * + - COALESCE ( 1, + 68 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT ALL CAST( + 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL CAST ( + 63 AS INTEGER ) AS col2
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7874
SELECT ( + 23 ) + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT ( + 23 ) + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + 37 * + 62
----
2294

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT SUM( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-7876
SELECT SUM ( 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT - ( COUNT( - + 94 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT - ( COUNT ( - + 94 ) ) AS col0
----
-1

query II rowsort
SELECT + 90, 31 AS col1
----
90
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT DISTINCT 48 + + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT 48 + + COUNT ( * ) AS col2
----
49

query II rowsort
SELECT DISTINCT + 91 AS col1, - 57 * - + 69 col0
----
91
3933

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT - 61 * ( + + COUNT( * ) )
----
-61

skipif mysql # not compatible
query I rowsort label-7881
SELECT - 61 * ( + + COUNT ( * ) )
----
-61

query I rowsort
SELECT - 91 + + + 76 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL ( + MAX( DISTINCT + CAST( + ( + ( + - 89 ) ) AS SIGNED ) ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL ( + MAX ( DISTINCT + CAST ( + ( + ( + - 89 ) ) AS INTEGER ) ) ) AS col2
----
-89

query I rowsort
SELECT ALL + 29 + + ( + 87 )
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT - COUNT( * ) * + 70
----
-70

skipif mysql # not compatible
query I rowsort label-7885
SELECT - COUNT ( * ) * + 70
----
-70

query I rowsort
SELECT 77 + 60
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT DISTINCT 31 * COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7887
SELECT DISTINCT 31 * COUNT ( * ) AS col0
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7888
SELECT - 86 DIV + 81
----
-1

skipif mysql # not compatible
query I rowsort label-7888
SELECT - 86 / + 81
----
-1

query I rowsort
SELECT DISTINCT - - 60 AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT - SUM( + - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-7890
SELECT - SUM ( + - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + 48 + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + 48 + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT ALL 55 + - 56
----
-1

query I rowsort
SELECT ( - 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT ALL COUNT( * ) * + - 53 - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-7894
SELECT ALL COUNT ( * ) * + - 53 - COUNT ( * )
----
-54

query II rowsort
SELECT ALL + ( 96 ) col2, 37
----
96
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + 14 * - COUNT( * ) + + - MAX( DISTINCT 11 )
----
-25

skipif mysql # not compatible
query I rowsort label-7896
SELECT + 14 * - COUNT ( * ) + + - MAX ( DISTINCT 11 )
----
-25

query I rowsort
SELECT DISTINCT ( - 49 ) AS col1
----
-49

query I rowsort
SELECT ALL ( 14 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT ALL CAST( - - 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL CAST ( - - 50 AS INTEGER )
----
50

query I rowsort
SELECT - 85 * 20 AS col1
----
-1700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7901
SELECT + 13 + - + CAST( NULL AS SIGNED ) * + - 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT + 13 + - + CAST ( NULL AS INTEGER ) * + - 30 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 78 * + 50 AS col2
----
3900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT + 7 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT + 7 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT + 71 DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT + 71 / + - 76
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7905
SELECT DISTINCT MIN( - 99 ) DIV ( 45 )
----
-2

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT MIN ( - 99 ) / ( 45 )
----
-2

query I rowsort
SELECT - ( + ( - 29 ) ) + + 88 AS col1
----
117

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7907
SELECT DISTINCT + 65 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT + 65 + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 76 * + - 70 AS col2
----
5320

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT + + MIN( DISTINCT + + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7909
SELECT + + MIN ( DISTINCT + + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT 26 * + COUNT( * ) col2
----
26

skipif mysql # not compatible
query I rowsort label-7910
SELECT 26 * + COUNT ( * ) col2
----
26

query I rowsort
SELECT + 16 col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT ALL 50 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL 50 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 12 + - 66
----
-54

query I rowsort
SELECT ALL 35 col1
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT - MIN( DISTINCT + - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7916
SELECT - MIN ( DISTINCT + - 58 )
----
58

query II rowsort
SELECT ALL + ( + + 52 ) AS col1, 59 AS col0
----
52
59

onlyif mysql # aggregate syntax: 
query II rowsort label-7918
SELECT COUNT( * ) AS col1, COUNT( * ) + 49 + COUNT( * )
----
1
51

skipif mysql # not compatible
query II rowsort label-7918
SELECT COUNT ( * ) AS col1, COUNT ( * ) + 49 + COUNT ( * )
----
1
51

query I rowsort
SELECT + 65 + - 88 col2
----
-23

query II rowsort
SELECT ALL 69 AS col2, - 87
----
69
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT COUNT( + - 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7921
SELECT COUNT ( + - 48 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT + MAX( 92 )
----
92

skipif mysql # not compatible
query I rowsort label-7922
SELECT + MAX ( 92 )
----
92

query I rowsort
SELECT 54 * - 38 - - 55 AS col2
----
-1997

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + 25 + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7924
SELECT + 25 + COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT - 52 col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT DISTINCT - 48 * + COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT - 48 * + COUNT ( * ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT 12 * + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7927
SELECT 12 * + COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT DISTINCT COUNT( * ) + - 1
----
0

skipif mysql # not compatible
query I rowsort label-7928
SELECT DISTINCT COUNT ( * ) + - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL COUNT( * ) * + MIN( + + 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL COUNT ( * ) * + MIN ( + + 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT - COUNT( ALL - 65 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7930
SELECT - COUNT ( ALL - 65 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7931
SELECT SUM( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7931
SELECT SUM ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + 52 * - 76 - + 54
----
-4006

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT + SUM( DISTINCT 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7933
SELECT + SUM ( DISTINCT 79 )
----
79

query I rowsort
SELECT DISTINCT + ( + 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT + + 7 * + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-7935
SELECT + + 7 * + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT - MAX( DISTINCT 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-7936
SELECT - MAX ( DISTINCT 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL + COUNT( * ) + + 37
----
38

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + COUNT ( * ) + + 37
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT DISTINCT ( + - COUNT( * ) ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7938
SELECT DISTINCT ( + - COUNT ( * ) ) * COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT ALL 79 * - SUM( DISTINCT + ( CAST( - + 56 AS SIGNED ) ) )
----
4424

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL 79 * - SUM ( DISTINCT + ( CAST ( - + 56 AS INTEGER ) ) )
----
4424

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL + COUNT( DISTINCT - - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL + COUNT ( DISTINCT - - 4 )
----
1

query I rowsort
SELECT DISTINCT + + ( + 75 ) col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7942
SELECT - 12 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7942
SELECT - 12 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 50 col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-7944
SELECT - COUNT( * ), + SUM( + + 75 ) * - 93 * - - 77 col2
----
-1
-537075

skipif mysql # not compatible
query II rowsort label-7944
SELECT - COUNT ( * ), + SUM ( + + 75 ) * - 93 * - - 77 col2
----
-1
-537075

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT - NULLIF ( + + 82, + - COUNT( * ) ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT - NULLIF ( + + 82, + - COUNT ( * ) ) AS col2
----
-82

query I rowsort
SELECT DISTINCT - 2 + + 19 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT 46 * - ( + COUNT( * ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-7947
SELECT 46 * - ( + COUNT ( * ) ) AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7948
SELECT DISTINCT COUNT( * ) * + CAST( - 66 AS SIGNED )
----
-66

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT COUNT ( * ) * + CAST ( - 66 AS INTEGER )
----
-66

query I rowsort
SELECT - 25 - + 46 + + 9 col1
----
-62

query I rowsort
SELECT + 95 + - + 68 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT + ( - - COUNT( * ) ) - + - 35 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7951
SELECT + ( - - COUNT ( * ) ) - + - 35 AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7952
SELECT ALL + COUNT( * ) DIV - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL + COUNT ( * ) / - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT ALL ( - SUM( ALL + 24 ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL ( - SUM ( ALL + 24 ) ) AS col0
----
-24

query I rowsort
SELECT ALL + 50 * 16 AS col2
----
800

query I rowsort
SELECT ALL ( + - 19 )
----
-19

query I rowsort
SELECT - ( + ( + 77 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT ALL 65 + - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL 65 + - COUNT ( * ) AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7958
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7958
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 7 + - - 0 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-7960
SELECT - COUNT( * ) AS col1, + 78 AS col0
----
-1
78

skipif mysql # not compatible
query II rowsort label-7960
SELECT - COUNT ( * ) AS col1, + 78 AS col0
----
-1
78

query I rowsort
SELECT ALL + + 35 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT SUM( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-7962
SELECT SUM ( DISTINCT - 28 )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL CAST( - 71 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL CAST ( - 71 AS INTEGER ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT MAX( DISTINCT 30 )
----
30

skipif mysql # not compatible
query I rowsort label-7964
SELECT MAX ( DISTINCT 30 )
----
30

query I rowsort
SELECT ALL + 95 + - 80 * + 5
----
-305

query I rowsort
SELECT ALL - 41 col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL COUNT( - + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL COUNT ( - + 10 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7968
SELECT 0 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7968
SELECT 0 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT ALL 66 * - + 2 * + - COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL 66 * - + 2 * + - COUNT ( * )
----
132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7970
SELECT CAST( NULL AS DECIMAL ) * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT CAST ( NULL AS REAL ) * + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT MIN( DISTINCT 69 ) * + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT MIN ( DISTINCT 69 ) * + COUNT ( * )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7972
SELECT CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - - COUNT( * ) AS col0, - ( + COUNT( * ) ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-7972
SELECT CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( * ) AS col0, - ( + COUNT ( * ) ) col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL + + 57 + - - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL + + 57 + - - COUNT ( * )
----
58

query I rowsort
SELECT - - 73 + 77 AS col1
----
150

query I rowsort
SELECT ALL ( - 63 )
----
-63

query I rowsort
SELECT ( + 93 ) AS col2
----
93

query I rowsort
SELECT ALL 23 * + + 64
----
1472

query I rowsort
SELECT + ( - + ( + - 64 ) ) col1
----
64

query I rowsort
SELECT ALL - 39 + - 68 AS col1
----
-107

query I rowsort
SELECT DISTINCT 6 + + 43 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT ALL - MAX( ALL 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL - MAX ( ALL 21 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT DISTINCT - MIN( DISTINCT + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-7982
SELECT DISTINCT - MIN ( DISTINCT + 95 )
----
-95

query I rowsort
SELECT + ( + 41 ) AS col2
----
41

query I rowsort
SELECT ALL - + 21 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT ALL MAX( 31 ) col2
----
31

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL MAX ( 31 ) col2
----
31

query I rowsort
SELECT DISTINCT 74 * - + 12
----
-888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7987
SELECT ALL - - COUNT( * ) DIV + - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - - COUNT ( * ) / + - 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT - 66 + - COUNT( * ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT - 66 + - COUNT ( * ) col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - ( - MIN( - 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-7990
SELECT - ( - MIN ( - 52 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT - SUM( ALL + 36 ) * - 43 AS col1
----
1548

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT - SUM ( ALL + 36 ) * - 43 AS col1
----
1548

query I rowsort
SELECT + 62 + 75
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT DISTINCT MAX( DISTINCT + 89 ) * 97
----
8633

skipif mysql # not compatible
query I rowsort label-7993
SELECT DISTINCT MAX ( DISTINCT + 89 ) * 97
----
8633

query I rowsort
SELECT DISTINCT + 35 + - 14 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT DISTINCT - MIN( 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - MIN ( 83 ) AS col2
----
-83

query I rowsort
SELECT DISTINCT - 71 * - 69
----
4899

query I rowsort
SELECT 9 * 76 AS col0
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL + + COUNT( * ) * + 28
----
28

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL + + COUNT ( * ) * + 28
----
28

query I rowsort
SELECT - ( + 81 ) AS col1
----
-81

query I rowsort
SELECT ( 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8001
SELECT COUNT( * ) DIV + COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8001
SELECT COUNT ( * ) / + COUNT ( * ) + - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT DISTINCT - + 72 col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT - SUM( 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT - SUM ( 26 ) AS col2
----
-26

query I rowsort
SELECT ALL + + 99 + - 84 + 50 * 91
----
4565

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT - SUM( DISTINCT + 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-8005
SELECT - SUM ( DISTINCT + 10 )
----
-10

query I rowsort
SELECT ALL - - ( - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT SUM( ALL + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-8007
SELECT SUM ( ALL + 22 ) AS col2
----
22

query I rowsort
SELECT + ( 78 )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8009
SELECT + MIN( + + 12 ) DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-8009
SELECT + MIN ( + + 12 ) / + 18
----
0

query I rowsort
SELECT + ( + + 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT + COUNT( * ) + - 21 * + 73 * - SUM( 17 )
----
26062

skipif mysql # not compatible
query I rowsort label-8011
SELECT + COUNT ( * ) + - 21 * + 73 * - SUM ( 17 )
----
26062

query I rowsort
SELECT - ( - + 79 ) * - 50 * + ( + 19 ) AS col1
----
-75050

query I rowsort
SELECT DISTINCT - 49 + - - 66 AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT DISTINCT + SUM( ALL + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT + SUM ( ALL + 45 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8015
SELECT ALL - 63, - COUNT( * ) AS col0
----
-63
-1

skipif mysql # not compatible
query II rowsort label-8015
SELECT ALL - 63, - COUNT ( * ) AS col0
----
-63
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL + 82 + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL + 82 + + COUNT ( * )
----
83

query I rowsort
SELECT - 15 + 65 AS col1
----
50

query I rowsort
SELECT 70 + + 45 AS col0
----
115

query I rowsort
SELECT DISTINCT - 15 * - - 94 AS col0
----
-1410

query I rowsort
SELECT DISTINCT ( 52 ) + 36 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - + MIN( + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-8021
SELECT - + MIN ( + 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8022
SELECT + - ( + - 23 ) + CAST( - 14 AS SIGNED ) * + 15 DIV COUNT( * ) + COUNT( * ) AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-8022
SELECT + - ( + - 23 ) + CAST ( - 14 AS INTEGER ) * + 15 / COUNT ( * ) + COUNT ( * ) AS col2
----
-186

query I rowsort
SELECT + 75 * - - 46 AS col2
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT ALL COALESCE ( - + COALESCE ( - + 62, - 84 ), + COUNT( * ) ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL COALESCE ( - + COALESCE ( - + 62, - 84 ), + COUNT ( * ) ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + COUNT( * ) - + + ( - - 18 )
----
-17

skipif mysql # not compatible
query I rowsort label-8025
SELECT + COUNT ( * ) - + + ( - - 18 )
----
-17

query I rowsort
SELECT ALL + + 13 AS col2
----
13

query I rowsort
SELECT ALL - 8 * + ( - + 86 ) col2
----
688

query I rowsort
SELECT + - 11 - - ( + 64 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT + COUNT( * ) + 77 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + COUNT ( * ) + 77 AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT + ( CAST( + 79 AS SIGNED ) )
----
79

skipif mysql # not compatible
query I rowsort label-8030
SELECT + ( CAST ( + 79 AS INTEGER ) )
----
79

query I rowsort
SELECT DISTINCT - + 93 AS col2
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT 68 DIV + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8032
SELECT 68 / + 82 AS col2
----
0

query I rowsort
SELECT 3 * + 52
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL + 48 + - COUNT( * ) * 75
----
-27

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL + 48 + - COUNT ( * ) * 75
----
-27

query I rowsort
SELECT 78 + - - 10
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8036
SELECT + CAST( NULL AS SIGNED ) + - 46 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8036
SELECT + CAST ( NULL AS INTEGER ) + - 46 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT - 82 - + 53 * - + COUNT( * ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8037
SELECT - 82 - + 53 * - + COUNT ( * ) AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8038
SELECT ALL 30 * - + 97 DIV - COUNT( * ) AS col0
----
2910

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL 30 * - + 97 / - COUNT ( * ) AS col0
----
2910

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ( ( - COUNT( - - ( 75 ) ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8039
SELECT ( ( - COUNT ( - - ( 75 ) ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + COUNT( * ) * 34 + - ( - - 22 ) * + 65
----
-1396

skipif mysql # not compatible
query I rowsort label-8040
SELECT + COUNT ( * ) * 34 + - ( - - 22 ) * + 65
----
-1396

query I rowsort
SELECT 3 * - 2 col0
----
-6

query II rowsort
SELECT ALL 75 + - + 17 AS col0, 32 + - - 67 AS col1
----
58
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL - CAST( NULL AS SIGNED ) * - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL - CAST ( NULL AS INTEGER ) * - 95 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT DISTINCT 82 * 77 DIV + + 62
----
101

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT 82 * 77 / + + 62
----
101

query II rowsort
SELECT 17 - ( 1 ) AS col0, - 34 AS col0
----
16
-34

query I rowsort
SELECT ( + 51 ) * + 31 AS col2
----
1581

query I rowsort
SELECT 23 * - 31 * + 29
----
-20677

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + 5 + COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8048
SELECT + 5 + COUNT ( * ) AS col1
----
6

query I rowsort
SELECT ALL + 44 * + 97 AS col0
----
4268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8050
SELECT - + 4 + + MAX( DISTINCT + - ( CAST( NULL AS SIGNED ) ) ), - 87 + 88 AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8050
SELECT - + 4 + + MAX ( DISTINCT + - ( CAST ( NULL AS INTEGER ) ) ), - 87 + 88 AS col0
----
NULL
1

query I rowsort
SELECT ( - - 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT + 58 * - - 99 - COUNT( * )
----
5741

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT + 58 * - - 99 - COUNT ( * )
----
5741

query I rowsort
SELECT DISTINCT + ( + 32 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT - + CAST( 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-8054
SELECT - + CAST ( 84 AS INTEGER )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT ALL - COUNT( * ) + - - SUM( DISTINCT - 58 )
----
-59

skipif mysql # not compatible
query I rowsort label-8055
SELECT ALL - COUNT ( * ) + - - SUM ( DISTINCT - 58 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT + MAX( DISTINCT 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8056
SELECT + MAX ( DISTINCT 53 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL - COUNT( * ) * - - 57 + 88 col0
----
31

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - COUNT ( * ) * - - 57 + 88 col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8058
SELECT CAST( NULL AS SIGNED ) * - 87 * - SUM( DISTINCT + - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8058
SELECT CAST ( NULL AS INTEGER ) * - 87 * - SUM ( DISTINCT + - 80 )
----
NULL

query I rowsort
SELECT ALL 18 * + + 63
----
1134

query I rowsort
SELECT ALL ( 45 ) + - 39 + 83
----
89

query I rowsort
SELECT ALL 52 * 58 col0
----
3016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT + + SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8062
SELECT + + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 92 * + + 90 AS col2
----
8280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8064
SELECT - 89 col2, 65 + 42 DIV - COUNT( * )
----
-89
23

skipif mysql # not compatible
query II rowsort label-8064
SELECT - 89 col2, 65 + 42 / - COUNT ( * )
----
-89
23

query I rowsort
SELECT ALL + 86 col0
----
86

query I rowsort
SELECT DISTINCT + + 59 AS col1
----
59

query II rowsort
SELECT + 79 AS col0, + 29
----
79
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL MAX( - 16 ) col2
----
-16

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL MAX ( - 16 ) col2
----
-16

query I rowsort
SELECT DISTINCT - + 59
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8070
SELECT DISTINCT - + CAST( - COUNT( - - 85 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT - + CAST ( - COUNT ( - - 85 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT - ( - COUNT( DISTINCT - 5 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT - ( - COUNT ( DISTINCT - 5 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT - COUNT( * ) * + 33 + 50
----
17

skipif mysql # not compatible
query I rowsort label-8072
SELECT - COUNT ( * ) * + 33 + 50
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT DISTINCT - COALESCE ( 88, SUM( ALL 29 ) * MAX( DISTINCT + 88 ) * + 72 * 56 ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT - COALESCE ( 88, SUM ( ALL 29 ) * MAX ( DISTINCT + 88 ) * + 72 * 56 ) AS col0
----
-88

query I rowsort
SELECT ALL - - 35 * - 36 AS col0
----
-1260

query I rowsort
SELECT ALL 99 + 61
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT ALL ( NULLIF ( + COUNT( * ), - 90 ) ) + + 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL ( NULLIF ( + COUNT ( * ), - 90 ) ) + + 59 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT ALL + ( - ( - + COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL + ( - ( - + COUNT ( * ) ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT ( + - 21 )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8079
SELECT + 23 - + CAST( + + COUNT( * ) AS SIGNED ) + + 86 col2
----
108

skipif mysql # not compatible
query I rowsort label-8079
SELECT + 23 - + CAST ( + + COUNT ( * ) AS INTEGER ) + + 86 col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT DISTINCT 87 * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-8080
SELECT DISTINCT 87 * COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT + COALESCE ( - + COUNT( * ), COUNT( * ) ) * + 77
----
-77

skipif mysql # not compatible
query I rowsort label-8081
SELECT + COALESCE ( - + COUNT ( * ), COUNT ( * ) ) * + 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT + COUNT( DISTINCT + ( - 19 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8082
SELECT + COUNT ( DISTINCT + ( - 19 ) )
----
1

query I rowsort
SELECT + - ( 49 )
----
-49

query I rowsort
SELECT ALL ( + 71 ) * 58
----
4118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8085
SELECT COALESCE ( - + COUNT( + 35 ), - 80, + MAX( + - 40 ) ), + CAST( NULL AS DECIMAL ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8085
SELECT COALESCE ( - + COUNT ( + 35 ), - 80, + MAX ( + - 40 ) ), + CAST ( NULL AS REAL ) AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT MAX( DISTINCT - 28 ) + + 18 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-8086
SELECT MAX ( DISTINCT - 28 ) + + 18 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT COUNT( * ) - - - 81 col2
----
-80

skipif mysql # not compatible
query I rowsort label-8087
SELECT COUNT ( * ) - - - 81 col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8088
SELECT ALL MAX( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL MAX ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT DISTINCT COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8089
SELECT DISTINCT COUNT ( * ) - - COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT 81 DIV + - 54 - + 98 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8090
SELECT 81 / + - 54 - + 98 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL - COUNT( * ) + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - COUNT ( * ) + - 92
----
-93

query I rowsort
SELECT - - ( - 56 )
----
-56

query I rowsort
SELECT 25 * 9 AS col2
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL 82 * + + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL 82 * + + COUNT ( * )
----
82

query I rowsort
SELECT + 81 * 4
----
324

query II rowsort
SELECT ALL + 8, 60 AS col0
----
8
60

query II rowsort
SELECT DISTINCT 23 * - + 45 AS col0, + 44
----
-1035
44

query I rowsort
SELECT DISTINCT - 59 col2
----
-59

query I rowsort
SELECT DISTINCT + 42 + + - 30 AS col2
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT ALL COUNT( * ) DIV + 51 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8100
SELECT ALL COUNT ( * ) / + 51 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8101
SELECT ALL + COUNT( * ) DIV 45 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8101
SELECT ALL + COUNT ( * ) / 45 AS col1
----
0

query I rowsort
SELECT DISTINCT 5 + - 70
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT SUM( ALL + - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-8103
SELECT SUM ( ALL + - 8 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8104
SELECT 85 DIV ( + - COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-8104
SELECT 85 / ( + - COUNT ( * ) )
----
-85

query I rowsort
SELECT DISTINCT - 11 * - 2
----
22

query I rowsort
SELECT ALL - + 56 col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8107
SELECT COUNT ( * ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + COUNT( * ) * + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-8108
SELECT + COUNT ( * ) * + 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT - SUM( - + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-8109
SELECT - SUM ( - + 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL + 36 * + 88 - - COUNT( * ) AS col0
----
3169

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL + 36 * + 88 - - COUNT ( * ) AS col0
----
3169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8111
SELECT - COUNT( * ) DIV - - 47 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT - COUNT ( * ) / - - 47 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - COUNT( DISTINCT - - 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-8112
SELECT - COUNT ( DISTINCT - - 93 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT DISTINCT CAST( + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT CAST ( + 86 AS INTEGER )
----
86

query I rowsort
SELECT ALL 27 * + 83 AS col0
----
2241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 80 AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( 53, + 11 + + 77 ) + - - 33 * 72
----
2429

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL - COUNT( + 49 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL - COUNT ( + 49 ) col2
----
-1

query I rowsort
SELECT DISTINCT 6 col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL - + COUNT( * ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL - + COUNT ( * ) + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT - COUNT( NULLIF ( + 86, + 45 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8120
SELECT - COUNT ( NULLIF ( + 86, + 45 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT - COUNT( DISTINCT + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-8121
SELECT - COUNT ( DISTINCT + 95 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8122
SELECT ALL + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT - 87 + - 14
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT ( 95 ) + - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8124
SELECT ( 95 ) + - COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8125
SELECT ALL 18 DIV + COUNT( * ) AS col2, + 15 col2
----
18
15

skipif mysql # not compatible
query II rowsort label-8125
SELECT ALL 18 / + COUNT ( * ) AS col2, + 15 col2
----
18
15

query I rowsort
SELECT - - ( 75 ) AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8127
SELECT - MAX( - - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8127
SELECT - MAX ( - - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT 45 DIV + - 39
----
-1

skipif mysql # not compatible
query I rowsort label-8128
SELECT 45 / + - 39
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT COUNT( * ) + 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-8129
SELECT COUNT ( * ) + 3 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT ALL - 75 * - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - 75 * - COUNT ( * )
----
75

query I rowsort
SELECT + 44 - - 68 AS col2
----
112

query I rowsort
SELECT ALL ( + 96 ) * + 66 * + + 22
----
139392

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT DISTINCT 41 * + SUM( - 70 )
----
-2870

skipif mysql # not compatible
query I rowsort label-8133
SELECT DISTINCT 41 * + SUM ( - 70 )
----
-2870

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT COUNT( * ) * - - 9
----
9

skipif mysql # not compatible
query I rowsort label-8134
SELECT COUNT ( * ) * - - 9
----
9

query II rowsort
SELECT DISTINCT ( + 44 ), 42 col0
----
44
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT + MAX( + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT + MAX ( + 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT + MAX( + - 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8137
SELECT + MAX ( + - 6 ) AS col1
----
-6

query I rowsort
SELECT DISTINCT + + NULLIF ( 78, - + 43 )
----
78

query II rowsort
SELECT + 70 * - 33 AS col0, ( + 92 )
----
-2310
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT ALL CAST( - + ( + 58 ) AS SIGNED ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL CAST ( - + ( + 58 ) AS INTEGER ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8141
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT - CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8142
SELECT - 67, 52 + + - COUNT( * ) AS col0
----
-67
51

skipif mysql # not compatible
query II rowsort label-8142
SELECT - 67, 52 + + - COUNT ( * ) AS col0
----
-67
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT 20 * + COUNT( * ) * - COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-8143
SELECT 20 * + COUNT ( * ) * - COUNT ( * )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8144
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 28 + 51 col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT + 68 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT + 68 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 23 + + 35 AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8148
SELECT ALL + 89 DIV - 74
----
-1

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + 89 / - 74
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8149
SELECT - COUNT( * ) AS col2, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8149
SELECT - COUNT ( * ) AS col2, COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8150
SELECT - 70 DIV 85 * COUNT( * ) * ( + + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-8150
SELECT - 70 / 85 * COUNT ( * ) * ( + + 86 )
----
0

query I rowsort
SELECT ALL ( - 97 ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8153
SELECT ALL + COUNT( * ) * + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL + COUNT ( * ) * + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT COUNT( * ) * + 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-8155
SELECT COUNT ( * ) * + 59 AS col0
----
59

query I rowsort
SELECT ALL - - 32 col0
----
32

query II rowsort
SELECT 67 AS col1, 60 AS col2
----
67
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT 48 DIV + + 14
----
3

skipif mysql # not compatible
query I rowsort label-8158
SELECT 48 / + + 14
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8159
SELECT ALL CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT ALL CAST ( NULL AS REAL ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT ALL + MAX( + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL + MAX ( + 49 )
----
49

query I rowsort
SELECT + - ( + 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT + SUM( - 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-8162
SELECT + SUM ( - 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL + COUNT( * ) * + + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + COUNT ( * ) * + + ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL + SUM( DISTINCT 16 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL + SUM ( DISTINCT 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT + SUM( - + 54 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8165
SELECT + SUM ( - + 54 ) AS col0
----
-54

query II rowsort
SELECT + 74 AS col0, 96
----
74
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT - 35 + + - 59 + - - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-8167
SELECT - 35 + + - 59 + - - COUNT ( * )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8168
SELECT - CAST( NULL AS SIGNED ) + - + ( - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8168
SELECT - CAST ( NULL AS INTEGER ) + - + ( - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT COUNT( * ) AS col2, - 87
----
1
-87

skipif mysql # not compatible
query II rowsort label-8169
SELECT COUNT ( * ) AS col2, - 87
----
1
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT SUM( - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-8170
SELECT SUM ( - 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT ALL + + 72 + + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL + + 72 + + COUNT ( * )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL + 78 * + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL + 78 * + COUNT ( * )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT DISTINCT + 33 * - COUNT( ALL + + 95 )
----
-33

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT + 33 * - COUNT ( ALL + + 95 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT MAX( - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8174
SELECT MAX ( - 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT + COUNT( * ) + - - ( - + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT + COUNT ( * ) + - - ( - + COUNT ( * ) )
----
0

query I rowsort
SELECT - + 87 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT 79 * 38 AS col1, + SUM( DISTINCT 51 )
----
3002
51

skipif mysql # not compatible
query II rowsort label-8177
SELECT 79 * 38 AS col1, + SUM ( DISTINCT 51 )
----
3002
51

query I rowsort
SELECT ALL 17 * + 57 col1
----
969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8179
SELECT ALL CAST( + 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL CAST ( + 93 AS INTEGER )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT - 76 * COUNT( * ) col0
----
-76

skipif mysql # not compatible
query I rowsort label-8180
SELECT - 76 * COUNT ( * ) col0
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT ALL 23 DIV + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL 23 / + COUNT ( * )
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8182
SELECT CAST( NULL AS DECIMAL ) * + 7 + - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT CAST ( NULL AS REAL ) * + 7 + - + 16
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8183
SELECT DISTINCT + COUNT( * ) DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT + COUNT ( * ) / + - 86
----
0

query I rowsort
SELECT DISTINCT - + 53 AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8185
SELECT - - CAST( - - 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-8185
SELECT - - CAST ( - - 95 AS INTEGER )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) * - 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8186
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) * - 82 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT ALL COUNT( * ) * + + 42 * + 98
----
4116

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL COUNT ( * ) * + + 42 * + 98
----
4116

query I rowsort
SELECT 67 + 18
----
85

query I rowsort
SELECT DISTINCT 53 + 54 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL + + SUM( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8190
SELECT ALL + + SUM ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT - COUNT( * ) + 10 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8191
SELECT - COUNT ( * ) + 10 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT + MIN( ALL + 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8192
SELECT + MIN ( ALL + 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT - COUNT( ALL 84 ) * + 7
----
-7

skipif mysql # not compatible
query I rowsort label-8193
SELECT - COUNT ( ALL 84 ) * + 7
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT DISTINCT CAST( - - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT CAST ( - - 3 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT + COUNT( + 76 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8195
SELECT + COUNT ( + 76 ) col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8196
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / + ( - 33 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT + CAST ( NULL AS REAL ) / + ( - 33 ) AS col0
----
NULL

query I rowsort
SELECT 27 + 23 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL COUNT( * ) + + 39 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL COUNT ( * ) + + 39 AS col1
----
40

query II rowsort
SELECT + 94 AS col2, - 87 AS col0
----
94
-87

query I rowsort
SELECT DISTINCT 94 * 6 AS col1
----
564

query I rowsort
SELECT ALL 40 col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8202
SELECT ALL COUNT( * ) * - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL COUNT ( * ) * - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT + SUM( ALL - 49 ) - - 46
----
-3

skipif mysql # not compatible
query I rowsort label-8203
SELECT + SUM ( ALL - 49 ) - - 46
----
-3

query I rowsort
SELECT ALL + ( + 55 ) col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT + 17 + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 17 + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL + MAX( DISTINCT + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL + MAX ( DISTINCT + 79 ) AS col0
----
79

query I rowsort
SELECT - 76 * + 60
----
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT - 40 * ( + COUNT( * ) )
----
-40

skipif mysql # not compatible
query I rowsort label-8208
SELECT - 40 * ( + COUNT ( * ) )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - COALESCE ( SUM( + + 16 ), 9 ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-8209
SELECT - COALESCE ( SUM ( + + 16 ), 9 ) col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT ALL COUNT( * ) * - 60 * COUNT( * ) + 2
----
-58

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL COUNT ( * ) * - 60 * COUNT ( * ) + 2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT - MIN( ALL - - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-8211
SELECT - MIN ( ALL - - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT + 8 + + + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8212
SELECT + 8 + + + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT ALL 48 DIV - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL 48 / - COUNT ( * )
----
-48

query I rowsort
SELECT DISTINCT + ( - 21 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8215
SELECT CAST( NULL AS SIGNED ) * + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT CAST ( NULL AS INTEGER ) * + - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT COUNT( * ) * 89
----
89

skipif mysql # not compatible
query I rowsort label-8216
SELECT COUNT ( * ) * 89
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT 66 DIV 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-8217
SELECT 66 / 72 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT - CAST( NULL AS SIGNED ) + ( - 64 ) * + - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT - CAST ( NULL AS INTEGER ) + ( - 64 ) * + - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT ALL 92 * + + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL 92 * + + COUNT ( * )
----
92

query I rowsort
SELECT ALL + - 58 AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8221
SELECT - - COUNT( CAST( NULL AS SIGNED ) ) + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8221
SELECT - - COUNT ( CAST ( NULL AS INTEGER ) ) + 59 AS col2
----
59

query I rowsort
SELECT ALL - 53 + + 4
----
-49

query I rowsort
SELECT - 5 + - 7 + + 16
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8224
SELECT CAST( + 74 AS SIGNED ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8224
SELECT CAST ( + 74 AS INTEGER ) AS col1
----
74

query I rowsort
SELECT DISTINCT - ( - 37 )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8226
SELECT 55 DIV + 65 * + 81 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8226
SELECT 55 / + 65 * + 81 AS col1
----
0

query I rowsort
SELECT + + ( + 77 ) AS col1
----
77

query I rowsort
SELECT 70 * 62
----
4340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8229
SELECT + COUNT( * ) DIV + - 31 AS col1, 73
----
0
73

skipif mysql # not compatible
query II rowsort label-8229
SELECT + COUNT ( * ) / + - 31 AS col1, 73
----
0
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8230
SELECT ALL ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL ( CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - 63 * 41 AS col0
----
-2583

query I rowsort
SELECT ALL + + 20 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL + + MAX( DISTINCT + 68 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + + MAX ( DISTINCT + 68 ) col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8234
SELECT DISTINCT + 45 * 28 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
1260
NULL

skipif mysql # not compatible
query II rowsort label-8234
SELECT DISTINCT + 45 * 28 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
1260
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT ( 71 ) * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-8235
SELECT ( 71 ) * COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8236
SELECT ALL - - 6 AS col2, COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-8236
SELECT ALL - - 6 AS col2, COUNT ( * )
----
6
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT DISTINCT + CAST( + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT + CAST ( + 74 AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT + CASE 95 WHEN + 66 THEN NULL ELSE + + ( - MAX( 13 ) ) * - + COUNT( * ) * + + 62 END col0
----
806

skipif mysql # not compatible
query I rowsort label-8238
SELECT + CASE 95 WHEN + 66 THEN NULL ELSE + + ( - MAX ( 13 ) ) * - + COUNT ( * ) * + + 62 END col0
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT MAX( ALL + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-8239
SELECT MAX ( ALL + 62 )
----
62

query I rowsort
SELECT ALL ( - - 88 ) AS col2
----
88

query I rowsort
SELECT DISTINCT + + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT - NULLIF ( - 92, COUNT( * ) + - + ( - 57 ) ) + + 24 col2
----
116

skipif mysql # not compatible
query I rowsort label-8242
SELECT - NULLIF ( - 92, COUNT ( * ) + - + ( - 57 ) ) + + 24 col2
----
116

query I rowsort
SELECT ALL - ( 54 ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8244
SELECT + + COUNT( * ) / - 15 + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT + + COUNT ( * ) / - 15 + CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT 43 + + 76
----
119

query I rowsort
SELECT 40 * - + ( + 10 )
----
-400

query I rowsort
SELECT NULLIF ( + 63, + - 28 )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8248
SELECT + COUNT( * ) DIV COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8248
SELECT + COUNT ( * ) / COUNT ( * ) + COUNT ( * )
----
2

query I rowsort
SELECT ( + ( - 71 ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT MIN( ALL + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-8250
SELECT MIN ( ALL + 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT - CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8251
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT MIN( DISTINCT + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT MIN ( DISTINCT + 96 ) AS col0
----
96

query I rowsort
SELECT ALL ( 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT ALL + COUNT( + 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL + COUNT ( + 82 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT ALL COUNT( * ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL COUNT ( * ) * COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT + + COUNT( * ) * - 16 + COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8256
SELECT + + COUNT ( * ) * - 16 + COUNT ( * ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT ALL COUNT( * ) * - 43 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL COUNT ( * ) * - 43 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT COUNT( * ) * + ( + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-8258
SELECT COUNT ( * ) * + ( + 90 ) AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8259
SELECT ALL CAST( NULL AS SIGNED ) / 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL CAST ( NULL AS INTEGER ) / 59
----
NULL

query I rowsort
SELECT - + 89 * 54 AS col2
----
-4806

query I rowsort
SELECT - + 88 * + 31 col2
----
-2728

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT + ( + + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8262
SELECT + ( + + COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8263
SELECT + CAST( 22 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8263
SELECT + CAST ( 22 AS INTEGER ) AS col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT - 27 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT - 27 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT DISTINCT + COUNT( ALL + 1 ) * 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT + COUNT ( ALL + 1 ) * 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT ALL + 99 * + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL + 99 * + - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT 43 * - - NULLIF ( 17, NULLIF ( COUNT( * ), - + 76 ) )
----
731

skipif mysql # not compatible
query I rowsort label-8267
SELECT 43 * - - NULLIF ( 17, NULLIF ( COUNT ( * ), - + 76 ) )
----
731

query I rowsort
SELECT ALL - 31 * - 61 col2
----
1891

query I rowsort
SELECT ALL - ( - ( + 32 ) )
----
32

query I rowsort
SELECT + COALESCE ( + - 55, - 62, + - 61 ) AS col0
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8271
SELECT + 98 / + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT + 98 / + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT - COALESCE ( - - 77, - - 47 + COUNT( * ) )
----
-77

skipif mysql # not compatible
query I rowsort label-8272
SELECT - COALESCE ( - - 77, - - 47 + COUNT ( * ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT DISTINCT + COUNT( * ) + - - 72 AS col2
----
73

skipif mysql # not compatible
query I rowsort label-8273
SELECT DISTINCT + COUNT ( * ) + - - 72 AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT - 23 DIV - - 44 + - + 85 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8274
SELECT - 23 / - - 44 + - + 85 AS col0
----
-85

query I rowsort
SELECT - 90 + + 98 AS col2
----
8

query I rowsort
SELECT - 22 * 19 AS col2
----
-418

query I rowsort
SELECT DISTINCT + 10 col2
----
10

query I rowsort
SELECT + ( + + 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT - - 99 + 1 + + COUNT( * ) AS col2
----
101

skipif mysql # not compatible
query I rowsort label-8279
SELECT - - 99 + 1 + + COUNT ( * ) AS col2
----
101

query I rowsort
SELECT DISTINCT + 88 * + 98
----
8624

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT SUM( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT SUM ( 16 )
----
16

query II rowsort
SELECT DISTINCT 23 AS col1, - 10
----
23
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + COUNT( * ) + + ( 11 ) * - COUNT( * ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-8283
SELECT + COUNT ( * ) + + ( 11 ) * - COUNT ( * ) col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT MAX( ALL 25 ) col1
----
25

skipif mysql # not compatible
query I rowsort label-8284
SELECT MAX ( ALL 25 ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT - - COUNT( + ( + 0 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8285
SELECT - - COUNT ( + ( + 0 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - MAX( ALL + 30 ) + + 30
----
0

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - MAX ( ALL + 30 ) + + 30
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT ALL + + ( COUNT( * ) ) - + - MIN( ALL - 97 )
----
-96

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + + ( COUNT ( * ) ) - + - MIN ( ALL - 97 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT 57 - - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8288
SELECT 57 - - - COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + 98 + - - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-8289
SELECT + 98 + - - COUNT ( * ) AS col2
----
99

query I rowsort
SELECT ( - - 93 ) AS col0
----
93

query I rowsort
SELECT + 62 * + 62
----
3844

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT DISTINCT + COUNT( DISTINCT - 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT + COUNT ( DISTINCT - 73 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT COUNT( 4 )
----
1

skipif mysql # not compatible
query I rowsort label-8293
SELECT COUNT ( 4 )
----
1

query I rowsort
SELECT DISTINCT - 67 + - ( 25 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8295
SELECT ALL ( + + COUNT( ALL CAST( NULL AS SIGNED ) ) ), + 10 AS col0
----
0
10

skipif mysql # not compatible
query II rowsort label-8295
SELECT ALL ( + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) ), + 10 AS col0
----
0
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8296
SELECT + ( + 16 ) * COUNT( * ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-8296
SELECT + ( + 16 ) * COUNT ( * ) / + 74
----
0

query I rowsort
SELECT ALL + 77 + - 98
----
-21

query I rowsort
SELECT ALL 14 * + 22 AS col1
----
308

query II rowsort
SELECT 56 * + 93 AS col0, - 28
----
5208
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT + 48 * - + COUNT( * ) + COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8300
SELECT + 48 * - + COUNT ( * ) + COUNT ( * ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT DISTINCT 27 * - COUNT( * ) * + + 2 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8301
SELECT DISTINCT 27 * - COUNT ( * ) * + + 2 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT 3 * - + COALESCE ( - COUNT( * ), 6 )
----
3

skipif mysql # not compatible
query I rowsort label-8302
SELECT 3 * - + COALESCE ( - COUNT ( * ), 6 )
----
3

query I rowsort
SELECT DISTINCT - 40 + - 72
----
-112

query I rowsort
SELECT ALL 59 col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8305
SELECT ( + ( 99 ) ) * - + 87 DIV COUNT( * ) AS col2
----
-8613

skipif mysql # not compatible
query I rowsort label-8305
SELECT ( + ( 99 ) ) * - + 87 / COUNT ( * ) AS col2
----
-8613

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT - COUNT( * ) + - 72 * 84 col0
----
-6049

skipif mysql # not compatible
query I rowsort label-8306
SELECT - COUNT ( * ) + - 72 * 84 col0
----
-6049

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + 9 + - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-8307
SELECT + 9 + - COUNT ( * )
----
8

query I rowsort
SELECT ALL + - ( + 92 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8309
SELECT - COUNT( * ) + - COALESCE ( 99, CAST( NULL AS SIGNED ) ) AS col1
----
-100

skipif mysql # not compatible
query I rowsort label-8309
SELECT - COUNT ( * ) + - COALESCE ( 99, CAST ( NULL AS INTEGER ) ) AS col1
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8310
SELECT 58 * + - CAST( + + 27 AS SIGNED )
----
-1566

skipif mysql # not compatible
query I rowsort label-8310
SELECT 58 * + - CAST ( + + 27 AS INTEGER )
----
-1566

onlyif mysql # aggregate syntax: 
query II rowsort label-8311
SELECT DISTINCT - 9 col0, - COUNT( * )
----
-9
-1

skipif mysql # not compatible
query II rowsort label-8311
SELECT DISTINCT - 9 col0, - COUNT ( * )
----
-9
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT + 14 AS col1, - SUM( ALL 40 )
----
14
-40

skipif mysql # not compatible
query II rowsort label-8312
SELECT + 14 AS col1, - SUM ( ALL 40 )
----
14
-40

query I rowsort
SELECT ALL 62 + 88
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT ALL 28 * + COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8314
SELECT ALL 28 * + COUNT ( * )
----
28

query I rowsort
SELECT DISTINCT 32 + + 12 * 60 AS col1
----
752

query I rowsort
SELECT + + 54 + + 94 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT + COUNT( * ) * - 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-8317
SELECT + COUNT ( * ) * - 56 AS col2
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8318
SELECT ALL 92 AS col2, 0 DIV COUNT( * ) AS col0
----
92
0

skipif mysql # not compatible
query II rowsort label-8318
SELECT ALL 92 AS col2, 0 / COUNT ( * ) AS col0
----
92
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL + COUNT( * ) * - 48 * - 3
----
144

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL + COUNT ( * ) * - 48 * - 3
----
144

query I rowsort
SELECT DISTINCT + ( + ( 34 ) )
----
34

query I rowsort
SELECT DISTINCT + 89 * + 5 + + 54
----
499

query I rowsort
SELECT DISTINCT + 72 col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8323
SELECT ALL - ( - + ( - + CAST( NULL AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL - ( - + ( - + CAST ( NULL AS INTEGER ) ) ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8324
SELECT DISTINCT + CAST( + 17 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT + CAST ( + 17 AS INTEGER ) AS col0
----
17

query I rowsort
SELECT 47 + + + 96
----
143

query I rowsort
SELECT DISTINCT - 79 - 51 AS col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT DISTINCT - CAST( - 2 AS SIGNED ) * - ( - - 61 )
----
-122

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT - CAST ( - 2 AS INTEGER ) * - ( - - 61 )
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL - MIN( DISTINCT 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - MIN ( DISTINCT 21 )
----
-21

query I rowsort
SELECT + 19 * + + 66
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL COUNT( * ) + - 92
----
-91

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL COUNT ( * ) + - 92
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT ALL 52 + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL 52 + COUNT ( * ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT MIN( + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT MIN ( + 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL 16 + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL 16 + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8334
SELECT ( - + COUNT( * ) ) DIV + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8334
SELECT ( - + COUNT ( * ) ) / + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT DISTINCT - COUNT( - - CAST( 50 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - COUNT ( - - CAST ( 50 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL - COUNT( - 86 )
----
-1

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL - COUNT ( - 86 )
----
-1

query I rowsort
SELECT ALL - ( 29 )
----
-29

query II rowsort
SELECT - 55 AS col1, + 97 AS col1
----
-55
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8339
SELECT + ( - 14 ) DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-8339
SELECT + ( - 14 ) / - + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT - + ( ( + SUM( 19 ) ) ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8340
SELECT - + ( ( + SUM ( 19 ) ) ) AS col1
----
-19

query I rowsort
SELECT - 81 - - + 13 AS col0
----
-68

query I rowsort
SELECT - 45 * + 18 col1
----
-810

query I rowsort
SELECT DISTINCT - - 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ALL - - ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL - - ( - - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - + 96 col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8346
SELECT + CAST( NULL AS SIGNED ) * - - ( - ( + 0 ) ) * - CAST( NULL AS SIGNED ) * + ( + CAST( NULL AS SIGNED ) ), - COUNT( * ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8346
SELECT + CAST ( NULL AS INTEGER ) * - - ( - ( + 0 ) ) * - CAST ( NULL AS INTEGER ) * + ( + CAST ( NULL AS INTEGER ) ), - COUNT ( * ) col1
----
NULL
-1

query I rowsort
SELECT COALESCE ( 54, - 41 ) + - 69
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL ( + ( - COUNT( * ) ) ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL ( + ( - COUNT ( * ) ) ) + - COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT ALL 44 + - + 67
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8350
SELECT CAST( - 89 AS SIGNED ) + - 16
----
-105

skipif mysql # not compatible
query I rowsort label-8350
SELECT CAST ( - 89 AS INTEGER ) + - 16
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT - COUNT( * ) * 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8351
SELECT - COUNT ( * ) * 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT + ( + - COUNT( * ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8352
SELECT + ( + - COUNT ( * ) ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8353
SELECT 53, - COUNT( * ) col2
----
53
-1

skipif mysql # not compatible
query II rowsort label-8353
SELECT 53, - COUNT ( * ) col2
----
53
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT + - 74 * - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT + - 74 * - + COUNT ( * )
----
74

query I rowsort
SELECT ALL + - 14 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8356
SELECT + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8356
SELECT + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT + SUM( DISTINCT 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-8357
SELECT + SUM ( DISTINCT 42 ) col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8358
SELECT - CAST( - 47 AS SIGNED ) * 9
----
423

skipif mysql # not compatible
query I rowsort label-8358
SELECT - CAST ( - 47 AS INTEGER ) * 9
----
423

query I rowsort
SELECT ALL 37 - - + 7 AS col2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT ALL - 86 * + + CAST( - - ( - 13 ) AS SIGNED ) AS col1
----
1118

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL - 86 * + + CAST ( - - ( - 13 ) AS INTEGER ) AS col1
----
1118

query I rowsort
SELECT DISTINCT - + 47 AS col1
----
-47

query I rowsort
SELECT ALL - 54 + - 89 AS col0
----
-143

query I rowsort
SELECT ALL 74 + + 97
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT CAST( NULL AS SIGNED ) / - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8364
SELECT CAST ( NULL AS INTEGER ) / - 16 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - + 49 )
----
49

query I rowsort
SELECT + 39 * 3 AS col2
----
117

query I rowsort
SELECT - 72 + 99
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT + COUNT( * ) + - - 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-8368
SELECT + COUNT ( * ) + - - 57 AS col0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8369
SELECT + 67 * - COUNT( * ) DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-8369
SELECT + 67 * - COUNT ( * ) / + 85
----
0

query I rowsort
SELECT + 6 * 93
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT DISTINCT COUNT( 89 )
----
1

skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT COUNT ( 89 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT DISTINCT - 57 - + COUNT( * ) * COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT - 57 - + COUNT ( * ) * COUNT ( * ) AS col2
----
-58

query I rowsort
SELECT DISTINCT - 48 * - ( 22 )
----
1056

query I rowsort
SELECT - 16 * 41 AS col1
----
-656

query I rowsort
SELECT 9 * 54 AS col0
----
486

query I rowsort
SELECT ALL - 67 + 84 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8377
SELECT - - SUM( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8377
SELECT - - SUM ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT ALL MAX( DISTINCT + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL MAX ( DISTINCT + 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - MIN( + 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8379
SELECT - MIN ( + 45 ) AS col1
----
-45

query I rowsort
SELECT ALL 42 + - 35
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT - SUM( ALL + 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT - SUM ( ALL + 38 )
----
-38

query I rowsort
SELECT ALL + 38 + 88 AS col2
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT - AVG ( CAST( NULL AS SIGNED ) ) + + 67 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT - AVG ( CAST ( NULL AS INTEGER ) ) + + 67 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8384
SELECT ALL 72 DIV - COUNT( * ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL 72 / - COUNT ( * ) col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT + - COUNT( * ) * 20
----
-20

skipif mysql # not compatible
query I rowsort label-8385
SELECT + - COUNT ( * ) * 20
----
-20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8386
SELECT + - 45, + 61 * CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-8386
SELECT + - 45, + 61 * CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL + COUNT( DISTINCT 32 )
----
1

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL + COUNT ( DISTINCT 32 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL + - MAX( ALL 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + - MAX ( ALL 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT + COUNT( * ) + 23 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT + COUNT ( * ) + 23 AS col1
----
24

query I rowsort
SELECT ALL 39 + + 76 AS col0
----
115

query I rowsort
SELECT - NULLIF ( + - 93, + + 96 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + COUNT( * ) - - 96
----
97

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + COUNT ( * ) - - 96
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8393
SELECT + 88 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-8393
SELECT + 88 / 91
----
0

query I rowsort
SELECT NULLIF ( + 82, + 43 )
----
82

query II rowsort
SELECT ALL 8 AS col2, 1 AS col0
----
8
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8396
SELECT 73 DIV - 5
----
-14

skipif mysql # not compatible
query I rowsort label-8396
SELECT 73 / - 5
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8397
SELECT + COUNT( * ) col0, - 72 AS col0
----
1
-72

skipif mysql # not compatible
query II rowsort label-8397
SELECT + COUNT ( * ) col0, - 72 AS col0
----
1
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT ALL - CAST( NULL AS SIGNED ) * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - CAST ( NULL AS INTEGER ) * + 74
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT - 67 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8399
SELECT - 67 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 84 + + + 36 + - 39
----
-87

query I rowsort
SELECT + 77 * - 32 AS col2
----
-2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8402
SELECT COUNT( * ) DIV + 1
----
1

skipif mysql # not compatible
query I rowsort label-8402
SELECT COUNT ( * ) / + 1
----
1

query I rowsort
SELECT DISTINCT - 90 col1
----
-90

query I rowsort
SELECT DISTINCT 62 * + 14 AS col0
----
868

query I rowsort
SELECT DISTINCT - 71 * + + 23
----
-1633

query I rowsort
SELECT - + ( - 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT DISTINCT - ( - ( - - ( CAST( NULL AS SIGNED ) ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT - ( - ( - - ( CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + + 78 ) col0
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8409
SELECT 69 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8409
SELECT 69 * + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT - 19 - - COUNT( * ) * 79 AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8410
SELECT - 19 - - COUNT ( * ) * 79 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL 21 * COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL 21 * COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + MIN( + 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8412
SELECT + MIN ( + 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT MIN( - 5 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8413
SELECT MIN ( - 5 ) AS col1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8414
SELECT ALL ( + 49 ) * + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL ( + 49 ) * + COUNT ( * ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT DISTINCT MAX( ALL + - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT MAX ( ALL + - 58 ) AS col2
----
-58

query I rowsort
SELECT ALL + 87 - - 34
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-8417
SELECT ALL 92 AS col2, COUNT( * )
----
92
1

skipif mysql # not compatible
query II rowsort label-8417
SELECT ALL 92 AS col2, COUNT ( * )
----
92
1

query II rowsort
SELECT + 44, 15 AS col2
----
44
15

query I rowsort
SELECT ALL + 89 * + 6 AS col0
----
534

query I rowsort
SELECT + ( + 44 )
----
44

query II rowsort
SELECT ALL + 60 AS col0, ( 94 ) AS col1
----
60
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT - COUNT( * ) - - 33
----
32

skipif mysql # not compatible
query I rowsort label-8422
SELECT - COUNT ( * ) - - 33
----
32

query II rowsort
SELECT 21 + - 42 AS col2, + 94
----
-21
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL - COUNT( DISTINCT ( 63 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL - COUNT ( DISTINCT ( 63 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8425
SELECT ALL MIN( - - 63 ) AS col1, + 98
----
63
98

skipif mysql # not compatible
query II rowsort label-8425
SELECT ALL MIN ( - - 63 ) AS col1, + 98
----
63
98

query I rowsort
SELECT 0 + - - 21
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL + - 42 + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL + - 42 + + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8428
SELECT - - CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8428
SELECT - - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT + 67 - 63
----
4

query I rowsort
SELECT ALL 14 * - 61 AS col0
----
-854

query I rowsort
SELECT + 33 + + + 65
----
98

query I rowsort
SELECT DISTINCT ( + - 98 )
----
-98

query I rowsort
SELECT DISTINCT ( + 97 ) AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT ALL CAST( - - 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL CAST ( - - 57 AS INTEGER )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT CAST( 15 AS SIGNED ) col0
----
15

skipif mysql # not compatible
query I rowsort label-8435
SELECT CAST ( 15 AS INTEGER ) col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT CAST( + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-8436
SELECT CAST ( + 67 AS INTEGER )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8437
SELECT + 18 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-8437
SELECT + 18 / - 49
----
0

query I rowsort
SELECT + + 92 * - 54
----
-4968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT + MAX( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT + MAX ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT + COUNT( DISTINCT + 35 )
----
1

skipif mysql # not compatible
query I rowsort label-8440
SELECT + COUNT ( DISTINCT + 35 )
----
1

query I rowsort
SELECT DISTINCT + 67 * + 89
----
5963

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ( + 4 ) * + COALESCE ( - ( - - ( COUNT( * ) ) ), - + 68, - + 84 * + + 74 + 65 )
----
-4

skipif mysql # not compatible
query I rowsort label-8442
SELECT ( + 4 ) * + COALESCE ( - ( - - ( COUNT ( * ) ) ), - + 68, - + 84 * + + 74 + 65 )
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8443
SELECT ALL - 90, - MIN( + CAST( NULL AS SIGNED ) ) AS col1
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-8443
SELECT ALL - 90, - MIN ( + CAST ( NULL AS INTEGER ) ) AS col1
----
-90
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8444
SELECT CAST( COUNT( * ) AS SIGNED ) * - - 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8444
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - - 38 AS col2
----
38

query I rowsort
SELECT ALL 62 * 27
----
1674

query I rowsort
SELECT ALL - 45 + + 34 * - 11
----
-419

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT + NULLIF ( + 43, COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-8447
SELECT + NULLIF ( + 43, COUNT ( * ) )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8448
SELECT ALL - 2 DIV 9 + - + SUM( ALL + 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - 2 / 9 + - + SUM ( ALL + 38 ) AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8449
SELECT + CAST( NULL AS SIGNED ) * + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT + CAST ( NULL AS INTEGER ) * + 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT + 21 DIV - COUNT( ALL 68 )
----
-21

skipif mysql # not compatible
query I rowsort label-8450
SELECT + 21 / - COUNT ( ALL 68 )
----
-21

query I rowsort
SELECT DISTINCT 6 * 51 AS col0
----
306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT + CAST( + 50 AS SIGNED ) + ( CAST( - 95 AS SIGNED ) ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-8452
SELECT + CAST ( + 50 AS INTEGER ) + ( CAST ( - 95 AS INTEGER ) ) AS col0
----
-45

query I rowsort
SELECT + 77 - - - 32
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT + COUNT( * ) * - 72 - 52
----
-124

skipif mysql # not compatible
query I rowsort label-8454
SELECT + COUNT ( * ) * - 72 - 52
----
-124

query I rowsort
SELECT - ( 2 )
----
-2

query I rowsort
SELECT DISTINCT ( + ( 29 ) ) AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8457
SELECT ALL CAST( + + COUNT( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL CAST ( + + COUNT ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
0

query I rowsort
SELECT DISTINCT - ( 41 ) * + 9 AS col2
----
-369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT DISTINCT 38 + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT 38 + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT - COUNT( + 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT - COUNT ( + 75 )
----
-1

query I rowsort
SELECT DISTINCT + 14 - 87
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT DISTINCT + COUNT( * ) * + + 88
----
88

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT + COUNT ( * ) * + + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT - MIN( + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT - MIN ( + 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT 26 * + COUNT( * ) * + - 69
----
-1794

skipif mysql # not compatible
query I rowsort label-8464
SELECT 26 * + COUNT ( * ) * + - 69
----
-1794

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT DISTINCT + ( + - 77 ) + COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT + ( + - 77 ) + COUNT ( * ) AS col0
----
-76

query I rowsort
SELECT DISTINCT 97 - + 65 * - 79
----
5232

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8467
SELECT CAST( NULL AS DECIMAL ) / + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT CAST ( NULL AS REAL ) / + + 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8468
SELECT ALL COUNT( * ) DIV - 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8468
SELECT ALL COUNT ( * ) / - 27 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL + COUNT( * ) + - 11
----
-10

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL + COUNT ( * ) + - 11
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ( - MAX( ALL 42 ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8470
SELECT ( - MAX ( ALL 42 ) ) AS col1
----
-42

query I rowsort
SELECT ALL + ( + + 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + COUNT( - 89 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8472
SELECT + COUNT ( - 89 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT + 84 * + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-8473
SELECT + 84 * + COUNT ( * )
----
84

query I rowsort
SELECT - + 75 col2
----
-75

query I rowsort
SELECT - 41 - + + 14 + + 93 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL - 91 * - - COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL - 91 * - - COUNT ( * ) AS col1
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8477
SELECT + 54 DIV - - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8477
SELECT + 54 / - - 55 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8478
SELECT 7 * COUNT( * ), 23 AS col0
----
7
23

skipif mysql # not compatible
query II rowsort label-8478
SELECT 7 * COUNT ( * ), 23 AS col0
----
7
23

query I rowsort
SELECT 42 + - 89 + - + 53
----
-100

query I rowsort
SELECT ALL - 69 * + 70
----
-4830

query I rowsort
SELECT DISTINCT - ( - + 53 )
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8482
SELECT - 40 * - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT - 40 * - - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - + 7 AS col1
----
-7

query I rowsort
SELECT + 54 + - 69 AS col2
----
-15

query I rowsort
SELECT DISTINCT - - 44 * + - 21 - - ( - 88 )
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL + + 60 * + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + + 60 * + COUNT ( * )
----
60

query I rowsort
SELECT + + 70 + 41
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT - MAX( ALL 83 ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-8489
SELECT - MAX ( ALL 83 ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT CAST( + - 42 AS SIGNED ) col1
----
-42

skipif mysql # not compatible
query I rowsort label-8490
SELECT CAST ( + - 42 AS INTEGER ) col1
----
-42

query I rowsort
SELECT + + 35 * 89 + - 25 AS col1
----
3090

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT + - 24 * AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT + - 24 * AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 60 + + 19 AS col1
----
79

query I rowsort
SELECT DISTINCT - 8 col2
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT DISTINCT + COUNT( * ) + + ( - 91 ) DIV - 90 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT + COUNT ( * ) + + ( - 91 ) / - 90 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT - 68 + MIN( DISTINCT + 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8496
SELECT - 68 + MIN ( DISTINCT + 67 ) AS col1
----
-1

query I rowsort
SELECT - ( + + 5 ) AS col0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT DISTINCT + - 31 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT + - 31 / - 92
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT + 15 DIV - 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8499
SELECT + 15 / - 54 AS col1
----
0

query I rowsort
SELECT + - 40 * - - 70
----
-2800

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8501
SELECT + 37 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8501
SELECT + 37 * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT + SUM( DISTINCT + 45 ) + + 33 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT + SUM ( DISTINCT + 45 ) + + 33 AS col0
----
78

query I rowsort
SELECT DISTINCT + ( 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - COUNT( * ) * + - 29 col1
----
29

skipif mysql # not compatible
query I rowsort label-8504
SELECT - COUNT ( * ) * + - 29 col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT 66 * + COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT 66 * + COUNT ( * ) col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - COUNT( * ) * + - 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8506
SELECT - COUNT ( * ) * + - 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT DISTINCT 59 + + COUNT( * ) + - 4 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT 59 + + COUNT ( * ) + - 4 AS col1
----
56

query I rowsort
SELECT DISTINCT + + 65 + 43 + + 87 + 71
----
266

query I rowsort
SELECT + 86 * 20
----
1720

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT MIN( ( - + 29 ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-8510
SELECT MIN ( ( - + 29 ) ) AS col1
----
-29

query I rowsort
SELECT 85 - - + 6
----
91

query I rowsort
SELECT - + ( + - 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8513
SELECT 82, SUM( - + 43 ) AS col2
----
82
-43

skipif mysql # not compatible
query II rowsort label-8513
SELECT 82, SUM ( - + 43 ) AS col2
----
82
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT + SUM( DISTINCT - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8514
SELECT + SUM ( DISTINCT - 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT COUNT( * ) * 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8515
SELECT COUNT ( * ) * 54 AS col1
----
54

query I rowsort
SELECT ALL ( - 89 ) AS col1
----
-89

query I rowsort
SELECT ALL 37 * 83 AS col2
----
3071

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT - 54 * MIN( ALL - 69 ) AS col2
----
3726

skipif mysql # not compatible
query I rowsort label-8518
SELECT - 54 * MIN ( ALL - 69 ) AS col2
----
3726

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - 77 * + COUNT( + 45 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-8519
SELECT - 77 * + COUNT ( + 45 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT MIN( ALL 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-8520
SELECT MIN ( ALL 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL MIN( DISTINCT + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL MIN ( DISTINCT + 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT 38 * - 28 * + COUNT( * ) + + - 53 AS col2
----
-1117

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT 38 * - 28 * + COUNT ( * ) + + - 53 AS col2
----
-1117

query I rowsort
SELECT DISTINCT - + 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT 95 + + ( COUNT( * ) ) + COALESCE ( COUNT( * ), ( - + MAX( DISTINCT + 73 ) ) )
----
97

skipif mysql # not compatible
query I rowsort label-8524
SELECT 95 + + ( COUNT ( * ) ) + COALESCE ( COUNT ( * ), ( - + MAX ( DISTINCT + 73 ) ) )
----
97

query I rowsort
SELECT DISTINCT + 30 * 34 AS col1
----
1020

query I rowsort
SELECT - 10 - + 61 AS col0
----
-71

query I rowsort
SELECT DISTINCT - ( - 12 )
----
12

query II rowsort
SELECT DISTINCT 95 AS col1, 29
----
95
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL + ( - - SUM( ALL - 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL + ( - - SUM ( ALL - 17 ) )
----
-17

query I rowsort
SELECT ALL + - 42 * + ( + - 84 ) col2
----
3528

query I rowsort
SELECT + ( 7 ) col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8532
SELECT + 96 DIV + 44 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8532
SELECT + 96 / + 44 AS col0
----
2

query I rowsort
SELECT + ( + 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT + - COUNT( * ) DIV + COUNT( * ) + - 34 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8534
SELECT + - COUNT ( * ) / + COUNT ( * ) + - 34 AS col0
----
-35

query I rowsort
SELECT ALL - ( - 90 )
----
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8536
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8536
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL + ( + COUNT( * ) ) + - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL + ( + COUNT ( * ) ) + - + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT + 14 - - COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8538
SELECT + 14 - - COUNT ( * ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ( - COUNT( DISTINCT 76 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8539
SELECT ( - COUNT ( DISTINCT 76 ) ) AS col1
----
-1

query I rowsort
SELECT ALL + + 35 * + + 51 col0
----
1785

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8541
SELECT - 12 * - CAST( NULL AS SIGNED ), 37 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-8541
SELECT - 12 * - CAST ( NULL AS INTEGER ), 37 AS col2
----
NULL
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8543
SELECT 84 AS col2, - COUNT( * )
----
84
-1

skipif mysql # not compatible
query II rowsort label-8543
SELECT 84 AS col2, - COUNT ( * )
----
84
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8544
SELECT - COALESCE ( 5, 72 ) AS col0, + CAST( NULL AS SIGNED )
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-8544
SELECT - COALESCE ( 5, 72 ) AS col0, + CAST ( NULL AS INTEGER )
----
-5
NULL

query I rowsort
SELECT NULLIF ( - - 4, - 80 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT MIN( DISTINCT + - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-8546
SELECT MIN ( DISTINCT + - 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT DISTINCT - 33 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT - 33 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT SUM( 79 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT SUM ( 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8549
SELECT + COUNT( * ) DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-8549
SELECT + COUNT ( * ) / 94
----
0

query I rowsort
SELECT DISTINCT 17 * 85
----
1445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT ALL - ( - CAST( - 60 AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - ( - CAST ( - 60 AS INTEGER ) )
----
-60

query I rowsort
SELECT 56 * - + 23 + - + 0 * - 1
----
-1288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT - + MAX( ALL - 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8554
SELECT - + MAX ( ALL - 50 ) AS col0
----
50

query I rowsort
SELECT 3 + 49 + - 38
----
14

query I rowsort
SELECT ALL 54 - - 68
----
122

query I rowsort
SELECT DISTINCT - ( - 94 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT - CAST( NULL AS SIGNED ) * 44 - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT - CAST ( NULL AS INTEGER ) * 44 - + 53
----
NULL

query I rowsort
SELECT - - ( + - 34 ) AS col1
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT ALL + 38 DIV + 16 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + 38 / + 16 AS col1
----
2

query I rowsort
SELECT 72 * 72 AS col2
----
5184

query I rowsort
SELECT - - ( + 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT ALL + CAST( + 18 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8563
SELECT ALL + CAST ( + 18 AS INTEGER ) AS col1
----
18

query I rowsort
SELECT DISTINCT 2 - - 21 AS col0
----
23

query I rowsort
SELECT ALL + NULLIF ( + - 40, + 19 ) AS col0
----
-40

query I rowsort
SELECT + ( + 43 )
----
43

query I rowsort
SELECT DISTINCT + 9 * + 1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8568
SELECT + + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8568
SELECT + + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 69 col2
----
69

query I rowsort
SELECT ALL - ( - 13 )
----
13

query I rowsort
SELECT DISTINCT ( 85 )
----
85

query I rowsort
SELECT DISTINCT + - 28 col1
----
-28

query I rowsort
SELECT ALL - 10 * + 37 col1
----
-370

query I rowsort
SELECT - NULLIF ( + 79, - 66 )
----
-79

query I rowsort
SELECT ALL ( - 6 ) AS col1
----
-6

query I rowsort
SELECT - - 53 col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT COUNT( * ) + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-8577
SELECT COUNT ( * ) + - 77
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL + 93 + SUM( + 29 ) * + 85 + 42
----
2600

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL + 93 + SUM ( + 29 ) * + 85 + 42
----
2600

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8579
SELECT ALL + + CAST( NULL AS DECIMAL ) - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + + CAST ( NULL AS REAL ) - + 56
----
NULL

query I rowsort
SELECT + + 49 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL - COUNT( ALL + 97 ) * - ( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - COUNT ( ALL + 97 ) * - ( - 40 )
----
-40

query II rowsort
SELECT DISTINCT + ( - 74 ) AS col0, 91
----
-74
91

query I rowsort
SELECT DISTINCT + + 79 AS col1
----
79

query I rowsort
SELECT - ( 74 )
----
-74

query I rowsort
SELECT ALL + ( + 93 )
----
93

query I rowsort
SELECT ALL + + ( + 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT ( COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT ( COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT - COUNT( DISTINCT - + 95 ) + + ( 99 )
----
98

skipif mysql # not compatible
query I rowsort label-8588
SELECT - COUNT ( DISTINCT - + 95 ) + + ( 99 )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8589
SELECT + CAST( SUM( ALL + 35 ) AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-8589
SELECT + CAST ( SUM ( ALL + 35 ) AS INTEGER )
----
35

query I rowsort
SELECT ALL 52 * - 35
----
-1820

query I rowsort
SELECT ALL - 14 col2
----
-14

query I rowsort
SELECT 73 * 69 AS col2
----
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT 51 + + COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-8593
SELECT 51 + + COUNT ( * ) AS col0
----
52

query I rowsort
SELECT ALL 4 + - 80
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT - 32 + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT - 32 + COUNT ( * )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT MAX( + ( - 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-8596
SELECT MAX ( + ( - 31 ) )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8597
SELECT + 21 DIV + COUNT( * ) + NULLIF ( - 44, 96 )
----
-23

skipif mysql # not compatible
query I rowsort label-8597
SELECT + 21 / + COUNT ( * ) + NULLIF ( - 44, 96 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + COUNT( * ) * NULLIF ( 44, + 0 + 63 )
----
44

skipif mysql # not compatible
query I rowsort label-8598
SELECT + COUNT ( * ) * NULLIF ( 44, + 0 + 63 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL SUM( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL SUM ( 14 )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT - CAST( NULL AS SIGNED ) + 51 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8600
SELECT - CAST ( NULL AS INTEGER ) + 51 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8601
SELECT - - 4 DIV + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8601
SELECT - - 4 / + COUNT ( * )
----
4

query I rowsort
SELECT ( ( 73 ) ) AS col0
----
73

query I rowsort
SELECT ALL + ( - 16 ) col1
----
-16

query I rowsort
SELECT - 94 * + 80 AS col1
----
-7520

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT + COUNT( DISTINCT + 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8605
SELECT + COUNT ( DISTINCT + 47 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8606
SELECT - COUNT( * ) + - + COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ) )
----
-2

skipif mysql # not compatible
query I rowsort label-8606
SELECT - COUNT ( * ) + - + COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) )
----
-2

query I rowsort
SELECT ALL 59 * 36
----
2124

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL - + COUNT( * ) + + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - + COUNT ( * ) + + - COUNT ( * ) AS col0
----
-2

query I rowsort
SELECT - 74 * - - 72
----
-5328

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT ALL MIN( DISTINCT 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL MIN ( DISTINCT 83 ) AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT ALL 29 + 63 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL 29 + 63 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 1 AS col0
----
-1

query I rowsort
SELECT + ( + 62 ) + + + ( COALESCE ( 62, 8 ) ) - - 74 * - 26 AS col1
----
-1800

query I rowsort
SELECT + ( + 8 ) AS col0
----
8

query I rowsort
SELECT DISTINCT + - 33 AS col0
----
-33

query I rowsort
SELECT + - 94 + - 33 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT - - COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8617
SELECT - - COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8618
SELECT - COUNT( * ) * - + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8618
SELECT - COUNT ( * ) * - + 39 AS col0
----
39

query II rowsort
SELECT ALL ( - 53 ) AS col0, - 93
----
-53
-93

query I rowsort
SELECT + 88 * 87
----
7656

query I rowsort
SELECT + ( 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT + 93 - + SUM( ALL + 28 )
----
65

skipif mysql # not compatible
query I rowsort label-8622
SELECT + 93 - + SUM ( ALL + 28 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT ALL - ( COUNT( * ) ) * - 89
----
89

skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL - ( COUNT ( * ) ) * - 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - MAX( DISTINCT - 43 ) + - COUNT( * ) * ( + 12 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-8624
SELECT - MAX ( DISTINCT - 43 ) + - COUNT ( * ) * ( + 12 ) AS col2
----
31

query I rowsort
SELECT - - ( 30 )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL - CAST( + 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL - CAST ( + 76 AS INTEGER ) AS col2
----
-76

query I rowsort
SELECT ALL - 22 col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8628
SELECT - COUNT( * ), + 73 * - - COUNT( * ) col0
----
-1
73

skipif mysql # not compatible
query II rowsort label-8628
SELECT - COUNT ( * ), + 73 * - - COUNT ( * ) col0
----
-1
73

query I rowsort
SELECT DISTINCT ( 91 ) col1
----
91

query I rowsort
SELECT + 53 * 36 AS col2
----
1908

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8631
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 33
----
NULL

query I rowsort
SELECT - 78 * - 64
----
4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8633
SELECT ALL - COUNT( * ) * + 70 DIV + - 42
----
1

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL - COUNT ( * ) * + 70 / + - 42
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL + COUNT( + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + COUNT ( + 42 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT CAST( - 9 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT CAST ( - 9 AS INTEGER ) AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT ALL CAST( + 46 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL CAST ( + 46 AS INTEGER ) AS col1
----
46

query I rowsort
SELECT - ( + ( COALESCE ( + 55, 49 ) ) ) AS col1
----
-55

query I rowsort
SELECT DISTINCT 35 * + + 42 AS col2
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT 80 - - COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-8639
SELECT 80 - - COUNT ( * ) AS col1
----
81

query I rowsort
SELECT ALL - 74 + + - 64
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT CAST( 71 AS SIGNED ) + 97
----
168

skipif mysql # not compatible
query I rowsort label-8641
SELECT CAST ( 71 AS INTEGER ) + 97
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - + COUNT( * ) * + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - + COUNT ( * ) * + + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT - - SUM( ALL + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT - - SUM ( ALL + 14 )
----
14

query II rowsort
SELECT DISTINCT - 52, + 9 AS col0
----
-52
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8645
SELECT ALL - NULLIF ( COUNT( * ), + - CAST( NULL AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL - NULLIF ( COUNT ( * ), + - CAST ( NULL AS REAL ) )
----
-1

query I rowsort
SELECT DISTINCT - + 61 col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT - COALESCE ( + + COUNT( * ), - - ( 89 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8647
SELECT - COALESCE ( + + COUNT ( * ), - - ( 89 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + 81 - MIN( - - ( 5 ) )
----
76

skipif mysql # not compatible
query I rowsort label-8648
SELECT + 81 - MIN ( - - ( 5 ) )
----
76

query I rowsort
SELECT ALL + ( - + 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL MIN( ALL + 21 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL MIN ( ALL + 21 ) AS col2
----
21

query I rowsort
SELECT - ( + + 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT DISTINCT + MIN( - + 83 ) col0
----
-83

skipif mysql # not compatible
query I rowsort label-8653
SELECT DISTINCT + MIN ( - + 83 ) col0
----
-83

query II rowsort
SELECT DISTINCT 87 AS col0, + 48
----
87
48

query I rowsort
SELECT ALL + 54 + - ( - - 18 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL + SUM( ALL + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL + SUM ( ALL + 67 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 91 col0
----
91

query I rowsort
SELECT + + 22 AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT ALL - CAST( - 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-8660
SELECT ALL - CAST ( - 53 AS INTEGER )
----
53

query I rowsort
SELECT 32 + - 99 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT ALL - AVG ( DISTINCT + 8 ) + + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT ALL - AVG ( DISTINCT + 8 ) + + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8663
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT - COUNT( * ) AS col1, + 57 AS col2
----
-1
57

skipif mysql # not compatible
query II rowsort label-8664
SELECT - COUNT ( * ) AS col1, + 57 AS col2
----
-1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT + MIN( DISTINCT 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8665
SELECT + MIN ( DISTINCT 41 ) AS col2
----
41

query I rowsort
SELECT + 58 + 42 col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT + 11 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-8667
SELECT + 11 / 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT COUNT( 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8668
SELECT COUNT ( 63 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + COUNT( - 30 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8669
SELECT + COUNT ( - 30 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8670
SELECT + SUM( ( - 44 ) ), - COUNT( * ) col0
----
-44
-1

skipif mysql # not compatible
query II rowsort label-8670
SELECT + SUM ( ( - 44 ) ), - COUNT ( * ) col0
----
-44
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - 17 + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-8671
SELECT - 17 + COUNT ( * )
----
-16

query I rowsort
SELECT + ( 88 )
----
88

query I rowsort
SELECT 80 + + 8
----
88

query I rowsort
SELECT DISTINCT + 16 + + 23
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8675
SELECT + CASE 61 WHEN - 87 - + COUNT( * ) THEN NULL WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT + CASE 61 WHEN - 87 - + COUNT ( * ) THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL - + ( 59 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT ALL + + CAST( + - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL + + CAST ( + - 91 AS INTEGER )
----
-91

query I rowsort
SELECT ALL 12 + + - 85 AS col1
----
-73

query I rowsort
SELECT + 94 + + 67 + 56 AS col2
----
217

query II rowsort
SELECT DISTINCT 74 AS col0, 3 AS col2
----
74
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT ALL 76 + + - COUNT( * ) * - + 35 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL 76 + + - COUNT ( * ) * - + 35 AS col0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL NULLIF ( + 39, - + 58 ) + + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL NULLIF ( + 39, - + 58 ) + + + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT NULLIF ( + COUNT( * ), COUNT( * ) * 67 + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8683
SELECT NULLIF ( + COUNT ( * ), COUNT ( * ) * 67 + - COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT ALL CAST( 0 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL CAST ( 0 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8685
SELECT DISTINCT CAST( NULL AS SIGNED ), MAX( 16 ) col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-8685
SELECT DISTINCT CAST ( NULL AS INTEGER ), MAX ( 16 ) col2
----
NULL
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8686
SELECT + 37 AS col2, + COUNT( * ) col1
----
37
1

skipif mysql # not compatible
query II rowsort label-8686
SELECT + 37 AS col2, + COUNT ( * ) col1
----
37
1

query I rowsort
SELECT 24 * + 39 AS col1
----
936

query I rowsort
SELECT ALL + 80 + + + 99 * + 18 AS col2
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT - + MIN( + 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT - + MIN ( + 93 )
----
-93

query I rowsort
SELECT DISTINCT - 40 col0
----
-40

query II rowsort
SELECT 15 AS col2, + 15
----
15
15

query I rowsort
SELECT DISTINCT - 58 + + 71
----
13

query I rowsort
SELECT - + ( - 69 ) AS col2
----
69

query I rowsort
SELECT - - 31 + - - ( 70 ) col1
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT 5 * + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT 5 * + COUNT ( * )
----
5

query I rowsort
SELECT ALL 40 * 8 * ( 23 ) AS col0
----
7360

query I rowsort
SELECT DISTINCT 45 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + ( + COUNT( * ) ) * - + 76 + - COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8698
SELECT + ( + COUNT ( * ) ) * - + 76 + - COUNT ( * ) AS col2
----
-77

query I rowsort
SELECT + 70 + - 88 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8700
SELECT 53 DIV + 15
----
3

skipif mysql # not compatible
query I rowsort label-8700
SELECT 53 / + 15
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8701
SELECT - 91 DIV + MAX( - 37 ) + + - 25
----
-23

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 91 / + MAX ( - 37 ) + + - 25
----
-23

query I rowsort
SELECT ALL + 88 - - ( + 80 ) AS col1
----
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL CAST( - 62 AS SIGNED ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL CAST ( - 62 AS INTEGER ) AS col1
----
-62

query I rowsort
SELECT 22 * 92
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-8705
SELECT COUNT( * ) * + COUNT( * ) * + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8705
SELECT COUNT ( * ) * + COUNT ( * ) * + ( COUNT ( * ) )
----
1

query I rowsort
SELECT - + 71 * - 12
----
852

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8707
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - + 21 - 79
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT ALL + 63 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + 63 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT - MAX( DISTINCT + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-8710
SELECT - MAX ( DISTINCT + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8711
SELECT DISTINCT + 75, + COUNT( * ) AS col0
----
75
1

skipif mysql # not compatible
query II rowsort label-8711
SELECT DISTINCT + 75, + COUNT ( * ) AS col0
----
75
1

query I rowsort
SELECT ALL ( + 37 ) * - ( + 83 ) AS col0
----
-3071

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT - 81 * + MIN( DISTINCT + 2 ) * + COUNT( * ) col0
----
-162

skipif mysql # not compatible
query I rowsort label-8713
SELECT - 81 * + MIN ( DISTINCT + 2 ) * + COUNT ( * ) col0
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8714
SELECT DISTINCT + COUNT( * ) * + 76 DIV - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT + COUNT ( * ) * + 76 / - COUNT ( * )
----
-76

query I rowsort
SELECT - 87 * 0
----
0

query I rowsort
SELECT 46 + + 21 AS col1
----
67

query I rowsort
SELECT ALL 58 - + 54
----
4

query I rowsort
SELECT 42 * 11 AS col1
----
462

query I rowsort
SELECT ALL - - 61 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT DISTINCT - SUM( + ( 50 ) )
----
-50

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT - SUM ( + ( 50 ) )
----
-50

query I rowsort
SELECT + - 84 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT ALL CAST( NULL AS SIGNED ) - - ( + - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL CAST ( NULL AS INTEGER ) - - ( + - 87 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8723
SELECT COUNT( * ) AS col2, NULLIF ( - 2, + 49 * CAST( NULL AS DECIMAL ) )
----
1
-2

skipif mysql # not compatible
query II rowsort label-8723
SELECT COUNT ( * ) AS col2, NULLIF ( - 2, + 49 * CAST ( NULL AS REAL ) )
----
1
-2

query II rowsort
SELECT 67 AS col0, - 92 AS col2
----
67
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8725
SELECT + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - MIN( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-8726
SELECT - MIN ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT + ( - - COUNT( + 28 ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8727
SELECT + ( - - COUNT ( + 28 ) ) * - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8728
SELECT DISTINCT + COUNT( * ) + CAST( + 1 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT + COUNT ( * ) + CAST ( + 1 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL - 26 + + MIN( - + 90 ) col1
----
-116

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - 26 + + MIN ( - + 90 ) col1
----
-116

query I rowsort
SELECT + 40 col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT 35 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT 35 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8732
SELECT COUNT( * ) col2, CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8732
SELECT COUNT ( * ) col2, CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT ALL - + ( - 29 ) AS col0
----
29

query I rowsort
SELECT ALL - 66 + - 61
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT SUM( DISTINCT - + 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-8735
SELECT SUM ( DISTINCT - + 11 ) AS col2
----
-11

query I rowsort
SELECT - - 4 * + 73
----
292

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT SUM( DISTINCT - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-8737
SELECT SUM ( DISTINCT - 87 )
----
-87

query I rowsort
SELECT NULLIF ( 26, + 14 + - + 10 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT COUNT( ALL - - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8739
SELECT COUNT ( ALL - - 55 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + ( - SUM( DISTINCT 37 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-8740
SELECT + ( - SUM ( DISTINCT 37 ) )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8741
SELECT ALL + SUM( + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL + SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8742
SELECT CAST( NULL AS SIGNED ) AS col1, + 79
----
NULL
79

skipif mysql # not compatible
query II rowsort label-8742
SELECT CAST ( NULL AS INTEGER ) AS col1, + 79
----
NULL
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8743
SELECT ALL - - CAST( NULL AS SIGNED ) + - - COUNT( * ) - + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) - + - 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT COUNT( * ) * 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8744
SELECT COUNT ( * ) * 2 AS col0
----
2

query I rowsort
SELECT 89 + + 34 AS col0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT DISTINCT MAX( DISTINCT + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT MAX ( DISTINCT + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT - COUNT( + + 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-8747
SELECT - COUNT ( + + 82 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL 17 * COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL 17 * COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8749
SELECT + MAX( ALL 79 ) AS col1, + 8
----
79
8

skipif mysql # not compatible
query II rowsort label-8749
SELECT + MAX ( ALL 79 ) AS col1, + 8
----
79
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT + 11 + + + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8750
SELECT + 11 + + + COUNT ( * ) AS col2
----
12

query I rowsort
SELECT + 12 - - 52 AS col1
----
64

query I rowsort
SELECT DISTINCT 21 + + 27 AS col2
----
48

query I rowsort
SELECT ALL - + 10 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL + COUNT( * ) * + + COALESCE ( - 83, + 77 )
----
-83

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL + COUNT ( * ) * + + COALESCE ( - 83, + 77 )
----
-83

query II rowsort
SELECT - 48 col0, - 30 AS col0
----
-48
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT ALL + 99 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL + 99 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL COUNT( * ) + 69
----
70

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL COUNT ( * ) + 69
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL - 54 + - COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL - 54 + - COUNT ( * ) AS col0
----
-55

query I rowsort
SELECT ALL + ( 77 ) * 64
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT MIN( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-8760
SELECT MIN ( DISTINCT + 79 )
----
79

query II rowsort
SELECT ALL - + 23, + 90 AS col2
----
-23
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8762
SELECT + 22 + COUNT( * ) AS col0, 16 AS col2
----
23
16

skipif mysql # not compatible
query II rowsort label-8762
SELECT + 22 + COUNT ( * ) AS col0, 16 AS col2
----
23
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT + 86 * + + COUNT( * ) col0
----
86

skipif mysql # not compatible
query I rowsort label-8763
SELECT + 86 * + + COUNT ( * ) col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8764
SELECT ALL ( - CAST( NULL AS SIGNED ) ) - + COUNT( * ) * + ( - 41 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) * + ( - 41 ) AS col0
----
NULL

query I rowsort
SELECT + + 45 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT MIN( + - 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-8766
SELECT MIN ( + - 31 ) AS col2
----
-31

query I rowsort
SELECT ALL ( + 86 )
----
86

query I rowsort
SELECT DISTINCT 62 * + 47
----
2914

query I rowsort
SELECT - 27 + + - 84 AS col1
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL - CASE 76 WHEN - - 98 - + 54 THEN NULL ELSE - CAST( NULL AS SIGNED ) END * + - 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL - CASE 76 WHEN - - 98 - + 54 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END * + - 18 AS col1
----
NULL

query I rowsort
SELECT ALL - 68 * - 2
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8772
SELECT + 28 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8772
SELECT + 28 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT CAST( NULL AS SIGNED ) * - 26 + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT CAST ( NULL AS INTEGER ) * - 26 + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL - MIN( + - 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - MIN ( + - 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT - MIN( - 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT - MIN ( - 22 ) AS col1
----
22

query I rowsort
SELECT 69 + + - 55
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8777
SELECT DISTINCT CAST( NULL AS SIGNED ) / - CASE - 0 WHEN - ( + - 44 ) THEN ( + - 29 ) ELSE NULL END * + COUNT( * ) + + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - CASE - 0 WHEN - ( + - 44 ) THEN ( + - 29 ) ELSE NULL END * + COUNT ( * ) + + - 33
----
NULL

query I rowsort
SELECT - - 97 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT - - CAST( 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-8779
SELECT - - CAST ( 75 AS INTEGER )
----
75

query I rowsort
SELECT - + ( - 31 ) + - 18 AS col1
----
13

query I rowsort
SELECT + 4 * 19 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT CASE + + 92 WHEN + + MAX( DISTINCT - 94 ) THEN + 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT CASE + + 92 WHEN + + MAX ( DISTINCT - 94 ) THEN + 11 END
----
NULL

query I rowsort
SELECT 82 * + 99 + + + 86
----
8204

query I rowsort
SELECT - ( ( - 44 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL + MAX( 22 )
----
22

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL + MAX ( 22 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-8786
SELECT DISTINCT 11 DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT DISTINCT 11 / - 32 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL - SUM( ALL + + 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - SUM ( ALL + + 39 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT + + CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8788
SELECT + + CAST ( - - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT COUNT( * ) * + - 60 * - + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8789
SELECT COUNT ( * ) * + - 60 * - + COUNT ( * )
----
60

query I rowsort
SELECT + + 94 col1
----
94

query I rowsort
SELECT - 65 * 86 AS col1
----
-5590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8792
SELECT - + 89 DIV - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-8792
SELECT - + 89 / - COUNT ( * )
----
89

query I rowsort
SELECT - + 87 + - 27
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT DISTINCT + 77 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + 77 / 98
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8795
SELECT ALL - CAST( NULL AS DECIMAL ) + - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - CAST ( NULL AS REAL ) + - 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT + ( 73 ) * - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-8796
SELECT + ( 73 ) * - COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT + COUNT( * ) * 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-8797
SELECT + COUNT ( * ) * 55 AS col1
----
55

query I rowsort
SELECT ALL 96 * - 69 AS col0
----
-6624

query I rowsort
SELECT + ( 82 ) AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT - 24 * + COUNT( * ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-8800
SELECT - 24 * + COUNT ( * ) col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT + MIN( 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + MIN ( 73 ) AS col1
----
73

query I rowsort
SELECT - 70 + 26 AS col0
----
-44

query I rowsort
SELECT - 56 * - 21 AS col1
----
1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT + 50 DIV - MIN( 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-8804
SELECT + 50 / - MIN ( 36 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT - COUNT( * ) * + 48 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT - COUNT ( * ) * + 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT - + COUNT( ALL + + 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8806
SELECT - + COUNT ( ALL + + 92 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT + 81 + + - COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-8807
SELECT + 81 + + - COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT + COUNT( * ) * + - 53
----
-53

skipif mysql # not compatible
query I rowsort label-8808
SELECT + COUNT ( * ) * + - 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL - MAX( ALL - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL - MAX ( ALL - 73 )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8810
SELECT - 81 * + CAST( - + 80 AS SIGNED )
----
6480

skipif mysql # not compatible
query I rowsort label-8810
SELECT - 81 * + CAST ( - + 80 AS INTEGER )
----
6480

query II rowsort
SELECT 52, + 91 + + 33 * + 15 AS col1
----
52
586

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8812
SELECT + COUNT( * ) DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT + COUNT ( * ) / + 26
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT ALL 1 * 34 DIV + - 76 * 7
----
0

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL 1 * 34 / + - 76 * 7
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT + CAST( - + 3 AS SIGNED ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8814
SELECT + CAST ( - + 3 AS INTEGER ) AS col0
----
-3

query I rowsort
SELECT DISTINCT + + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT COUNT( * ) * + - 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT COUNT ( * ) * + - 35 AS col0
----
-35

query I rowsort
SELECT DISTINCT + 13 + - + 73 col1
----
-60

query I rowsort
SELECT DISTINCT + 95 * - 28
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT COUNT( - + 16 ) + + COUNT( * ) + COUNT( * ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8819
SELECT COUNT ( - + 16 ) + + COUNT ( * ) + COUNT ( * ) + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT COUNT( * ) * - - ( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-8820
SELECT COUNT ( * ) * - - ( - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ALL - COUNT( * ) + + 46 + + SUM( DISTINCT 99 ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-8821
SELECT ALL - COUNT ( * ) + + 46 + + SUM ( DISTINCT 99 ) AS col1
----
144

query I rowsort
SELECT ALL + - 1 + - - 86
----
85

query I rowsort
SELECT - 67 + 7
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT SUM( ALL - ( + 66 ) ) * - - NULLIF ( + + 21, - 34 + COUNT( * ) ) * 6 AS col1
----
-8316

skipif mysql # not compatible
query I rowsort label-8824
SELECT SUM ( ALL - ( + 66 ) ) * - - NULLIF ( + + 21, - 34 + COUNT ( * ) ) * 6 AS col1
----
-8316

query I rowsort
SELECT - - ( - 79 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT CAST( NULL AS SIGNED ) + - + 37 + + + 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT CAST ( NULL AS INTEGER ) + - + 37 + + + 38 AS col0
----
NULL

query I rowsort
SELECT ALL 13 - + - 55
----
68

query I rowsort
SELECT - 66 * - + 64
----
4224

query I rowsort
SELECT + ( - 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL - COUNT( * ) + + 5 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL - COUNT ( * ) + + 5 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL COUNT( * ) * - 16
----
-16

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL COUNT ( * ) * - 16
----
-16

query I rowsort
SELECT CASE WHEN NULL IS NOT NULL THEN - 40 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8833
SELECT - CAST( NULL AS DECIMAL ) * COUNT( * ) / COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT - CAST ( NULL AS REAL ) * COUNT ( * ) / COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT ALL - COUNT( * ) * + - 61
----
61

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - COUNT ( * ) * + - 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT ALL - MIN( - - 31 ) + - 18 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL - MIN ( - - 31 ) + - 18 AS col1
----
-49

query I rowsort
SELECT ( - - 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - - MIN( ALL + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8837
SELECT - - MIN ( ALL + 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT + 10 + + + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8838
SELECT + 10 + + + COUNT ( * ) AS col2
----
11

query I rowsort
SELECT ALL - ( ( + 16 ) )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT COUNT( * ) DIV + MIN( DISTINCT - 92 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT COUNT ( * ) / + MIN ( DISTINCT - 92 ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 66 + + + 72 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8842
SELECT COUNT( * ) + - - 79 AS col1, + ( - + 80 ) AS col0
----
80
-80

skipif mysql # not compatible
query II rowsort label-8842
SELECT COUNT ( * ) + - - 79 AS col1, + ( - + 80 ) AS col0
----
80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT 32 * - SUM( 51 )
----
-1632

skipif mysql # not compatible
query I rowsort label-8843
SELECT 32 * - SUM ( 51 )
----
-1632

query I rowsort
SELECT ALL - 48 * + 62
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL 45 * + MAX( + - 25 )
----
-1125

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL 45 * + MAX ( + - 25 )
----
-1125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8846
SELECT ALL - COUNT( + + CAST( NULL AS SIGNED ) ) AS col0, - COUNT( * ) AS col2
----
0
-1

skipif mysql # not compatible
query II rowsort label-8846
SELECT ALL - COUNT ( + + CAST ( NULL AS INTEGER ) ) AS col0, - COUNT ( * ) AS col2
----
0
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8847
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 68
----
NULL

query I rowsort
SELECT DISTINCT - + 2 AS col0
----
-2

query I rowsort
SELECT - - ( + NULLIF ( 69, + 21 ) ) AS col2
----
69

query I rowsort
SELECT ALL - + 7 + - - 10 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8851
SELECT ALL + 73 + + CAST( - ( + 34 ) AS SIGNED ) + - SUM( ALL + - 71 ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + 73 + + CAST ( - ( + 34 ) AS INTEGER ) + - SUM ( ALL + - 71 ) AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT COUNT( * ) * - 57
----
-57

skipif mysql # not compatible
query I rowsort label-8852
SELECT COUNT ( * ) * - 57
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT + MAX( + - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-8853
SELECT + MAX ( + - 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT 57 * + COUNT( * ) col2
----
57

skipif mysql # not compatible
query I rowsort label-8854
SELECT 57 * + COUNT ( * ) col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL + COUNT( * ) * - 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL + COUNT ( * ) * - 29 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT - + 63 + + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8856
SELECT - + 63 + + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT ( - + 67 ) * + ( 19 ) * + + COUNT( * ) + - ( + ( + + 50 ) )
----
-1323

skipif mysql # not compatible
query I rowsort label-8857
SELECT ( - + 67 ) * + ( 19 ) * + + COUNT ( * ) + - ( + ( + + 50 ) )
----
-1323

query I rowsort
SELECT ALL ( + 90 )
----
90

query I rowsort
SELECT DISTINCT ( + 41 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT - AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT + MIN( + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8861
SELECT + MIN ( + 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + NULLIF ( COUNT( * ), - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-8862
SELECT + NULLIF ( COUNT ( * ), - 87 )
----
1

query I rowsort
SELECT 63 * - + 2 AS col1
----
-126

query I rowsort
SELECT ALL - 87 col2
----
-87

query I rowsort
SELECT ALL 99 * - 86 AS col2
----
-8514

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT - 43, + 31 + COUNT( * ) col2
----
-43
32

skipif mysql # not compatible
query II rowsort label-8866
SELECT - 43, + 31 + COUNT ( * ) col2
----
-43
32

query I rowsort
SELECT ALL - + 66 AS col2
----
-66

query I rowsort
SELECT - + 90 - + 26
----
-116

query I rowsort
SELECT + - ( + - 91 ) + + + 4 AS col2
----
95

query I rowsort
SELECT DISTINCT + + 99 col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL - ( + COUNT( * ) ) * + 65 + - COUNT( - 31 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - ( + COUNT ( * ) ) * + 65 + - COUNT ( - 31 ) AS col0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT - + 18 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT - + 18 / - 99
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT - - AVG ( + + CAST( NULL AS SIGNED ) ) / - 20 / + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT - - AVG ( + + CAST ( NULL AS INTEGER ) ) / - 20 / + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT CAST( + + 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-8874
SELECT CAST ( + + 40 AS INTEGER )
----
40

query I rowsort
SELECT DISTINCT - ( - 67 ) + - 10
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8876
SELECT ALL - ( COUNT( * ) ) col2, - 25
----
-1
-25

skipif mysql # not compatible
query II rowsort label-8876
SELECT ALL - ( COUNT ( * ) ) col2, - 25
----
-1
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-8877
SELECT ALL + 4, - MIN( + - 59 ) AS col0
----
4
59

skipif mysql # not compatible
query II rowsort label-8877
SELECT ALL + 4, - MIN ( + - 59 ) AS col0
----
4
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT ALL + MIN( ALL - 85 ) + 52 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + MIN ( ALL - 85 ) + 52 AS col1
----
-33

query I rowsort
SELECT DISTINCT - NULLIF ( + 63, + - ( + + 33 ) ) AS col2
----
-63

query I rowsort
SELECT - + 6 AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8881
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) * - 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 2 AS col0
----
NULL

query I rowsort
SELECT + - 94 * + + 89 AS col1
----
-8366

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT - SUM( DISTINCT + 28 ) + 67 + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-8883
SELECT - SUM ( DISTINCT + 28 ) + 67 + - COUNT ( * )
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-8884
SELECT ALL 15 DIV + 28, 93 AS col1
----
0
93

skipif mysql # not compatible
query II rowsort label-8884
SELECT ALL 15 / + 28, 93 AS col1
----
0
93

query I rowsort
SELECT + NULLIF ( + 35, 87 ) * + 12 AS col2
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT ALL + + COUNT( - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + + COUNT ( - 82 )
----
1

query I rowsort
SELECT + - ( - 19 )
----
19

query I rowsort
SELECT - - 9 col2
----
9

query I rowsort
SELECT 76 * + 89 * - + 89 AS col0
----
-601996

onlyif mysql # aggregate syntax: 
query II rowsort label-8890
SELECT ALL - COUNT( * ) AS col1, - 56 AS col2
----
-1
-56

skipif mysql # not compatible
query II rowsort label-8890
SELECT ALL - COUNT ( * ) AS col1, - 56 AS col2
----
-1
-56

query I rowsort
SELECT 91 * 29 AS col1
----
2639

query I rowsort
SELECT DISTINCT - ( 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT COUNT( * ) + + 74
----
75

skipif mysql # not compatible
query I rowsort label-8893
SELECT COUNT ( * ) + + 74
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT - - MAX( DISTINCT - - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8894
SELECT - - MAX ( DISTINCT - - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT 47 * COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-8895
SELECT 47 * COUNT ( * ) AS col2
----
47

query I rowsort
SELECT DISTINCT 69 * + 19 col2
----
1311

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8897
SELECT ALL 31, + CAST( + 27 AS SIGNED ) AS col1
----
31
27

skipif mysql # not compatible
query II rowsort label-8897
SELECT ALL 31, + CAST ( + 27 AS INTEGER ) AS col1
----
31
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8898
SELECT 66 DIV - ( + + COUNT( 38 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-8898
SELECT 66 / - ( + + COUNT ( 38 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT - SUM( + - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-8899
SELECT - SUM ( + - 50 )
----
50

query I rowsort
SELECT + ( 26 ) col2
----
26

query I rowsort
SELECT - 11 * - 27
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8902
SELECT DISTINCT ( - CAST( + COUNT( * ) AS SIGNED ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT ( - CAST ( + COUNT ( * ) AS INTEGER ) ) col2
----
-1

query I rowsort
SELECT ALL - + 10 AS col2
----
-10

query I rowsort
SELECT DISTINCT - ( + + 94 ) AS col1
----
-94

query I rowsort
SELECT 10 * + 3
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8906
SELECT DISTINCT + COUNT( * ) DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT + COUNT ( * ) / - 23
----
0

query I rowsort
SELECT 7 + + - 22 + - 45 AS col0
----
-60

query I rowsort
SELECT DISTINCT - - 52 + 10 * + 11
----
162

query II rowsort
SELECT 81, 18 * 71 AS col0
----
81
1278

onlyif mysql # aggregate syntax: 
query II rowsort label-8910
SELECT ALL + 46, + COUNT( * ) AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-8910
SELECT ALL + 46, + COUNT ( * ) AS col0
----
46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - + 72 - - 78 - 28 * - - COUNT( * ) - + + 23 + + + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8911
SELECT - + 72 - - 78 - 28 * - - COUNT ( * ) - + + 23 + + + COUNT ( * )
----
-44

query I rowsort
SELECT - - 21 + + 0 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL + 51 * COUNT( * ) - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL + 51 * COUNT ( * ) - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT COUNT( - - ( + 19 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8914
SELECT COUNT ( - - ( + 19 ) ) AS col2
----
1

query I rowsort
SELECT - ( + 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT + + 40 * - CAST( - + 82 AS SIGNED ) AS col0
----
3280

skipif mysql # not compatible
query I rowsort label-8916
SELECT + + 40 * - CAST ( - + 82 AS INTEGER ) AS col0
----
3280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8917
SELECT DISTINCT + CAST( 46 AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT + CAST ( 46 AS INTEGER )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL - + COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL - + COUNT ( * ) - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL - 34 * + + COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL - 34 * + + COUNT ( * ) AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8920
SELECT 71 DIV - 82 * + CAST( + + 63 AS SIGNED ) + - - 56 + - + 20 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-8920
SELECT 71 / - 82 * + CAST ( + + 63 AS INTEGER ) + - - 56 + - + 20 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT DISTINCT - ( + MAX( ALL + 1 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT - ( + MAX ( ALL + 1 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT DISTINCT COUNT( - + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT COUNT ( - + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT ALL - SUM( DISTINCT 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL - SUM ( DISTINCT 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT 81 * + - COUNT( * ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-8924
SELECT 81 * + - COUNT ( * ) col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT ( + 46 ) * - ( - MIN( ALL - - 65 ) )
----
2990

skipif mysql # not compatible
query I rowsort label-8925
SELECT ( + 46 ) * - ( - MIN ( ALL - - 65 ) )
----
2990

query II rowsort
SELECT 78 AS col0, 29
----
78
29

query I rowsort
SELECT - 19 * - 50 + + 57 AS col1
----
1007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT DISTINCT - CAST( - AVG ( - 89 ) AS SIGNED ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8928
SELECT DISTINCT - CAST ( - AVG ( - 89 ) AS INTEGER ) AS col2
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8929
SELECT - 14 DIV 33 * 26
----
0

skipif mysql # not compatible
query I rowsort label-8929
SELECT - 14 / 33 * 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT DISTINCT - 77 - COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT - 77 - COUNT ( * ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT + MAX( DISTINCT - + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-8931
SELECT + MAX ( DISTINCT - + 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8932
SELECT ALL + MAX( CAST( + + 85 AS SIGNED ) )
----
85

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL + MAX ( CAST ( + + 85 AS INTEGER ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ( + MAX( + 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-8933
SELECT ( + MAX ( + 61 ) )
----
61

query I rowsort
SELECT DISTINCT + + 97 AS col1
----
97

query I rowsort
SELECT DISTINCT 45 + - 61 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL - COUNT( * ) - - 11 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL - COUNT ( * ) - - 11 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT 60 * COUNT( * ) col2
----
60

skipif mysql # not compatible
query I rowsort label-8937
SELECT 60 * COUNT ( * ) col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL + CAST( NULL AS SIGNED ) - - 63 + + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + CAST ( NULL AS INTEGER ) - - 63 + + 25 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT DISTINCT - CAST( - - 40 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT - CAST ( - - 40 AS INTEGER ) AS col2
----
-40

query I rowsort
SELECT ( + 33 ) * - 23
----
-759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL - ( MAX( DISTINCT - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL - ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8942
SELECT + CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) - + 46 AS col2
----
NULL
-47

skipif mysql # not compatible
query II rowsort label-8942
SELECT + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + 46 AS col2
----
NULL
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT DISTINCT COUNT( * ) + - 24 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT COUNT ( * ) + - 24 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL - COUNT( * ) + - 95 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL - COUNT ( * ) + - 95 AS col0
----
-96

query II rowsort
SELECT 11, + 52 + 71 AS col2
----
11
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT COUNT( * ) * + - 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8946
SELECT COUNT ( * ) * + - 83 AS col1
----
-83

query I rowsort
SELECT DISTINCT + 26 - - + 88
----
114

query I rowsort
SELECT + 33 * - + 14
----
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + 97 * + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8949
SELECT + 97 * + - COUNT ( * )
----
-97

query II rowsort
SELECT 95, 33 AS col2
----
95
33

onlyif mysql # aggregate syntax: 
query II rowsort label-8951
SELECT - COUNT( * ), 20 AS col0
----
-1
20

skipif mysql # not compatible
query II rowsort label-8951
SELECT - COUNT ( * ), 20 AS col0
----
-1
20

query II rowsort
SELECT ALL 96, 45 + 46 AS col1
----
96
91

query I rowsort
SELECT ALL + ( + + 35 ) AS col2
----
35

query I rowsort
SELECT DISTINCT + - 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT ALL ( ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL ( ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL 95 + + 49
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT - CAST( - - 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-8957
SELECT - CAST ( - - 42 AS INTEGER )
----
-42

query I rowsort
SELECT ALL - + 23 AS col0
----
-23

query I rowsort
SELECT DISTINCT ( - 92 ) * - 73 col2
----
6716

query I rowsort
SELECT ALL - 18 + 93
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8961
SELECT + CAST( - 12 AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8961
SELECT + CAST ( - 12 AS INTEGER ) AS col0
----
-12

query I rowsort
SELECT ALL - - 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT 54 * - ( + COUNT( * ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-8963
SELECT 54 * - ( + COUNT ( * ) ) col1
----
-54

query I rowsort
SELECT ALL - 50 + - 36
----
-86

query I rowsort
SELECT ALL + 87 + + 10 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT 44 + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-8966
SELECT 44 + - COUNT ( * )
----
43

query II rowsort
SELECT 83, 57 AS col1
----
83
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT - + 7 + + COUNT( * ) - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8968
SELECT - + 7 + + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL + + MAX( - - ( + 21 ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL + + MAX ( - - ( + 21 ) ) AS col2
----
21

query I rowsort
SELECT ALL 39 * 88
----
3432

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT ALL 6 * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL 6 * + COUNT ( * )
----
6

query I rowsort
SELECT - 21 + + 53 AS col2
----
32

query I rowsort
SELECT ALL 31 * 48
----
1488

query II rowsort
SELECT 50 AS col0, 55 AS col2
----
50
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8975
SELECT ALL 61 * 1 AS col0, + ( - + CAST( NULL AS SIGNED ) )
----
61
NULL

skipif mysql # not compatible
query II rowsort label-8975
SELECT ALL 61 * 1 AS col0, + ( - + CAST ( NULL AS INTEGER ) )
----
61
NULL

query I rowsort
SELECT DISTINCT - 56 - + - 84
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT - 70 - + COUNT( * ) * - + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-8977
SELECT - 70 - + COUNT ( * ) * - + COUNT ( * )
----
-69

query I rowsort
SELECT 98 * - 54
----
-5292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT + CAST( 13 AS SIGNED ) * - 47 AS col2
----
-611

skipif mysql # not compatible
query I rowsort label-8980
SELECT + CAST ( 13 AS INTEGER ) * - 47 AS col2
----
-611

query I rowsort
SELECT DISTINCT + + 51 AS col0
----
51

query I rowsort
SELECT - 44 * + 98
----
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT - ( 72 ) - - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8983
SELECT - ( 72 ) - - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT DISTINCT 73 DIV - - 86 * - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT 73 / - - 86 * - 40 AS col0
----
0

query I rowsort
SELECT ALL 8 * - 34 * - 43
----
11696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8986
SELECT CAST( - 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-8986
SELECT CAST ( - 86 AS INTEGER )
----
-86

query I rowsort
SELECT DISTINCT + + ( + + 32 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8988
SELECT + COUNT( * ) AS col1, + 31
----
1
31

skipif mysql # not compatible
query II rowsort label-8988
SELECT + COUNT ( * ) AS col1, + 31
----
1
31

query I rowsort
SELECT DISTINCT - 79 * 68 col0
----
-5372

query I rowsort
SELECT ALL + 42 * + - 35 * 58 AS col1
----
-85260

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL - 7 * - COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL - 7 * - COUNT ( * ) AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8992
SELECT - COUNT( * ) DIV - 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8992
SELECT - COUNT ( * ) / - 60 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT ALL 77 + - 33 DIV + 44
----
77

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL 77 + - 33 / + 44
----
77

query I rowsort
SELECT ALL 97 * + + 81 AS col0
----
7857

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - COUNT( ALL - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-8995
SELECT - COUNT ( ALL - 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT ALL - COUNT( + 42 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - COUNT ( + 42 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8997
SELECT DISTINCT + COUNT( * ) AS col2, - 55
----
1
-55

skipif mysql # not compatible
query II rowsort label-8997
SELECT DISTINCT + COUNT ( * ) AS col2, - 55
----
1
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT DISTINCT - 69 * ( 75 ) * - 41 + - - COALESCE ( 54, ( - COUNT( * ) ) ) AS col0
----
212229

skipif mysql # not compatible
query I rowsort label-8998
SELECT DISTINCT - 69 * ( 75 ) * - 41 + - - COALESCE ( 54, ( - COUNT ( * ) ) ) AS col0
----
212229

query I rowsort
SELECT DISTINCT ( + 58 )
----
58

query I rowsort
SELECT ALL + 96 * + 49
----
4704

query I rowsort
SELECT DISTINCT 31 col0
----
31

query I rowsort
SELECT + 89 * + 47 col0
----
4183

onlyif mysql # aggregate syntax: 
query II rowsort label-9003
SELECT DISTINCT - - COUNT( * ), COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-9003
SELECT DISTINCT - - COUNT ( * ), COUNT ( * ) col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT - ( - SUM( DISTINCT - 67 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT - ( - SUM ( DISTINCT - 67 ) )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9005
SELECT ALL COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL - MAX( DISTINCT + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL - MAX ( DISTINCT + 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9007
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9007
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT + 65 AS col0, ( + - 66 ) AS col0
----
65
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL ( - COUNT( * ) ) * ( + + 90 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL ( - COUNT ( * ) ) * ( + + 90 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT MIN( ALL - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-9010
SELECT MIN ( ALL - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT + ( COUNT( * ) ) * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-9011
SELECT + ( COUNT ( * ) ) * - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL + COUNT( * ) + 96 + + - 73 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9012
SELECT ALL + COUNT ( * ) + 96 + + - 73 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9013
SELECT - AVG ( DISTINCT - 41 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT - AVG ( DISTINCT - 41 ) + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 55, - 73 AS col1
----
55
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT - 61 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT - 61 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 25 * - - 7
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT + CAST( 87 AS SIGNED ) + 68
----
155

skipif mysql # not compatible
query I rowsort label-9017
SELECT + CAST ( 87 AS INTEGER ) + 68
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT COUNT( * ) * ( - + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-9018
SELECT COUNT ( * ) * ( - + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT COUNT( * ) + ( + 94 )
----
95

skipif mysql # not compatible
query I rowsort label-9019
SELECT COUNT ( * ) + ( + 94 )
----
95

query I rowsort
SELECT 17 * 73 AS col2
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT COUNT( * ) + + 75 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9021
SELECT COUNT ( * ) + + 75 AS col0
----
76

query I rowsort
SELECT DISTINCT 61 * - 15
----
-915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9023
SELECT COALESCE ( CAST( NULL AS SIGNED ), COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9023
SELECT COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( * ) ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT - - CAST( COUNT( * ) AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT - - CAST ( COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - ( 37 ) * 60 AS col2
----
-2220

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT SUM( DISTINCT + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9026
SELECT SUM ( DISTINCT + 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT - NULLIF ( 64, 85 ) + + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT - NULLIF ( 64, 85 ) + + COUNT ( * )
----
-63

query I rowsort
SELECT - 38 * + + 33 AS col2
----
-1254

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT + MIN( DISTINCT + + ( - 49 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9029
SELECT + MIN ( DISTINCT + + ( - 49 ) ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT + 48 * + CAST( + 41 AS SIGNED )
----
1968

skipif mysql # not compatible
query I rowsort label-9030
SELECT + 48 * + CAST ( + 41 AS INTEGER )
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT DISTINCT 48 * - - COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT 48 * - - COUNT ( * )
----
48

query I rowsort
SELECT + 33 + ( 22 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT + 60 + + MIN( + 1 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9033
SELECT + 60 + + MIN ( + 1 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-9034
SELECT - 58 AS col0, COUNT( * )
----
-58
1

skipif mysql # not compatible
query II rowsort label-9034
SELECT - 58 AS col0, COUNT ( * )
----
-58
1

query I rowsort
SELECT ALL ( - + 31 )
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9036
SELECT 56 * + CAST( NULL AS DECIMAL ) + - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9036
SELECT 56 * + CAST ( NULL AS REAL ) + - 4 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT ALL - 32 * - + 14 * COUNT( * ) AS col2
----
448

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - 32 * - + 14 * COUNT ( * ) AS col2
----
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT DISTINCT - CAST( + + 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT - CAST ( + + 76 AS INTEGER ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT 61 - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9039
SELECT 61 - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT - SUM( DISTINCT ( + - 59 ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9040
SELECT - SUM ( DISTINCT ( + - 59 ) ) AS col2
----
59

query I rowsort
SELECT ALL - 46 * + - 70 AS col2
----
3220

query I rowsort
SELECT 50 - + ( + + 88 ) AS col0
----
-38

query I rowsort
SELECT ALL - ( + 11 )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT + 89 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT + 89 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 91 AS col0, 30 AS col1
----
91
30

query I rowsort
SELECT DISTINCT + 29 + - 86 AS col2
----
-57

query I rowsort
SELECT ALL 42 + - 83 AS col2
----
-41

query I rowsort
SELECT ALL 56 + 95 col2
----
151

query I rowsort
SELECT ALL - - 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-9050
SELECT + - COUNT( * ) col0, 85 + - 79 col1
----
-1
6

skipif mysql # not compatible
query II rowsort label-9050
SELECT + - COUNT ( * ) col0, 85 + - 79 col1
----
-1
6

query I rowsort
SELECT + + ( 18 ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL ( + 74 ) * - COUNT( DISTINCT + - ( + - 19 ) ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL ( + 74 ) * - COUNT ( DISTINCT + - ( + - 19 ) ) col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9053
SELECT 91 + - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9053
SELECT 91 + - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT DISTINCT + COUNT( * ) + 83 AS col2
----
84

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT + COUNT ( * ) + 83 AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9055
SELECT COUNT( * ) + - 26 DIV - - 92
----
1

skipif mysql # not compatible
query I rowsort label-9055
SELECT COUNT ( * ) + - 26 / - - 92
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT - 35 + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-9056
SELECT - 35 + COUNT ( * ) AS col0
----
-34

query I rowsort
SELECT DISTINCT - - 80 - - 23 col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-9058
SELECT DISTINCT COUNT( * ) AS col2, + 8 AS col1
----
1
8

skipif mysql # not compatible
query II rowsort label-9058
SELECT DISTINCT COUNT ( * ) AS col2, + 8 AS col1
----
1
8

query I rowsort
SELECT - + ( - 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT - + COUNT( * ) * - MAX( DISTINCT - + 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-9060
SELECT - + COUNT ( * ) * - MAX ( DISTINCT - + 32 ) AS col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-9061
SELECT ALL 48 DIV - - 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL 48 / - - 86 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT COUNT( - + 69 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9062
SELECT COUNT ( - + 69 ) col1
----
1

query I rowsort
SELECT ALL - ( - ( - ( + 91 ) ) ) * ( 38 )
----
-3458

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9064
SELECT DISTINCT CAST( + MAX( - - 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT CAST ( + MAX ( - - 0 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT + 42 + - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9065
SELECT + 42 + - COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT DISTINCT COUNT( DISTINCT + 33 ) * + + 9 * - COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT COUNT ( DISTINCT + 33 ) * + + 9 * - COUNT ( * ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT DISTINCT 40 * - ( + ( - NULLIF ( + + 50, COUNT( * ) ) ) )
----
2000

skipif mysql # not compatible
query I rowsort label-9067
SELECT DISTINCT 40 * - ( + ( - NULLIF ( + + 50, COUNT ( * ) ) ) )
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT - 41 + + COUNT( * ) - + 11
----
-51

skipif mysql # not compatible
query I rowsort label-9068
SELECT - 41 + + COUNT ( * ) - + 11
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT ALL + 70 * COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL + 70 * COUNT ( * ) AS col0
----
70

query I rowsort
SELECT ALL - 25 * + 1 AS col1
----
-25

query II rowsort
SELECT - + 64 AS col2, 54
----
-64
54

query I rowsort
SELECT - + ( 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT DISTINCT - COUNT( ALL - - 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT - COUNT ( ALL - - 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT MIN( - - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-9074
SELECT MIN ( - - 30 ) AS col2
----
30

query I rowsort
SELECT ALL + - 85 AS col2
----
-85

query I rowsort
SELECT DISTINCT - 99 + + 0
----
-99

query I rowsort
SELECT DISTINCT ( + - 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9078
SELECT ALL ( + MAX( - - 27 ) ) AS col0, COUNT( * )
----
27
1

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL ( + MAX ( - - 27 ) ) AS col0, COUNT ( * )
----
27
1

query II rowsort
SELECT DISTINCT 74 col2, 56 AS col0
----
74
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9080
SELECT - 46 * + 13 DIV + COUNT( * )
----
-598

skipif mysql # not compatible
query I rowsort label-9080
SELECT - 46 * + 13 / + COUNT ( * )
----
-598

query I rowsort
SELECT - NULLIF ( + 73, 98 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT ALL ( - MAX( - 53 ) )
----
53

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL ( - MAX ( - 53 ) )
----
53

query II rowsort
SELECT ALL 1 * + 85 AS col2, - 30
----
85
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9084
SELECT 39 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT 39 / + 87
----
0

query I rowsort
SELECT ALL - + 83 AS col2
----
-83

query II rowsort
SELECT ALL 10 AS col2, 84
----
10
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT DISTINCT COUNT( * ) * - + 53 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT COUNT ( * ) * - + 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT + 31 * - + COUNT( * ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-9088
SELECT + 31 * - + COUNT ( * ) col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT ALL CAST( NULL AS SIGNED ) + - ( - - 82 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT ALL CAST ( NULL AS INTEGER ) + - ( - - 82 ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT - + COALESCE ( + COALESCE ( - - COUNT( * ), + 63 DIV COUNT( * ) ), + COUNT( * ) ) + + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-9090
SELECT - + COALESCE ( + COALESCE ( - - COUNT ( * ), + 63 / COUNT ( * ) ), + COUNT ( * ) ) + + + 6 AS col1
----
5

query II rowsort
SELECT - 73 AS col1, - 73
----
-73
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-9092
SELECT ALL + COUNT( * ) AS col0, - 26
----
1
-26

skipif mysql # not compatible
query II rowsort label-9092
SELECT ALL + COUNT ( * ) AS col0, - 26
----
1
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT + MIN( - 11 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9093
SELECT + MIN ( - 11 ) AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT ALL - CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL - CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 30 * 22 col1
----
660

query I rowsort
SELECT 55 + - - 99
----
154

query I rowsort
SELECT 85 * - 72
----
-6120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT 38 * + + COUNT( * ) * - NULLIF ( + - CAST( NULL AS SIGNED ), - - CAST( - CAST( + ( + - COUNT( * ) ) AS SIGNED ) AS SIGNED ) - + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT 38 * + + COUNT ( * ) * - NULLIF ( + - CAST ( NULL AS INTEGER ), - - CAST ( - CAST ( + ( + - COUNT ( * ) ) AS INTEGER ) AS INTEGER ) - + 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT - MIN( DISTINCT - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-9099
SELECT - MIN ( DISTINCT - 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT SUM( + 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9100
SELECT SUM ( + 5 ) AS col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9101
SELECT DISTINCT + + COALESCE ( 94, - 47 ) DIV + 75 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT + + COALESCE ( 94, - 47 ) / + 75 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL + MAX( DISTINCT - 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + MAX ( DISTINCT - 73 ) AS col2
----
-73

query I rowsort
SELECT + 2 * + 77 AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT + 12 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-9104
SELECT + 12 * - COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT COUNT( DISTINCT - 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9105
SELECT COUNT ( DISTINCT - 10 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT + + 25 + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-9106
SELECT + + 25 + - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT - 79 + - MAX( DISTINCT - - 0 )
----
-79

skipif mysql # not compatible
query I rowsort label-9107
SELECT - 79 + - MAX ( DISTINCT - - 0 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT + - 99 * + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-9108
SELECT + - 99 * + COUNT ( * )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9109
SELECT - + CAST( - 94 AS SIGNED ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9109
SELECT - + CAST ( - 94 AS INTEGER ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT ALL + MAX( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL + MAX ( - 76 )
----
-76

query I rowsort
SELECT + ( - - 70 )
----
70

query II rowsort
SELECT + - 70 AS col1, - 42 col2
----
-70
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9113
SELECT ALL 38 AS col0, - COUNT( * ) * - COUNT( * )
----
38
1

skipif mysql # not compatible
query II rowsort label-9113
SELECT ALL 38 AS col0, - COUNT ( * ) * - COUNT ( * )
----
38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ( + COUNT( ALL 22 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9114
SELECT ( + COUNT ( ALL 22 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 41 * - 7 * 97
----
-27839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9116
SELECT ( - 7 ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT ( - 7 ) + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT 54 + - - 36 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT - SUM( ALL + 71 ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-9118
SELECT - SUM ( ALL + 71 ) col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9119
SELECT COUNT( * ) col0, + CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9119
SELECT COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9120
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT - - 13 - - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9121
SELECT - - 13 - - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL 57 col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9123
SELECT DISTINCT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9124
SELECT - - COUNT( * ) AS col0, 67 DIV + COUNT( * ) AS col1
----
1
67

skipif mysql # not compatible
query II rowsort label-9124
SELECT - - COUNT ( * ) AS col0, 67 / + COUNT ( * ) AS col1
----
1
67

query I rowsort
SELECT ALL + - 49 col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT DISTINCT ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9127
SELECT ALL + 1 + - CAST( - ( COUNT( * ) ) AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + 1 + - CAST ( - ( COUNT ( * ) ) AS INTEGER )
----
2

query I rowsort
SELECT - ( - - 66 ) AS col0
----
-66

query I rowsort
SELECT 39 * + + 52 AS col2
----
2028

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT + MAX( - - 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-9130
SELECT + MAX ( - - 55 ) AS col2
----
55

query I rowsort
SELECT + ( + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT - MIN( ALL + 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT - MIN ( ALL + 56 ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9133
SELECT - COUNT( * ) - + - COUNT( * ) / - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT - COUNT ( * ) - + - COUNT ( * ) / - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9134
SELECT + - 88 col2, + COUNT( * ) AS col2
----
-88
1

skipif mysql # not compatible
query II rowsort label-9134
SELECT + - 88 col2, + COUNT ( * ) AS col2
----
-88
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9135
SELECT - 59 AS col1, COUNT( * )
----
-59
1

skipif mysql # not compatible
query II rowsort label-9135
SELECT - 59 AS col1, COUNT ( * )
----
-59
1

query I rowsort
SELECT 9 * - 21 * 61 AS col1
----
-11529

query I rowsort
SELECT DISTINCT 30 * + - 82 AS col1
----
-2460

query I rowsort
SELECT DISTINCT - - 93 AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT + CAST( + + 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-9139
SELECT + CAST ( + + 70 AS INTEGER )
----
70

query I rowsort
SELECT DISTINCT 65 col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT - COUNT( * ) * 77 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT - COUNT ( * ) * 77 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT + 86 * COUNT( * ) - - + 55 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT + 86 * COUNT ( * ) - - + 55 AS col2
----
141

query I rowsort
SELECT + NULLIF ( + - 5, - 57 )
----
-5

query I rowsort
SELECT - ( - ( - + ( 53 ) ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT DISTINCT - - 46 * - 97 AS col2
----
-4462

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT + MAX( ALL 66 ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9147
SELECT + MAX ( ALL 66 ) AS col0
----
66

query I rowsort
SELECT ALL + ( + 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL - 48 + - + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL - 48 + - + COUNT ( * ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT COUNT( - + 84 ) + + - 52
----
-51

skipif mysql # not compatible
query I rowsort label-9150
SELECT COUNT ( - + 84 ) + + - 52
----
-51

query I rowsort
SELECT - ( 95 )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9152
SELECT COUNT( * ), + ( - ( - - 61 ) ) AS col0
----
1
-61

skipif mysql # not compatible
query II rowsort label-9152
SELECT COUNT ( * ), + ( - ( - - 61 ) ) AS col0
----
1
-61

query II rowsort
SELECT 29, - 95 * + 41 AS col0
----
29
-3895

query I rowsort
SELECT - 36 * 95 AS col0
----
-3420

query I rowsort
SELECT + + 8 * - 65 AS col1
----
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT DISTINCT 25 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT 25 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT ALL - SUM( ALL + + 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL - SUM ( ALL + + 16 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT MIN( ALL + 74 )
----
74

skipif mysql # not compatible
query I rowsort label-9158
SELECT MIN ( ALL + 74 )
----
74

query II rowsort
SELECT 2 * 88 AS col2, 43
----
176
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9160
SELECT COUNT( * ) - + + 89, MIN( - 66 ) AS col2
----
-88
-66

skipif mysql # not compatible
query II rowsort label-9160
SELECT COUNT ( * ) - + + 89, MIN ( - 66 ) AS col2
----
-88
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT 46 + - 82 + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-9161
SELECT 46 + - 82 + - COUNT ( * )
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9162
SELECT ALL + 99 / - AVG ( ALL + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL + 99 / - AVG ( ALL + - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT + - ( - ( + 84 ) ) AS col2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT CAST( - 98 AS SIGNED ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-9164
SELECT CAST ( - 98 AS INTEGER ) AS col1
----
-98

query I rowsort
SELECT + 72 * - 28
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT - ( COUNT( * ) ) * + + 15 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-9166
SELECT - ( COUNT ( * ) ) * + + 15 AS col1
----
-15

query I rowsort
SELECT ( - + 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT + MIN( ALL - + 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9168
SELECT + MIN ( ALL - + 57 ) AS col1
----
-57

query I rowsort
SELECT + 59 + 38
----
97

query I rowsort
SELECT ALL + - 78 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL - 37 * - COUNT( * ) - + - 74 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL - 37 * - COUNT ( * ) - + - 74 AS col0
----
111

query II rowsort
SELECT + 32 AS col0, + ( 56 ) AS col0
----
32
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT + 59 - COUNT( + 79 )
----
58

skipif mysql # not compatible
query I rowsort label-9173
SELECT + 59 - COUNT ( + 79 )
----
58

query I rowsort
SELECT ALL - ( + 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL + - MAX( DISTINCT + - 26 ) - + 75 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL + - MAX ( DISTINCT + - 26 ) - + 75 AS col1
----
-49

query I rowsort
SELECT DISTINCT - + 6 AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT CAST( + ( + COUNT( * ) ) AS SIGNED ) * 95 + - 53 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-9177
SELECT CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * 95 + - 53 AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9178
SELECT - SUM( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9179
SELECT + COUNT( * ) * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT + COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL + 61 - COUNT( - - 43 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + 61 - COUNT ( - - 43 ) AS col0
----
60

query I rowsort
SELECT 81 + - 21
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9182
SELECT ALL CAST( NULL AS DECIMAL ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL CAST ( NULL AS REAL ) * - 4
----
NULL

query I rowsort
SELECT + 10 * + + 23
----
230

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT 68 DIV + COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9184
SELECT 68 / + COUNT ( * ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL SUM( ALL 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL SUM ( ALL 3 ) AS col0
----
3

query I rowsort
SELECT DISTINCT ( + - 27 )
----
-27

query I rowsort
SELECT ALL ( + 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + COUNT( ALL + 68 ) - - + 94 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9188
SELECT + COUNT ( ALL + 68 ) - - + 94 AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9189
SELECT CAST( - - 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-9189
SELECT CAST ( - - 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT + SUM( - 26 ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-9190
SELECT + SUM ( - 26 ) AS col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9191
SELECT + CAST( 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-9191
SELECT + CAST ( 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - 53 * + COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-9192
SELECT - 53 * + COUNT ( * ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL - MAX( + ( 58 ) ) - - COUNT( * ) + + 33 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL - MAX ( + ( 58 ) ) - - COUNT ( * ) + + 33 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * + 17 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * + 17 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9195
SELECT COUNT( * ) / - SUM( ( ( - CAST( NULL AS DECIMAL ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT COUNT ( * ) / - SUM ( ( ( - CAST ( NULL AS REAL ) ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9196
SELECT - COUNT( ALL + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9196
SELECT - COUNT ( ALL + + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - COUNT( DISTINCT 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-9197
SELECT - COUNT ( DISTINCT 96 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9198
SELECT DISTINCT + 5 DIV 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9198
SELECT DISTINCT + 5 / 57 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT DISTINCT - MAX( + - 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT - MAX ( + - 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT + MAX( DISTINCT + 88 )
----
88

skipif mysql # not compatible
query I rowsort label-9200
SELECT + MAX ( DISTINCT + 88 )
----
88

query I rowsort
SELECT ( + 68 ) + 11 AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9202
SELECT + COUNT( * ), + CAST( NULL AS SIGNED ) - + + COUNT( * ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9202
SELECT + COUNT ( * ), + CAST ( NULL AS INTEGER ) - + + COUNT ( * ) AS col0
----
1
NULL

query I rowsort
SELECT ALL - 91 + + + 72
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT - CASE 30 WHEN + SUM( ALL 81 ) - + COUNT( * ) THEN - + 48 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT - CASE 30 WHEN + SUM ( ALL 81 ) - + COUNT ( * ) THEN - + 48 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL + + ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + + ( + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT ALL + SUM( ALL - - 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL + SUM ( ALL - - 21 ) AS col0
----
21

query I rowsort
SELECT ALL + - 92 col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9208
SELECT ALL AVG ( - CAST( NULL AS SIGNED ) ) AS col1, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-9208
SELECT ALL AVG ( - CAST ( NULL AS INTEGER ) ) AS col1, + 84
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL - MAX( - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL - MAX ( - 34 )
----
34

query I rowsort
SELECT DISTINCT 24 * - + 54 AS col2
----
-1296

query I rowsort
SELECT ALL - NULLIF ( + ( - + 34 ), - NULLIF ( - 26, + 79 ) ) AS col2
----
34

query II rowsort
SELECT DISTINCT - 16, - ( + 59 ) + + - 78 col1
----
-16
-137

query I rowsort
SELECT ALL - 80 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT DISTINCT 71 * - 34 * + COUNT( * ) AS col0
----
-2414

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT 71 * - 34 * + COUNT ( * ) AS col0
----
-2414

query I rowsort
SELECT 60 * + + 15
----
900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT ALL - 16 * + - CAST( + MAX( DISTINCT - 8 ) AS SIGNED ) col1
----
-128

skipif mysql # not compatible
query I rowsort label-9216
SELECT ALL - 16 * + - CAST ( + MAX ( DISTINCT - 8 ) AS INTEGER ) col1
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-9217
SELECT ALL - 75 + - + 88 DIV - 40
----
-73

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - 75 + - + 88 / - 40
----
-73

query I rowsort
SELECT + 21 + 84
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT MAX( ALL 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT MAX ( ALL 66 )
----
66

query I rowsort
SELECT DISTINCT + ( 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL + MAX( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + MAX ( + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT - 6 * COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-9222
SELECT - 6 * COUNT ( * )
----
-6

query I rowsort
SELECT DISTINCT + 34 * 61
----
2074

query I rowsort
SELECT ALL 98 + 35
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9225
SELECT DISTINCT - CAST( 4 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT - CAST ( 4 AS INTEGER )
----
-4

query I rowsort
SELECT ALL + ( - 83 ) col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT SUM( DISTINCT - ( - 28 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9227
SELECT SUM ( DISTINCT - ( - 28 ) ) AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9228
SELECT DISTINCT - + CAST( 81 AS SIGNED ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT - + CAST ( 81 AS INTEGER ) AS col2
----
-81

query I rowsort
SELECT 18 + + 79 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL - COUNT( * ) * + - 94
----
94

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL - COUNT ( * ) * + - 94
----
94

query I rowsort
SELECT DISTINCT 48 * 17
----
816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9232
SELECT COUNT( * ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-9232
SELECT COUNT ( * ) / 80
----
0

query I rowsort
SELECT 63 + + 10
----
73

query I rowsort
SELECT DISTINCT - ( + 87 ) - - 61 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT + COUNT( * ) * - - 57 * + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9235
SELECT + COUNT ( * ) * - - 57 * + COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT ALL COUNT( * ) * + 54 * 60 AS col1
----
3240

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL COUNT ( * ) * + 54 * 60 AS col1
----
3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT + CAST( NULL AS SIGNED ) * 67 * 12 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT + CAST ( NULL AS INTEGER ) * 67 * 12 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT NULLIF ( + 85, + 76 * 21 ) DIV - 17 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9238
SELECT NULLIF ( + 85, + 76 * 21 ) / - 17 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9239
SELECT + COUNT( * ), 75 AS col2
----
1
75

skipif mysql # not compatible
query II rowsort label-9239
SELECT + COUNT ( * ), 75 AS col2
----
1
75

query I rowsort
SELECT + 35 * + - 45 col1
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT DISTINCT 51 * + 17 + - COUNT( * )
----
866

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT 51 * + 17 + - COUNT ( * )
----
866

onlyif mysql # aggregate syntax: 
query II rowsort label-9242
SELECT COUNT( * ) col2, + 68 AS col1
----
1
68

skipif mysql # not compatible
query II rowsort label-9242
SELECT COUNT ( * ) col2, + 68 AS col1
----
1
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9243
SELECT DISTINCT + + CAST( - - ( COUNT( * ) ) AS SIGNED ) DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT + + CAST ( - - ( COUNT ( * ) ) AS INTEGER ) / 55 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT DISTINCT - + COUNT( * ) - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT - + COUNT ( * ) - COUNT ( * )
----
-2

query I rowsort
SELECT ALL ( - - 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT - COUNT( * ) + + - 30
----
-31

skipif mysql # not compatible
query I rowsort label-9246
SELECT - COUNT ( * ) + + - 30
----
-31

query II rowsort
SELECT + ( + + 19 ) AS col1, - 60 col2
----
19
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL + - COUNT( - 39 )
----
-1

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + - COUNT ( - 39 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9249
SELECT ALL 57 DIV + + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL 57 / + + COUNT ( * )
----
57

query I rowsort
SELECT ALL ( + 59 )
----
59

query II rowsort
SELECT DISTINCT - ( - - 30 ) + 62 col1, 66
----
32
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT DISTINCT - MIN( - + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT - MIN ( - + 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT - 21 * - SUM( DISTINCT - - 32 ) AS col1
----
672

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT - 21 * - SUM ( DISTINCT - - 32 ) AS col1
----
672

query I rowsort
SELECT - 56 - - - 44 + 41 AS col0
----
-59

query II rowsort
SELECT DISTINCT 83, - 72 AS col1
----
83
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ( - COUNT( * ) ) + - 90
----
-91

skipif mysql # not compatible
query I rowsort label-9256
SELECT ( - COUNT ( * ) ) + - 90
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9257
SELECT ALL - COUNT( * ) col0, 74 * - 76
----
-1
-5624

skipif mysql # not compatible
query II rowsort label-9257
SELECT ALL - COUNT ( * ) col0, 74 * - 76
----
-1
-5624

query I rowsort
SELECT + ( - 3 ) * - 85 AS col1
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT - MIN( - ( + 48 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-9259
SELECT - MIN ( - ( + 48 ) ) AS col2
----
48

query I rowsort
SELECT - COALESCE ( 47, - + 44 ) AS col2
----
-47

query I rowsort
SELECT - ( + 45 )
----
-45

query I rowsort
SELECT ALL + - 30 AS col1
----
-30

query I rowsort
SELECT DISTINCT + 36 col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-9264
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + + 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT MAX( DISTINCT + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-9266
SELECT MAX ( DISTINCT + 91 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT ALL CAST( + ( + ( - 62 ) ) AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL CAST ( + ( + ( - 62 ) ) AS INTEGER )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT ALL CAST( NULL AS SIGNED ) / 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL CAST ( NULL AS INTEGER ) / 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT 71 + COUNT( * ) col1
----
72

skipif mysql # not compatible
query I rowsort label-9269
SELECT 71 + COUNT ( * ) col1
----
72

query I rowsort
SELECT 97 * + 25
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT ( - + MAX( + 44 ) )
----
-44

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT ( - + MAX ( + 44 ) )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT + - MIN( + 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-9272
SELECT + - MIN ( + 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + 34 * + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9273
SELECT + 34 * + COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT COUNT( * ) - 98
----
-97

skipif mysql # not compatible
query I rowsort label-9274
SELECT COUNT ( * ) - 98
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT + COUNT( - - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-9275
SELECT + COUNT ( - - 6 )
----
1

query I rowsort
SELECT DISTINCT 64 + + 3 AS col0
----
67

query II rowsort
SELECT 84, 24 AS col2
----
84
24

query I rowsort
SELECT ALL - 94 + + + 49 AS col2
----
-45

query I rowsort
SELECT 73 + 24 col0
----
97

query I rowsort
SELECT + 24 * 68 AS col0
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL SUM( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL SUM ( - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT DISTINCT ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT ( - - COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9283
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0, + 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-9283
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0, + 26
----
NULL
26

query II rowsort
SELECT DISTINCT + 82, + 1 AS col0
----
82
1

query II rowsort
SELECT + 57 AS col0, 15 * + 81 AS col2
----
57
1215

query II rowsort
SELECT + 58 AS col1, + 6
----
58
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ( MIN( 17 ) ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9287
SELECT ( MIN ( 17 ) ) AS col0
----
17

query I rowsort
SELECT ( + + 16 ) col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9289
SELECT ALL COUNT( ALL + ( + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL COUNT ( ALL + ( + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9290
SELECT ALL + 73 DIV - - COUNT( * ) DIV + COUNT( - - 19 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + 73 / - - COUNT ( * ) / + COUNT ( - - 19 ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT 58 + - + CAST( + + COUNT( * ) AS SIGNED ) - + 16 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9291
SELECT 58 + - + CAST ( + + COUNT ( * ) AS INTEGER ) - + 16 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT + COUNT( * ) + + ( - - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT + COUNT ( * ) + + ( - - COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9293
SELECT ALL - 82 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL - 82 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT - MAX( DISTINCT - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT - MAX ( DISTINCT - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT 11 * + COUNT( * ) + - - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9295
SELECT 11 * + COUNT ( * ) + - - COUNT ( * ) AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9296
SELECT - CAST( NULL AS SIGNED ) * + 7 - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT - CAST ( NULL AS INTEGER ) * + 7 - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 58 col2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9298
SELECT - 40 - + CAST( 20 AS SIGNED ) * + COUNT( * ) AS col0, 40 AS col0
----
-60
40

skipif mysql # not compatible
query II rowsort label-9298
SELECT - 40 - + CAST ( 20 AS INTEGER ) * + COUNT ( * ) AS col0, 40 AS col0
----
-60
40

query I rowsort
SELECT - 37 + + + 61 AS col2
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT - + COUNT( * ) DIV 32
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT - + COUNT ( * ) / 32
----
0

query I rowsort
SELECT ALL + - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - 41 * - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-9302
SELECT - 41 * - COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL 88 * - - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL 88 * - - COUNT ( * )
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9304
SELECT DISTINCT ( + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT ( + + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ( - 80 ) col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT DISTINCT + ( + ( - - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT + ( + ( - - CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT - 78 AS col0, + 36
----
-78
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT DISTINCT - 33 * - ( + COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT - 33 * - ( + COUNT ( * ) )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT DISTINCT ( - ( ( + - CAST( - 56 AS SIGNED ) ) ) ) col2
----
-56

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT ( - ( ( + - CAST ( - 56 AS INTEGER ) ) ) ) col2
----
-56

query I rowsort
SELECT 31 - - - 98 AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT 38 DIV 18 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9311
SELECT 38 / 18 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT DISTINCT - - ( - + ( - - CASE + COUNT( * ) WHEN + 65 THEN - COUNT( * ) * - COUNT( * ) END ) ) + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT - - ( - + ( - - CASE + COUNT ( * ) WHEN + 65 THEN - COUNT ( * ) * - COUNT ( * ) END ) ) + 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT ALL - COUNT( * ) * - 16
----
16

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - COUNT ( * ) * - 16
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT - CAST( - - ( - 23 ) AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-9314
SELECT - CAST ( - - ( - 23 ) AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT + 84 * COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9315
SELECT + 84 * COUNT ( * ) AS col1
----
84

query I rowsort
SELECT - 78 + - - 85 * + 34 * - COALESCE ( 44, - + 99, + - 88 ) col0
----
-127238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9317
SELECT - COUNT( * ) DIV - ( - + MAX( + 38 ) ) * 46
----
0

skipif mysql # not compatible
query I rowsort label-9317
SELECT - COUNT ( * ) / - ( - + MAX ( + 38 ) ) * 46
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9318
SELECT ALL + COALESCE ( + + 67, CAST( - CASE AVG ( DISTINCT 13 ) WHEN + COUNT( * ) THEN - 73 WHEN - SUM( 31 ) THEN NULL ELSE NULL END AS SIGNED ) + + 19 ) DIV + 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL + COALESCE ( + + 67, CAST ( - CASE AVG ( DISTINCT 13 ) WHEN + COUNT ( * ) THEN - 73 WHEN - SUM ( 31 ) THEN NULL ELSE NULL END AS INTEGER ) + + 19 ) / + 49 AS col0
----
1

query I rowsort
SELECT + 25 * + + 30 AS col0
----
750

onlyif mysql # DIV for integer division: 
query I rowsort label-9320
SELECT + 1 - 77 DIV - - 97 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9320
SELECT + 1 - 77 / - - 97 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT - 7 DIV + + ( 52 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9321
SELECT - 7 / + + ( 52 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL + 57 * - MIN( DISTINCT + ( + + 64 ) ) AS col0
----
-3648

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + 57 * - MIN ( DISTINCT + ( + + 64 ) ) AS col0
----
-3648

query I rowsort
SELECT - 94 * + 59 * 26 AS col1
----
-144196

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9324
SELECT DISTINCT COALESCE ( - 4, - 92 * 65, - CASE - CAST( - COUNT( * ) AS DECIMAL ) WHEN - - COUNT( * ) - 18 THEN 33 + 69 DIV COUNT( * ) END ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT COALESCE ( - 4, - 92 * 65, - CASE - CAST ( - COUNT ( * ) AS REAL ) WHEN - - COUNT ( * ) - 18 THEN 33 + 69 / COUNT ( * ) END ) AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT DISTINCT CAST( - - 15 AS SIGNED ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT CAST ( - - 15 AS INTEGER ) AS col1
----
15

query I rowsort
SELECT DISTINCT COALESCE ( - - 7, - 76, + 98 ) col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9327
SELECT ALL + CASE + 13 WHEN COALESCE ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), + 91 ) + - COUNT( + 96 ) + - COUNT( * ) THEN 88 / 50 WHEN 4 * - ( - 53 ) THEN + 4 END * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL + CASE + 13 WHEN COALESCE ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), + 91 ) + - COUNT ( + 96 ) + - COUNT ( * ) THEN 88 / 50 WHEN 4 * - ( - 53 ) THEN + 4 END * - 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL - CAST( CASE + SUM( - - 0 ) WHEN + + 48 THEN + - 6 WHEN ( - 10 ) THEN NULL ELSE + 23 + 62 END AS SIGNED ) + - 38 * - 44
----
1587

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - CAST ( CASE + SUM ( - - 0 ) WHEN + + 48 THEN + - 6 WHEN ( - 10 ) THEN NULL ELSE + 23 + 62 END AS INTEGER ) + - 38 * - 44
----
1587

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT - + COUNT( * ) * + 60
----
-60

skipif mysql # not compatible
query I rowsort label-9329
SELECT - + COUNT ( * ) * + 60
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + 43 + - 52 * MAX( - 78 ) AS col2
----
4099

skipif mysql # not compatible
query I rowsort label-9330
SELECT + 43 + - 52 * MAX ( - 78 ) AS col2
----
4099

onlyif mysql # DIV for integer division: 
query I rowsort label-9331
SELECT ALL 54 DIV ( - + 3 ) + 19 + + + 96 DIV 63
----
2

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL 54 / ( - + 3 ) + 19 + + + 96 / 63
----
2

query I rowsort
SELECT ALL 31 * + - 50 AS col1
----
-1550

query II rowsort
SELECT + + 16, 55 AS col2
----
16
55

query I rowsort
SELECT ALL + 60 + - - 21 AS col1
----
81

query I rowsort
SELECT DISTINCT 58 + - + 22 AS col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9336
SELECT 93 DIV - COUNT( * ) - - 5 * - 15 * 0 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9336
SELECT 93 / - COUNT ( * ) - - 5 * - 15 * 0 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT - SUM( ALL 1 ) * - - 81
----
-81

skipif mysql # not compatible
query I rowsort label-9337
SELECT - SUM ( ALL 1 ) * - - 81
----
-81

query II rowsort
SELECT 84 AS col0, + 35 + - - ( - 25 ) col1
----
84
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9339
SELECT - 90 - + COUNT( * ) / + + ( - CASE - 60 WHEN + ( + + 26 ) / + SUM( DISTINCT + 50 ) THEN NULL WHEN - 24 THEN MIN( 36 ) WHEN 31 + + 13 * - ( 81 ) THEN COUNT( * ) END ) - CAST( + 21 + + 15 * 8 AS SIGNED ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT - 90 - + COUNT ( * ) / + + ( - CASE - 60 WHEN + ( + + 26 ) / + SUM ( DISTINCT + 50 ) THEN NULL WHEN - 24 THEN MIN ( 36 ) WHEN 31 + + 13 * - ( 81 ) THEN COUNT ( * ) END ) - CAST ( + 21 + + 15 * 8 AS INTEGER ) * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 0 col2, - 86 AS col1
----
0
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9341
SELECT 90, + ( + 94 ) * + 71 + - + 3 - + 11 + + ( + COUNT( * ) ) + + CAST( - 45 AS SIGNED ) AS col0
----
90
6616

skipif mysql # not compatible
query II rowsort label-9341
SELECT 90, + ( + 94 ) * + 71 + - + 3 - + 11 + + ( + COUNT ( * ) ) + + CAST ( - 45 AS INTEGER ) AS col0
----
90
6616

query I rowsort
SELECT 19 * - - 7 * - + 36 - + 45 + + + 58 AS col1
----
-4775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9343
SELECT ALL COUNT( * ) DIV 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL COUNT ( * ) / 85 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9344
SELECT - 4 * + 10 + COUNT( DISTINCT + + 53 ) + CAST( - + COUNT( * ) AS SIGNED ) + 29 * + COUNT( * ) DIV + 36 col1
----
-40

skipif mysql # not compatible
query I rowsort label-9344
SELECT - 4 * + 10 + COUNT ( DISTINCT + + 53 ) + CAST ( - + COUNT ( * ) AS INTEGER ) + 29 * + COUNT ( * ) / + 36 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT 62 * - 56 + - - 57 * 73 / - CASE + 26 WHEN + - 59 THEN NULL WHEN - MIN( 86 ) THEN - 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT 62 * - 56 + - - 57 * 73 / - CASE + 26 WHEN + - 59 THEN NULL WHEN - MIN ( 86 ) THEN - 44 END AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 21 AS col2, 93
----
-21
93

query II rowsort
SELECT DISTINCT + 6 - - 90 AS col0, + 19 col1
----
96
19

query I rowsort
SELECT 61 * + 76 - + 3 AS col1
----
4633

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT CAST( NULL AS SIGNED ) + MIN( - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT CAST ( NULL AS INTEGER ) + MIN ( - 29 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9350
SELECT ALL CAST( NULL AS DECIMAL ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL CAST ( NULL AS REAL ) * - 54
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9351
SELECT COUNT( * ) + 7 + 10 + - 2 * + ( - + COALESCE ( - 10, 59 + + 2 DIV + COUNT( * ) ) ) + + 54 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9351
SELECT COUNT ( * ) + 7 + 10 + - 2 * + ( - + COALESCE ( - 10, 59 + + 2 / + COUNT ( * ) ) ) + + 54 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT - CAST( NULL AS SIGNED ) * + 78 + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT - CAST ( NULL AS INTEGER ) * + 78 + 88
----
NULL

query II rowsort
SELECT 44 * + - 0 col1, 49
----
0
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9354
SELECT ALL + 53 + - - COUNT( DISTINCT - 50 ) + + 51 * + COALESCE ( 27, - 31 * - COUNT( * ) * - + 13 ) * + ( - 36 * CAST( AVG ( DISTINCT 43 ) * 76 AS SIGNED ) )
----
-162001242

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + 53 + - - COUNT ( DISTINCT - 50 ) + + 51 * + COALESCE ( 27, - 31 * - COUNT ( * ) * - + 13 ) * + ( - 36 * CAST ( AVG ( DISTINCT 43 ) * 76 AS INTEGER ) )
----
-162001242

onlyif mysql # DIV for integer division: 
query I rowsort label-9355
SELECT ALL - 98 DIV + + 66 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - 98 / + + 66 AS col2
----
-1

query I rowsort
SELECT 63 + + 52 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9357
SELECT DISTINCT 12 + - - CAST( - ( + ( - 67 ) ) AS SIGNED ) * + + 40 + + MAX( + 70 ) + - - 11 AS col2
----
2773

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT 12 + - - CAST ( - ( + ( - 67 ) ) AS INTEGER ) * + + 40 + + MAX ( + 70 ) + - - 11 AS col2
----
2773

query I rowsort
SELECT ALL 47 + + COALESCE ( + + 52, + 29 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9359
SELECT - 58 + 9, + NULLIF ( + + MAX( 27 ), - ( + 0 ) * 68 + - 36 ) + 81 * COUNT( * ) AS col0
----
-49
108

skipif mysql # not compatible
query II rowsort label-9359
SELECT - 58 + 9, + NULLIF ( + + MAX ( 27 ), - ( + 0 ) * 68 + - 36 ) + 81 * COUNT ( * ) AS col0
----
-49
108

query I rowsort
SELECT 90 * 62
----
5580

query I rowsort
SELECT DISTINCT - - 2 * - - 2 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL + - 40 * - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-9362
SELECT ALL + - 40 * - COUNT ( * )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9363
SELECT - CAST( - COALESCE ( + 25, + + 41 - + NULLIF ( + 23, 99 ) * - 18, - + 13 * - CASE - 72 * 94 WHEN - COUNT( * ) / + 28 THEN NULL ELSE + COUNT( * ) / + 1 END ) AS SIGNED ) + 83 * + 90 AS col2
----
7495

skipif mysql # not compatible
query I rowsort label-9363
SELECT - CAST ( - COALESCE ( + 25, + + 41 - + NULLIF ( + 23, 99 ) * - 18, - + 13 * - CASE - 72 * 94 WHEN - COUNT ( * ) / + 28 THEN NULL ELSE + COUNT ( * ) / + 1 END ) AS INTEGER ) + 83 * + 90 AS col2
----
7495

query I rowsort
SELECT ( 62 ) - + + 32 + + 43 * + 26 AS col1
----
1148

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT + COUNT( ALL - 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9365
SELECT + COUNT ( ALL - 70 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL + 89 + 48 - + COUNT( ALL - 64 ) col2
----
136

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + 89 + 48 - + COUNT ( ALL - 64 ) col2
----
136

query I rowsort
SELECT DISTINCT - - 47 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9368
SELECT DISTINCT - COUNT( DISTINCT + + NULLIF ( - + 11, - - 15 * - + 70 + + ( - 87 ) - CAST( 10 AS DECIMAL ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT - COUNT ( DISTINCT + + NULLIF ( - + 11, - - 15 * - + 70 + + ( - 87 ) - CAST ( 10 AS REAL ) ) ) col2
----
-1

query I rowsort
SELECT - ( - + 34 )
----
34

query I rowsort
SELECT - 56 * - - 1 * + 67 + 57 + - 25 AS col0
----
-3720

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL - 28 + - - NULLIF ( - 21, - COUNT( * ) * + 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL - 28 + - - NULLIF ( - 21, - COUNT ( * ) * + 50 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT - MIN( DISTINCT + - 47 ) + - 73 + + + 54 + COUNT( 28 ) + 45 * - CASE + 55 WHEN + CASE + 92 WHEN - ( + 6 ) THEN + 48 ELSE + AVG ( - 76 ) END + + 2 * - 91 THEN NULL WHEN 75 THEN 25 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT - MIN ( DISTINCT + - 47 ) + - 73 + + + 54 + COUNT ( 28 ) + 45 * - CASE + 55 WHEN + CASE + 92 WHEN - ( + 6 ) THEN + 48 ELSE + AVG ( - 76 ) END + + 2 * - 91 THEN NULL WHEN 75 THEN 25 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9373
SELECT - + 18 / + AVG ( + 38 ) + ( + 61 ) + MAX( - + 35 ) + + + COALESCE ( 15, 66 - 70 * SUM( + 92 * 63 ) ) * + CAST( NULL AS SIGNED ) - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT - + 18 / + AVG ( + 38 ) + ( + 61 ) + MAX ( - + 35 ) + + + COALESCE ( 15, 66 - 70 * SUM ( + 92 * 63 ) ) * + CAST ( NULL AS INTEGER ) - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9374
SELECT + 71 + + - COUNT( * ) + - 45 * - 16 - - CAST( - + 64 AS SIGNED )
----
726

skipif mysql # not compatible
query I rowsort label-9374
SELECT + 71 + + - COUNT ( * ) + - 45 * - 16 - - CAST ( - + 64 AS INTEGER )
----
726

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ( - 89 ) * NULLIF ( 36, - COUNT( * ) * - + 59 + + 56 ) * + + 10
----
-32040

skipif mysql # not compatible
query I rowsort label-9375
SELECT ( - 89 ) * NULLIF ( 36, - COUNT ( * ) * - + 59 + + 56 ) * + + 10
----
-32040

query I rowsort
SELECT + + NULLIF ( - 21, - + 33 )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9377
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 78
----
NULL

query II rowsort
SELECT ALL - 99 AS col0, + 24
----
-99
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT 9 * - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9379
SELECT 9 * - COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9380
SELECT 65 * - COUNT( * ) * + - CASE + + 66 WHEN + CAST( NULL AS SIGNED ) / + COUNT( * ) THEN NULL ELSE 91 END + + 28 + + - 95
----
5848

skipif mysql # not compatible
query I rowsort label-9380
SELECT 65 * - COUNT ( * ) * + - CASE + + 66 WHEN + CAST ( NULL AS INTEGER ) / + COUNT ( * ) THEN NULL ELSE 91 END + + 28 + + - 95
----
5848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT DISTINCT - CAST( 60 AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT - CAST ( 60 AS INTEGER ) AS col1
----
-60

query I rowsort
SELECT 38 * + + 76 col1
----
2888

onlyif mysql # aggregate syntax: 
query II rowsort label-9383
SELECT DISTINCT COUNT( * ) AS col1, + 86
----
1
86

skipif mysql # not compatible
query II rowsort label-9383
SELECT DISTINCT COUNT ( * ) AS col1, + 86
----
1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT 12 + + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT 12 + + COUNT ( * ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-9385
SELECT DISTINCT 71 + + COUNT( * ) * - - 28 AS col0, COUNT( * ) AS col0
----
99
1

skipif mysql # not compatible
query II rowsort label-9385
SELECT DISTINCT 71 + + COUNT ( * ) * - - 28 AS col0, COUNT ( * ) AS col0
----
99
1

query I rowsort
SELECT 79 + + ( - 11 )
----
68

query I rowsort
SELECT ALL 6 + + 75
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9388
SELECT - 64 AS col1, + CAST( + 72 AS SIGNED )
----
-64
72

skipif mysql # not compatible
query II rowsort label-9388
SELECT - 64 AS col1, + CAST ( + 72 AS INTEGER )
----
-64
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT - COUNT( + - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-9389
SELECT - COUNT ( + - 43 )
----
-1

query I rowsort
SELECT - COALESCE ( + 81, + 11 )
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9391
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + MAX( + 79 ) * - + ( - MAX( ALL - + 46 ) ) * - - MIN( DISTINCT + CAST( - COALESCE ( 80, 95 ) AS SIGNED ) ) + 19 * ( 55 ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + MAX ( + 79 ) * - + ( - MAX ( ALL - + 46 ) ) * - - MIN ( DISTINCT + CAST ( - COALESCE ( 80, 95 ) AS INTEGER ) ) + 19 * ( 55 ) ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT + CAST( - + 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-9392
SELECT + CAST ( - + 70 AS INTEGER )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9393
SELECT ALL 9 + + 87 DIV 82
----
10

skipif mysql # not compatible
query I rowsort label-9393
SELECT ALL 9 + + 87 / 82
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT - - COUNT( 80 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9394
SELECT - - COUNT ( 80 ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + ( 12 ) + - + 62 - - COUNT( * ) * 88 + + 44 * - - 31
----
1402

skipif mysql # not compatible
query I rowsort label-9395
SELECT + ( 12 ) + - + 62 - - COUNT ( * ) * 88 + + 44 * - - 31
----
1402

onlyif mysql # DIV for integer division: 
query I rowsort label-9396
SELECT DISTINCT - 1 DIV - + ( + ( + 28 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT DISTINCT - 1 / - + ( + ( + 28 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL MAX( DISTINCT - 19 ) - - - 22
----
-41

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL MAX ( DISTINCT - 19 ) - - - 22
----
-41

query I rowsort
SELECT - - 46 * + + 81 + - 76
----
3650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9399
SELECT DISTINCT - COALESCE ( - + 29, - - 70 DIV - COUNT( * ) * 77 - ( - 24 ) * - + 70 * MIN( 32 ) ) * - 47 AS col1
----
-1363

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT - COALESCE ( - + 29, - - 70 / - COUNT ( * ) * 77 - ( - 24 ) * - + 70 * MIN ( 32 ) ) * - 47 AS col1
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT - + 71 + + - 0 + + CASE + 25 WHEN 94 + - ( - + 56 ) * + ( 57 ) / + + 38 THEN NULL WHEN 84 * + 22 THEN COUNT( * ) * MAX( DISTINCT - 65 ) ELSE COUNT( * ) + 19 END AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9400
SELECT - + 71 + + - 0 + + CASE + 25 WHEN 94 + - ( - + 56 ) * + ( 57 ) / + + 38 THEN NULL WHEN 84 * + 22 THEN COUNT ( * ) * MAX ( DISTINCT - 65 ) ELSE COUNT ( * ) + 19 END AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL + - 33 * - + CAST( 42 AS SIGNED )
----
1386

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + - 33 * - + CAST ( 42 AS INTEGER )
----
1386

query I rowsort
SELECT ALL + - ( 72 ) AS col1
----
-72

query I rowsort
SELECT - 8 * - 40 AS col1
----
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9404
SELECT ALL CAST( 66 AS SIGNED ) * + 79 * + + 4 + + SUM( - 87 ) * - - SUM( 88 ), - 88 AS col0
----
13200
-88

skipif mysql # not compatible
query II rowsort label-9404
SELECT ALL CAST ( 66 AS INTEGER ) * + 79 * + + 4 + + SUM ( - 87 ) * - - SUM ( 88 ), - 88 AS col0
----
13200
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT + MIN( DISTINCT + + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT + MIN ( DISTINCT + + 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL + + MAX( + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL + + MAX ( + 80 )
----
80

query II rowsort
SELECT ALL + 74, + 58 AS col2
----
74
58

query I rowsort
SELECT - 55 * + 11
----
-605

query I rowsort
SELECT + 25 - + ( + 66 ) * + - 93 * - 60 AS col2
----
-368255

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT COALESCE ( 61, - COUNT( * ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-9410
SELECT COALESCE ( 61, - COUNT ( * ) ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9411
SELECT ALL + CASE - 35 WHEN + CAST( NULL AS SIGNED ) * + COUNT( * ) + - + 95 THEN + 94 * - - MAX( DISTINCT + - 69 ) * - COUNT( * ) WHEN + + 83 + + + CAST( - 20 AS DECIMAL ) * COUNT( 51 * - 98 + 68 * + 95 ) THEN - COALESCE ( 69, 49, 0 ) ELSE MIN( 89 ) END
----
89

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL + CASE - 35 WHEN + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - + 95 THEN + 94 * - - MAX ( DISTINCT + - 69 ) * - COUNT ( * ) WHEN + + 83 + + + CAST ( - 20 AS REAL ) * COUNT ( 51 * - 98 + 68 * + 95 ) THEN - COALESCE ( 69, 49, 0 ) ELSE MIN ( 89 ) END
----
89

query I rowsort
SELECT 98 * - + COALESCE ( 34, + - 7 ) + + 3
----
-3329

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT NULLIF ( 14, COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9413
SELECT NULLIF ( 14, COUNT ( * ) ) AS col1
----
14

query I rowsort
SELECT - 19 * - 53 AS col0
----
1007

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT - MAX( DISTINCT + - 9 ) + - - 29 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9415
SELECT - MAX ( DISTINCT + - 9 ) + - - 29 AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9416
SELECT - 54 + 71 + + 5 * + + COUNT( DISTINCT + CAST( - 57 AS SIGNED ) ) + 5 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-9416
SELECT - 54 + 71 + + 5 * + + COUNT ( DISTINCT + CAST ( - 57 AS INTEGER ) ) + 5 AS col0
----
27

query I rowsort
SELECT ALL ( + 76 ) * + 44 + + + 91
----
3435

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9418
SELECT ALL - ( - COUNT( * ) ) DIV + 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - ( - COUNT ( * ) ) / + 88 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT ALL - ( - 52 ) * - 83 + - COALESCE ( + 10, - NULLIF ( - CAST( 74 AS SIGNED ), - 80 ) ) * + + 43 + - - 28
----
-4718

skipif mysql # not compatible
query I rowsort label-9419
SELECT ALL - ( - 52 ) * - 83 + - COALESCE ( + 10, - NULLIF ( - CAST ( 74 AS INTEGER ), - 80 ) ) * + + 43 + - - 28
----
-4718

onlyif mysql # DIV for integer division: 
query II rowsort label-9420
SELECT ALL + 34 AS col0, 92 DIV - 84
----
34
-1

skipif mysql # not compatible
query II rowsort label-9420
SELECT ALL + 34 AS col0, 92 / - 84
----
34
-1

query I rowsort
SELECT + 30 * - 46 * + + ( - 25 ) + - 79
----
34421

onlyif mysql # aggregate syntax: 
query II rowsort label-9422
SELECT COUNT( * ) AS col1, ( + + COUNT( * ) ) + 49 + - COUNT( * ) AS col2
----
1
49

skipif mysql # not compatible
query II rowsort label-9422
SELECT COUNT ( * ) AS col1, ( + + COUNT ( * ) ) + 49 + - COUNT ( * ) AS col2
----
1
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9423
SELECT + SUM( - 46 ) AS col0, 32 DIV 24
----
-46
1

skipif mysql # not compatible
query II rowsort label-9423
SELECT + SUM ( - 46 ) AS col0, 32 / 24
----
-46
1

query I rowsort
SELECT ALL ( + 80 ) AS col1
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT - 29 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT - 29 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9426
SELECT - MAX( DISTINCT CAST( NULL AS DECIMAL ) ) + + + 22 - MIN( DISTINCT + ( + CAST( - + 23 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT - MAX ( DISTINCT CAST ( NULL AS REAL ) ) + + + 22 - MIN ( DISTINCT + ( + CAST ( - + 23 AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT + ( + 39 ) * - COUNT( * ) * - + 57
----
2223

skipif mysql # not compatible
query I rowsort label-9427
SELECT + ( + 39 ) * - COUNT ( * ) * - + 57
----
2223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9428
SELECT - 65 AS col0, COUNT( ALL - 35 ) + + COALESCE ( - 0, + + 98, + CAST( + 60 AS SIGNED ) * + MIN( 69 ) ) DIV 45 + 86 * 17
----
-65
1463

skipif mysql # not compatible
query II rowsort label-9428
SELECT - 65 AS col0, COUNT ( ALL - 35 ) + + COALESCE ( - 0, + + 98, + CAST ( + 60 AS INTEGER ) * + MIN ( 69 ) ) / 45 + 86 * 17
----
-65
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT 17 + + NULLIF ( + 19, + 94 + - ( + MAX( 49 ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT 17 + + NULLIF ( + 19, + 94 + - ( + MAX ( 49 ) ) )
----
36

query I rowsort
SELECT ALL ( + 76 ) + + + ( 35 )
----
111

query II rowsort
SELECT + 0, - 60 AS col1
----
0
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-9432
SELECT ALL + 65, - COUNT( * ) + 79 + - - 92 * - 75 + + + 7 * - COUNT( * ) * - 91 AS col0
----
65
-6185

skipif mysql # not compatible
query II rowsort label-9432
SELECT ALL + 65, - COUNT ( * ) + 79 + - - 92 * - 75 + + + 7 * - COUNT ( * ) * - 91 AS col0
----
65
-6185

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9433
SELECT ALL COUNT( * ) * + - 72, 13 DIV + - 39 AS col2
----
-72
0

skipif mysql # not compatible
query II rowsort label-9433
SELECT ALL COUNT ( * ) * + - 72, 13 / + - 39 AS col2
----
-72
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9434
SELECT 60 col2, + NULLIF ( 17, - - 28 ) - - - 96 - - COALESCE ( + 1, - COUNT( * ), + ( 1 ) DIV + COUNT( * ) * - 37 + 38 ) AS col0
----
60
-78

skipif mysql # not compatible
query II rowsort label-9434
SELECT 60 col2, + NULLIF ( 17, - - 28 ) - - - 96 - - COALESCE ( + 1, - COUNT ( * ), + ( 1 ) / + COUNT ( * ) * - 37 + 38 ) AS col0
----
60
-78

query I rowsort
SELECT ALL + 61 - + 10
----
51

query I rowsort
SELECT - + 23 * - - COALESCE ( 31, - 45 * - 95 + 61 + + 23, + 14 ) * 82 * + 61 + + 99 - 53 AS col2
----
-3566380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT + - COALESCE ( - + 40, - 92 ) + + COALESCE ( + CASE 66 WHEN 20 * 1 * + + COUNT( * ) THEN + + CASE - 61 WHEN 30 * SUM( 95 ) THEN COALESCE ( 48, 10, + 45 ) END ELSE NULL END, + SUM( 25 ), - 56 * MAX( DISTINCT 84 * CAST( NULL AS SIGNED ) ) ) + 46
----
111

skipif mysql # not compatible
query I rowsort label-9437
SELECT + - COALESCE ( - + 40, - 92 ) + + COALESCE ( + CASE 66 WHEN 20 * 1 * + + COUNT ( * ) THEN + + CASE - 61 WHEN 30 * SUM ( 95 ) THEN COALESCE ( 48, 10, + 45 ) END ELSE NULL END, + SUM ( 25 ), - 56 * MAX ( DISTINCT 84 * CAST ( NULL AS INTEGER ) ) ) + 46
----
111

query I rowsort
SELECT + 70 + - - 86 AS col0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT DISTINCT + + COUNT( * ) - COUNT( * ) * - 9 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-9439
SELECT DISTINCT + + COUNT ( * ) - COUNT ( * ) * - 9 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9440
SELECT DISTINCT 2 AS col1, 80 + - ( - MAX( + 75 ) ) + CAST( NULL AS SIGNED ) + 48 * + 80 AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-9440
SELECT DISTINCT 2 AS col1, 80 + - ( - MAX ( + 75 ) ) + CAST ( NULL AS INTEGER ) + 48 * + 80 AS col2
----
2
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT - CASE 53 WHEN + 68 THEN NULL WHEN - COUNT( * ) + - - 26 * - - 19 THEN NULL WHEN 26 - + 26 THEN 64 ELSE + + 19 - + 12 END AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT - CASE 53 WHEN + 68 THEN NULL WHEN - COUNT ( * ) + - - 26 * - - 19 THEN NULL WHEN 26 - + 26 THEN 64 ELSE + + 19 - + 12 END AS col0
----
-7

query I rowsort
SELECT ALL + 96 * 17
----
1632

onlyif mysql # aggregate syntax: 
query II rowsort label-9443
SELECT ALL + COUNT( * ) col0, 89
----
1
89

skipif mysql # not compatible
query II rowsort label-9443
SELECT ALL + COUNT ( * ) col0, 89
----
1
89

onlyif mysql # DIV for integer division: 
query I rowsort label-9444
SELECT 5 DIV - + ( + 60 ) * + 53 + 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9444
SELECT 5 / - + ( + 60 ) * + 53 + 30 AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9445
SELECT - MAX( ALL 84 ) DIV - ( + 59 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9445
SELECT - MAX ( ALL 84 ) / - ( + 59 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9446
SELECT ALL + 53 DIV + 71 + - 80 AS col2, 92 - - - ( + CASE + 72 WHEN - 27 THEN - 98 WHEN CAST( NULL AS SIGNED ) + + - NULLIF ( + 93, - 11 * - 62 ) THEN NULL ELSE NULL END ) AS col2
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-9446
SELECT ALL + 53 / + 71 + - 80 AS col2, 92 - - - ( + CASE + 72 WHEN - 27 THEN - 98 WHEN CAST ( NULL AS INTEGER ) + + - NULLIF ( + 93, - 11 * - 62 ) THEN NULL ELSE NULL END ) AS col2
----
-80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT + 2 + - - COUNT( * ) * + 75 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9447
SELECT + 2 + - - COUNT ( * ) * + 75 AS col2
----
77

query I rowsort
SELECT ALL - 30 * 68
----
-2040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9449
SELECT CAST( + 70 AS SIGNED ) AS col2, + 34
----
70
34

skipif mysql # not compatible
query II rowsort label-9449
SELECT CAST ( + 70 AS INTEGER ) AS col2, + 34
----
70
34

query I rowsort
SELECT + 45 * + - 64 + - - 99 * - 17 * - 38 col0
----
61074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 30 + - 25 + - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 30 + - 25 + - 63 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9452
SELECT + CAST( + 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-9452
SELECT + CAST ( + 52 AS INTEGER )
----
52

query I rowsort
SELECT ALL 69 * - 28 + 49
----
-1883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT + CAST( + + 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-9454
SELECT + CAST ( + + 53 AS INTEGER )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9455
SELECT + 63 * 94 + - 46 DIV - 81 AS col2
----
5922

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 63 * 94 + - 46 / - 81 AS col2
----
5922

query II rowsort
SELECT + 12 * + 85 AS col0, 15
----
1020
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9457
SELECT + 25 * 44 + - 99 + 25 DIV + NULLIF ( - CAST( - + 90 AS SIGNED ), + 60 * 11 ) AS col2
----
1001

skipif mysql # not compatible
query I rowsort label-9457
SELECT + 25 * 44 + - 99 + 25 / + NULLIF ( - CAST ( - + 90 AS INTEGER ), + 60 * 11 ) AS col2
----
1001

query I rowsort
SELECT NULLIF ( - - 46, - 26 * - - 98 * - 18 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9459
SELECT - CASE - 58 WHEN - + 84 THEN + COUNT( * ) ELSE NULL END / - 47 + + ( + 32 ) / + MIN( DISTINCT 46 ) - - 82 AS col2, - 27 + 13
----
NULL
-14

skipif mysql # not compatible
query II rowsort label-9459
SELECT - CASE - 58 WHEN - + 84 THEN + COUNT ( * ) ELSE NULL END / - 47 + + ( + 32 ) / + MIN ( DISTINCT 46 ) - - 82 AS col2, - 27 + 13
----
NULL
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9460
SELECT ALL + MAX( ALL 47 ) * 88 * + 67 * - 5 + + COUNT( * ) + - 89 DIV 46 DIV - 69 * + COUNT( * ) * + ( + + 69 )
----
-1385559

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + MAX ( ALL 47 ) * 88 * + 67 * - 5 + + COUNT ( * ) + - 89 / 46 / - 69 * + COUNT ( * ) * + ( + + 69 )
----
-1385559

query I rowsort
SELECT + 60 + + 51 AS col1
----
111

query I rowsort
SELECT DISTINCT - 65 - + 38
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT ALL - - 53 - CAST( - - ( - 2 ) AS SIGNED ) * + ( 11 ) * + 34 + - 39 + - NULLIF ( - 63, - CAST( + 40 AS SIGNED ) ) + 97 * - 71
----
-6062

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - - 53 - CAST ( - - ( - 2 ) AS INTEGER ) * + ( 11 ) * + 34 + - 39 + - NULLIF ( - 63, - CAST ( + 40 AS INTEGER ) ) + 97 * - 71
----
-6062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT DISTINCT + COALESCE ( + ( + ( SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) ), - 60 ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT + COALESCE ( + ( + ( SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) ), - 60 ) col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT 6 * + 34 + + COALESCE ( COUNT( * ), COUNT( * ) - - 98 + + 79 * 22, - 55 + + 96, + 93 )
----
205

skipif mysql # not compatible
query I rowsort label-9465
SELECT 6 * + 34 + + COALESCE ( COUNT ( * ), COUNT ( * ) - - 98 + + 79 * 22, - 55 + + 96, + 93 )
----
205

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT - 67 DIV + - 27 + + - 79 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9466
SELECT - 67 / + - 27 + + - 79 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT 85 * - 33 * + - COUNT( * ) + + 34 * - - NULLIF ( COALESCE ( + + 36, - 6 ), + COUNT( * ) * - 1 + - 82 * + 50 ) + 78 col0
----
4107

skipif mysql # not compatible
query I rowsort label-9467
SELECT 85 * - 33 * + - COUNT ( * ) + + 34 * - - NULLIF ( COALESCE ( + + 36, - 6 ), + COUNT ( * ) * - 1 + - 82 * + 50 ) + 78 col0
----
4107

onlyif mysql # aggregate syntax: 
query I rowsort label-9468
SELECT - SUM( 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-9468
SELECT - SUM ( 85 )
----
-85

query I rowsort
SELECT - 43 - - 24
----
-19

query I rowsort
SELECT + 17 * ( + ( - ( 30 ) ) ) AS col1
----
-510

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9471
SELECT ALL 0 + - 67 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL 0 + - 67 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT - 6 + 32
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT ALL 90 + + CASE + - COUNT( * ) WHEN - 18 / + 54 THEN NULL ELSE 21 * 39 END + - + CAST( NULL AS SIGNED ) * - - 47 * + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL 90 + + CASE + - COUNT ( * ) WHEN - 18 / + 54 THEN NULL ELSE 21 * 39 END + - + CAST ( NULL AS INTEGER ) * - - 47 * + 61 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT DISTINCT + 25 * - CASE + - 31 WHEN 95 THEN NULL WHEN + ( + 96 ) * - 16 + - 71 * + MAX( ALL 85 ) * 6 * 74 + + + 69 * - 79 THEN + ( MAX( DISTINCT + 12 ) ) ELSE 83 * - 15 END
----
31125

skipif mysql # not compatible
query I rowsort label-9474
SELECT DISTINCT + 25 * - CASE + - 31 WHEN 95 THEN NULL WHEN + ( + 96 ) * - 16 + - 71 * + MAX ( ALL 85 ) * 6 * 74 + + + 69 * - 79 THEN + ( MAX ( DISTINCT + 12 ) ) ELSE 83 * - 15 END
----
31125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9475
SELECT ALL - CASE + - 57 WHEN 9 + 51 THEN + + 77 WHEN 31 THEN NULL ELSE 17 DIV 11 * - 15 * + + ( + - COUNT( * ) ) - + - 32 END + + 34
----
-13

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL - CASE + - 57 WHEN 9 + 51 THEN + + 77 WHEN 31 THEN NULL ELSE 17 / 11 * - 15 * + + ( + - COUNT ( * ) ) - + - 32 END + + 34
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9476
SELECT 66, 42 * + MAX( ALL ( - - 81 ) ) * + CAST( + 92 AS SIGNED ) + + 32 AS col0
----
66
313016

skipif mysql # not compatible
query II rowsort label-9476
SELECT 66, 42 * + MAX ( ALL ( - - 81 ) ) * + CAST ( + 92 AS INTEGER ) + + 32 AS col0
----
66
313016

query I rowsort
SELECT ( - 2 ) * + 13 + 83 + + + 54 AS col0
----
111

query I rowsort
SELECT 37 + - CASE 89 WHEN + 28 THEN NULL WHEN - 4 THEN 61 / + - 31 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT + 15 * - ( - + 16 ) * + 30 + + 70 + + + CAST( - 86 AS SIGNED ) AS col2
----
7184

skipif mysql # not compatible
query I rowsort label-9479
SELECT + 15 * - ( - + 16 ) * + 30 + + 70 + + + CAST ( - 86 AS INTEGER ) AS col2
----
7184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9480
SELECT + ( + 68 ) * - 97 * - NULLIF ( - 31, + AVG ( ALL - ( - 43 ) ) - + COUNT( * ) ) + - - 59 + - + 20 + + + COALESCE ( - - 6, - CAST( NULL AS SIGNED ) ) - - 13 DIV - ( 46 * + COUNT( * ) )
----
-204431

skipif mysql # not compatible
query I rowsort label-9480
SELECT + ( + 68 ) * - 97 * - NULLIF ( - 31, + AVG ( ALL - ( - 43 ) ) - + COUNT ( * ) ) + - - 59 + - + 20 + + + COALESCE ( - - 6, - CAST ( NULL AS INTEGER ) ) - - 13 / - ( 46 * + COUNT ( * ) )
----
-204431

query I rowsort
SELECT 72 + 71
----
143

query I rowsort
SELECT ALL 76 - + + 73 + - - 91 AS col2
----
94

query I rowsort
SELECT 78 * + + 74
----
5772

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL - SUM( DISTINCT - - 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL - SUM ( DISTINCT - - 58 ) AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT 82 * - - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT 82 * - - COUNT ( * )
----
82

query II rowsort
SELECT - + 52 * + 15 + + 8 + 33 + - 60 + 47 * + - 18 + - 78, + 16 col0
----
-1723
16

query I rowsort
SELECT 38 * 50 AS col1
----
1900

query I rowsort
SELECT 82 * + 64 - 94 + + 92 * + - 35 * 7
----
-17386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9489
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT MAX( ALL + 84 ) * + 79 * - + 96 AS col1
----
-637056

skipif mysql # not compatible
query I rowsort label-9490
SELECT MAX ( ALL + 84 ) * + 79 * - + 96 AS col1
----
-637056

query II rowsort
SELECT ALL + 64 AS col0, - 45 AS col1
----
64
-45

query I rowsort
SELECT DISTINCT + ( 67 ) * + + 1 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT SUM( DISTINCT + + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9493
SELECT SUM ( DISTINCT + + 14 )
----
14

query I rowsort
SELECT - 74 * 78
----
-5772

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9495
SELECT ALL + 18 * - CASE 70 WHEN + - 19 THEN NULL ELSE + 94 END * + + 68 * - 67 * + 12 - - 4 * 56 + 10 AS col0, - 83 DIV - - COUNT( * ) AS col0
----
92505258
-83

skipif mysql # not compatible
query II rowsort label-9495
SELECT ALL + 18 * - CASE 70 WHEN + - 19 THEN NULL ELSE + 94 END * + + 68 * - 67 * + 12 - - 4 * 56 + 10 AS col0, - 83 / - - COUNT ( * ) AS col0
----
92505258
-83

query I rowsort
SELECT ALL ( + + 31 ) col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT COUNT( * ) + 34 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-9497
SELECT COUNT ( * ) + 34 AS col0
----
35

query I rowsort
SELECT DISTINCT + - 84 * 28
----
-2352

query I rowsort
SELECT ALL - 68 + 57
----
-11

query I rowsort
SELECT - 41 + - 42 AS col2
----
-83

query I rowsort
SELECT 7 - - 79
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9502
SELECT ALL + + CAST( NULL AS SIGNED ) + COALESCE ( - - ( - 25 ), + 23 / + CAST( - 86 AS SIGNED ) / - COUNT( * ) + 5 * COUNT( DISTINCT + 7 ) * - 10 ) + + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + + CAST ( NULL AS INTEGER ) + COALESCE ( - - ( - 25 ), + 23 / + CAST ( - 86 AS INTEGER ) / - COUNT ( * ) + 5 * COUNT ( DISTINCT + 7 ) * - 10 ) + + 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT DISTINCT + 66 * - - 34 + + 82 * MAX( ALL + 78 ) AS col0
----
8640

skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT + 66 * - - 34 + + 82 * MAX ( ALL + 78 ) AS col0
----
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT ALL - 8 + MAX( + 66 ) + 48 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-9504
SELECT ALL - 8 + MAX ( + 66 ) + 48 AS col1
----
106

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT DISTINCT - 57 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT - 57 / - 94 AS col2
----
0

query I rowsort
SELECT DISTINCT - 84 + + + 15 + - 97 - 81 * - 96 * + - 24
----
-186790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9507
SELECT ALL 43 + ( COUNT( * ) ) * - + COUNT( * ) * - 24 DIV + 57 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL 43 + ( COUNT ( * ) ) * - + COUNT ( * ) * - 24 / + 57 AS col2
----
43

query II rowsort
SELECT ALL - ( 32 ), - 70 AS col2
----
-32
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + 12 * COUNT( * ) * - 3 + + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-9509
SELECT + 12 * COUNT ( * ) * - 3 + + - COUNT ( * )
----
-37

query I rowsort
SELECT 44 * + 77
----
3388

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT NULLIF ( + COUNT( * ), + COUNT( * ) * + 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9511
SELECT NULLIF ( + COUNT ( * ), + COUNT ( * ) * + 27 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9512
SELECT + 61 DIV 50 + - 38 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-9512
SELECT + 61 / 50 + - 38 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9513
SELECT ALL COUNT( * ) * + CASE - 41 WHEN - 4 * - 89 / + 42 THEN - 84 ELSE NULL END, 25 + - 54 AS col2
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-9513
SELECT ALL COUNT ( * ) * + CASE - 41 WHEN - 4 * - 89 / + 42 THEN - 84 ELSE NULL END, 25 + - 54 AS col2
----
NULL
-29

query I rowsort
SELECT DISTINCT + 95 * + - 42 col2
----
-3990

query I rowsort
SELECT DISTINCT 42 * + 96 - - - 98
----
3934

query I rowsort
SELECT - 5 * + 51 * 99
----
-25245

query I rowsort
SELECT + 11 + - + 70 + - + 72
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT - 23 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-9518
SELECT - 23 / + 98
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9519
SELECT ALL 34 DIV - 33 AS col2, 97 col2
----
-1
97

skipif mysql # not compatible
query II rowsort label-9519
SELECT ALL 34 / - 33 AS col2, 97 col2
----
-1
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT + + ( COALESCE ( - 79, - 37 + + COUNT( DISTINCT - 84 ) ) ) * - 31 * - 94
----
-230206

skipif mysql # not compatible
query I rowsort label-9520
SELECT + + ( COALESCE ( - 79, - 37 + + COUNT ( DISTINCT - 84 ) ) ) * - 31 * - 94
----
-230206

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT + COUNT( + - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-9521
SELECT + COUNT ( + - 49 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9522
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) + - CAST( 88 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - CAST ( 88 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT + - 19 DIV + 89 * - - 29
----
0

skipif mysql # not compatible
query I rowsort label-9523
SELECT + - 19 / + 89 * - - 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT ALL - ( 60 ) DIV - 44
----
1

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - ( 60 ) / - 44
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT ALL ( 10 ) + + + CAST( 82 AS SIGNED ) * + 97 * - - 14
----
111366

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL ( 10 ) + + + CAST ( 82 AS INTEGER ) * + 97 * - - 14
----
111366

query I rowsort
SELECT DISTINCT + COALESCE ( + ( 99 ), 14 * + + 28 + 7 ) AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9527
SELECT + COALESCE ( 13, - MIN( ALL - 81 ) ) * COUNT( * ) DIV 68 + 93
----
93

skipif mysql # not compatible
query I rowsort label-9527
SELECT + COALESCE ( 13, - MIN ( ALL - 81 ) ) * COUNT ( * ) / 68 + 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT ( MAX( + 13 ) )
----
13

skipif mysql # not compatible
query I rowsort label-9528
SELECT ( MAX ( + 13 ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT + - COUNT( * ) * + 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-9529
SELECT + - COUNT ( * ) * + 22 AS col0
----
-22

query I rowsort
SELECT - - 12 + - 63
----
-51

query I rowsort
SELECT DISTINCT - + 69 + + 44
----
-25

query I rowsort
SELECT ALL + 37 + 27 AS col0
----
64

query I rowsort
SELECT DISTINCT - 79 + - - 85 AS col1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9534
SELECT - - SUM( ALL + 23 ), - 14 AS col2
----
23
-14

skipif mysql # not compatible
query II rowsort label-9534
SELECT - - SUM ( ALL + 23 ), - 14 AS col2
----
23
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL - + 94 + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - + 94 + COUNT ( * )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT - 75 * + SUM( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT - 75 * + SUM ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 53 + - 60 AS col0
----
-113

query I rowsort
SELECT + 37 - + 26 + 21 * - - 92 - + 81 AS col0
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL CASE + 15 WHEN - COALESCE ( + ( + 98 ), + 42 * + - 38 + + COUNT( * ), COUNT( * ) / - COUNT( * ) * + 2 + - - 85 ) * + 44 THEN - 2 + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL CASE + 15 WHEN - COALESCE ( + ( + 98 ), + 42 * + - 38 + + COUNT ( * ), COUNT ( * ) / - COUNT ( * ) * + 2 + - - 85 ) * + 44 THEN - 2 + 60 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9540
SELECT - CAST( 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-9540
SELECT - CAST ( 90 AS INTEGER )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9541
SELECT - 37 AS col2, COUNT( * )
----
-37
1

skipif mysql # not compatible
query II rowsort label-9541
SELECT - 37 AS col2, COUNT ( * )
----
-37
1

query I rowsort
SELECT ALL + 8 * + + 96
----
768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9543
SELECT - COUNT( * ) * + 48 DIV COALESCE ( - ( - 20 ), - 3 - 30 - - 98 + + 11 * - - ( 56 ), + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-9543
SELECT - COUNT ( * ) * + 48 / COALESCE ( - ( - 20 ), - 3 - 30 - - 98 + + 11 * - - ( 56 ), + COUNT ( * ) )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT ALL - 9 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL - 9 / 67
----
0

query I rowsort
SELECT - 47 * - 73
----
3431

query I rowsort
SELECT ( - - 9 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT - 17 * - ( - 32 ) * + + CAST( NULL AS SIGNED ) / + 54 + - 17 * + 24 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9547
SELECT - 17 * - ( - 32 ) * + + CAST ( NULL AS INTEGER ) / + 54 + - 17 * + 24 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + + COUNT( * ) * + MAX( + 40 ) + + ( - 61 ) * 51 + 71 + - + COALESCE ( + MAX( ALL - + 49 ), - MIN( + - 5 ) + + - 0 ) AS col0
----
-2951

skipif mysql # not compatible
query I rowsort label-9548
SELECT + + COUNT ( * ) * + MAX ( + 40 ) + + ( - 61 ) * 51 + 71 + - + COALESCE ( + MAX ( ALL - + 49 ), - MIN ( + - 5 ) + + - 0 ) AS col0
----
-2951

query II rowsort
SELECT + - COALESCE ( 62, 6 ) AS col1, 62 AS col2
----
-62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT + SUM( DISTINCT - - 99 ) * + ( 44 ) * - 81 + + COUNT( ALL 99 ) + COUNT( * ) * - 42 * - 10
----
-352415

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT + SUM ( DISTINCT - - 99 ) * + ( 44 ) * - 81 + + COUNT ( ALL 99 ) + COUNT ( * ) * - 42 * - 10
----
-352415

query I rowsort
SELECT - + 90 + + + COALESCE ( + 88, - + 54 ) AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9552
SELECT ALL - CASE 75 WHEN - - 35 THEN NULL WHEN - + 68 + - 50 THEN - 64 * - - 42 * - - COUNT( * ) + + 55 - + CAST( NULL AS SIGNED ) / 61 END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL - CASE 75 WHEN - - 35 THEN NULL WHEN - + 68 + - 50 THEN - 64 * - - 42 * - - COUNT ( * ) + + 55 - + CAST ( NULL AS INTEGER ) / 61 END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT NULLIF ( - 30, + - 35 )
----
-30

query II rowsort
SELECT 23 * - 7 + - 40 AS col2, 76 AS col0
----
-201
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + MAX( ALL + 67 ) col0
----
67

skipif mysql # not compatible
query I rowsort label-9555
SELECT + MAX ( ALL + 67 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT + NULLIF ( COUNT( * ), + - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-9556
SELECT + NULLIF ( COUNT ( * ), + - 8 )
----
1

query I rowsort
SELECT - + 63 + 30 * + - 16 * 63
----
-30303

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9558
SELECT + COUNT( * ) DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9558
SELECT + COUNT ( * ) / 22 AS col1
----
0

query II rowsort
SELECT ALL - 50 col2, + 62 AS col1
----
-50
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9560
SELECT ALL - 21 * - - COUNT( * ) + + CAST( NULL AS DECIMAL ) + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL - 21 * - - COUNT ( * ) + + CAST ( NULL AS REAL ) + - 39
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9561
SELECT ALL CAST( + AVG ( ALL - 1 ) AS SIGNED ) * + 53 * 35 * 94 * - MIN( 76 ) * - 44 DIV 11 + - 59 + - SUM( - 38 ) * 76 * + 64 + - 61 + 68 col2
----
-52823700

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL CAST ( + AVG ( ALL - 1 ) AS INTEGER ) * + 53 * 35 * 94 * - MIN ( 76 ) * - 44 / 11 + - 59 + - SUM ( - 38 ) * 76 * + 64 + - 61 + 68 col2
----
-52823700

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT + - MIN( + NULLIF ( + - 8, + 35 ) ) - - 10
----
18

skipif mysql # not compatible
query I rowsort label-9562
SELECT + - MIN ( + NULLIF ( + - 8, + 35 ) ) - - 10
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL 33 * ( COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL 33 * ( COUNT ( * ) )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9564
SELECT - CASE 10 WHEN + 50 * - + COUNT( * ) THEN - - 37 + + COUNT( * ) ELSE + COUNT( DISTINCT 41 ) - 64 END AS col2, 28 AS col1
----
63
28

skipif mysql # not compatible
query II rowsort label-9564
SELECT - CASE 10 WHEN + 50 * - + COUNT ( * ) THEN - - 37 + + COUNT ( * ) ELSE + COUNT ( DISTINCT 41 ) - 64 END AS col2, 28 AS col1
----
63
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9565
SELECT + 13 + - ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9565
SELECT + 13 + - ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 20 AS col0
----
NULL

query I rowsort
SELECT - 19 - 46 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ( 45 ) + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-9567
SELECT ( 45 ) + - COUNT ( * )
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9568
SELECT ALL 34, CASE - 0 WHEN 97 THEN NULL WHEN - - 52 THEN NULL ELSE 42 * - 2 * + COUNT( * ) + + + ( - CAST( NULL AS DECIMAL ) ) * COUNT( * ) + - 16 END + COUNT( * ) AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-9568
SELECT ALL 34, CASE - 0 WHEN 97 THEN NULL WHEN - - 52 THEN NULL ELSE 42 * - 2 * + COUNT ( * ) + + + ( - CAST ( NULL AS REAL ) ) * COUNT ( * ) + - 16 END + COUNT ( * ) AS col2
----
34
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9569
SELECT SUM( + 22 ) + - + 12 DIV - ( 98 )
----
22

skipif mysql # not compatible
query I rowsort label-9569
SELECT SUM ( + 22 ) + - + 12 / - ( 98 )
----
22

query I rowsort
SELECT DISTINCT 30 - - 49 col1
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9571
SELECT ALL 24 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL 24 / - 82 AS col0
----
0

query I rowsort
SELECT 98 + - + 5
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9573
SELECT MIN( + - 89 ) DIV - 29
----
3

skipif mysql # not compatible
query I rowsort label-9573
SELECT MIN ( + - 89 ) / - 29
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT - CASE 67 WHEN + + 77 THEN 57 END / 49 * 63 / CAST( NULL AS SIGNED ) + - + COALESCE ( - - 24, NULLIF ( - 84, 55 ), - 8 ) + + 42 + + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9574
SELECT - CASE 67 WHEN + + 77 THEN 57 END / 49 * 63 / CAST ( NULL AS INTEGER ) + - + COALESCE ( - - 24, NULLIF ( - 84, 55 ), - 8 ) + + 42 + + - 58
----
NULL

query II rowsort
SELECT ALL - 33 AS col0, + 99
----
-33
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9576
SELECT 3 * - - SUM( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) * 78 + + - 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT 3 * - - SUM ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) * 78 + + - 32 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT 7 * + + COUNT( * ) DIV - + ( - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT 7 * + + COUNT ( * ) / - + ( - 57 )
----
0

query I rowsort
SELECT ALL 65 + + - 50 col1
----
15

query I rowsort
SELECT ALL - ( ( 5 ) ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9580
SELECT + COUNT( * ) AS col0, + 9 * - 33
----
1
-297

skipif mysql # not compatible
query II rowsort label-9580
SELECT + COUNT ( * ) AS col0, + 9 * - 33
----
1
-297

query II rowsort
SELECT 82, 72 AS col2
----
82
72

query I rowsort
SELECT DISTINCT + 31 + 99 * + + 39 AS col1
----
3892

query I rowsort
SELECT ALL - 72 + 7
----
-65

query I rowsort
SELECT + ( - 92 ) AS col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9585
SELECT DISTINCT + COUNT( 63 ) * - 92 + + 51 DIV + - COUNT( * )
----
-143

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + COUNT ( 63 ) * - 92 + + 51 / + - COUNT ( * )
----
-143

query II rowsort
SELECT ALL 78 - 17 AS col2, + 29
----
61
29

query I rowsort
SELECT DISTINCT + 29 - - 22 AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9588
SELECT CAST( NULL AS SIGNED ) + - - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT CAST ( NULL AS INTEGER ) + - - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL + SUM( DISTINCT + 51 ) - 37
----
14

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL + SUM ( DISTINCT + 51 ) - 37
----
14

query I rowsort
SELECT 33 * - 66 + 25
----
-2153

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT CASE + 82 WHEN - 84 + - ( 65 ) THEN NULL WHEN - NULLIF ( - COUNT( * ), - 14 - 41 ) THEN CASE COALESCE ( + + 7, 33 + + 84, 48 + + CASE - + 74 WHEN COUNT( * ) THEN ( 15 ) * COUNT( * ) + 50 ELSE NULL END ) WHEN 45 / + COUNT( * ) + - 75 THEN NULL ELSE AVG ( 63 ) END END + + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT CASE + 82 WHEN - 84 + - ( 65 ) THEN NULL WHEN - NULLIF ( - COUNT ( * ), - 14 - 41 ) THEN CASE COALESCE ( + + 7, 33 + + 84, 48 + + CASE - + 74 WHEN COUNT ( * ) THEN ( 15 ) * COUNT ( * ) + 50 ELSE NULL END ) WHEN 45 / + COUNT ( * ) + - 75 THEN NULL ELSE AVG ( 63 ) END END + + 50 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9592
SELECT DISTINCT 25 DIV - 13 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9592
SELECT DISTINCT 25 / - 13 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT DISTINCT + 36 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT + 36 / + 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9594
SELECT ( + 26 ) DIV 53
----
0

skipif mysql # not compatible
query I rowsort label-9594
SELECT ( + 26 ) / 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL 24 * - COALESCE ( 42, + COUNT( * ) * - 0 + 66 + + - 88, + - MAX( DISTINCT - - 55 ) ) * - 29
----
29232

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL 24 * - COALESCE ( 42, + COUNT ( * ) * - 0 + 66 + + - 88, + - MAX ( DISTINCT - - 55 ) ) * - 29
----
29232

query II rowsort
SELECT DISTINCT 83 * - 61 AS col1, - 70
----
-5063
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9597
SELECT ALL COUNT( * ) * - 63 AS col1, 43 + COUNT( * ) AS col0
----
-63
44

skipif mysql # not compatible
query II rowsort label-9597
SELECT ALL COUNT ( * ) * - 63 AS col1, 43 + COUNT ( * ) AS col0
----
-63
44

query I rowsort
SELECT 72 * ( 56 ) AS col0
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT ALL 18 * - MIN( DISTINCT + + 14 ) * + 19 + + 57
----
-4731

skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL 18 * - MIN ( DISTINCT + + 14 ) * + 19 + + 57
----
-4731

query I rowsort
SELECT 78 - 34 AS col0
----
44

query II rowsort
SELECT 26 * + 21, + 72 AS col1
----
546
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9602
SELECT ALL AVG ( - 87 ) + + COUNT( + 97 ) * + - NULLIF ( - - CAST( NULL AS DECIMAL ), - + 99 + - 41 + + 59 * - ( + 85 ) * - 98 - + + 58 * - 4 * + 71 + 53 * 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL AVG ( - 87 ) + + COUNT ( + 97 ) * + - NULLIF ( - - CAST ( NULL AS REAL ), - + 99 + - 41 + + 59 * - ( + 85 ) * - 98 - + + 58 * - 4 * + 71 + 53 * 98 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9603
SELECT ALL 82 + - - COALESCE ( - 6, - 45 DIV - 33 + 10 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL 82 + - - COALESCE ( - 6, - 45 / - 33 + 10 ) AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL + 32 * - 83 * - 27 + - 53 / - ( - MAX( ALL + CAST( NULL AS SIGNED ) ) ) * 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + 32 * - 83 * - 27 + - 53 / - ( - MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) * 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL + 45 * - COUNT( * ) + + 88
----
43

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL + 45 * - COUNT ( * ) + + 88
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9606
SELECT DISTINCT + - COUNT( * ) * - 38 + CAST( - 95 AS SIGNED ) + + ( + - 51 ) AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT + - COUNT ( * ) * - 38 + CAST ( - 95 AS INTEGER ) + + ( + - 51 ) AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT - + 63 * + + 57 + + + COUNT( * ) + + 57 + - 4 * - - 82 * + 32 * - ( COUNT( * ) ) + - + 88 + - 11 * - 49 AS col2
----
7414

skipif mysql # not compatible
query I rowsort label-9607
SELECT - + 63 * + + 57 + + + COUNT ( * ) + + 57 + - 4 * - - 82 * + 32 * - ( COUNT ( * ) ) + - + 88 + - 11 * - 49 AS col2
----
7414

query I rowsort
SELECT ALL 99 + + 43 col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT 7 * + - 96 * + - COUNT( * ) - - 89 AS col0
----
761

skipif mysql # not compatible
query I rowsort label-9609
SELECT 7 * + - 96 * + - COUNT ( * ) - - 89 AS col0
----
761

query I rowsort
SELECT + COALESCE ( + - 65, - + 77, ( - 96 ), + + 15 ) col2
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9611
SELECT + COALESCE ( ( + + MIN( + 53 ) ), 11, - COUNT( * ) * - 87 - + 30, - - ( + + ( + 89 ) ) * COUNT( * ) + - CAST( NULL AS SIGNED ) )
----
53

skipif mysql # not compatible
query I rowsort label-9611
SELECT + COALESCE ( ( + + MIN ( + 53 ) ), 11, - COUNT ( * ) * - 87 - + 30, - - ( + + ( + 89 ) ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL 65 - - 21 + - COUNT( ALL 84 ) * - 51 * - 15 AS col2
----
-679

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL 65 - - 21 + - COUNT ( ALL 84 ) * - 51 * - 15 AS col2
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT COUNT( * ) * 89 AS col1
----
89

skipif mysql # not compatible
query I rowsort label-9613
SELECT COUNT ( * ) * 89 AS col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9614
SELECT DISTINCT - ( - 29 ), - COUNT( + + 14 ) AS col1
----
29
-1

skipif mysql # not compatible
query II rowsort label-9614
SELECT DISTINCT - ( - 29 ), - COUNT ( + + 14 ) AS col1
----
29
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT ALL - - COUNT( * ) - - SUM( ALL - ( 13 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL - - COUNT ( * ) - - SUM ( ALL - ( 13 ) )
----
-12

query I rowsort
SELECT + 32 + - 13
----
19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9617
SELECT + 7 + + 83 + - 46 + + + 63 - + 96 + CAST( + + 95 AS SIGNED ) + 58 DIV - 99 + 22 col0
----
128

skipif mysql # not compatible
query I rowsort label-9617
SELECT + 7 + + 83 + - 46 + + + 63 - + 96 + CAST ( + + 95 AS INTEGER ) + 58 / - 99 + 22 col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT ALL + 49 * MIN( ALL + 17 ) col2
----
833

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + 49 * MIN ( ALL + 17 ) col2
----
833

query I rowsort
SELECT ALL NULLIF ( - 28, + - 95 * + 10 ) AS col2
----
-28

query I rowsort
SELECT ALL CASE - + 56 WHEN + 76 / - ( - 12 ) THEN + 34 * - + 54 END AS col0
----
NULL

query I rowsort
SELECT ALL + 49 * + 82 AS col2
----
4018

query I rowsort
SELECT - ( + ( + - 60 ) ) - 41 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT + 31 + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + 31 + - COUNT ( * )
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9624
SELECT ALL NULLIF ( 33, + 75 * 1 ) AS col1, - CAST( - 53 AS SIGNED ) AS col1
----
33
53

skipif mysql # not compatible
query II rowsort label-9624
SELECT ALL NULLIF ( 33, + 75 * 1 ) AS col1, - CAST ( - 53 AS INTEGER ) AS col1
----
33
53

query II rowsort
SELECT 26, 14 AS col2
----
26
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9626
SELECT - COUNT( * ) + - 17
----
-18

skipif mysql # not compatible
query I rowsort label-9626
SELECT - COUNT ( * ) + - 17
----
-18

query I rowsort
SELECT ALL - 14 + ( - - ( 96 ) )
----
82

query II rowsort
SELECT DISTINCT CASE + 40 WHEN 27 THEN + + COALESCE ( + - 21, + 82 / + + 68 * + + 32 ) WHEN 0 / + 86 THEN - 2 + + 14 / + + NULLIF ( + - 93, + 68 * - 90 ) END, 87 + 13 col0
----
NULL
100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9629
SELECT DISTINCT - 5 DIV - CAST( 61 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9629
SELECT DISTINCT - 5 / - CAST ( 61 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL CASE 91 WHEN + COUNT( * ) + - 37 THEN + 94 - + 95 * - - 53 / + 36 ELSE NULL END + COUNT( * ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL CASE 91 WHEN + COUNT ( * ) + - 37 THEN + 94 - + 95 * - - 53 / + 36 ELSE NULL END + COUNT ( * ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9631
SELECT DISTINCT 13 AS col0, - MIN( 18 ) * - - 70 AS col2, + - 0 AS col0
----
13
-1260
0

skipif mysql # not compatible
query III rowsort label-9631
SELECT DISTINCT 13 AS col0, - MIN ( 18 ) * - - 70 AS col2, + - 0 AS col0
----
13
-1260
0

query I rowsort
SELECT + 23 + - - 24 col0
----
47

query I rowsort
SELECT ALL 70 + + 95
----
165

query I rowsort
SELECT DISTINCT - 47 * + + 23
----
-1081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT DISTINCT + COUNT( ALL COALESCE ( - 92, CAST( - 20 AS SIGNED ) ) ) * - + ( - 41 ) * - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT + COUNT ( ALL COALESCE ( - 92, CAST ( - 20 AS INTEGER ) ) ) * - + ( - 41 ) * - COUNT ( * )
----
-41

query I rowsort
SELECT + 67 * + 98
----
6566

query II rowsort
SELECT ALL + 25, + 22 AS col2
----
25
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL + + MIN( 14 ) * + 16 * - 71 - - 82 AS col2
----
-15822

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL + + MIN ( 14 ) * + 16 * - 71 - - 82 AS col2
----
-15822

query I rowsort
SELECT DISTINCT 54 * 3 * - 52
----
-8424

query I rowsort
SELECT ALL + - ( - + 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL + ( + + SUM( - - 36 ) )
----
36

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL + ( + + SUM ( - - 36 ) )
----
36

query I rowsort
SELECT 93 * 3 * + 50 + - 95 * - COALESCE ( + 70, + 81 * + 26 - + 38 * + 68 ) AS col1
----
20600

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT + COUNT( ALL - 97 )
----
1

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + COUNT ( ALL - 97 )
----
1

query I rowsort
SELECT + ( - + 91 ) * 83 AS col1
----
-7553

query II rowsort
SELECT DISTINCT - 96 * 26 * - 11, 78 * + 13 col2
----
27456
1014

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9646
SELECT ALL + + COUNT( * ), - 7 DIV 13 DIV - 1 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-9646
SELECT ALL + + COUNT ( * ), - 7 / 13 / - 1 AS col2
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT + COUNT( * ) * - 39 + + 31
----
-8

skipif mysql # not compatible
query I rowsort label-9647
SELECT + COUNT ( * ) * - 39 + + 31
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9648
SELECT - + SUM( - 60 ) DIV COALESCE ( ( 76 ), - + 30, 54, SUM( DISTINCT 71 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9648
SELECT - + SUM ( - 60 ) / COALESCE ( ( 76 ), - + 30, 54, SUM ( DISTINCT 71 ) ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT + - 57 * - 67 + - AVG ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT + - 57 * - 67 + - AVG ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 84 * + NULLIF ( 4, + - 54 )
----
336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9651
SELECT DISTINCT 79 * 68 + 67 + - + 51 + + + COUNT( CAST( + 41 AS SIGNED ) ) AS col1
----
5389

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT 79 * 68 + 67 + - + 51 + + + COUNT ( CAST ( + 41 AS INTEGER ) ) AS col1
----
5389

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT + COUNT( * ) * - + 36 + + MIN( ALL ( 7 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-9652
SELECT + COUNT ( * ) * - + 36 + + MIN ( ALL ( 7 ) )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9653
SELECT ALL - 91 DIV COUNT( * ), 47 AS col0
----
-91
47

skipif mysql # not compatible
query II rowsort label-9653
SELECT ALL - 91 / COUNT ( * ), 47 AS col0
----
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT MAX( ALL + 61 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-9654
SELECT MAX ( ALL + 61 ) col2
----
61

query I rowsort
SELECT DISTINCT NULLIF ( 55, + 64 + - - 48 ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9656
SELECT - CAST( NULL AS DECIMAL ) * - 98 * COUNT( * ) * + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT - CAST ( NULL AS REAL ) * - 98 * COUNT ( * ) * + - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT - 6 + + - ( - 10 ) + + - SUM( DISTINCT 78 ) * + 16 + + - 81 + - 55 + + 55 * - - 2 col1
----
-1270

skipif mysql # not compatible
query I rowsort label-9657
SELECT - 6 + + - ( - 10 ) + + - SUM ( DISTINCT 78 ) * + 16 + + - 81 + - 55 + + 55 * - - 2 col1
----
-1270

query I rowsort
SELECT DISTINCT + 0 + - 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL + 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL + 19 + COUNT ( * )
----
20

query I rowsort
SELECT - 70 * + 5
----
-350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9661
SELECT ALL CASE CAST( NULL AS SIGNED ) WHEN - 38 THEN - - 72 WHEN + + COUNT( * ) THEN - 92 ELSE + 76 END
----
76

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL CASE CAST ( NULL AS INTEGER ) WHEN - 38 THEN - - 72 WHEN + + COUNT ( * ) THEN - 92 ELSE + 76 END
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT DISTINCT - COALESCE ( + - 95, - 94, + ( AVG ( DISTINCT + - 80 ) ) / + COUNT( * ) ) + - 75 / + - CASE - 74 WHEN + 90 + + 2 + ( MAX( + 33 ) ) * + 98 THEN 91 * + 12 + + + 20 WHEN 86 THEN 64 ELSE NULL END + - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT - COALESCE ( + - 95, - 94, + ( AVG ( DISTINCT + - 80 ) ) / + COUNT ( * ) ) + - 75 / + - CASE - 74 WHEN + 90 + + 2 + ( MAX ( + 33 ) ) * + 98 THEN 91 * + 12 + + + 20 WHEN 86 THEN 64 ELSE NULL END + - 6
----
NULL

query I rowsort
SELECT - 23 * 16
----
-368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT - 34 * CAST( - 15 AS SIGNED ) AS col2
----
510

skipif mysql # not compatible
query I rowsort label-9664
SELECT - 34 * CAST ( - 15 AS INTEGER ) AS col2
----
510

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT + CASE - 37 WHEN + 40 THEN 35 - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT + CASE - 37 WHEN + 40 THEN 35 - + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL + COALESCE ( - + 10, + 82 + - 22 - + - 48 + - + 65 + + 62 + - 59 + - + SUM( + 6 ), - 31 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL + COALESCE ( - + 10, + 82 + - 22 - + - 48 + - + 65 + + 62 + - 59 + - + SUM ( + 6 ), - 31 ) AS col1
----
-10

query II rowsort
SELECT + + 74 * 48, + ( + 7 ) AS col2
----
3552
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT MAX( + + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9668
SELECT MAX ( + + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT ALL 4 - + 39 + ( + + 9 ) + - SUM( ALL - 70 ) + + 64 + 68 AS col0
----
176

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL 4 - + 39 + ( + + 9 ) + - SUM ( ALL - 70 ) + + 64 + 68 AS col0
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT SUM( DISTINCT - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-9670
SELECT SUM ( DISTINCT - 48 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT ALL - - 29 DIV - 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL - - 29 / - 31 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9672
SELECT - 87 DIV + 1 * - - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-9672
SELECT - 87 / + 1 * - - COUNT ( * ) AS col0
----
-87

query II rowsort
SELECT DISTINCT - 2 * + 98 AS col0, 91 + 82
----
-196
173

query I rowsort
SELECT - 44 + + ( 68 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT ALL - MAX( COALESCE ( + 5, + 3 ) ) * + + 80
----
-400

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL - MAX ( COALESCE ( + 5, + 3 ) ) * + + 80
----
-400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9676
SELECT - - CASE 97 WHEN + 66 THEN - ( MIN( 74 ) ) - - + 80 * 46 WHEN - - 50 THEN CAST( NULL AS SIGNED ) END / - COUNT( * ) * - - 75 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT - - CASE 97 WHEN + 66 THEN - ( MIN ( 74 ) ) - - + 80 * 46 WHEN - - 50 THEN CAST ( NULL AS INTEGER ) END / - COUNT ( * ) * - - 75 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9677
SELECT + - 47 * - CASE + 75 WHEN - ( - + CAST( NULL AS SIGNED ) ) THEN NULL WHEN + - 89 THEN NULL ELSE - + ( + 19 ) * - 24 END AS col2, 47
----
21432
47

skipif mysql # not compatible
query II rowsort label-9677
SELECT + - 47 * - CASE + 75 WHEN - ( - + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + - 89 THEN NULL ELSE - + ( + 19 ) * - 24 END AS col2, 47
----
21432
47

query I rowsort
SELECT - + 78 + 19
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL - 67 * COUNT( ALL - 69 )
----
-67

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL - 67 * COUNT ( ALL - 69 )
----
-67

query I rowsort
SELECT + + 46 * - 30 + + - 85 * - 75 AS col2
----
4995

query I rowsort
SELECT + 94 + - 84
----
10

query I rowsort
SELECT - 3 * 94 AS col0
----
-282

query I rowsort
SELECT ALL 77 + - 80 + 31 * + 77
----
2384

query I rowsort
SELECT DISTINCT - ( + 92 ) col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9685
SELECT ALL MIN( DISTINCT + - 13 ) + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL MIN ( DISTINCT + - 13 ) + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9686
SELECT DISTINCT 66 + - + COALESCE ( - 22, + NULLIF ( 43, + - 22 * - COALESCE ( 82, - COALESCE ( + 61, + COALESCE ( + COUNT( * ), SUM( ALL 3 ) + 73 + 57, + - 90 + ( + + 87 ) ) * + CAST( NULL AS SIGNED ) * + 45 - + 35 ) DIV - COUNT( * ), + 58 ) ) + - 56 ) * - COALESCE ( - ( + 81 ) + COUNT( * ) DIV + 56, 45 ) AS col1
----
1848

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT 66 + - + COALESCE ( - 22, + NULLIF ( 43, + - 22 * - COALESCE ( 82, - COALESCE ( + 61, + COALESCE ( + COUNT ( * ), SUM ( ALL 3 ) + 73 + 57, + - 90 + ( + + 87 ) ) * + CAST ( NULL AS INTEGER ) * + 45 - + 35 ) / - COUNT ( * ), + 58 ) ) + - 56 ) * - COALESCE ( - ( + 81 ) + COUNT ( * ) / + 56, 45 ) AS col1
----
1848

query I rowsort
SELECT 62 * + 97 AS col1
----
6014

query I rowsort
SELECT 98 * ( - + 3 ) * + 76
----
-22344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9689
SELECT 56 AS col0, MIN( DISTINCT - + 76 ) * - 27 * 89 / - + CAST( NULL AS SIGNED ) * 24 + + 4
----
56
NULL

skipif mysql # not compatible
query II rowsort label-9689
SELECT 56 AS col0, MIN ( DISTINCT - + 76 ) * - 27 * 89 / - + CAST ( NULL AS INTEGER ) * 24 + + 4
----
56
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9690
SELECT 64, - ( - MIN( ALL + 4 ) ) AS col2
----
64
4

skipif mysql # not compatible
query II rowsort label-9690
SELECT 64, - ( - MIN ( ALL + 4 ) ) AS col2
----
64
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT ALL 95 + 56 + + 32 DIV + 40
----
151

skipif mysql # not compatible
query I rowsort label-9691
SELECT ALL 95 + 56 + + 32 / + 40
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9692
SELECT ALL ( + + CASE 98 WHEN + 90 THEN NULL WHEN - 51 THEN + 51 * 54 ELSE NULL END ) + - - ( + CAST( NULL AS SIGNED ) ) * - COALESCE ( NULLIF ( 70, + + 35 * - 37 + + 17 - + + NULLIF ( + - 29, 37 + + MIN( 52 ) ) / CAST( NULL AS SIGNED ) ), COUNT( * ) + + 57 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL ( + + CASE 98 WHEN + 90 THEN NULL WHEN - 51 THEN + 51 * 54 ELSE NULL END ) + - - ( + CAST ( NULL AS INTEGER ) ) * - COALESCE ( NULLIF ( 70, + + 35 * - 37 + + 17 - + + NULLIF ( + - 29, 37 + + MIN ( 52 ) ) / CAST ( NULL AS INTEGER ) ), COUNT ( * ) + + 57 ) col1
----
NULL

query I rowsort
SELECT ALL 59 * - + 39
----
-2301

query I rowsort
SELECT DISTINCT 94 + + + 47
----
141

query I rowsort
SELECT ALL 53 + + 82
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-9696
SELECT ALL 51 AS col1, 6 + + CASE - - COUNT( * ) WHEN - - 74 THEN 67 END + - 43
----
51
NULL

skipif mysql # not compatible
query II rowsort label-9696
SELECT ALL 51 AS col1, 6 + + CASE - - COUNT ( * ) WHEN - - 74 THEN 67 END + - 43
----
51
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9697
SELECT 32 + - + 69 + - MIN( + 82 ) + - COUNT( * ) + + 96 - + NULLIF ( 23, - + 65 ) DIV + 57 * 21 col0
----
-24

skipif mysql # not compatible
query I rowsort label-9697
SELECT 32 + - + 69 + - MIN ( + 82 ) + - COUNT ( * ) + + 96 - + NULLIF ( 23, - + 65 ) / + 57 * 21 col0
----
-24

query I rowsort
SELECT NULLIF ( - 95, - + 93 ) * 58 * + 66
----
-363660

query I rowsort
SELECT 13 + + 15 AS col2
----
28

query I rowsort
SELECT 48 * + 45 * - + CASE + - 61 WHEN - 70 THEN + 32 * 9 - + 26 ELSE NULL END
----
NULL

query I rowsort
SELECT ( - 23 ) + - - 61 AS col0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9702
SELECT 58 - 41 * + - 48 col2, COUNT( * ) - - 68 col2
----
2026
69

skipif mysql # not compatible
query II rowsort label-9702
SELECT 58 - 41 * + - 48 col2, COUNT ( * ) - - 68 col2
----
2026
69

query II rowsort
SELECT ALL - 47 col0, 28 * + - 97 + - - 14
----
-47
-2702

query I rowsort
SELECT 5 + - + 98
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9705
SELECT ALL - CAST( NULL AS SIGNED ) - 2 + - + CAST( NULL AS SIGNED ) - - 13 / + 69 + + ( COUNT( * ) ) * - - NULLIF ( + 39, - + 42 * - 28 ) * + 72 - - + 17 * + - CASE - 86 WHEN AVG ( DISTINCT 27 ) THEN + 70 END / CASE + - 16 WHEN 80 * + 46 + - 39 THEN NULL WHEN 82 + 85 THEN - 39 WHEN AVG ( - 39 ) * - 82 THEN - 81 * - 64 END + SUM( ALL - 69 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - CAST ( NULL AS INTEGER ) - 2 + - + CAST ( NULL AS INTEGER ) - - 13 / + 69 + + ( COUNT ( * ) ) * - - NULLIF ( + 39, - + 42 * - 28 ) * + 72 - - + 17 * + - CASE - 86 WHEN AVG ( DISTINCT 27 ) THEN + 70 END / CASE + - 16 WHEN 80 * + 46 + - 39 THEN NULL WHEN 82 + 85 THEN - 39 WHEN AVG ( - 39 ) * - 82 THEN - 81 * - 64 END + SUM ( ALL - 69 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT + 85 + - 47 * COALESCE ( + 60, + - 18 * + - COALESCE ( COUNT( * ), 27 * - CAST( + + 58 AS SIGNED ), + + 46 ) + COUNT( * ) )
----
-2735

skipif mysql # not compatible
query I rowsort label-9706
SELECT + 85 + - 47 * COALESCE ( + 60, + - 18 * + - COALESCE ( COUNT ( * ), 27 * - CAST ( + + 58 AS INTEGER ), + + 46 ) + COUNT ( * ) )
----
-2735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9707
SELECT ALL - SUM( DISTINCT - 82 ) * + - CAST( + + 57 AS SIGNED ) AS col0
----
-4674

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL - SUM ( DISTINCT - 82 ) * + - CAST ( + + 57 AS INTEGER ) AS col0
----
-4674

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9708
SELECT COUNT( * ) * 99 + + 89 * CAST( NULL AS DECIMAL ) - - + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT COUNT ( * ) * 99 + + 89 * CAST ( NULL AS REAL ) - - + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT - MAX( - 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9709
SELECT - MAX ( - 95 ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9710
SELECT - CASE + + COUNT( DISTINCT + 56 ) WHEN - CAST( - 6 AS SIGNED ) THEN NULL WHEN 39 THEN - 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT - CASE + + COUNT ( DISTINCT + 56 ) WHEN - CAST ( - 6 AS INTEGER ) THEN NULL WHEN 39 THEN - 19 ELSE NULL END
----
NULL

query I rowsort
SELECT + 42 * - 9
----
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-9712
SELECT 18 DIV 27 + - - 51 * ( - - COALESCE ( - 76, - - 98 ) ) - + 72
----
-3948

skipif mysql # not compatible
query I rowsort label-9712
SELECT 18 / 27 + - - 51 * ( - - COALESCE ( - 76, - - 98 ) ) - + 72
----
-3948

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT + + COUNT( * ) AS col2, + 54 AS col1
----
1
54

skipif mysql # not compatible
query II rowsort label-9713
SELECT + + COUNT ( * ) AS col2, + 54 AS col1
----
1
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9714
SELECT - 21 DIV + NULLIF ( - + COUNT( * ), + 62 * - 73 + + + 91 + + 17 * + 65 * - 13 ) + + 55
----
76

skipif mysql # not compatible
query I rowsort label-9714
SELECT - 21 / + NULLIF ( - + COUNT ( * ), + 62 * - 73 + + + 91 + + 17 * + 65 * - 13 ) + + 55
----
76

query II rowsort
SELECT + 92 AS col0, - 39 + - ( - 46 ) + + + 77 AS col1
----
92
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT + - 35 DIV + 90 + + 19 + + 98 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-9716
SELECT + - 35 / + 90 + + 19 + + 98 AS col1
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9717
SELECT DISTINCT - 10 + + + SUM( 24 ) * - - ( + ( CASE + + MAX( CAST( NULL AS SIGNED ) ) WHEN + - 83 THEN NULL WHEN + 91 THEN - COUNT( * ) / 5 + - 38 END ) ) + - 42 + - 13 col2, 14 * 57 AS col1
----
NULL
798

skipif mysql # not compatible
query II rowsort label-9717
SELECT DISTINCT - 10 + + + SUM ( 24 ) * - - ( + ( CASE + + MAX ( CAST ( NULL AS INTEGER ) ) WHEN + - 83 THEN NULL WHEN + 91 THEN - COUNT ( * ) / 5 + - 38 END ) ) + - 42 + - 13 col2, 14 * 57 AS col1
----
NULL
798

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9718
SELECT ALL + + 1 DIV + COUNT( - 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL + + 1 / + COUNT ( - 84 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9719
SELECT ALL + + 84 + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL + + 84 + + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT ALL - 55 + + 85 DIV - SUM( DISTINCT 34 )
----
-57

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL - 55 + + 85 / - SUM ( DISTINCT 34 )
----
-57

query I rowsort
SELECT NULLIF ( 10, + + 79 / - 61 + 37 ) * + + 42
----
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL + + CAST( NULL AS SIGNED ) * - 30 * - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 30 * - 39 AS col2
----
NULL

query I rowsort
SELECT - CASE - 49 WHEN 9 THEN NULL ELSE + 58 END col0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT + 96 DIV 64 DIV 68 + ( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9724
SELECT + 96 / 64 / 68 + ( + 75 )
----
75

query I rowsort
SELECT ALL - 18 + + 99
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT ALL + COUNT( DISTINCT - 92 ) + - 53 * 15 AS col0, + 39
----
-794
39

skipif mysql # not compatible
query II rowsort label-9726
SELECT ALL + COUNT ( DISTINCT - 92 ) + - 53 * 15 AS col0, + 39
----
-794
39

query I rowsort
SELECT 81 * - 22
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT 91 - 0 + + + 22 + - + 1 - - 74 + 47 * 33 * - 32 * + + 58 + - COUNT( * ) AS col0
----
-2878471

skipif mysql # not compatible
query I rowsort label-9728
SELECT 91 - 0 + + + 22 + - + 1 - - 74 + 47 * 33 * - 32 * + + 58 + - COUNT ( * ) AS col0
----
-2878471

query II rowsort
SELECT DISTINCT - ( 28 ) AS col1, 67 * 1 AS col0
----
-28
67

query I rowsort
SELECT DISTINCT - 1 + + 36
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL COUNT( * ) * + + MIN( ALL - - 92 ) * + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL COUNT ( * ) * + + MIN ( ALL - - 92 ) * + COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT COUNT( * ) + - COUNT( + 73 )
----
0

skipif mysql # not compatible
query I rowsort label-9732
SELECT COUNT ( * ) + - COUNT ( + 73 )
----
0

query I rowsort
SELECT DISTINCT 53 - 5 AS col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-9734
SELECT ALL 95 AS col2, MIN( ALL - 92 ) AS col2
----
95
-92

skipif mysql # not compatible
query II rowsort label-9734
SELECT ALL 95 AS col2, MIN ( ALL - 92 ) AS col2
----
95
-92

query I rowsort
SELECT - 94 * - + 16 + - ( 4 ) + + ( + 52 )
----
1552

query I rowsort
SELECT 6 * - 16 * - + 32 AS col1
----
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT DISTINCT 64 - + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-9737
SELECT DISTINCT 64 - + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9738
SELECT - COUNT( * ) AS col0, - 81 + - - 21 * - 48
----
-1
-1089

skipif mysql # not compatible
query II rowsort label-9738
SELECT - COUNT ( * ) AS col0, - 81 + - - 21 * - 48
----
-1
-1089

query II rowsort
SELECT - 8, - 43 col2
----
-8
-43

query I rowsort
SELECT 58 + 79
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT ALL ( + 31 ) * - - CAST( NULL AS SIGNED ) * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL ( + 31 ) * - - CAST ( NULL AS INTEGER ) * + 64
----
NULL

query II rowsort
SELECT 43 AS col2, - 62
----
43
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT ALL COALESCE ( + - COUNT( * ), - 92 + + 1 * - CASE + - 78 WHEN ( + 3 ) + + 92 THEN + 68 * + ( 61 ) * 27 ELSE 26 * + COUNT( * ) - - 18 + + 68 + - CAST( SUM( DISTINCT 36 ) AS SIGNED ) END )
----
-1

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL COALESCE ( + - COUNT ( * ), - 92 + + 1 * - CASE + - 78 WHEN ( + 3 ) + + 92 THEN + 68 * + ( 61 ) * 27 ELSE 26 * + COUNT ( * ) - - 18 + + 68 + - CAST ( SUM ( DISTINCT 36 ) AS INTEGER ) END )
----
-1

query I rowsort
SELECT DISTINCT 21 * - 29 + 24 AS col2
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT DISTINCT - 66 * 56 DIV 71 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT - 66 * 56 / 71 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-9746
SELECT ALL + + 53 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + + 53 / 74 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9747
SELECT + COUNT( * ) DIV + 34 * ( - - 47 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-9747
SELECT + COUNT ( * ) / + 34 * ( - - 47 ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9748
SELECT + CAST( NULL AS SIGNED ) - + COALESCE ( + 23, - 3, 77 / + 92 + - ( - 76 ) - SUM( DISTINCT + - 13 ), + + NULLIF ( + 2, 23 ) ) * + - COUNT( * ) + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9748
SELECT + CAST ( NULL AS INTEGER ) - + COALESCE ( + 23, - 3, 77 / + 92 + - ( - 76 ) - SUM ( DISTINCT + - 13 ), + + NULLIF ( + 2, 23 ) ) * + - COUNT ( * ) + - 74
----
NULL

query I rowsort
SELECT - 10 * + 2 * - 81 * - 61
----
-98820

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT + + COUNT( * ) * - 70 + 56
----
-14

skipif mysql # not compatible
query I rowsort label-9750
SELECT + + COUNT ( * ) * - 70 + 56
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9751
SELECT DISTINCT + 39 + - 2 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT + 39 + - 2 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 32 + - 46 * + 43
----
-1946

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL - 66 * - 65 * MAX( DISTINCT + 86 ) + - ( + 38 ) * + 93 + + - NULLIF ( 0, + 37 )
----
365406

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL - 66 * - 65 * MAX ( DISTINCT + 86 ) + - ( + 38 ) * + 93 + + - NULLIF ( 0, + 37 )
----
365406

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT ALL + CASE WHEN NOT - COUNT( * ) NOT IN ( 35, - 45 * - 74, + 6 + - 36 + + + 38 + 73 + 49 * - 56, - - AVG ( DISTINCT + NULLIF ( - 47, + 12 + - - 66 ) ) ) THEN NULL ELSE 91 END * - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL + CASE WHEN NOT - COUNT ( * ) NOT IN ( 35, - 45 * - 74, + 6 + - 36 + + + 38 + 73 + 49 * - 56, - - AVG ( DISTINCT + NULLIF ( - 47, + 12 + - - 66 ) ) ) THEN NULL ELSE 91 END * - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - 1 * - - COUNT( * ) + - CASE + COUNT( * ) WHEN COUNT( * ) + + 96 * - - 23 * + - 49 + + 62 / - 10 + + COUNT( * ) THEN + CASE + 66 WHEN + COALESCE ( + 98, 32 / + 92 / + 28, 16 ) THEN AVG ( 56 ) ELSE COALESCE ( 95, 72 - 17 * + 0 ) END + + 52 * 50 ELSE NULL END + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - 1 * - - COUNT ( * ) + - CASE + COUNT ( * ) WHEN COUNT ( * ) + + 96 * - - 23 * + - 49 + + 62 / - 10 + + COUNT ( * ) THEN + CASE + 66 WHEN + COALESCE ( + 98, 32 / + 92 / + 28, 16 ) THEN AVG ( 56 ) ELSE COALESCE ( 95, 72 - 17 * + 0 ) END + + 52 * 50 ELSE NULL END + - 42 AS col1
----
NULL

query II rowsort
SELECT ALL + + 68, + 45 AS col1
----
68
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9757
SELECT DISTINCT + + COUNT( * ) * + + 81 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT + + COUNT ( * ) * + + 81 / - 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT + + COUNT( DISTINCT - 89 ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9758
SELECT + + COUNT ( DISTINCT - 89 ) + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT NULLIF ( - + 49, + 72 + 79 ) col2
----
-49

query I rowsort
SELECT NULLIF ( ( + + 89 ), 26 + + 39 )
----
89

query I rowsort
SELECT NULLIF ( 28, + + 99 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9762
SELECT + 29 * 90 DIV + + 51 + - - COUNT( ALL 21 ) - - COUNT( * ) * + - 85 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-9762
SELECT + 29 * 90 / + + 51 + - - COUNT ( ALL 21 ) - - COUNT ( * ) * + - 85 AS col0
----
-33

query I rowsort
SELECT - 36 + + 32 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT + 41 * MIN( DISTINCT - 21 )
----
-861

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + 41 * MIN ( DISTINCT - 21 )
----
-861

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT ALL + SUM( DISTINCT - 0 ), COUNT( * ) AS col0
----
0
1

skipif mysql # not compatible
query II rowsort label-9765
SELECT ALL + SUM ( DISTINCT - 0 ), COUNT ( * ) AS col0
----
0
1

query I rowsort
SELECT - 30 * + - 75 AS col2
----
2250

query I rowsort
SELECT 33 * + 61 + + - 47 * + + 17 AS col0
----
1214

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT DISTINCT + COALESCE ( 82, ( + + 40 ) DIV + AVG ( 92 ) DIV - NULLIF ( - + 54, + ( + ( + + ( 74 ) ) ) + - + 82 DIV + 19 * + 57 ) ) * + COUNT( * ) col2
----
82

skipif mysql # not compatible
query I rowsort label-9768
SELECT DISTINCT + COALESCE ( 82, ( + + 40 ) / + AVG ( 92 ) / - NULLIF ( - + 54, + ( + ( + + ( 74 ) ) ) + - + 82 / + 19 * + 57 ) ) * + COUNT ( * ) col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT - 94 * - + 93 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT - 94 * - + 93 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 24 * + 66 AS col0
----
1584

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9771
SELECT - 70 * + CAST( NULL AS DECIMAL ) * + SUM( COALESCE ( + 47, + + 79 ) ) * + - 68 + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9771
SELECT - 70 * + CAST ( NULL AS REAL ) * + SUM ( COALESCE ( + 47, + + 79 ) ) * + - 68 + 56
----
NULL

query I rowsort
SELECT - 88 + ( + 29 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT ALL COALESCE ( + + COUNT( * ), - 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL COALESCE ( + + COUNT ( * ), - 53 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9774
SELECT ALL + 70 * 63 AS col0, - COUNT( * ) + - COUNT( * ) * - 79 / - CAST( NULL AS SIGNED ) col2
----
4410
NULL

skipif mysql # not compatible
query II rowsort label-9774
SELECT ALL + 70 * 63 AS col0, - COUNT ( * ) + - COUNT ( * ) * - 79 / - CAST ( NULL AS INTEGER ) col2
----
4410
NULL

query I rowsort
SELECT - 40 * + ( - - 83 )
----
-3320

query I rowsort
SELECT DISTINCT ( - + 52 ) AS col1
----
-52

query I rowsort
SELECT + 53 + - 89
----
-36

query I rowsort
SELECT ALL - NULLIF ( + ( 18 ), - COALESCE ( - 21, - - ( - 46 ) ) )
----
-18

query I rowsort
SELECT - CASE - + 61 WHEN + 31 THEN 38 END * 4 AS col1
----
NULL

query I rowsort
SELECT + 67 + 75 AS col1
----
142

query I rowsort
SELECT - 6 + - 42
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT DISTINCT MAX( DISTINCT - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT MAX ( DISTINCT - 50 )
----
-50

query I rowsort
SELECT + - 85 - - 90 col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT ALL - CAST( NULL AS SIGNED ) + - NULLIF ( - 40, - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - CAST ( NULL AS INTEGER ) + - NULLIF ( - 40, - 31 )
----
NULL

query I rowsort
SELECT + + 16 + + ( 86 )
----
102

query II rowsort
SELECT ALL + 10 + 75 AS col1, 52 AS col0
----
85
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT + - COALESCE ( + + ( + 59 ), + 62 * - 26 + 47 + + 77 ) DIV + - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT + - COALESCE ( + + ( + 59 ), + 62 * - 26 + 47 + + 77 ) / + - 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT ALL COUNT( * ) * ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL COUNT ( * ) * ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 27 + + 51 AS col1
----
24

query II rowsort
SELECT ALL 66 + 32 col2, - 54 + - 37
----
98
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT + ( COUNT( * ) ) * + + 25
----
25

skipif mysql # not compatible
query I rowsort label-9792
SELECT + ( COUNT ( * ) ) * + + 25
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9793
SELECT - - 76 DIV + + 37 + - + 37 + + 88
----
53

skipif mysql # not compatible
query I rowsort label-9793
SELECT - - 76 / + + 37 + - + 37 + + 88
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-9794
SELECT + 60 DIV + 82 * - 94 AS col0, 56 - 88 * + 37 AS col2
----
0
-3200

skipif mysql # not compatible
query II rowsort label-9794
SELECT + 60 / + 82 * - 94 AS col0, 56 - 88 * + 37 AS col2
----
0
-3200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT CAST( - 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-9795
SELECT CAST ( - 84 AS INTEGER )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT ALL 75 DIV + 35 - - + 77 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL 75 / + 35 - - + 77 AS col2
----
79

query I rowsort
SELECT - 7 * + 24 AS col2
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT + CAST( NULL AS SIGNED ) * - 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT + CAST ( NULL AS INTEGER ) * - 42 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9799
SELECT + CAST( NULL AS SIGNED ) AS col2, CAST( 13 AS SIGNED ) / + CASE 49 WHEN MIN( - 57 ) THEN - + 62 - - 37 - + 66 + + + 62 / AVG ( DISTINCT 79 ) WHEN 26 THEN + - 98 WHEN - COUNT( * ) THEN + - 52 ELSE NULL END + + - 87 * + 23 + 81 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9799
SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( 13 AS INTEGER ) / + CASE 49 WHEN MIN ( - 57 ) THEN - + 62 - - 37 - + 66 + + + 62 / AVG ( DISTINCT 79 ) WHEN 26 THEN + - 98 WHEN - COUNT ( * ) THEN + - 52 ELSE NULL END + + - 87 * + 23 + 81 AS col1
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT + 71 DIV 20 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9800
SELECT + 71 / 20 AS col0
----
3

query I rowsort
SELECT ALL + ( - 53 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-9802
SELECT + 95, 53 * - COUNT( * ) * COUNT( * ) + 66 AS col0
----
95
13

skipif mysql # not compatible
query II rowsort label-9802
SELECT + 95, 53 * - COUNT ( * ) * COUNT ( * ) + 66 AS col0
----
95
13

query I rowsort
SELECT - 47 - + 97 - 41 + 92 * + 58 AS col2
----
5151

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT ALL + MIN( DISTINCT 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL + MIN ( DISTINCT 8 )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT DISTINCT - 11 DIV 6
----
-1

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT - 11 / 6
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT ALL + COUNT( * ) AS col2, 72 AS col1
----
1
72

skipif mysql # not compatible
query II rowsort label-9806
SELECT ALL + COUNT ( * ) AS col2, 72 AS col1
----
1
72

onlyif mysql # aggregate syntax: 
query II rowsort label-9807
SELECT DISTINCT + 74 AS col2, - 78 * + MIN( DISTINCT - + 20 )
----
74
1560

skipif mysql # not compatible
query II rowsort label-9807
SELECT DISTINCT + 74 AS col2, - 78 * + MIN ( DISTINCT - + 20 )
----
74
1560

query I rowsort
SELECT ALL - 93 * - 2 col1
----
186

query I rowsort
SELECT - 58 + + 56
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9810
SELECT DISTINCT - NULLIF ( 34, + CASE COUNT( * ) WHEN - MIN( ALL - 77 ) * + 4 DIV COUNT( * ) + 56 THEN NULL WHEN 44 THEN NULL ELSE + 43 END + - 89 ) DIV - 51
----
0

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT - NULLIF ( 34, + CASE COUNT ( * ) WHEN - MIN ( ALL - 77 ) * + 4 / COUNT ( * ) + 56 THEN NULL WHEN 44 THEN NULL ELSE + 43 END + - 89 ) / - 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL + MAX( ALL + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL + MAX ( ALL + 54 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9812
SELECT - 93 - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT - 93 - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT - 81 DIV + - 37
----
2

skipif mysql # not compatible
query I rowsort label-9813
SELECT - 81 / + - 37
----
2

query I rowsort
SELECT + 65 * + 89 + + 79 + + 10 AS col0
----
5874

query II rowsort
SELECT - + 14, 60 AS col0
----
-14
60

query I rowsort
SELECT + 74 + + 25 * 74
----
1924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT DISTINCT + 83 * - CAST( + 50 AS SIGNED ) AS col2
----
-4150

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + 83 * - CAST ( + 50 AS INTEGER ) AS col2
----
-4150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT ALL - 25 + + 15 DIV - COALESCE ( CASE - 25 WHEN + 98 - + - 90 THEN NULL ELSE - 48 * 98 END, - - COUNT( * ) + MAX( - 14 ), - - 87, - 11 ) * 7 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL - 25 + + 15 / - COALESCE ( CASE - 25 WHEN + 98 - + - 90 THEN NULL ELSE - 48 * 98 END, - - COUNT ( * ) + MAX ( - 14 ), - - 87, - 11 ) * 7 AS col1
----
-25

query I rowsort
SELECT ALL - - 77 + + 12 col1
----
89

query II rowsort
SELECT ALL 99 AS col0, 83 AS col1
----
99
83

query I rowsort
SELECT + 31 * 52
----
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT ALL MAX( ALL 55 ) + - 38 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL MAX ( ALL 55 ) + - 38 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT ALL MIN( ALL - 45 ) + - MIN( DISTINCT - - 51 )
----
-96

skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL MIN ( ALL - 45 ) + - MIN ( DISTINCT - - 51 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT - COUNT( DISTINCT + - 15 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9824
SELECT - COUNT ( DISTINCT + - 15 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 31 + - 79
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT DISTINCT CAST( - 85 AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT CAST ( - 85 AS INTEGER )
----
-85

query I rowsort
SELECT ALL - 98 + 13
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT - ( + SUM( ALL CAST( NULL AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT - ( + SUM ( ALL CAST ( NULL AS INTEGER ) ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - NULLIF ( + COUNT( * ), - 49 )
----
-1

skipif mysql # not compatible
query I rowsort label-9829
SELECT - NULLIF ( + COUNT ( * ), - 49 )
----
-1

query I rowsort
SELECT NULLIF ( ( 44 ), 50 ) - - + ( 95 )
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT + COUNT( * ) * 62 + + 5
----
67

skipif mysql # not compatible
query I rowsort label-9831
SELECT + COUNT ( * ) * 62 + + 5
----
67

query I rowsort
SELECT + 47 + 91 - + 63 AS col1
----
75

query I rowsort
SELECT ALL + 38 - + 48 AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9834
SELECT - + 85 AS col0, NULLIF ( + 87, - NULLIF ( CAST( NULL AS SIGNED ), - + 78 * + 46 * + COUNT( * ) ) * + + 45 * - 15 ) col2
----
-85
87

skipif mysql # not compatible
query II rowsort label-9834
SELECT - + 85 AS col0, NULLIF ( + 87, - NULLIF ( CAST ( NULL AS INTEGER ), - + 78 * + 46 * + COUNT ( * ) ) * + + 45 * - 15 ) col2
----
-85
87

query I rowsort
SELECT ALL 49 - + - 14 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9836
SELECT 7 * + - 95 AS col0, + MAX( + 36 ) - - MAX( - 77 ) AS col2
----
-665
-41

skipif mysql # not compatible
query II rowsort label-9836
SELECT 7 * + - 95 AS col0, + MAX ( + 36 ) - - MAX ( - 77 ) AS col2
----
-665
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT ALL - 59 * + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL - 59 * + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL - MIN( DISTINCT - 53 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - MIN ( DISTINCT - 53 ) AS col1
----
53

query I rowsort
SELECT 69 * 2 - + 63 AS col2
----
75

query I rowsort
SELECT 97 * 92
----
8924

query I rowsort
SELECT 32 * 35
----
1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9842
SELECT COALESCE ( + 46, 23 + - 9, - COALESCE ( 34, 1 ) / - 36 - + 42 + - 14 - 70 + ( 60 ) ) * - - 39 * - 97 / - + COUNT( * ) - COUNT( * ) - 3 * + - CAST( NULL AS SIGNED ) AS col2, 16 AS col0, - COUNT( DISTINCT - 83 )
----
NULL
16
-1

skipif mysql # not compatible
query III rowsort label-9842
SELECT COALESCE ( + 46, 23 + - 9, - COALESCE ( 34, 1 ) / - 36 - + 42 + - 14 - 70 + ( 60 ) ) * - - 39 * - 97 / - + COUNT ( * ) - COUNT ( * ) - 3 * + - CAST ( NULL AS INTEGER ) AS col2, 16 AS col0, - COUNT ( DISTINCT - 83 )
----
NULL
16
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT 51 DIV - 31
----
-1

skipif mysql # not compatible
query I rowsort label-9843
SELECT 51 / - 31
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9844
SELECT ALL COUNT( - 71 ) DIV + 90
----
0

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL COUNT ( - 71 ) / + 90
----
0

query I rowsort
SELECT 22 * + 10
----
220

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9846
SELECT CAST( NULL AS DECIMAL ) * 4 * - 92 * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9846
SELECT CAST ( NULL AS REAL ) * 4 * - 92 * + 72
----
NULL

query I rowsort
SELECT DISTINCT 76 * 89 AS col2
----
6764

query I rowsort
SELECT ALL - 7 * - 88
----
616

query I rowsort
SELECT ALL 23 * - 26
----
-598

query II rowsort
SELECT ALL - 98 + + + 97 AS col0, 93 AS col2
----
-1
93

query I rowsort
SELECT 57 * 12 AS col0
----
684

query I rowsort
SELECT DISTINCT 40 + - 46 - + 36
----
-42

query I rowsort
SELECT ALL 17 + 20 * ( + 25 ) - + - 45 AS col0
----
562

query I rowsort
SELECT ALL 75 + 19
----
94

query I rowsort
SELECT DISTINCT - - 14 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9856
SELECT - CASE + CAST( NULL AS SIGNED ) WHEN + CAST( NULL AS SIGNED ) THEN 84 END + - + 78 * + - 50 * + + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT - CASE + CAST ( NULL AS INTEGER ) WHEN + CAST ( NULL AS INTEGER ) THEN 84 END + - + 78 * + - 50 * + + 10 AS col0
----
NULL

query I rowsort
SELECT + - ( - 31 )
----
31

query I rowsort
SELECT ALL + 54 + - - 41 + - + 23
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT - 2 + + + ( - CAST( COUNT( * ) AS SIGNED ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9859
SELECT - 2 + + + ( - CAST ( COUNT ( * ) AS INTEGER ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL 71 + - COUNT( * ) + - - 32
----
102

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL 71 + - COUNT ( * ) + - - 32
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-9861
SELECT ALL - + COUNT( * ) + - 34 AS col1, 29 AS col0
----
-35
29

skipif mysql # not compatible
query II rowsort label-9861
SELECT ALL - + COUNT ( * ) + - 34 AS col1, 29 AS col0
----
-35
29

query I rowsort
SELECT 67 * 17 * 51
----
58089

onlyif mysql # DIV for integer division: 
query I rowsort label-9863
SELECT ALL - - 75 DIV + - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9863
SELECT ALL - - 75 / + - 78 AS col0
----
0

query I rowsort
SELECT + 51 + - 80 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT ALL - 2 + MIN( + 71 )
----
69

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL - 2 + MIN ( + 71 )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT ALL + + 62 - + - 41 + - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL + + 62 - + - 41 + - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT + 4 + - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9867
SELECT + 4 + - COUNT ( * )
----
3

query I rowsort
SELECT 77 + + NULLIF ( 76, - 81 + - 32 )
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9869
SELECT - 87 DIV + COALESCE ( + 4, - COALESCE ( - + 98, + COUNT( * ) ) + - - 20 * - - 33 + - + 33 DIV + - 68 * - 48 + + 98 ) + + ( - 20 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-9869
SELECT - 87 / + COALESCE ( + 4, - COALESCE ( - + 98, + COUNT ( * ) ) + - - 20 * - - 33 + - + 33 / + - 68 * - 48 + + 98 ) + + ( - 20 ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL - + CASE - COUNT( * ) WHEN - 11 + + - 23 * - 53 THEN + 17 WHEN + 53 THEN + 55 / + - 87 ELSE NULL END * + 27 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - + CASE - COUNT ( * ) WHEN - 11 + + - 23 * - 53 THEN + 17 WHEN + 53 THEN + 55 / + - 87 ELSE NULL END * + 27 + - 76
----
NULL

query II rowsort
SELECT ALL - + 70 - - ( ( + 74 ) ) AS col2, 46
----
4
46

query I rowsort
SELECT DISTINCT + 8 * 2
----
16

query I rowsort
SELECT ALL - NULLIF ( - 15, 40 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT ALL - + 95 * - - CAST( NULL AS SIGNED ) + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT ALL - + 95 * - - CAST ( NULL AS INTEGER ) + + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL MIN( ALL 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL MIN ( ALL 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT ALL SUM( - 76 ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL SUM ( - 76 ) col2
----
-76

query I rowsort
SELECT 7 * - 64
----
-448

onlyif mysql # aggregate syntax: 
query II rowsort label-9878
SELECT 42 * MIN( ALL - 22 ) AS col1, - 56
----
-924
-56

skipif mysql # not compatible
query II rowsort label-9878
SELECT 42 * MIN ( ALL - 22 ) AS col1, - 56
----
-924
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-9879
SELECT - 78 DIV + + 37 + + ( 56 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-9879
SELECT - 78 / + + 37 + + ( 56 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9880
SELECT + MIN( ALL + ( + 11 ) ) AS col2, 30 + - - 73 col2
----
11
103

skipif mysql # not compatible
query II rowsort label-9880
SELECT + MIN ( ALL + ( + 11 ) ) AS col2, 30 + - - 73 col2
----
11
103

query II rowsort
SELECT ALL - 87 AS col0, + 11
----
-87
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9882
SELECT - 41 DIV COUNT( * ) * - 25 + - + 43 * - SUM( DISTINCT - 71 ) + + 25 AS col0
----
-2003

skipif mysql # not compatible
query I rowsort label-9882
SELECT - 41 / COUNT ( * ) * - 25 + - + 43 * - SUM ( DISTINCT - 71 ) + + 25 AS col0
----
-2003

query I rowsort
SELECT DISTINCT - ( - + COALESCE ( + + 74, + 57 ) )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT DISTINCT CAST( 78 AS SIGNED ) * + + 54 + 25
----
4237

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT CAST ( 78 AS INTEGER ) * + + 54 + 25
----
4237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9885
SELECT ALL - CAST( + + MAX( 81 ) AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL - CAST ( + + MAX ( 81 ) AS INTEGER )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL - 42 * + 43 + + COUNT( * ) AS col0
----
-1805

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL - 42 * + 43 + + COUNT ( * ) AS col0
----
-1805

query I rowsort
SELECT DISTINCT - 9 * - 9 + + 28 + + 54
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT + 11 + - MAX( - + 76 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-9888
SELECT + 11 + - MAX ( - + 76 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL ( COUNT( * ) ) * + + COUNT( * ) + 52
----
53

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL ( COUNT ( * ) ) * + + COUNT ( * ) + 52
----
53

query I rowsort
SELECT ALL ( 0 ) * - 98 + - - ( 66 ) * - 85 + - + 50 + 79 * - 71
----
-11269

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9891
SELECT + MAX( 87 ) DIV ( + COUNT( ALL + 11 ) )
----
87

skipif mysql # not compatible
query I rowsort label-9891
SELECT + MAX ( 87 ) / ( + COUNT ( ALL + 11 ) )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9892
SELECT + 58 - - 34 + COALESCE ( - - 37, + CAST( NULL AS SIGNED ) + + COUNT( * ) ) * - - 3
----
203

skipif mysql # not compatible
query I rowsort label-9892
SELECT + 58 - - 34 + COALESCE ( - - 37, + CAST ( NULL AS INTEGER ) + + COUNT ( * ) ) * - - 3
----
203

query II rowsort
SELECT + ( - - 79 ) * 87, - ( - 19 ) AS col0
----
6873
19

query I rowsort
SELECT + 90 - - - 72
----
18

query I rowsort
SELECT ALL + - CASE 70 WHEN 3 * 94 THEN - - 13 + 13 END AS col2
----
NULL

query I rowsort
SELECT ALL - 92 + - 56 AS col1
----
-148

query I rowsort
SELECT ALL 43 * + 47
----
2021

query II rowsort
SELECT DISTINCT + 61, + 27 AS col2
----
61
27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9899
SELECT DISTINCT 87 + - + 86 * + CAST( NULL AS DECIMAL ) * - 28 * - CASE - 24 WHEN - 94 - + 38 THEN + 75 WHEN AVG ( 68 ) - COUNT( * ) THEN 73 WHEN - 32 THEN NULL ELSE - ( - 49 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT 87 + - + 86 * + CAST ( NULL AS REAL ) * - 28 * - CASE - 24 WHEN - 94 - + 38 THEN + 75 WHEN AVG ( 68 ) - COUNT ( * ) THEN 73 WHEN - 32 THEN NULL ELSE - ( - 49 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT + NULLIF ( + COUNT( * ), - 88 * + + CAST( + - 94 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9900
SELECT + NULLIF ( + COUNT ( * ), - 88 * + + CAST ( + - 94 AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT ALL 5 - - 50 + - ( - 69 ) + + 13
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT + SUM( DISTINCT - - 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9902
SELECT + SUM ( DISTINCT - - 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + MIN( + 15 ) * + ( - 48 )
----
-720

skipif mysql # not compatible
query I rowsort label-9903
SELECT + MIN ( + 15 ) * + ( - 48 )
----
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT - CAST( 41 AS SIGNED ) + + 29
----
-12

skipif mysql # not compatible
query I rowsort label-9904
SELECT - CAST ( 41 AS INTEGER ) + + 29
----
-12

query I rowsort
SELECT - 76 * 40 AS col1
----
-3040

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT ALL - MIN( ALL - 34 ) col0
----
34

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL - MIN ( ALL - 34 ) col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT DISTINCT + SUM( - - 18 ) DIV ( 97 )
----
0

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + SUM ( - - 18 ) / ( 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT - ( + CAST( - + 35 AS SIGNED ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-9908
SELECT - ( + CAST ( - + 35 AS INTEGER ) ) AS col1
----
35

query I rowsort
SELECT - 84 * + 63
----
-5292

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT DISTINCT COALESCE ( - COUNT( * ), - 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT COALESCE ( - COUNT ( * ), - 67 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9911
SELECT DISTINCT + 97 * - + 5 AS col0, CAST( NULL AS SIGNED ) AS col0
----
-485
NULL

skipif mysql # not compatible
query II rowsort label-9911
SELECT DISTINCT + 97 * - + 5 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-485
NULL

query I rowsort
SELECT - 72 + + 56
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL + MAX( ALL + 74 ) + + - 81 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL + MAX ( ALL + 74 ) + + - 81 AS col1
----
-7

query II rowsort
SELECT - 48 + + - 97 AS col1, 48 AS col0
----
-145
48

query I rowsort
SELECT DISTINCT - 52 * 74 AS col2
----
-3848

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT DISTINCT + CASE - COUNT( * ) WHEN - 70 * + 8 THEN + 5 END + 46 + + 94 - - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT DISTINCT + CASE - COUNT ( * ) WHEN - 70 * + 8 THEN + 5 END + 46 + + 94 - - 14 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT DISTINCT + 15 DIV 65 + - + 50
----
-50

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT + 15 / 65 + - + 50
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT ( + - 53 ) DIV + - 25 - - - 60 - + + 73
----
-131

skipif mysql # not compatible
query I rowsort label-9918
SELECT ( + - 53 ) / + - 25 - - - 60 - + + 73
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT ALL + AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT DISTINCT + CAST( - 35 AS SIGNED ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT + CAST ( - 35 AS INTEGER ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT DISTINCT + NULLIF ( + COUNT( * ), - - MAX( - CAST( NULL AS SIGNED ) ) + + 40 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + NULLIF ( + COUNT ( * ), - - MAX ( - CAST ( NULL AS INTEGER ) ) + + 40 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + 29 * - CASE WHEN + 89 IS NOT NULL THEN + 63 / - 97 / + 81 + + 41 + - + COUNT( + + 32 ) * - 48 WHEN NOT ( NULL ) NOT BETWEEN ( - 61 ) AND NULL THEN 43 - - 16 END * + + 47 + CASE + 76 WHEN + 99 THEN + 16 / + - 52 WHEN 22 * + + 54 - + 15 + COALESCE ( 64, CASE 54 WHEN - 23 / 22 THEN + 54 ELSE NULL END ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT + 29 * - CASE WHEN + 89 IS NOT NULL THEN + 63 / - 97 / + 81 + + 41 + - + COUNT ( + + 32 ) * - 48 WHEN NOT ( NULL ) NOT BETWEEN ( - 61 ) AND NULL THEN 43 - - 16 END * + + 47 + CASE + 76 WHEN + 99 THEN + 16 / + - 52 WHEN 22 * + + 54 - + 15 + COALESCE ( 64, CASE 54 WHEN - 23 / 22 THEN + 54 ELSE NULL END ) THEN NULL END
----
NULL

query I rowsort
SELECT ( + 45 ) AS col2
----
45

query I rowsort
SELECT ( - - 76 ) AS col1
----
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9925
SELECT 80 DIV 26 * 3 * CAST( - + 17 AS SIGNED ) + + - 40 AS col0
----
-193

skipif mysql # not compatible
query I rowsort label-9925
SELECT 80 / 26 * 3 * CAST ( - + 17 AS INTEGER ) + + - 40 AS col0
----
-193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9926
SELECT ALL - 63 * - CASE - 66 WHEN 19 * - 86 THEN - + MIN( + - 73 ) END, CAST( + COUNT( * ) AS SIGNED ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9926
SELECT ALL - 63 * - CASE - 66 WHEN 19 * - 86 THEN - + MIN ( + - 73 ) END, CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT + - ( + NULLIF ( + - 86, - 39 ) ) * - + 52 + 58 * 57 * + 94 - - + 56 - 12 * 42 - CASE - 45 WHEN - COUNT( * ) THEN - 91 WHEN - ( + + 35 ) THEN - 4 * ( + 86 ) + - SUM( ALL - 14 ) ELSE NULL END * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9927
SELECT + - ( + NULLIF ( + - 86, - 39 ) ) * - + 52 + 58 * 57 * + 94 - - + 56 - 12 * 42 - CASE - 45 WHEN - COUNT ( * ) THEN - 91 WHEN - ( + + 35 ) THEN - 4 * ( + 86 ) + - SUM ( ALL - 14 ) ELSE NULL END * + 56
----
NULL

query II rowsort
SELECT ALL + 45, 83 AS col1
----
45
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT - 64 * - + NULLIF ( + 25, - 70 + - - ( + - ( + ( - - COUNT( * ) ) ) ) ) col1
----
1600

skipif mysql # not compatible
query I rowsort label-9929
SELECT - 64 * - + NULLIF ( + 25, - 70 + - - ( + - ( + ( - - COUNT ( * ) ) ) ) ) col1
----
1600

onlyif mysql # aggregate syntax: 
query II rowsort label-9930
SELECT + + 81, - COUNT( * ) * - + ( + 87 ) AS col1
----
81
87

skipif mysql # not compatible
query II rowsort label-9930
SELECT + + 81, - COUNT ( * ) * - + ( + 87 ) AS col1
----
81
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT COUNT( * ) * + - COUNT( DISTINCT - 12 ) + 38 - - NULLIF ( - 45, 11 * + 52 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9931
SELECT COUNT ( * ) * + - COUNT ( DISTINCT - 12 ) + 38 - - NULLIF ( - 45, 11 * + 52 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + CASE + 91 WHEN - 24 + - 58 + + - MAX( + ( 1 ) ) THEN NULL WHEN 43 THEN 43 WHEN + 26 THEN NULL ELSE NULL END * + SUM( - 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9932
SELECT + CASE + 91 WHEN - 24 + - 58 + + - MAX ( + ( 1 ) ) THEN NULL WHEN 43 THEN 43 WHEN + 26 THEN NULL ELSE NULL END * + SUM ( - 7 )
----
NULL

query I rowsort
SELECT + + 30 + + + 26 * + 95 - - - 36
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL + 23 * + 8 - - COUNT( * ) AS col2
----
185

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + 23 * + 8 - - COUNT ( * ) AS col2
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9935
SELECT ALL 24 AS col0, 70 / + - CAST( NULL AS SIGNED ) AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-9935
SELECT ALL 24 AS col0, 70 / + - CAST ( NULL AS INTEGER ) AS col2
----
24
NULL

query I rowsort
SELECT + 49 + 16 AS col0
----
65

query I rowsort
SELECT ALL ( 41 ) * 26
----
1066

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9938
SELECT - - 32 AS col2, CAST( NULL AS SIGNED ) * - + 75 AS col2
----
32
NULL

skipif mysql # not compatible
query II rowsort label-9938
SELECT - - 32 AS col2, CAST ( NULL AS INTEGER ) * - + 75 AS col2
----
32
NULL

query I rowsort
SELECT + 63 + + 54 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT - MIN( - ( + 92 ) ) + 80 AS col0
----
172

skipif mysql # not compatible
query I rowsort label-9940
SELECT - MIN ( - ( + 92 ) ) + 80 AS col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT - MAX( ALL - ( + 41 ) ) + 25 + + 21
----
87

skipif mysql # not compatible
query I rowsort label-9941
SELECT - MAX ( ALL - ( + 41 ) ) + 25 + + 21
----
87

query I rowsort
SELECT + 48 + 28
----
76

query I rowsort
SELECT + 24 * - 88
----
-2112

query II rowsort
SELECT ALL NULLIF ( + 25, - - 71 * + + 86 ) + 9, ( ( 87 ) ) + + - ( + ( + 2 ) ) AS col2
----
34
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL - 11 + - COUNT( * ) - + 9 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL - 11 + - COUNT ( * ) - + 9 AS col0
----
-21

query I rowsort
SELECT - 18 + + - 24 + - 28 AS col0
----
-70

query I rowsort
SELECT 61 + 98 AS col2
----
159

query I rowsort
SELECT DISTINCT + 66 + - + 35 + - + 75 * - 25
----
1906

query III rowsort
SELECT 57 + + 95 AS col1, 78 AS col1, - 56 AS col0
----
152
78
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT 60 * + CASE 67 WHEN + + 1 - - - 77 + COALESCE ( + MIN( - 54 ), + + ( + NULLIF ( 84, 9 - 72 ) ) ) * 51 + + 57 - + 44 + + 71 THEN NULL WHEN + - ( - 3 ) THEN + + CAST( NULL AS SIGNED ) * + 52 * - 0 + 63 ELSE - - 23 * COUNT( * ) + - COALESCE ( - - COALESCE ( 42, 22 + + 99 ), + NULLIF ( ( 15 ), + 40 ) * 73 ) END
----
-1140

skipif mysql # not compatible
query I rowsort label-9950
SELECT 60 * + CASE 67 WHEN + + 1 - - - 77 + COALESCE ( + MIN ( - 54 ), + + ( + NULLIF ( 84, 9 - 72 ) ) ) * 51 + + 57 - + 44 + + 71 THEN NULL WHEN + - ( - 3 ) THEN + + CAST ( NULL AS INTEGER ) * + 52 * - 0 + 63 ELSE - - 23 * COUNT ( * ) + - COALESCE ( - - COALESCE ( 42, 22 + + 99 ), + NULLIF ( ( 15 ), + 40 ) * 73 ) END
----
-1140

query I rowsort
SELECT ALL 58 * - 14
----
-812

query I rowsort
SELECT 76 * + COALESCE ( 23, 75 )
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT ALL + 17 - - SUM( - ( + - 26 ) ) * - ( 87 )
----
-2245

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL + 17 - - SUM ( - ( + - 26 ) ) * - ( 87 )
----
-2245

query II rowsort
SELECT 73 * - 92 + - 82 AS col1, 50 AS col2
----
-6798
50

query I rowsort
SELECT 50 + - 60 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9956
SELECT SUM( DISTINCT + 23 ) * + + ( + 61 ) + 0 + + MAX( + + 49 ) AS col2, - 58
----
1452
-58

skipif mysql # not compatible
query II rowsort label-9956
SELECT SUM ( DISTINCT + 23 ) * + + ( + 61 ) + 0 + + MAX ( + + 49 ) AS col2, - 58
----
1452
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9957
SELECT + ( - 69 ) * MIN( ALL - + CASE + - 55 WHEN + 48 THEN NULL ELSE + CAST( - + ( + 60 ) AS SIGNED ) END ) col1
----
-4140

skipif mysql # not compatible
query I rowsort label-9957
SELECT + ( - 69 ) * MIN ( ALL - + CASE + - 55 WHEN + 48 THEN NULL ELSE + CAST ( - + ( + 60 ) AS INTEGER ) END ) col1
----
-4140

query II rowsort
SELECT ALL - ( - 65 ) AS col2, 18 + - 56
----
65
-38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9959
SELECT + - CAST( + - 29 AS SIGNED ) AS col2, 43
----
29
43

skipif mysql # not compatible
query II rowsort label-9959
SELECT + - CAST ( + - 29 AS INTEGER ) AS col2, 43
----
29
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9960
SELECT + 75 - 17 + COUNT( * ) DIV - 57 - + 30 * + 45 col1
----
-1292

skipif mysql # not compatible
query I rowsort label-9960
SELECT + 75 - 17 + COUNT ( * ) / - 57 - + 30 * + 45 col1
----
-1292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9961
SELECT ALL + 90 * - MIN( - 40 ) * - + CAST( 50 AS SIGNED ) + 84 AS col0
----
-179916

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + 90 * - MIN ( - 40 ) * - + CAST ( 50 AS INTEGER ) + 84 AS col0
----
-179916

onlyif mysql # DIV for integer division: 
query I rowsort label-9962
SELECT ALL + 79 DIV - ( + 29 ) + + 42
----
40

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + 79 / - ( + 29 ) + + 42
----
40

query I rowsort
SELECT ALL + 30 * - 4 + + + 85
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT 98 * + COUNT( * ) * 30
----
2940

skipif mysql # not compatible
query I rowsort label-9964
SELECT 98 * + COUNT ( * ) * 30
----
2940

query I rowsort
SELECT ALL + 38 + 74 AS col2
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT CAST( NULL AS SIGNED ) - 61 * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9966
SELECT CAST ( NULL AS INTEGER ) - 61 * - 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT ALL - 64 + COUNT( + 73 )
----
-63

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL - 64 + COUNT ( + 73 )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9968
SELECT 78, 62 * MAX( DISTINCT - + 56 ) AS col1
----
78
-3472

skipif mysql # not compatible
query II rowsort label-9968
SELECT 78, 62 * MAX ( DISTINCT - + 56 ) AS col1
----
78
-3472

onlyif mysql # DIV for integer division: 
query I rowsort label-9969
SELECT DISTINCT 84 DIV - - 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT 84 / - - 94 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9970
SELECT ALL ( + - 71 ) + 29 + + CASE + 20 WHEN - 26 + 57 THEN NULL WHEN + + AVG ( - 1 ) + - + CAST( NULL AS SIGNED ) THEN NULL WHEN + 94 THEN + - 62 * 86 + + + 33 END * CASE NULLIF ( + COUNT( * ), + 21 ) WHEN + COUNT( * ) * AVG ( ALL + - NULLIF ( - + ( - ( + 89 ) ), - 37 ) ) * - 99 + - NULLIF ( + 94, NULLIF ( + COALESCE ( 76, 52, + 32 + 97 ), + 0 + + NULLIF ( - 65, - 43 * 23 + + 16 ) ) + - NULLIF ( 65, COUNT( * ) / - COUNT( * ) ) ) + + ( + ( + 3 ) + + 98 / - 34 ) * 2 THEN - 82 * - 59 + 66 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL ( + - 71 ) + 29 + + CASE + 20 WHEN - 26 + 57 THEN NULL WHEN + + AVG ( - 1 ) + - + CAST ( NULL AS INTEGER ) THEN NULL WHEN + 94 THEN + - 62 * 86 + + + 33 END * CASE NULLIF ( + COUNT ( * ), + 21 ) WHEN + COUNT ( * ) * AVG ( ALL + - NULLIF ( - + ( - ( + 89 ) ), - 37 ) ) * - 99 + - NULLIF ( + 94, NULLIF ( + COALESCE ( 76, 52, + 32 + 97 ), + 0 + + NULLIF ( - 65, - 43 * 23 + + 16 ) ) + - NULLIF ( 65, COUNT ( * ) / - COUNT ( * ) ) ) + + ( + ( + 3 ) + + 98 / - 34 ) * 2 THEN - 82 * - 59 + 66 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 19 * + 99 AS col0
----
1881

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT 35 DIV 66 * - 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9972
SELECT 35 / 66 * - 97 AS col0
----
0

query I rowsort
SELECT ALL - 79 + 67 AS col0
----
-12

query I rowsort
SELECT ALL 12 + 50
----
62

query II rowsort
SELECT - 31 col1, + 37
----
-31
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT COALESCE ( - COUNT( * ), - + ( - 3 ) - - 44 ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9976
SELECT COALESCE ( - COUNT ( * ), - + ( - 3 ) - - 44 ) + + COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT CAST( + - 19 AS SIGNED ) * 14 * 98 AS col1
----
-26068

skipif mysql # not compatible
query I rowsort label-9977
SELECT CAST ( + - 19 AS INTEGER ) * 14 * 98 AS col1
----
-26068

onlyif mysql # aggregate syntax: 
query II rowsort label-9978
SELECT COALESCE ( - 56, - 59, + 12 ) + - 64 + + ( - 60 ) * 73 AS col0, COALESCE ( - 85, ( + + COUNT( ( 60 ) ) ) )
----
-4500
-85

skipif mysql # not compatible
query II rowsort label-9978
SELECT COALESCE ( - 56, - 59, + 12 ) + - 64 + + ( - 60 ) * 73 AS col0, COALESCE ( - 85, ( + + COUNT ( ( 60 ) ) ) )
----
-4500
-85

query II rowsort
SELECT - 88 AS col2, + 65 - 42
----
-88
23

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT 97, COUNT( ALL + 46 ) - - + 9 AS col0
----
97
10

skipif mysql # not compatible
query II rowsort label-9980
SELECT 97, COUNT ( ALL + 46 ) - - + 9 AS col0
----
97
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9981
SELECT 51 + - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1, - CAST( - 5 AS SIGNED ) AS col2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-9981
SELECT 51 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1, - CAST ( - 5 AS INTEGER ) AS col2
----
NULL
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9982
SELECT 2, + 63 DIV 1 AS col2
----
2
63

skipif mysql # not compatible
query II rowsort label-9982
SELECT 2, + 63 / 1 AS col2
----
2
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9983
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT CAST ( NULL AS REAL ) * 21
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 81, 83 - - 92 ) * - 31
----
2511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9985
SELECT 81 * 32 - + CASE 2 WHEN + COUNT( * ) THEN NULL WHEN + - SUM( DISTINCT + 85 ) * COUNT( * ) * + - 72 * - CAST( NULL AS SIGNED ) + - - 54 THEN + + COALESCE ( + 60, 47, - 95 ) ELSE COALESCE ( - 79, + COUNT( * ), + 90 + 94 ) END
----
2671

skipif mysql # not compatible
query I rowsort label-9985
SELECT 81 * 32 - + CASE 2 WHEN + COUNT ( * ) THEN NULL WHEN + - SUM ( DISTINCT + 85 ) * COUNT ( * ) * + - 72 * - CAST ( NULL AS INTEGER ) + - - 54 THEN + + COALESCE ( + 60, 47, - 95 ) ELSE COALESCE ( - 79, + COUNT ( * ), + 90 + 94 ) END
----
2671

query I rowsort
SELECT 56 * 23
----
1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9987
SELECT - COALESCE ( + 21, + - 33 ), + 39 * - ( + COUNT( * ) ) * + + 78 + COUNT( * ) DIV - 20 AS col0
----
-21
-3042

skipif mysql # not compatible
query II rowsort label-9987
SELECT - COALESCE ( + 21, + - 33 ), + 39 * - ( + COUNT ( * ) ) * + + 78 + COUNT ( * ) / - 20 AS col0
----
-21
-3042

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + SUM( + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-9988
SELECT + SUM ( + 25 )
----
25

query I rowsort
SELECT ALL - ( - 97 ) * - 77 AS col2
----
-7469

query I rowsort
SELECT 64 * 40 AS col2
----
2560

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT 44 DIV - 22 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9991
SELECT 44 / - 22 AS col2
----
-2

query I rowsort
SELECT ALL 56 * + 8 AS col1
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT ALL - + CASE 79 WHEN SUM( - + ( - - 23 ) ) THEN NULL ELSE - 94 * - + MAX( + NULLIF ( - 77, + + 90 ) ) END
----
7238

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - + CASE 79 WHEN SUM ( - + ( - - 23 ) ) THEN NULL ELSE - 94 * - + MAX ( + NULLIF ( - 77, + + 90 ) ) END
----
7238

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9994
SELECT - 40 * + + CAST( NULL AS SIGNED ) * + - 0 + + - COUNT( DISTINCT + 5 ) + - 52 + - - 96 * - + 61 * 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT - 40 * + + CAST ( NULL AS INTEGER ) * + - 0 + + - COUNT ( DISTINCT + 5 ) + - 52 + - - 96 * - + 61 * 52 AS col2
----
NULL

query I rowsort
SELECT 13 * + 75 AS col1
----
975

query I rowsort
SELECT ALL + 67 + + - 79 col1
----
-12

query II rowsort
SELECT 75 AS col0, 8 AS col2
----
75
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9998
SELECT + + CAST( 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-9998
SELECT + + CAST ( 65 AS INTEGER )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9999
SELECT 46 + - - ( 90 ) DIV 29 * + + ( + 45 )
----
181

skipif mysql # not compatible
query I rowsort label-9999
SELECT 46 + - - ( 90 ) / 29 * + + ( + 45 )
----
181

