sqllogictest
Artifact Content
Not logged in

Artifact 91af3546768f5d205f8113373bc10b29afc6216f:


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 - CAST( + + 47 AS SIGNED ) + - 40
----
-87

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL - CAST ( + + 47 AS INTEGER ) + - 40
----
-87

query I rowsort
SELECT + 31 * - + 0 * 62 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2
SELECT ALL + 13 DIV + 96 AS col0, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2
SELECT ALL + 13 / + 96 AS col0, CAST ( NULL AS INTEGER )
----
0
NULL

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

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

query I rowsort
SELECT 97 col1
----
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT DISTINCT - 97 DIV - - ( + 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - 97 / - - ( + 74 )
----
-1

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

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

query I rowsort
SELECT 83 col1
----
83

query I rowsort
SELECT 23 + + 48
----
71

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

onlyif mysql # aggregate syntax: 
query II rowsort label-12
SELECT ALL + 9 + COUNT( * ) AS col1, - SUM( DISTINCT 93 )
----
10
-93

skipif mysql # not compatible
query II rowsort label-12
SELECT ALL + 9 + COUNT ( * ) AS col1, - SUM ( DISTINCT 93 )
----
10
-93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT COUNT( DISTINCT - - 90 ) + + + 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-14
SELECT COUNT ( DISTINCT - - 90 ) + + + 57 AS col2
----
58

query I rowsort
SELECT ALL 83 + 31 AS col1
----
114

query I rowsort
SELECT - 78 col2
----
-78

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

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

query I rowsort
SELECT ALL - + ( - + 36 ) + + 9 * 21 + + 96 AS col0
----
321

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

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

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

query I rowsort
SELECT DISTINCT + 54 col0
----
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT 49 - SUM( ALL + - 51 ) col2
----
100

skipif mysql # not compatible
query I rowsort label-23
SELECT 49 - SUM ( ALL + - 51 ) col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT DISTINCT + 89 + - + ( - COUNT( + + 15 ) )
----
90

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT + 89 + - + ( - COUNT ( + + 15 ) )
----
90

query I rowsort
SELECT 93 + - 17
----
76

query I rowsort
SELECT ALL 77 * + + 77
----
5929

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

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

query I rowsort
SELECT DISTINCT - + 76
----
-76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT - MIN( - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-30
SELECT - MIN ( - 95 )
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-31
SELECT 84 + CAST( - + 73 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-31
SELECT 84 + CAST ( - + 73 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT DISTINCT - 30 + + - MIN( + - 93 ) * - COUNT( * ) - - - COUNT( * )
----
-124

skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT - 30 + + - MIN ( + - 93 ) * - COUNT ( * ) - - - COUNT ( * )
----
-124

query I rowsort
SELECT + + 86 col0
----
86

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

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

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

skipif mysql # not compatible
query I rowsort label-35
SELECT + COUNT ( * ) / - + 52 col0
----
0

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

query I rowsort
SELECT - 76 * 21 AS col1
----
-1596

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

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

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

query II rowsort
SELECT DISTINCT - 89 AS col1, 82
----
-89
82

query I rowsort
SELECT DISTINCT - + 27 col0
----
-27

query I rowsort
SELECT ALL - - 34 AS col0
----
34

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

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

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

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

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

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

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

query I rowsort
SELECT 26 * - + 50 + 44
----
-1256

query I rowsort
SELECT - ( + 23 ) + + 5 col0
----
-18

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

query I rowsort
SELECT ALL + CASE + 15 WHEN 20 THEN + - 79 ELSE NULL END + + 14
----
NULL

query I rowsort
SELECT - 53 + + 67
----
14

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

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

query I rowsort
SELECT + - 48 col1
----
-48

query I rowsort
SELECT + + 12
----
12

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

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

query I rowsort
SELECT ALL 49 * - 77 AS col1
----
-3773

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT COUNT( 88 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-57
SELECT COUNT ( 88 ) col0
----
1

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

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

query II rowsort
SELECT + 99 AS col2, 96
----
99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT DISTINCT - 96 * + 34 - - COUNT( * ) col1
----
-3263

skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT - 96 * + 34 - - COUNT ( * ) col1
----
-3263

query I rowsort
SELECT + + 97 * 64
----
6208

query I rowsort
SELECT ALL + ( + 2 ) col1
----
2

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

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

query I rowsort
SELECT ALL + 71 * - 81 AS col1
----
-5751

query I rowsort
SELECT 96 - + 1 * + 55
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT NULLIF ( - COUNT( * ), - 53 ) + + + 62
----
61

skipif mysql # not compatible
query I rowsort label-68
SELECT NULLIF ( - COUNT ( * ), - 53 ) + + + 62
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-69
SELECT DISTINCT + 87 * + 9 * + CAST( 13 AS SIGNED ) AS col1
----
10179

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT + 87 * + 9 * + CAST ( 13 AS INTEGER ) AS col1
----
10179

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

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

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

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

query I rowsort
SELECT DISTINCT + + NULLIF ( - + 26, 30 )
----
-26

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

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

query I rowsort
SELECT DISTINCT + 84 col0
----
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT + 13 - + + MAX( - NULLIF ( + 10, + 29 ) ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-76
SELECT + 13 - + + MAX ( - NULLIF ( + 10, + 29 ) ) AS col1
----
23

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

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

query I rowsort
SELECT DISTINCT - + 57
----
-57

query I rowsort
SELECT ALL - + 98
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT COUNT( - + 20 ) - - 82 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-80
SELECT COUNT ( - + 20 ) - - 82 AS col2
----
83

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

query I rowsort
SELECT DISTINCT 24 * + - 73 AS col2
----
-1752

query I rowsort
SELECT ALL + 22 + - - 59
----
81

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

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT MAX ( DISTINCT - 55 )
----
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-86
SELECT ALL CAST( ( - 93 ) AS SIGNED ) * - 4 AS col2
----
372

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL CAST ( ( - 93 ) AS INTEGER ) * - 4 AS col2
----
372

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT ALL + MIN( DISTINCT 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL + MIN ( DISTINCT 15 ) AS col0
----
15

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT ALL 41 * - COUNT( + 43 ) * + 70 * - - 72 AS col0
----
-206640

skipif mysql # not compatible
query I rowsort label-91
SELECT ALL 41 * - COUNT ( + 43 ) * + 70 * - - 72 AS col0
----
-206640

query II rowsort
SELECT ALL 81, - 79 AS col0
----
81
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-93
SELECT + COALESCE ( - COUNT( * ), + - CAST( NULL AS SIGNED ) * - - CAST( 72 AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-93
SELECT + COALESCE ( - COUNT ( * ), + - CAST ( NULL AS INTEGER ) * - - CAST ( 72 AS INTEGER ) ) AS col1
----
-1

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT - - COUNT( 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-99
SELECT - - COUNT ( 74 ) AS col0
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT + MIN( DISTINCT 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-102
SELECT + MIN ( DISTINCT 97 ) AS col2
----
97

query I rowsort
SELECT - 94 * 50 AS col2
----
-4700

query I rowsort
SELECT - 93 * 34
----
-3162

query I rowsort
SELECT + 63 col2
----
63

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

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

query I rowsort
SELECT - + 68 - - + 39 AS col2
----
-29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-109
SELECT - 0 DIV + 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT - 0 / + 20 AS col2
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT + COUNT( + + 23 ) + - + 45
----
-44

skipif mysql # not compatible
query I rowsort label-113
SELECT + COUNT ( + + 23 ) + - + 45
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-114
SELECT - - CAST( SUM( - 21 ) AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-114
SELECT - - CAST ( SUM ( - 21 ) AS INTEGER )
----
-21

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT + 59 * COUNT( 8 )
----
59

skipif mysql # not compatible
query I rowsort label-119
SELECT + 59 * COUNT ( 8 )
----
59

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

query I rowsort
SELECT - - 24 AS col0
----
24

query I rowsort
SELECT ALL 43 + 47
----
90

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

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

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

skipif mysql # not compatible
query II rowsort label-124
SELECT DISTINCT COUNT ( * ) col0, - 38
----
1
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-125
SELECT ALL + 9 * + CAST( 60 AS SIGNED )
----
540

skipif mysql # not compatible
query I rowsort label-125
SELECT ALL + 9 * + CAST ( 60 AS INTEGER )
----
540

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-127
SELECT COUNT( * ) col2, 25 + - - 71
----
1
96

skipif mysql # not compatible
query II rowsort label-127
SELECT COUNT ( * ) col2, 25 + - - 71
----
1
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT DISTINCT + COUNT( * ) + + - ( + 59 )
----
-58

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT + COUNT ( * ) + + - ( + 59 )
----
-58

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

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

query I rowsort
SELECT - ( - 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-133
SELECT ALL 89 * - - CAST( 20 AS SIGNED )
----
1780

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL 89 * - - CAST ( 20 AS INTEGER )
----
1780

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

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

query I rowsort
SELECT ALL 53 * + + 5 AS col2
----
265

query I rowsort
SELECT ALL COALESCE ( - 30, - 78 )
----
-30

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 52 + + 78 AS col0
----
26

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

query I rowsort
SELECT 53 + - + ( - - 40 ) AS col0
----
13

query II rowsort
SELECT ALL 81 + + 55 AS col2, 3
----
136
3

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

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

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

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

query I rowsort
SELECT ALL - 6 - 58 AS col2
----
-64

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

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

query II rowsort
SELECT ALL + 27 * 67, 24 col2
----
1809
24

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

skipif mysql # not compatible
query I rowsort label-150
SELECT 34 * + COUNT ( * ) / - - ( + 72 )
----
0

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 95 + - 49
----
-144

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

query I rowsort
SELECT - 65 col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-160
SELECT - 87 DIV - SUM( + - 58 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-160
SELECT - 87 / - SUM ( + - 58 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL - 54 * + - SUM( DISTINCT - ( + + 31 ) ) AS col2
----
-1674

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL - 54 * + - SUM ( DISTINCT - ( + + 31 ) ) AS col2
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL COUNT( * ) + + 5
----
6

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL COUNT ( * ) + + 5
----
6

query I rowsort
SELECT ALL + 10 * + 61
----
610

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

query I rowsort
SELECT - 92 col0
----
-92

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

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

query I rowsort
SELECT DISTINCT 15 * - ( - 63 ) AS col1
----
945

query I rowsort
SELECT 9 + 31
----
40

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT + - 88 DIV + ( - 89 )
----
0

skipif mysql # not compatible
query I rowsort label-170
SELECT + - 88 / + ( - 89 )
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-173
SELECT + COUNT ( * ) + + 57 / - 65
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-174
SELECT ALL 50 + + MAX( DISTINCT - 18 ) col0
----
32

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL 50 + + MAX ( DISTINCT - 18 ) col0
----
32

query I rowsort
SELECT - 65 AS col0
----
-65

query I rowsort
SELECT DISTINCT 77 + + 57 AS col1
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-177
SELECT + 31 + + COUNT( * ) DIV - 90 AS col1
----
31

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

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

skipif mysql # not compatible
query I rowsort label-178
SELECT + COUNT ( * ) / - SUM ( - ( + 62 ) )
----
0

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL + - 72 * - NULLIF ( ( 31 ), - 82 ) + + ( - COUNT( * ) ) AS col1
----
2231

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL + - 72 * - NULLIF ( ( 31 ), - 82 ) + + ( - COUNT ( * ) ) AS col1
----
2231

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

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

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

query I rowsort
SELECT 87 * + 54
----
4698

query I rowsort
SELECT 42 * ( 32 ) AS col1
----
1344

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

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL - COUNT ( * ) + - 43 AS col0
----
-44

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

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT - COUNT ( * ) + - + 11 AS col2
----
-12

query I rowsort
SELECT DISTINCT - 73 col0
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT - + CASE - COUNT( * ) WHEN - 76 THEN + 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-192
SELECT - + CASE - COUNT ( * ) WHEN - 76 THEN + 78 END
----
NULL

query I rowsort
SELECT - 1 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT MAX( - CAST( NULL AS SIGNED ) ) * 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT MAX ( - CAST ( NULL AS INTEGER ) ) * 34 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 26 col0
----
-26

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

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT - ( - - SUM ( DISTINCT 65 ) )
----
-65

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

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

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

query I rowsort
SELECT ALL 34 col1
----
34

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-203
SELECT DISTINCT - 65 DIV - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-203
SELECT DISTINCT - 65 / - 92 AS col0
----
0

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

query I rowsort
SELECT ALL 48 * - 80
----
-3840

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

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

query I rowsort
SELECT ALL 42 + + ( 11 ) AS col1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-208
SELECT ALL - ( 17 ) DIV + - 20
----
0

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - ( 17 ) / + - 20
----
0

query I rowsort
SELECT DISTINCT - 76 + + 54
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT COUNT( * ) * + 62 * - + 5 AS col0
----
-310

skipif mysql # not compatible
query I rowsort label-210
SELECT COUNT ( * ) * + 62 * - + 5 AS col0
----
-310

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT ALL - 65 * - COUNT( * ) * + - 55
----
-3575

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - 65 * - COUNT ( * ) * + - 55
----
-3575

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 35 col0
----
35

query I rowsort
SELECT - + 66 col1
----
-66

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT ALL SUM( DISTINCT - ( - 51 ) ) DIV + + ( SUM( + 29 ) )
----
1

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL SUM ( DISTINCT - ( - 51 ) ) / + + ( SUM ( + 29 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT - SUM( - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-224
SELECT - SUM ( - 82 )
----
82

query II rowsort
SELECT DISTINCT + 63, - 24 + - 23 AS col1
----
63
-47

query I rowsort
SELECT 78 * - 16 AS col0
----
-1248

query I rowsort
SELECT DISTINCT + 77 * - - 83 col1
----
6391

query I rowsort
SELECT 29 col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT COUNT( * ) * + SUM( + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-229
SELECT COUNT ( * ) * + SUM ( + 33 ) AS col1
----
33

query I rowsort
SELECT ALL + ( 71 ) col0
----
71

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

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

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

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - - COUNT ( * ) + - 77 AS col2
----
-76

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

query I rowsort
SELECT + 88 * + + 73
----
6424

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

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

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

query I rowsort
SELECT DISTINCT 46 * 40 AS col2
----
1840

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

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

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

query I rowsort
SELECT DISTINCT 48 * 32 AS col1
----
1536

query I rowsort
SELECT DISTINCT 12 + - 44
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT 6 * - COUNT( + + 78 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-242
SELECT 6 * - COUNT ( + + 78 ) AS col0
----
-6

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-244
SELECT ALL COUNT( * ) * 94 DIV + 29
----
3

skipif mysql # not compatible
query I rowsort label-244
SELECT ALL COUNT ( * ) * 94 / + 29
----
3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-246
SELECT - MIN( DISTINCT - ( + + 74 ) ) DIV - + 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-246
SELECT - MIN ( DISTINCT - ( + + 74 ) ) / - + 41 AS col0
----
-1

query I rowsort
SELECT - - 30 AS col0
----
30

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 23 col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-256
SELECT + CAST( + 11 AS SIGNED ) * + 69 col0
----
759

skipif mysql # not compatible
query I rowsort label-256
SELECT + CAST ( + 11 AS INTEGER ) * + 69 col0
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT COUNT( ALL - 41 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT COUNT ( ALL - 41 ) col1
----
1

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT ALL COUNT( 88 )
----
1

skipif mysql # not compatible
query I rowsort label-265
SELECT ALL COUNT ( 88 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT - 32 + + + COUNT( * ), 23 AS col1
----
-31
23

skipif mysql # not compatible
query II rowsort label-266
SELECT - 32 + + + COUNT ( * ), 23 AS col1
----
-31
23

query I rowsort
SELECT ALL - NULLIF ( - 84, - 85 ) AS col1
----
84

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

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

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

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

query II rowsort
SELECT DISTINCT - 30, ( - 52 ) AS col1
----
-30
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT ALL - 49 * + - 46 * - COUNT( * ) AS col1
----
-2254

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - 49 * + - 46 * - COUNT ( * ) AS col1
----
-2254

query I rowsort
SELECT DISTINCT 11 * + NULLIF ( + + ( 63 ), + 53 ) AS col2
----
693

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL + COUNT( * ) - - + 41 * + + 77 col2
----
3158

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL + COUNT ( * ) - - + 41 * + + 77 col2
----
3158

query I rowsort
SELECT DISTINCT 99 col0
----
99

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-279
SELECT + + 88 DIV - - 26
----
3

skipif mysql # not compatible
query I rowsort label-279
SELECT + + 88 / - - 26
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT MIN( ALL 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-281
SELECT MIN ( ALL 34 ) AS col1
----
34

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

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

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

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

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

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

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

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

query I rowsort
SELECT 5 + - 5 col2
----
0

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

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

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

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

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

query I rowsort
SELECT + 94 * - 31 AS col0
----
-2914

query I rowsort
SELECT - 34 + - + 76
----
-110

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

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

query II rowsort
SELECT - + 19 AS col0, 86 col0
----
-19
86

query II rowsort
SELECT ( - - 64 ) AS col2, - 28 + 52 - + 91 + - 64
----
64
-131

query I rowsort
SELECT DISTINCT 87 * - 72
----
-6264

query I rowsort
SELECT ( 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT DISTINCT - + COUNT( * ) + + + 65
----
64

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT - + COUNT ( * ) + + + 65
----
64

query I rowsort
SELECT - 18 - - 83 + - + 14
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT CAST( NULL AS SIGNED ) / - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-300
SELECT CAST ( NULL AS INTEGER ) / - 61
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT COUNT( * ) - 84 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-302
SELECT COUNT ( * ) - 84 AS col2
----
-83

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

query I rowsort
SELECT ALL - 68 + + 71 AS col2
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT 94 + - MAX( DISTINCT 48 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-306
SELECT 94 + - MAX ( DISTINCT 48 ) AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT 13 + - MAX( + 32 )
----
-19

skipif mysql # not compatible
query I rowsort label-307
SELECT 13 + - MAX ( + 32 )
----
-19

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

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

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL MIN ( ALL 52 )
----
52

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT ALL SUM( + + 87 ) col2
----
87

skipif mysql # not compatible
query I rowsort label-312
SELECT ALL SUM ( + + 87 ) col2
----
87

query I rowsort
SELECT - 87 + 94
----
7

query I rowsort
SELECT + 48 * + 89 AS col1
----
4272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-315
SELECT MIN( DISTINCT - + 0 ) DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-315
SELECT MIN ( DISTINCT - + 0 ) / + 57 AS col2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-317
SELECT - 49 DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-317
SELECT - 49 / 38
----
-1

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-321
SELECT + CAST( + MIN( DISTINCT + 60 ) AS SIGNED ) DIV 24 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-321
SELECT + CAST ( + MIN ( DISTINCT + 60 ) AS INTEGER ) / 24 AS col0
----
2

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

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

query I rowsort
SELECT - ( - 97 ) AS col2
----
97

query I rowsort
SELECT ALL + 48 + + 63 AS col0
----
111

query I rowsort
SELECT + 14 - ( + ( - 23 ) ) col1
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-326
SELECT ALL COUNT( * ) DIV 28 col1, - 39
----
0
-39

skipif mysql # not compatible
query II rowsort label-326
SELECT ALL COUNT ( * ) / 28 col1, - 39
----
0
-39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-328
SELECT ALL + - 11 * + SUM( ALL - CAST( + + 49 AS SIGNED ) )
----
539

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL + - 11 * + SUM ( ALL - CAST ( + + 49 AS INTEGER ) )
----
539

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT 97 DIV + + 56
----
1

skipif mysql # not compatible
query I rowsort label-329
SELECT 97 / + + 56
----
1

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

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

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

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

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

query I rowsort
SELECT + + 84 col2
----
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-335
SELECT DISTINCT - + CAST( + 90 AS SIGNED ) + + 52
----
-38

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT - + CAST ( + 90 AS INTEGER ) + + 52
----
-38

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

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

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

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT + 37 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 56 - - 99
----
155

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT + + 48 + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-343
SELECT + + 48 + + COUNT ( * )
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT MAX( 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-345
SELECT MAX ( 52 ) AS col1
----
52

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

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

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

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

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

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

query I rowsort
SELECT ( ( - 6 ) )
----
-6

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 23
----
-23

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

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

query I rowsort
SELECT - 76 + 74
----
-2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-361
SELECT ALL - 44 * - - ( COUNT( * ) ) * - - CAST( NULL AS SIGNED ) + + 41 + - 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL - 44 * - - ( COUNT ( * ) ) * - - CAST ( NULL AS INTEGER ) + + 41 + - 55 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 56 - 84
----
-28

query I rowsort
SELECT DISTINCT - COALESCE ( - 41, + 72 ) col2
----
41

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

skipif mysql # not compatible
query I rowsort label-364
SELECT MAX ( + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL MAX( - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL MAX ( - 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT DISTINCT MAX( DISTINCT - 54 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-366
SELECT DISTINCT MAX ( DISTINCT - 54 ) AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT + MIN( - - 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-367
SELECT + MIN ( - - 30 ) AS col2
----
30

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-374
SELECT 96, + COUNT ( * ) col2
----
96
1

query I rowsort
SELECT 76 + - 42
----
34

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

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

query II rowsort
SELECT 68 AS col1, 54
----
68
54

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

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

query I rowsort
SELECT DISTINCT - 69 + + 49 * - 13
----
-706

onlyif mysql # aggregate syntax: 
query II rowsort label-380
SELECT + 22 * - COUNT( * ) AS col1, 81
----
-22
81

skipif mysql # not compatible
query II rowsort label-380
SELECT + 22 * - COUNT ( * ) AS col1, 81
----
-22
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT ALL + 28 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + 28 / - 93
----
0

query I rowsort
SELECT ALL 52 * - 96
----
-4992

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

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

query I rowsort
SELECT ( 7 ) AS col2
----
7

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-388
SELECT DISTINCT + 80 DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT + 80 / - + 87
----
0

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

query I rowsort
SELECT - - 56 AS col1
----
56

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

skipif mysql # not compatible
query I rowsort label-391
SELECT 23 * + + COUNT ( ALL - 21 ) AS col2
----
23

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

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

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

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

query I rowsort
SELECT DISTINCT + - 36
----
-36

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

query I rowsort
SELECT ( 21 ) col0
----
21

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-398
SELECT ALL - + 97 + 53 + - COUNT( * ) AS col2, + CAST( NULL AS SIGNED )
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-398
SELECT ALL - + 97 + 53 + - COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER )
----
-45
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT DISTINCT COUNT( * ) + + ( + 29 ) col1
----
30

skipif mysql # not compatible
query I rowsort label-399
SELECT DISTINCT COUNT ( * ) + + ( + 29 ) col1
----
30

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT DISTINCT - 17 DIV - - 52
----
0

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT - 17 / - - 52
----
0

query I rowsort
SELECT ALL + CASE WHEN NOT NULL IS NULL THEN - 83 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT MIN( - 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-405
SELECT MIN ( - 97 ) AS col0
----
-97

query I rowsort
SELECT ALL 16 * + 73
----
1168

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

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

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

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

query I rowsort
SELECT ALL 44 * - 58 AS col0
----
-2552

query I rowsort
SELECT DISTINCT - + 35 col0
----
-35

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

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + + COUNT ( * ) * - 52 col1
----
-52

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

query I rowsort
SELECT 11 * 84
----
924

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

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

query II rowsort
SELECT ALL 88 AS col1, - 11
----
88
-11

query I rowsort
SELECT + + 51 col2
----
51

query I rowsort
SELECT 54 - - ( 34 )
----
88

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-419
SELECT COUNT( * ) DIV + + CAST( + 26 AS SIGNED ), COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-419
SELECT COUNT ( * ) / + + CAST ( + 26 AS INTEGER ), COUNT ( * ) AS col2
----
0
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-422
SELECT - + 54 + - COUNT( * ) - - CAST( COUNT( * ) AS SIGNED ) * - 86
----
-141

skipif mysql # not compatible
query I rowsort label-422
SELECT - + 54 + - COUNT ( * ) - - CAST ( COUNT ( * ) AS INTEGER ) * - 86
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + COUNT( * ) + - 76 * + 11 * - 86
----
71897

skipif mysql # not compatible
query I rowsort label-423
SELECT + COUNT ( * ) + - 76 * + 11 * - 86
----
71897

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

query I rowsort
SELECT ALL 57 * + - 9 AS col1
----
-513

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

query I rowsort
SELECT - 85 + - - NULLIF ( 75, + - 2 )
----
-10

query I rowsort
SELECT DISTINCT - ( 10 ) col1
----
-10

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

query I rowsort
SELECT ALL - 90 col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL COUNT( - 20 )
----
1

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL COUNT ( - 20 )
----
1

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

skipif mysql # not compatible
query I rowsort label-432
SELECT + COUNT ( * ) / + 61 - - 12 AS col2
----
12

query I rowsort
SELECT + 89 + - 34 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT MIN( DISTINCT + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-434
SELECT MIN ( DISTINCT + 27 ) AS col2
----
27

query I rowsort
SELECT + 17 * - - 83
----
1411

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT - COUNT( ALL + + 7 ) - - 49 * - 24
----
-1177

skipif mysql # not compatible
query I rowsort label-436
SELECT - COUNT ( ALL + + 7 ) - - 49 * - 24
----
-1177

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

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

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - 94, + 67 ) AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-441
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) DIV + 49 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) / + 49 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-442
SELECT CAST( + MAX( DISTINCT 4 ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-442
SELECT CAST ( + MAX ( DISTINCT 4 ) AS INTEGER )
----
4

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

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT COUNT ( ALL + - 81 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL - 23 - - COUNT( * ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL - 23 - - COUNT ( * ) col0
----
-22

query I rowsort
SELECT 51 * + - 21 AS col2
----
-1071

query I rowsort
SELECT ALL - - 20 col1
----
20

query II rowsort
SELECT ALL 89 AS col2, + 18 AS col0
----
89
18

query I rowsort
SELECT - + 62
----
-62

query I rowsort
SELECT + 97 col0
----
97

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

query II rowsort
SELECT ALL + 41, + 72 col2
----
41
72

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

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

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

query I rowsort
SELECT - 44 + + 69
----
25

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-458
SELECT - + 90 DIV 76 DIV + 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-458
SELECT - + 90 / 76 / + 66 AS col1
----
0

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-461
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, 70 col0
----
NULL
70

skipif mysql # not compatible
query II rowsort label-461
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, 70 col0
----
NULL
70

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

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

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

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT COUNT ( * ) + 92 AS col1
----
93

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-466
SELECT DISTINCT + NULLIF ( - 25, + CAST( NULL AS DECIMAL ) ) * - + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT + NULLIF ( - 25, + CAST ( NULL AS REAL ) ) * - + COUNT ( * ) AS col0
----
25

query I rowsort
SELECT + - 55
----
-55

query I rowsort
SELECT - 70 + + 31
----
-39

query I rowsort
SELECT DISTINCT - + 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT ALL 85 + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL 85 + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT COUNT( * ) + + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-471
SELECT COUNT ( * ) + + 23 AS col0
----
24

query I rowsort
SELECT ALL - 33 * 85
----
-2805

query II rowsort
SELECT + 37 AS col1, - ( + 12 ) AS col1
----
37
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT DISTINCT MIN( DISTINCT 67 )
----
67

skipif mysql # not compatible
query I rowsort label-474
SELECT DISTINCT MIN ( DISTINCT 67 )
----
67

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

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

query I rowsort
SELECT ALL - 84 col0
----
-84

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

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

query I rowsort
SELECT ALL + 47 * 51 col2
----
2397

query II rowsort
SELECT ( + 43 ) AS col1, 92
----
43
92

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

query I rowsort
SELECT 88 + - 85
----
3

query I rowsort
SELECT - 31 col2
----
-31

query I rowsort
SELECT DISTINCT - 42 + - ( - + 36 ) AS col0
----
-6

query I rowsort
SELECT 5 col1
----
5

query I rowsort
SELECT 41 col2
----
41

query I rowsort
SELECT 9 col2
----
9

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

query I rowsort
SELECT + 20 * - - 77 col1
----
1540

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

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

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

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

skipif mysql # not compatible
query I rowsort label-491
SELECT - 12 * 15 + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT + 24 - - - COUNT( ALL - - 66 ) * - COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT + 24 - - - COUNT ( ALL - - 66 ) * - COUNT ( * ) AS col1
----
25

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL 95, + 76 AS col2
----
95
76

query I rowsort
SELECT - + COALESCE ( + - 87, - 33 )
----
87

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

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

query I rowsort
SELECT 52 + + + 75
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-507
SELECT DISTINCT - 91 AS col0, COUNT( * ) + + COUNT( + 22 ) AS col0
----
-91
2

skipif mysql # not compatible
query II rowsort label-507
SELECT DISTINCT - 91 AS col0, COUNT ( * ) + + COUNT ( + 22 ) AS col0
----
-91
2

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

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

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

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

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

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

query I rowsort
SELECT 14 + 35 col1
----
49

query I rowsort
SELECT 27 * ( - 78 )
----
-2106

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT DISTINCT + NULLIF ( + 6, ( + COUNT( * ) ) ) * - + 14
----
-84

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT + NULLIF ( + 6, ( + COUNT ( * ) ) ) * - + 14
----
-84

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

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

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

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

query I rowsort
SELECT - - 82 col2
----
82

query I rowsort
SELECT DISTINCT - 12 + - 61 col0
----
-73

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL + - COUNT ( DISTINCT + + 52 ) AS col1
----
-1

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

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

query I rowsort
SELECT ALL 71 col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT DISTINCT CASE + + CAST( NULL AS SIGNED ) WHEN 96 THEN NULL ELSE + 84 * 60 END AS col2
----
5040

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT CASE + + CAST ( NULL AS INTEGER ) WHEN 96 THEN NULL ELSE + 84 * 60 END AS col2
----
5040

query I rowsort
SELECT ALL 79 * + - 29
----
-2291

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

skipif mysql # not compatible
query I rowsort label-526
SELECT - COUNT ( * ) / - ( + 94 ) AS col0
----
0

query I rowsort
SELECT + 54 col1
----
54

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 1
----
1

query I rowsort
SELECT + 49 + - 61
----
-12

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

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

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

query II rowsort
SELECT ALL 38 AS col1, 94 AS col1
----
38
94

query I rowsort
SELECT - 0 col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT ALL + 15 + - - 10 * - + COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL + 15 + - - 10 * - + COUNT ( * ) AS col1
----
5

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT - - 73 + - CAST( 11 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-543
SELECT - - 73 + - CAST ( 11 AS INTEGER )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT - - 23 * - + NULLIF ( + 19, - COUNT( * ) )
----
-437

skipif mysql # not compatible
query I rowsort label-544
SELECT - - 23 * - + NULLIF ( + 19, - COUNT ( * ) )
----
-437

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

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

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

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

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

query I rowsort
SELECT ( - 26 ) * 4 AS col0
----
-104

onlyif mysql # DIV for integer division: 
query I rowsort label-549
SELECT ALL - - 15 DIV + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL - - 15 / + 69 AS col2
----
0

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

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

query I rowsort
SELECT 57 * - 9 AS col1
----
-513

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

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT - + MIN( DISTINCT - 75 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-553
SELECT - + MIN ( DISTINCT - 75 ) col2
----
75

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

skipif mysql # not compatible
query I rowsort label-554
SELECT 9 / - 97 + + COUNT ( * )
----
1

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

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

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

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

query I rowsort
SELECT - 25 * + - 34 AS col0
----
850

query I rowsort
SELECT DISTINCT - 88 * - 44 AS col2
----
3872

query I rowsort
SELECT DISTINCT 9 col2
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-560
SELECT + 22 * + COUNT( * ) AS col0, + 85 AS col1
----
22
85

skipif mysql # not compatible
query II rowsort label-560
SELECT + 22 * + COUNT ( * ) AS col0, + 85 AS col1
----
22
85

query II rowsort
SELECT ALL 94, + 21 AS col1
----
94
21

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-565
SELECT + 28, - COUNT ( * ) col1
----
28
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-566
SELECT + ( + ( + COALESCE ( + - 75, - 61 ) ) ) DIV - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-566
SELECT + ( + ( + COALESCE ( + - 75, - 61 ) ) ) / - COUNT ( * )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-567
SELECT + CAST( + + 90 AS SIGNED ) + - CAST( 77 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-567
SELECT + CAST ( + + 90 AS INTEGER ) + - CAST ( 77 AS INTEGER ) AS col0
----
13

query I rowsort
SELECT 61 * 43 AS col1
----
2623

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL - - CASE - COUNT( * ) WHEN 70 THEN + ( + ( - COUNT( * ) ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL - - CASE - COUNT ( * ) WHEN 70 THEN + ( + ( - COUNT ( * ) ) ) END AS col1
----
NULL

query I rowsort
SELECT - 43 * 4 + - + 86 AS col2
----
-258

query I rowsort
SELECT ALL + 96 - + 53 col1
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT COUNT( * ) + + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-573
SELECT COUNT ( * ) + + 45 AS col1
----
46

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

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

query I rowsort
SELECT ALL - 55 * + - 36
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ALL + COUNT( * ) + + MIN( - 91 ) * - 64 AS col0
----
5825

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL + COUNT ( * ) + + MIN ( - 91 ) * - 64 AS col0
----
5825

query I rowsort
SELECT ( - ( - 99 ) )
----
99

query I rowsort
SELECT ( 65 )
----
65

query I rowsort
SELECT DISTINCT + - 40
----
-40

query I rowsort
SELECT - ( - 4 )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-581
SELECT - 32 DIV - - 27
----
-1

skipif mysql # not compatible
query I rowsort label-581
SELECT - 32 / - - 27
----
-1

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 7
----
-7

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

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

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

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

query II rowsort
SELECT ALL 78, 46 col0
----
78
46

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

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

query I rowsort
SELECT 11 col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT ALL 92 DIV - - 92 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL 92 / - - 92 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT ALL + 6 + COUNT( ALL + 15 ) + + 33
----
40

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + 6 + COUNT ( ALL + 15 ) + + 33
----
40

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

query I rowsort
SELECT ALL - ( 62 ) + + ( - - 81 ) col1
----
19

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT MIN( - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-601
SELECT MIN ( - 17 ) AS col2
----
-17

query I rowsort
SELECT - 18 + + + 21
----
3

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

skipif mysql # not compatible
query I rowsort label-603
SELECT - + MIN ( - 70 ) + + - COUNT ( * ) AS col1
----
69

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-606
SELECT DISTINCT + 71 DIV + - 37 + + + ( + COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-606
SELECT DISTINCT + 71 / + - 37 + + + ( + COUNT ( * ) ) col0
----
0

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

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

query I rowsort
SELECT - - 69 AS col1
----
69

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

skipif mysql # not compatible
query I rowsort label-609
SELECT - MIN ( + 73 )
----
-73

query I rowsort
SELECT DISTINCT + 8 + - 51 AS col0
----
-43

query I rowsort
SELECT ALL - 61 col1
----
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT COUNT( * ) + 25 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-613
SELECT COUNT ( * ) + 25 AS col1
----
26

query I rowsort
SELECT 80 col2
----
80

query I rowsort
SELECT 46 * - ( - - 35 )
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT + MAX( DISTINCT 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + MAX ( DISTINCT 62 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT COUNT( DISTINCT + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT COUNT ( DISTINCT + 12 ) AS col1
----
1

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

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

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

query I rowsort
SELECT + 41 * + 12 AS col1
----
492

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

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

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

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

query I rowsort
SELECT ALL - 77 * - 83 col2
----
6391

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-626
SELECT - - ( + 66 ), MAX( ALL - + 5 ) AS col2
----
66
-5

skipif mysql # not compatible
query II rowsort label-626
SELECT - - ( + 66 ), MAX ( ALL - + 5 ) AS col2
----
66
-5

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT - 60 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-629
SELECT - 60 / 95 AS col1
----
0

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

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

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

query I rowsort
SELECT DISTINCT 25 col2
----
25

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

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT DISTINCT - MIN( DISTINCT - 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT - MIN ( DISTINCT - 51 ) AS col2
----
51

query I rowsort
SELECT DISTINCT 2 col1
----
2

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT ALL 86, - MAX( + 21 ) AS col2
----
86
-21

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL 86, - MAX ( + 21 ) AS col2
----
86
-21

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

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

query I rowsort
SELECT - - 65 - 87
----
-22

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

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

query I rowsort
SELECT DISTINCT - 82 col0
----
-82

query I rowsort
SELECT ALL - 20 col1
----
-20

query I rowsort
SELECT DISTINCT 73 * - COALESCE ( + 46, + 46 ) AS col1
----
-3358

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

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

query I rowsort
SELECT 90 + 39 * - 34 col1
----
-1236

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

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

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

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

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

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

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

query I rowsort
SELECT 40 col1
----
40

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-656
SELECT + - CAST( - ( COUNT( * ) ) AS SIGNED ) * + + MAX( ALL - 23 ) - + 21
----
-44

skipif mysql # not compatible
query I rowsort label-656
SELECT + - CAST ( - ( COUNT ( * ) ) AS INTEGER ) * + + MAX ( ALL - 23 ) - + 21
----
-44

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-661
SELECT ALL 97 DIV 44 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL 97 / 44 AS col2
----
2

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

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

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

query II rowsort
SELECT DISTINCT 91 AS col2, - 61
----
91
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT 93 + + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-666
SELECT 93 + + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT - ( COUNT( * ) ) * 88 + ( - - 97 )
----
9

skipif mysql # not compatible
query I rowsort label-667
SELECT - ( COUNT ( * ) ) * 88 + ( - - 97 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-668
SELECT - COUNT( * ) AS col2, + 80 * - ( + 44 ) * + ( + 42 ) + - COUNT( * ) + 57
----
-1
-147784

skipif mysql # not compatible
query II rowsort label-668
SELECT - COUNT ( * ) AS col2, + 80 * - ( + 44 ) * + ( + 42 ) + - COUNT ( * ) + 57
----
-1
-147784

query I rowsort
SELECT - - 89 col1
----
89

query I rowsort
SELECT DISTINCT - 32 col1
----
-32

query I rowsort
SELECT - + 93
----
-93

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

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

query I rowsort
SELECT - 95 + + 34 + - - 16 - 73 AS col0
----
-118

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT MAX( ALL - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-681
SELECT MAX ( ALL - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT DISTINCT COUNT( * ) + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT COUNT ( * ) + - 98
----
-97

query I rowsort
SELECT ALL 58 * - 76
----
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL + 14 + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL + 14 + COUNT ( * )
----
15

query I rowsort
SELECT ALL 15 - 68
----
-53

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

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

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

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

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

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

query I rowsort
SELECT ALL + 52 - + 37 * 63
----
-2279

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

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

query I rowsort
SELECT - 79 * + 16
----
-1264

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL + MAX( DISTINCT - ( 62 ) ) + + COUNT( * ) * + 5 AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL + MAX ( DISTINCT - ( 62 ) ) + + COUNT ( * ) * + 5 AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-694
SELECT - 54 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-694
SELECT - 54 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT + MAX( CAST( NULL AS SIGNED ) ) * 23 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-697
SELECT + + 43 * 70 - CAST( 19 + 41 AS SIGNED ) * 58
----
-470

skipif mysql # not compatible
query I rowsort label-697
SELECT + + 43 * 70 - CAST ( 19 + 41 AS INTEGER ) * 58
----
-470

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

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

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

skipif mysql # not compatible
query I rowsort label-699
SELECT COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT + 20 - + 84 AS col0
----
-64

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

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

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

skipif mysql # not compatible
query I rowsort label-702
SELECT MIN ( - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT DISTINCT SUM( ALL + 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT SUM ( ALL + 81 ) AS col1
----
81

query I rowsort
SELECT - - 23 AS col0
----
23

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

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

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

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

query I rowsort
SELECT ALL + - 81
----
-81

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

query I rowsort
SELECT DISTINCT - 80 col0
----
-80

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-711
SELECT ALL - CAST( + MAX( + - 16 ) AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL - CAST ( + MAX ( + - 16 ) AS INTEGER ) AS col1
----
16

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

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

query II rowsort
SELECT ALL - 35 AS col1, - 54
----
-35
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-714
SELECT COUNT( * ) DIV - 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-714
SELECT COUNT ( * ) / - 95 col1
----
0

query I rowsort
SELECT 33 * + + 42
----
1386

query I rowsort
SELECT ALL 14 * 72 + + 28
----
1036

query I rowsort
SELECT ALL - 67 - 33 AS col0
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-718
SELECT ALL + 76 * - ( + 36 ) * + + COUNT( * )
----
-2736

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL + 76 * - ( + 36 ) * + + COUNT ( * )
----
-2736

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

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

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

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

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

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

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

query I rowsort
SELECT - 71 * - 25 AS col0
----
1775

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( + 97 ) col0
----
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT DISTINCT - + COUNT( * ) + 90 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT - + COUNT ( * ) + 90 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-731
SELECT DISTINCT - CAST( NULLIF ( - + COALESCE ( + - COUNT( * ), + 55 ), - 17 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT - CAST ( NULLIF ( - + COALESCE ( + - COUNT ( * ), + 55 ), - 17 ) AS INTEGER )
----
-1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-734
SELECT ( + 10 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-734
SELECT ( + 10 ) / 67
----
0

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 14 * + 10 * - 76 AS col0
----
-10640

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-746
SELECT + ( - MAX ( - - 68 ) )
----
-68

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

query I rowsort
SELECT - - 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT - MAX( - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-749
SELECT - MAX ( - 79 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-750
SELECT ( - + 13 ) - + 34 AS col2, + 25 + - - COUNT( * ) AS col2
----
-47
26

skipif mysql # not compatible
query II rowsort label-750
SELECT ( - + 13 ) - + 34 AS col2, + 25 + - - COUNT ( * ) AS col2
----
-47
26

query I rowsort
SELECT - 75 - 67
----
-142

query I rowsort
SELECT 46 + + - 85 AS col2
----
-39

query I rowsort
SELECT ALL 72 + - 44
----
28

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

skipif mysql # not compatible
query I rowsort label-754
SELECT 55 * COUNT ( * )
----
55

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

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

query I rowsort
SELECT - 58 col2
----
-58

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

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

query I rowsort
SELECT - - 66
----
66

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

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

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

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

query II rowsort
SELECT - + 75 AS col2, 4 * + 67
----
-75
268

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

skipif mysql # not compatible
query I rowsort label-762
SELECT - 85 * COUNT ( * )
----
-85

query II rowsort
SELECT ( 42 ) AS col0, 45 AS col0
----
42
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + 55 + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-765
SELECT + 55 + COUNT ( * )
----
56

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

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT ALL - 55 DIV - ( + 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL - 55 / - ( + 34 ) AS col0
----
1

query I rowsort
SELECT NULLIF ( - 76, - 1 ) - - 6
----
-70

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

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

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

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

skipif mysql # not compatible
query II rowsort label-771
SELECT ALL COUNT ( * ) col1, 51 AS col1
----
1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL + 54 + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + 54 + + COUNT ( * )
----
55

query I rowsort
SELECT ALL + + 75 * - 13 AS col1
----
-975

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

query II rowsort
SELECT ALL + 20 AS col1, + 74 AS col0
----
20
74

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT MIN( ALL 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-776
SELECT MIN ( ALL 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-777
SELECT - COUNT( * ) * 7 * + 53 - + 8 * 56
----
-819

skipif mysql # not compatible
query I rowsort label-777
SELECT - COUNT ( * ) * 7 * + 53 - + 8 * 56
----
-819

query I rowsort
SELECT - - 27 AS col0
----
27

query I rowsort
SELECT ALL + 6 + + 44
----
50

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

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

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

skipif mysql # not compatible
query I rowsort label-781
SELECT MIN ( + 9 )
----
9

query I rowsort
SELECT - 83 col0
----
-83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT - - 47 * + 16 + + COUNT( * ) AS col1
----
753

skipif mysql # not compatible
query I rowsort label-785
SELECT - - 47 * + 16 + + COUNT ( * ) AS col1
----
753

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT ALL 37 + - 54 * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

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

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

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

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

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT SUM ( 47 )
----
47

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

onlyif mysql # aggregate syntax: 
query II rowsort label-792
SELECT MIN( ALL - 34 ), + 62 AS col1
----
-34
62

skipif mysql # not compatible
query II rowsort label-792
SELECT MIN ( ALL - 34 ), + 62 AS col1
----
-34
62

query I rowsort
SELECT - 20 * + 85
----
-1700

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT + SUM( DISTINCT 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-797
SELECT + SUM ( DISTINCT 47 ) AS col0
----
47

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-802
SELECT + 54 DIV - 16
----
-3

skipif mysql # not compatible
query I rowsort label-802
SELECT + 54 / - 16
----
-3

query I rowsort
SELECT + 0 * - - 42
----
0

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

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

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

query I rowsort
SELECT DISTINCT - 98 * 50 AS col1
----
-4900

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

query I rowsort
SELECT DISTINCT 28 col1
----
28

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

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

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

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

query I rowsort
SELECT + + 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL + 76 * - MIN( + 70 )
----
-5320

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL + 76 * - MIN ( + 70 )
----
-5320

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT MAX( + 28 ) * + 88
----
2464

skipif mysql # not compatible
query I rowsort label-813
SELECT MAX ( + 28 ) * + 88
----
2464

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

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

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

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

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

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

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

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

query I rowsort
SELECT + NULLIF ( - 90, 85 )
----
-90

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

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

query I rowsort
SELECT ALL NULLIF ( - + 89, - 35 ) AS col2
----
-89

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

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

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

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT - SUM ( 97 )
----
-97

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

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

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

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

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

query I rowsort
SELECT + 16 * - 73 + ( + 91 )
----
-1077

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL COALESCE ( SUM( - - 86 ), 16 )
----
86

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL COALESCE ( SUM ( - - 86 ), 16 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT COUNT( * ) + 26 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-833
SELECT COUNT ( * ) + 26 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT DISTINCT + + 76 * - COUNT( * ) * 55 AS col2
----
-4180

skipif mysql # not compatible
query I rowsort label-834
SELECT DISTINCT + + 76 * - COUNT ( * ) * 55 AS col2
----
-4180

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

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

query I rowsort
SELECT DISTINCT 47 + 45
----
92

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

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

query I rowsort
SELECT 49 * + + 3 AS col2
----
147

query I rowsort
SELECT 5 + 42 col2
----
47

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-841
SELECT 58, - SUM( DISTINCT + NULLIF ( + 64, 38 ) ) AS col0
----
58
-64

skipif mysql # not compatible
query II rowsort label-841
SELECT 58, - SUM ( DISTINCT + NULLIF ( + 64, 38 ) ) AS col0
----
58
-64

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

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

query I rowsort
SELECT ALL + 60 * 64
----
3840

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

query I rowsort
SELECT + 76 - + - 24 AS col1
----
100

query I rowsort
SELECT DISTINCT 35 col0
----
35

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 65 col0
----
-65

query I rowsort
SELECT DISTINCT 82 - 8 AS col0
----
74

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

query I rowsort
SELECT ALL - 45 * - 12
----
540

query I rowsort
SELECT 10 * + 34 + - 46
----
294

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

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

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

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

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

query I rowsort
SELECT + - 63 + 51 + + 46 * - 73
----
-3370

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

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

query I rowsort
SELECT ALL - 14 * + - 65 AS col2
----
910

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

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL + COUNT ( DISTINCT - 97 ) AS col1
----
1

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

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL - - 57 * + COUNT ( + 73 ) + - - MAX ( - ( + CAST ( NULL AS INTEGER ) ) ) + - 42 AS col1
----
NULL

query II rowsort
SELECT ALL 73 AS col1, - 20 AS col0
----
73
-20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT ALL 67 DIV + 9 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL 67 / + 9 AS col2
----
7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT ALL - ( - SUM( DISTINCT - + 2 ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL - ( - SUM ( DISTINCT - + 2 ) ) AS col1
----
-2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT + 44 + - ( - COUNT( * ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-872
SELECT + 44 + - ( - COUNT ( * ) ) AS col0
----
45

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

query I rowsort
SELECT ALL - - 24 AS col0
----
24

query I rowsort
SELECT ALL 63 * + 11
----
693

query I rowsort
SELECT 4 - - - 64 * - - 62 AS col1
----
-3964

query I rowsort
SELECT DISTINCT + - ( + 56 ) col2
----
-56

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-887
SELECT - 59 + - + 27 AS col0, + COUNT( * ) DIV + 6 col2
----
-86
0

skipif mysql # not compatible
query II rowsort label-887
SELECT - 59 + - + 27 AS col0, + COUNT ( * ) / + 6 col2
----
-86
0

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL MAX( DISTINCT + 13 ) * + + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL MAX ( DISTINCT + 13 ) * + + COUNT ( * ) AS col1
----
13

query I rowsort
SELECT 75 * 78
----
5850

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT 7 * 33 DIV 14
----
16

skipif mysql # not compatible
query I rowsort label-890
SELECT 7 * 33 / 14
----
16

query I rowsort
SELECT ALL NULLIF ( 8, + - 8 ) * 40 col1
----
320

query I rowsort
SELECT 3 + - + 54 AS col0
----
-51

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

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

query I rowsort
SELECT ( + 74 ) * 34
----
2516

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT ( + COUNT( * ) ) + 53
----
54

skipif mysql # not compatible
query I rowsort label-896
SELECT ( + COUNT ( * ) ) + 53
----
54

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

query I rowsort
SELECT - 33 * + 38
----
-1254

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-901
SELECT ALL - CAST( NULL AS SIGNED ) + - 23 + + 36 + - SUM( - + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL - CAST ( NULL AS INTEGER ) + - 23 + + 36 + - SUM ( - + 92 )
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT - 6 * - 27
----
162

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT + 40 DIV + - 53 * 17 - 18 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-909
SELECT + 40 / + - 53 * 17 - 18 AS col2
----
-18

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

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

query I rowsort
SELECT - - 47
----
47

query I rowsort
SELECT + 4 * + ( + 55 ) col1
----
220

query I rowsort
SELECT - + 11 col0
----
-11

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

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

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

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

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

query I rowsort
SELECT ALL + 48 + - 76 + + 70 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-918
SELECT DISTINCT NULLIF ( - + 60, + 66 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT NULLIF ( - + 60, + 66 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT + - COALESCE ( + + 87, + - COUNT( * ) ) * + 82 AS col0
----
-7134

skipif mysql # not compatible
query I rowsort label-919
SELECT + - COALESCE ( + + 87, + - COUNT ( * ) ) * + 82 AS col0
----
-7134

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

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

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

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

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

query I rowsort
SELECT DISTINCT 59 col1
----
59

query I rowsort
SELECT - 71 + + 4 + 3 AS col0
----
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT + 35 + + - COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-926
SELECT + 35 + + - COUNT ( * ) AS col1
----
34

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

query I rowsort
SELECT DISTINCT ( - + 9 ) col0
----
-9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT ALL + 75 + ( - 20 ) + - - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-931
SELECT ALL + 75 + ( - 20 ) + - - COUNT ( * )
----
56

query I rowsort
SELECT DISTINCT 41 * + - 14
----
-574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-933
SELECT ALL COUNT( * ) * - MIN( ALL - - NULLIF ( - CAST( NULL AS SIGNED ), - 85 ) ) AS col1, 65 AS col1
----
NULL
65

skipif mysql # not compatible
query II rowsort label-933
SELECT ALL COUNT ( * ) * - MIN ( ALL - - NULLIF ( - CAST ( NULL AS INTEGER ), - 85 ) ) AS col1, 65 AS col1
----
NULL
65

query I rowsort
SELECT + 14 * - + 14 * 35 AS col2
----
-6860

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

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

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

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

query I rowsort
SELECT 76 + + 54
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT 92 * COUNT( ALL 30 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-939
SELECT 92 * COUNT ( ALL 30 ) AS col0
----
92

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

skipif mysql # not compatible
query I rowsort label-940
SELECT COUNT ( * ) / 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT - COUNT( * ) + - 10 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-941
SELECT - COUNT ( * ) + - 10 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT DISTINCT 13 DIV 41
----
0

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT 13 / 41
----
0

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

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

skipif mysql # not compatible
query II rowsort label-944
SELECT SUM ( ALL - - 5 ), + CAST ( NULL AS INTEGER ) AS col1
----
5
NULL

query II rowsort
SELECT 94, 2 AS col2
----
94
2

onlyif mysql # aggregate syntax: 
query II rowsort label-946
SELECT 7 col0, COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-946
SELECT 7 col0, COUNT ( * )
----
7
1

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

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL MAX ( - - 62 )
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT DISTINCT - 78 * 16 * + COUNT( * ) * - 58
----
72384

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT - 78 * 16 * + COUNT ( * ) * - 58
----
72384

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

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT ALL COUNT( * ) * - NULLIF ( + + 9, - 55 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL COUNT ( * ) * - NULLIF ( + + 9, - 55 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT + 66 * + 4 + COUNT( * )
----
265

skipif mysql # not compatible
query I rowsort label-952
SELECT + 66 * + 4 + COUNT ( * )
----
265

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

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

query I rowsort
SELECT ALL + 22 + + 50
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT + 31 * 63 * ( + 85 ) * + - 60 - COUNT( * ) AS col0, - 42
----
-9960301
-42

skipif mysql # not compatible
query II rowsort label-955
SELECT + 31 * 63 * ( + 85 ) * + - 60 - COUNT ( * ) AS col0, - 42
----
-9960301
-42

query I rowsort
SELECT ALL - 46 - 86
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT ALL 91 - + COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-957
SELECT ALL 91 - + COUNT ( * ) col1
----
90

query I rowsort
SELECT 92 - 47
----
45

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + COUNT( * ) * 44 * + 83
----
3652

skipif mysql # not compatible
query I rowsort label-964
SELECT + COUNT ( * ) * 44 * + 83
----
3652

query I rowsort
SELECT ALL 4 * ( + + 71 ) AS col1
----
284

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

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

query I rowsort
SELECT ( 69 )
----
69

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

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

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

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

query I rowsort
SELECT ALL 22 * 59 AS col2
----
1298

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

skipif mysql # not compatible
query I rowsort label-971
SELECT - COUNT ( * ) / ( 57 )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT - 67 DIV 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-973
SELECT - 67 / 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL ( MAX( DISTINCT - 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL ( MAX ( DISTINCT - 19 ) )
----
-19

query I rowsort
SELECT + 14 * ( + 6 ) AS col0
----
84

query I rowsort
SELECT 62 col1
----
62

query I rowsort
SELECT ALL 24 * 76
----
1824

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

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT DISTINCT 71 DIV 25 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT 71 / 25 AS col2
----
2

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

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

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

query I rowsort
SELECT 63 + 18
----
81

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

query I rowsort
SELECT ALL + 72 + 24
----
96

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

query I rowsort
SELECT 1 + 86 AS col2
----
87

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

skipif mysql # not compatible
query I rowsort label-987
SELECT COUNT ( * ) * 23
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT MAX( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-988
SELECT MAX ( 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT DISTINCT - MIN( ALL + 97 ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT - MIN ( ALL + 97 ) col1
----
-97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT DISTINCT + 84 + + + SUM( ALL - ( + 7 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT + 84 + + + SUM ( ALL - ( + 7 ) ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT ALL COUNT( * ) * + 30 col2
----
30

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL COUNT ( * ) * + 30 col2
----
30

query I rowsort
SELECT ALL - 74 * - 24
----
1776

query I rowsort
SELECT - 17 * + 19
----
-323

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT NULLIF ( 17, - ( COUNT( * ) ) * 22 )
----
17

skipif mysql # not compatible
query I rowsort label-995
SELECT NULLIF ( 17, - ( COUNT ( * ) ) * 22 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-996
SELECT + - CAST( + ( - + 88 ) AS SIGNED ) * 26
----
2288

skipif mysql # not compatible
query I rowsort label-996
SELECT + - CAST ( + ( - + 88 ) AS INTEGER ) * 26
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ALL + MIN( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL + MIN ( 51 )
----
51

query I rowsort
SELECT DISTINCT + - 87 AS col2
----
-87

query I rowsort
SELECT - ( - - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT - ( + NULLIF ( COUNT( * ), - - 22 - COUNT( * ) ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1000
SELECT - ( + NULLIF ( COUNT ( * ), - - 22 - COUNT ( * ) ) ) col2
----
-1

query I rowsort
SELECT DISTINCT 65 AS col1
----
65

query I rowsort
SELECT ALL ( - 66 )
----
-66

query I rowsort
SELECT DISTINCT + ( + + 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT COUNT( * ) * + 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1004
SELECT COUNT ( * ) * + 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT - COUNT( * ) * + 55
----
-55

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - COUNT ( * ) * + 55
----
-55

query I rowsort
SELECT 26 * - 32
----
-832

query I rowsort
SELECT 39 + - 7
----
32

query I rowsort
SELECT - 18 * - 21
----
378

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT DISTINCT - SUM( ALL + + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - SUM ( ALL + + 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT + COUNT( * ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-1010
SELECT + COUNT ( * ) * - 52
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1011
SELECT ALL + COUNT( * ) DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + COUNT ( * ) / 88 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT - 25 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1012
SELECT - 25 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 52 * + - 45
----
2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1014
SELECT ALL + CAST( NULL AS SIGNED ) * ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL + CAST ( NULL AS INTEGER ) * ( + COUNT ( * ) )
----
NULL

query I rowsort
SELECT + - 11 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT ALL + 46 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + 46 / - 86
----
0

query I rowsort
SELECT ALL + 57 + + ( + 72 ) AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT DISTINCT NULLIF ( - - COUNT( * ), + 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT NULLIF ( - - COUNT ( * ), + 26 ) AS col1
----
1

query I rowsort
SELECT ALL - 33 col1
----
-33

query I rowsort
SELECT + ( - 57 ) AS col0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1021
SELECT - 69 DIV - 88 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1021
SELECT - 69 / - 88 AS col0
----
0

query I rowsort
SELECT + ( - - 15 ) col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1023
SELECT + CAST( NULL AS SIGNED ) col0, - COUNT( * ) * 46 AS col0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-1023
SELECT + CAST ( NULL AS INTEGER ) col0, - COUNT ( * ) * 46 AS col0
----
NULL
-46

query I rowsort
SELECT + 47 + - - 47
----
94

query I rowsort
SELECT + 11 + 78
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1026
SELECT - CAST( NULL AS SIGNED ) AS col2, + 54
----
NULL
54

skipif mysql # not compatible
query II rowsort label-1026
SELECT - CAST ( NULL AS INTEGER ) AS col2, + 54
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT ALL + MIN( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL + MIN ( 44 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1028
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + COUNT( * ) * - - 1 * + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) * - - 1 * + - 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT DISTINCT ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 12 + + 65 AS col0
----
77

query I rowsort
SELECT ALL - ( 36 ) AS col1
----
-36

query I rowsort
SELECT DISTINCT 49 AS col0
----
49

query I rowsort
SELECT 58 * - - 29
----
1682

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT MAX( DISTINCT 42 ) + + 49 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1034
SELECT MAX ( DISTINCT 42 ) + + 49 AS col1
----
91

query I rowsort
SELECT + 21 * 22 AS col2
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT MAX( - 69 ) - 23
----
-92

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT MAX ( - 69 ) - 23
----
-92

query I rowsort
SELECT + ( + - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1038
SELECT ( + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL + - 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT SUM( - - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-1040
SELECT SUM ( - - 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT - 80 * - + COUNT( * ) * - - 38
----
3040

skipif mysql # not compatible
query I rowsort label-1041
SELECT - 80 * - + COUNT ( * ) * - - 38
----
3040

query II rowsort
SELECT 89 AS col1, ( - 20 )
----
89
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ALL 95 * + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL 95 * + - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1044
SELECT 99 DIV - 16 + - - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1044
SELECT 99 / - 16 + - - COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL + + COUNT( * ) * - - COUNT( * ) * + - NULLIF ( - 85, - 71 )
----
85

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL + + COUNT ( * ) * - - COUNT ( * ) * + - NULLIF ( - 85, - 71 )
----
85

query I rowsort
SELECT ( - 57 ) * - + 50
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT ALL 17 + + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL 17 + + COUNT ( * ) AS col0
----
18

query I rowsort
SELECT 60 col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT 99 * + + COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1049
SELECT 99 * + + COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT DISTINCT - - 43 * + SUM( - 47 ) AS col2
----
-2021

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT - - 43 * + SUM ( - 47 ) AS col2
----
-2021

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT ALL + ( + + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL + ( + + COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT + 59 * + 15 * + COUNT( ALL - + 29 ) AS col1
----
885

skipif mysql # not compatible
query I rowsort label-1052
SELECT + 59 * + 15 * + COUNT ( ALL - + 29 ) AS col1
----
885

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT COUNT( ALL - + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-1053
SELECT COUNT ( ALL - + 12 )
----
1

query I rowsort
SELECT + 6 - - + 59 AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1055
SELECT + COUNT( * ) + MAX( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1055
SELECT + COUNT ( * ) + MAX ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - + 40 * + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-1056
SELECT - + 40 * + COUNT ( * )
----
-40

query I rowsort
SELECT ALL + - 66 * 84
----
-5544

query I rowsort
SELECT + + 31 AS col2
----
31

query I rowsort
SELECT DISTINCT + + 43
----
43

query I rowsort
SELECT DISTINCT + + 23
----
23

query I rowsort
SELECT + ( + - 9 ) AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT ALL - SUM( + 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-1062
SELECT ALL - SUM ( + 33 ) AS col2
----
-33

query I rowsort
SELECT 67 * + + 29 AS col1
----
1943

query I rowsort
SELECT DISTINCT - ( - ( - ( 66 ) ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT COALESCE ( + + 96, + COUNT( * ) ) + + 2
----
98

skipif mysql # not compatible
query I rowsort label-1065
SELECT COALESCE ( + + 96, + COUNT ( * ) ) + + 2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT 88 * COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1066
SELECT 88 * COUNT ( * ) AS col0
----
88

query I rowsort
SELECT - + 14 AS col1
----
-14

query I rowsort
SELECT - - 45 col2
----
45

query I rowsort
SELECT ALL - 88 col1
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT COUNT( * ), + 5 AS col0
----
1
5

skipif mysql # not compatible
query II rowsort label-1070
SELECT COUNT ( * ), + 5 AS col0
----
1
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1071
SELECT ALL + COUNT( * ), 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-1071
SELECT ALL + COUNT ( * ), 93 AS col1
----
1
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT - NULLIF ( + COUNT( * ), + - MAX( 5 ) - - 84 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1072
SELECT - NULLIF ( + COUNT ( * ), + - MAX ( 5 ) - - 84 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT + 90 AS col2, 90 AS col0
----
90
90

query I rowsort
SELECT ALL 35 * - - 20
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT ALL + MAX( + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL + MAX ( + 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT ( CAST( + 11 AS SIGNED ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1076
SELECT ( CAST ( + 11 AS INTEGER ) ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT - COUNT( * ) * - 91 + + 22 + - 69
----
44

skipif mysql # not compatible
query I rowsort label-1077
SELECT - COUNT ( * ) * - 91 + + 22 + - 69
----
44

query I rowsort
SELECT ALL COALESCE ( - - 27, + 88 ) AS col1
----
27

query I rowsort
SELECT DISTINCT - 44 * - 82 AS col0
----
3608

onlyif mysql # DIV for integer division: 
query I rowsort label-1080
SELECT DISTINCT + 68 DIV - + 6
----
-11

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT + 68 / - + 6
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL - COUNT( * ) * + 77
----
-77

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL - COUNT ( * ) * + 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT COUNT( * ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-1082
SELECT COUNT ( * ) + 17
----
18

query I rowsort
SELECT 27 * + 19 AS col1
----
513

onlyif mysql # aggregate syntax: 
query II rowsort label-1084
SELECT ALL - 78 AS col0, SUM( + - 71 ) - 95
----
-78
-166

skipif mysql # not compatible
query II rowsort label-1084
SELECT ALL - 78 AS col0, SUM ( + - 71 ) - 95
----
-78
-166

query I rowsort
SELECT ALL + 27 * + 61
----
1647

query II rowsort
SELECT - 8, + ( + 38 ) AS col2
----
-8
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT 65 * COUNT( * ) + 96 * - - COUNT( * ) AS col1
----
161

skipif mysql # not compatible
query I rowsort label-1087
SELECT 65 * COUNT ( * ) + 96 * - - COUNT ( * ) AS col1
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-1088
SELECT ALL + 50 * + 44 - - + ( - SUM( - - 31 ) ) col0, COUNT( * ) AS col2
----
2169
1

skipif mysql # not compatible
query II rowsort label-1088
SELECT ALL + 50 * + 44 - - + ( - SUM ( - - 31 ) ) col0, COUNT ( * ) AS col2
----
2169
1

query I rowsort
SELECT DISTINCT + ( + 88 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT COUNT( * ) * - COUNT( ALL - 19 ) * + 45 + - - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-1090
SELECT COUNT ( * ) * - COUNT ( ALL - 19 ) * + 45 + - - COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT - 52 * - COUNT( * ) * + 23 AS col1
----
1196

skipif mysql # not compatible
query I rowsort label-1091
SELECT - 52 * - COUNT ( * ) * + 23 AS col1
----
1196

query I rowsort
SELECT ALL + - COALESCE ( - - 27, + - 28 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1093
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1093
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) AS col1, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1094
SELECT - CAST( NULL AS SIGNED ) * + - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1094
SELECT - CAST ( NULL AS INTEGER ) * + - 66
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1095
SELECT + CAST( + 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-1095
SELECT + CAST ( + 55 AS INTEGER )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1096
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1096
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL - - 11 AS col0
----
11

query I rowsort
SELECT + - 97 col2
----
-97

query I rowsort
SELECT DISTINCT - 20 * - 69
----
1380

query I rowsort
SELECT ALL 58 col0
----
58

query I rowsort
SELECT + 78 col2
----
78

query I rowsort
SELECT DISTINCT - - 44 AS col2
----
44

query I rowsort
SELECT ALL - + 78 + - + 62 AS col1
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT COUNT( + - 90 ) + - + 53 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-1104
SELECT COUNT ( + - 90 ) + - + 53 AS col2
----
-52

query I rowsort
SELECT DISTINCT - - 69 AS col0
----
69

query I rowsort
SELECT DISTINCT + ( 52 ) - - - 72
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT COUNT( DISTINCT + - 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT COUNT ( DISTINCT + - 34 ) AS col0
----
1

query I rowsort
SELECT - 98 * 93
----
-9114

query I rowsort
SELECT - 21 col2
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1110
SELECT + - 29 + + COUNT( * ) * - CAST( - 57 AS SIGNED ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1110
SELECT + - 29 + + COUNT ( * ) * - CAST ( - 57 AS INTEGER ) AS col1
----
28

query I rowsort
SELECT ( + 25 )
----
25

query I rowsort
SELECT + 28 col1
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1113
SELECT 12 AS col1, + COUNT( * ) AS col2
----
12
1

skipif mysql # not compatible
query II rowsort label-1113
SELECT 12 AS col1, + COUNT ( * ) AS col2
----
12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT ALL COUNT( - 91 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL COUNT ( - 91 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1115
SELECT DISTINCT - - 52 * + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1115
SELECT DISTINCT - - 52 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT DISTINCT + - MIN( + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT + - MIN ( + 83 )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1117
SELECT ALL + CAST( + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + CAST ( + 10 AS INTEGER )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT DISTINCT CAST( + 12 AS SIGNED ) * 64
----
768

skipif mysql # not compatible
query I rowsort label-1118
SELECT DISTINCT CAST ( + 12 AS INTEGER ) * 64
----
768

query I rowsort
SELECT ALL - ( - - 59 )
----
-59

query I rowsort
SELECT 52 * + 29 AS col2
----
1508

onlyif mysql # aggregate syntax: 
query II rowsort label-1121
SELECT - 72 AS col0, COUNT( * )
----
-72
1

skipif mysql # not compatible
query II rowsort label-1121
SELECT - 72 AS col0, COUNT ( * )
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT - + MIN( ALL - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-1122
SELECT - + MIN ( ALL - 30 )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1123
SELECT 4 - - COUNT( * ) DIV ( 93 )
----
4

skipif mysql # not compatible
query I rowsort label-1123
SELECT 4 - - COUNT ( * ) / ( 93 )
----
4

query I rowsort
SELECT ALL + 49 * - 27
----
-1323

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT DISTINCT - COUNT( + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT - COUNT ( + 81 )
----
-1

query I rowsort
SELECT + ( + NULLIF ( + - 80, + 9 ) ) AS col1
----
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1127
SELECT - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1127
SELECT - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT - COUNT( ALL + 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-1128
SELECT - COUNT ( ALL + 32 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1129
SELECT DISTINCT + MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT + MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT + COUNT( * ) + 49 + + 99
----
149

skipif mysql # not compatible
query I rowsort label-1130
SELECT + COUNT ( * ) + 49 + + 99
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL COUNT( ALL - 24 ) * - 64
----
-64

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL COUNT ( ALL - 24 ) * - 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL 16 - - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL 16 - - COUNT ( * )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1133
SELECT 51 + + MAX( CAST( 26 AS SIGNED ) )
----
77

skipif mysql # not compatible
query I rowsort label-1133
SELECT 51 + + MAX ( CAST ( 26 AS INTEGER ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL - SUM( DISTINCT 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - SUM ( DISTINCT 82 ) AS col0
----
-82

query I rowsort
SELECT + 64 + - + 54 AS col0
----
10

query I rowsort
SELECT 89 + + 91 AS col1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT ALL - COUNT( * ) + COUNT( ALL + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL - COUNT ( * ) + COUNT ( ALL + 88 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL - + COUNT( * ) + + + COUNT( * ) * + 75 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL - + COUNT ( * ) + + + COUNT ( * ) * + 75 AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1139
SELECT ALL COUNT( * ) - 86 DIV + - 45
----
2

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL COUNT ( * ) - 86 / + - 45
----
2

query I rowsort
SELECT + 44 col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT ALL + MAX( + 21 ) - - COUNT( * ), 44 AS col1
----
22
44

skipif mysql # not compatible
query II rowsort label-1141
SELECT ALL + MAX ( + 21 ) - - COUNT ( * ), 44 AS col1
----
22
44

query I rowsort
SELECT DISTINCT - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT COUNT( * ) + + 57 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1143
SELECT COUNT ( * ) + + 57 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT ( + ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1144
SELECT ( + ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT DISTINCT - 24 col0
----
-24

query I rowsort
SELECT - + 65 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL - COUNT( * ) * - 45 + + 65 col2
----
110

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL - COUNT ( * ) * - 45 + + 65 col2
----
110

query I rowsort
SELECT + - 94 - + 2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT ALL MAX( + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL MAX ( + 39 )
----
39

query I rowsort
SELECT ( 17 ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT - ( - COUNT( * ) ) + MAX( DISTINCT + + ( 42 ) )
----
43

skipif mysql # not compatible
query I rowsort label-1151
SELECT - ( - COUNT ( * ) ) + MAX ( DISTINCT + + ( 42 ) )
----
43

query I rowsort
SELECT - 27 * + 31
----
-837

query I rowsort
SELECT DISTINCT + 18 * + + ( - ( + 90 ) )
----
-1620

query I rowsort
SELECT ALL + 52 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT DISTINCT + COUNT( * ) * - - 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT + COUNT ( * ) * - - 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT + 11 * + + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-1156
SELECT + 11 * + + COUNT ( * ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1157
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ), + 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-1157
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ), + 24 AS col2
----
NULL
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1158
SELECT ALL + + 67 * + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + + 67 * + - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL ( - + 97 ) col1
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1160
SELECT SUM( ALL + 30 ) - - 83 DIV - 11 col0
----
23

skipif mysql # not compatible
query I rowsort label-1160
SELECT SUM ( ALL + 30 ) - - 83 / - 11 col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT - 90 + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT - 90 + COUNT ( * )
----
-89

query I rowsort
SELECT 80 + - + 53
----
27

query I rowsort
SELECT ALL - ( + 8 ) AS col2
----
-8

query I rowsort
SELECT 20 col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT DISTINCT + MIN( 43 ) + - 79 - - 93
----
57

skipif mysql # not compatible
query I rowsort label-1165
SELECT DISTINCT + MIN ( 43 ) + - 79 - - 93
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL + COUNT( * ) + - 38
----
-37

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL + COUNT ( * ) + - 38
----
-37

query I rowsort
SELECT DISTINCT - + 25 * + - 50
----
1250

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT + ( + COUNT( * ) ) * - + 98
----
-98

skipif mysql # not compatible
query I rowsort label-1169
SELECT + ( + COUNT ( * ) ) * - + 98
----
-98

query I rowsort
SELECT + ( + - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT - COUNT( 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-1171
SELECT - COUNT ( 52 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1172
SELECT - ( + COUNT( * ) ), 40 AS col1
----
-1
40

skipif mysql # not compatible
query II rowsort label-1172
SELECT - ( + COUNT ( * ) ), 40 AS col1
----
-1
40

query I rowsort
SELECT DISTINCT ( + 23 ) AS col1
----
23

query I rowsort
SELECT DISTINCT 45 AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT ALL - + COUNT( * ) * 19
----
-19

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL - + COUNT ( * ) * 19
----
-19

query I rowsort
SELECT - ( - 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT COUNT( * ) * - 34 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1177
SELECT COUNT ( * ) * - 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT COUNT( * ) * - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1178
SELECT COUNT ( * ) * - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT 96 * - 14
----
-1344

query I rowsort
SELECT DISTINCT 50 AS col2
----
50

query I rowsort
SELECT 21 * - 65 AS col0
----
-1365

query I rowsort
SELECT - 28 + ( + 11 ) + + - 93
----
-110

query I rowsort
SELECT ALL ( 73 )
----
73

query I rowsort
SELECT - 68 + - 38
----
-106

query I rowsort
SELECT + 56 + + + 2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT DISTINCT + ( + 95 ) + + - COUNT( * ) * - + 19 col0
----
114

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT + ( + 95 ) + + - COUNT ( * ) * - + 19 col0
----
114

query I rowsort
SELECT - COALESCE ( - 84, - ( - 59 ) ) AS col2
----
84

query I rowsort
SELECT ( + ( 28 ) )
----
28

query I rowsort
SELECT + 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT COUNT( * ) + NULLIF ( + COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT COUNT ( * ) + NULLIF ( + COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 84 col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-1192
SELECT ALL + ( - 45 ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL + ( - 45 ) / - 89
----
0

query I rowsort
SELECT + 55 + + 92 AS col1
----
147

query I rowsort
SELECT ALL 17 col1
----
17

query I rowsort
SELECT ALL + - 6 AS col1
----
-6

query I rowsort
SELECT ALL + + 12 AS col0
----
12

query I rowsort
SELECT ALL + + ( + 72 ) AS col2
----
72

query I rowsort
SELECT - ( + 99 ) AS col0
----
-99

query I rowsort
SELECT DISTINCT 89 AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT CAST( + - 19 AS SIGNED ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-1200
SELECT CAST ( + - 19 AS INTEGER ) AS col0
----
-19

query I rowsort
SELECT ( + + 47 ) AS col1
----
47

query I rowsort
SELECT DISTINCT - - 86 AS col2
----
86

query I rowsort
SELECT DISTINCT - - 53 + + 51
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-1204
SELECT ALL - - 25 AS col2, COUNT( * ) AS col0
----
25
1

skipif mysql # not compatible
query II rowsort label-1204
SELECT ALL - - 25 AS col2, COUNT ( * ) AS col0
----
25
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1205
SELECT CAST( NULL AS SIGNED ) / - - 41 + + CAST( + 44 AS SIGNED ) AS col2, 69 * + COUNT( * )
----
NULL
69

skipif mysql # not compatible
query II rowsort label-1205
SELECT CAST ( NULL AS INTEGER ) / - - 41 + + CAST ( + 44 AS INTEGER ) AS col2, 69 * + COUNT ( * )
----
NULL
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT COUNT( * ) * + 58 + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-1206
SELECT COUNT ( * ) * + 58 + - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT DISTINCT - COUNT( * ) + - 86 col1
----
-87

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT - COUNT ( * ) + - 86 col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1208
SELECT + + COUNT( * ) AS col1, CAST( - NULLIF ( + 23, + 75 ) AS SIGNED ) * - COUNT( * ) + - - 95
----
1
118

skipif mysql # not compatible
query II rowsort label-1208
SELECT + + COUNT ( * ) AS col1, CAST ( - NULLIF ( + 23, + 75 ) AS INTEGER ) * - COUNT ( * ) + - - 95
----
1
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL - COUNT( * ) + 50
----
49

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - COUNT ( * ) + 50
----
49

query II rowsort
SELECT 62 AS col0, - 96 AS col2
----
62
-96

query II rowsort
SELECT 99 AS col0, 62
----
99
62

query I rowsort
SELECT 33 + + + 86 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL MAX( ALL - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL MAX ( ALL - 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT ALL - MAX( 90 ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL - MAX ( 90 ) col1
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1215
SELECT MAX( - ( - 74 ) ), + 72 col2
----
74
72

skipif mysql # not compatible
query II rowsort label-1215
SELECT MAX ( - ( - 74 ) ), + 72 col2
----
74
72

query I rowsort
SELECT ALL + 44 * - - 90 col2
----
3960

query I rowsort
SELECT 95 col0
----
95

query I rowsort
SELECT ALL + ( 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT ( ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1219
SELECT ( ( - COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1220
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT + ( + 65 ) - + + 79 AS col2
----
-14

query I rowsort
SELECT - - 49 AS col2
----
49

query I rowsort
SELECT ALL - 23 AS col0
----
-23

query I rowsort
SELECT ALL + 44 + - - 39 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1225
SELECT CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL COUNT( * ) + 77
----
78

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL COUNT ( * ) + 77
----
78

query I rowsort
SELECT ALL + 47 * 54
----
2538

query I rowsort
SELECT ALL + ( 57 ) col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1229
SELECT - MIN( DISTINCT 51 ) DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-1229
SELECT - MIN ( DISTINCT 51 ) / 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1230
SELECT + 32 + CAST( NULL AS SIGNED ) * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT + 32 + CAST ( NULL AS INTEGER ) * - 66 AS col1
----
NULL

query I rowsort
SELECT ALL - 74 col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1232
SELECT DISTINCT - - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1232
SELECT DISTINCT - - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL + ( + MAX( 98 ) )
----
98

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL + ( + MAX ( 98 ) )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT ALL 14 DIV + 5
----
2

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL 14 / + 5
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT ALL - 30 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL - 30 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 10 * - 84
----
-840

query I rowsort
SELECT DISTINCT + 16 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT ALL + CAST( - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL + CAST ( - 40 AS INTEGER )
----
-40

query I rowsort
SELECT DISTINCT - + 96 * + 12 + - 31
----
-1183

query I rowsort
SELECT + ( 77 ) * 28
----
2156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1241
SELECT ALL - COUNT( CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1242
SELECT ALL SUM( + CAST( NULL AS DECIMAL ) ) * - ( 50 ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL SUM ( + CAST ( NULL AS REAL ) ) * - ( 50 ) * - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT ALL 47 + + SUM( DISTINCT - + 41 )
----
6

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL 47 + + SUM ( DISTINCT - + 41 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT - - MIN( 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1244
SELECT - - MIN ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-1245
SELECT - 14, COALESCE ( + COUNT( * ), COUNT( * ) + 2 ) AS col1
----
-14
1

skipif mysql # not compatible
query II rowsort label-1245
SELECT - 14, COALESCE ( + COUNT ( * ), COUNT ( * ) + 2 ) AS col1
----
-14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT COUNT( * ) * - + MAX( DISTINCT 23 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1246
SELECT COUNT ( * ) * - + MAX ( DISTINCT 23 ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT COUNT( * ) + 51 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1247
SELECT COUNT ( * ) + 51 AS col1
----
52

query I rowsort
SELECT DISTINCT - + 13 AS col0
----
-13

query I rowsort
SELECT + 98 col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1250
SELECT ALL MIN( DISTINCT - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL MIN ( DISTINCT - 89 )
----
-89

query I rowsort
SELECT ALL + 1 + - 9 col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1252
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL + 86 * 4
----
344

query I rowsort
SELECT ( - - 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL + MAX( DISTINCT + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + MAX ( DISTINCT + 95 ) AS col1
----
95

query I rowsort
SELECT ALL - 23 * + 3
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT - MAX( - 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1257
SELECT - MAX ( - 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT ALL SUM( 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL SUM ( 86 ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT - ( + - AVG ( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT - ( + - AVG ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT ALL COUNT( * ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT - 84 * - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1261
SELECT - 84 * - COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT DISTINCT - COUNT( DISTINCT + + 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-1262
SELECT DISTINCT - COUNT ( DISTINCT + + 52 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1263
SELECT - COUNT( * ) * + + COUNT( * ) DIV - ( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1263
SELECT - COUNT ( * ) * + + COUNT ( * ) / - ( + 1 ) AS col0
----
1

query I rowsort
SELECT 93 * + - 78 AS col1
----
-7254

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ALL - MAX( ALL 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - MAX ( ALL 35 )
----
-35

query I rowsort
SELECT DISTINCT - + 49 col1
----
-49

query II rowsort
SELECT - 87, 99 AS col0
----
-87
99

query I rowsort
SELECT 47 * + + ( + 76 )
----
3572

query I rowsort
SELECT 37 * + 70
----
2590

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT MIN( + + 8 ) * - 0
----
0

skipif mysql # not compatible
query I rowsort label-1270
SELECT MIN ( + + 8 ) * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1271
SELECT COUNT ( * ) - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1272
SELECT ALL 16 DIV ( - MIN( ALL - + 76 ) ) AS col2, - COUNT( * ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-1272
SELECT ALL 16 / ( - MIN ( ALL - + 76 ) ) AS col2, - COUNT ( * ) AS col0
----
0
-1

query I rowsort
SELECT ALL + - 61
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT MAX( 83 ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-1274
SELECT MAX ( 83 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT ALL COUNT( - 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL COUNT ( - 63 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT ALL SUM( ALL + ( + 91 ) )
----
91

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL SUM ( ALL + ( + 91 ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT - 25 + - - 85 * - MIN( DISTINCT 7 ) - COUNT( * )
----
-621

skipif mysql # not compatible
query I rowsort label-1277
SELECT - 25 + - - 85 * - MIN ( DISTINCT 7 ) - COUNT ( * )
----
-621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1278
SELECT ALL - 97 - - CAST( - 36 AS SIGNED ) + + 18 * - 1
----
-151

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - 97 - - CAST ( - 36 AS INTEGER ) + + 18 * - 1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT ALL + COUNT( 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + COUNT ( 44 ) AS col1
----
1

query I rowsort
SELECT + - 40 col1
----
-40

query II rowsort
SELECT DISTINCT + + 8 * 98 AS col0, - 11
----
784
-11

query I rowsort
SELECT DISTINCT + - 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - 87 * COUNT( * ) + + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - 87 * COUNT ( * ) + + COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1284
SELECT MIN( ALL + ( - 63 ) ) AS col2, 47
----
-63
47

skipif mysql # not compatible
query II rowsort label-1284
SELECT MIN ( ALL + ( - 63 ) ) AS col2, 47
----
-63
47

query I rowsort
SELECT DISTINCT 4 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT DISTINCT COUNT( + - ( - 82 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT COUNT ( + - ( - 82 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1287
SELECT - - COUNT( * ) AS col0, - 85
----
1
-85

skipif mysql # not compatible
query II rowsort label-1287
SELECT - - COUNT ( * ) AS col0, - 85
----
1
-85

query I rowsort
SELECT - 67 * 5
----
-335

query I rowsort
SELECT - 63 col0
----
-63

query I rowsort
SELECT ALL - + 59
----
-59

query I rowsort
SELECT ALL - - 35 + + 57
----
92

query II rowsort
SELECT ALL 86 + + 2 AS col1, 87 AS col2
----
88
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1293
SELECT + 87 AS col1, COUNT( * ) AS col0
----
87
1

skipif mysql # not compatible
query II rowsort label-1293
SELECT + 87 AS col1, COUNT ( * ) AS col0
----
87
1

query I rowsort
SELECT ALL - 21 col0
----
-21

query I rowsort
SELECT 69 + - 35
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT - + SUM( 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-1296
SELECT - + SUM ( 99 ) AS col0
----
-99

query I rowsort
SELECT ( - 78 ) AS col2
----
-78

query I rowsort
SELECT ( 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1299
SELECT NULLIF ( + - CAST( NULL AS DECIMAL ), - ( + SUM( DISTINCT + 3 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1299
SELECT NULLIF ( + - CAST ( NULL AS REAL ), - ( + SUM ( DISTINCT + 3 ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL + SUM( + 81 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL + SUM ( + 81 ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT - MIN( 44 ) + 43
----
-1

skipif mysql # not compatible
query I rowsort label-1301
SELECT - MIN ( 44 ) + 43
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT DISTINCT MAX( 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT MAX ( 37 ) AS col1
----
37

query I rowsort
SELECT ALL - 41 - - 14
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT + COUNT( * ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-1304
SELECT + COUNT ( * ) + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT ALL + 74 * + 15 * + - COUNT( * ) AS col0
----
-1110

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + 74 * + 15 * + - COUNT ( * ) AS col0
----
-1110

query I rowsort
SELECT + - 6 col2
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1307
SELECT + + ( + SUM( ALL - 26 ) ) AS col2, 86
----
-26
86

skipif mysql # not compatible
query II rowsort label-1307
SELECT + + ( + SUM ( ALL - 26 ) ) AS col2, 86
----
-26
86

query I rowsort
SELECT DISTINCT + 68 * - 75 AS col2
----
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-1309
SELECT ALL - 35 - + COUNT( + 48 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1309
SELECT ALL - 35 - + COUNT ( + 48 ) AS col1
----
-36

query I rowsort
SELECT ALL - 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT - COUNT( * ) + + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1311
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT 76 + - 59 - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-1312
SELECT 76 + - 59 - - COUNT ( * )
----
18

query I rowsort
SELECT ALL NULLIF ( - 98, 83 )
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT + 22 AS col2, COUNT( * )
----
22
1

skipif mysql # not compatible
query II rowsort label-1314
SELECT + 22 AS col2, COUNT ( * )
----
22
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1315
SELECT DISTINCT + 28 AS col1, COUNT( * )
----
28
1

skipif mysql # not compatible
query II rowsort label-1315
SELECT DISTINCT + 28 AS col1, COUNT ( * )
----
28
1

query I rowsort
SELECT DISTINCT - 63 * 55 * + 54 col1
----
-187110

query II rowsort
SELECT - ( + + 50 ) AS col2, 16 AS col2
----
-50
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT 63 + + - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-1318
SELECT 63 + + - COUNT ( * )
----
62

query I rowsort
SELECT ( + 10 ) + - - 5
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT ALL - MIN( ALL - - 59 ) + - 23, - MAX( DISTINCT 98 ) AS col0
----
-82
-98

skipif mysql # not compatible
query II rowsort label-1320
SELECT ALL - MIN ( ALL - - 59 ) + - 23, - MAX ( DISTINCT 98 ) AS col0
----
-82
-98

query I rowsort
SELECT DISTINCT - + 79 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT DISTINCT - 52 * + ( COUNT( * ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT - 52 * + ( COUNT ( * ) ) AS col0
----
-52

query I rowsort
SELECT ( + 97 ) * 94 AS col2
----
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT COUNT( * ) + MAX( 74 )
----
75

skipif mysql # not compatible
query I rowsort label-1324
SELECT COUNT ( * ) + MAX ( 74 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL MIN( ALL + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL MIN ( ALL + 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL - + COUNT( * ) * + COUNT( * ) + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - + COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT DISTINCT - SUM( + + 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT - SUM ( + + 23 ) AS col0
----
-23

query I rowsort
SELECT + + 37 * 38 * 21
----
29526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1329
SELECT ALL - COUNT( * ) DIV + 66 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL - COUNT ( * ) / + 66 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL MAX( DISTINCT + 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL MAX ( DISTINCT + 89 ) AS col2
----
89

query II rowsort
SELECT 97 AS col1, - 97
----
97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1332
SELECT - COUNT( * ), 56 AS col2
----
-1
56

skipif mysql # not compatible
query II rowsort label-1332
SELECT - COUNT ( * ), 56 AS col2
----
-1
56

query I rowsort
SELECT + 50 * - 6
----
-300

query I rowsort
SELECT + ( + 68 ) - - 77
----
145

query I rowsort
SELECT + 14 * 39 * + + 17 AS col0
----
9282

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL COALESCE ( + + COUNT( * ), + + 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL COALESCE ( + + COUNT ( * ), + + 35 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT - 54 * - SUM( DISTINCT + - NULLIF ( + + 57, - - 40 ) )
----
-3078

skipif mysql # not compatible
query I rowsort label-1337
SELECT - 54 * - SUM ( DISTINCT + - NULLIF ( + + 57, - - 40 ) )
----
-3078

query I rowsort
SELECT - ( - 43 ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1339
SELECT DISTINCT + 48 - + + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT DISTINCT + 48 - + + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + - 24 AS col2
----
-24

query I rowsort
SELECT DISTINCT 36 + - 83
----
-47

query I rowsort
SELECT 98 * 7 * - 94 AS col1
----
-64484

query II rowsort
SELECT ALL - ( - - 76 ), + 19 AS col0
----
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT DISTINCT + NULLIF ( COUNT( * ), + 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT + NULLIF ( COUNT ( * ), + 97 ) AS col1
----
1

query I rowsort
SELECT ALL + 3 col2
----
3

query I rowsort
SELECT DISTINCT + 62 * - 24
----
-1488

query I rowsort
SELECT ALL - 8 * + 19 AS col0
----
-152

query I rowsort
SELECT 10 * 64 AS col0
----
640

query II rowsort
SELECT + 68, + 31 AS col2
----
68
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT COUNT( * ) * - 17
----
-17

skipif mysql # not compatible
query I rowsort label-1350
SELECT COUNT ( * ) * - 17
----
-17

query II rowsort
SELECT ALL 10 AS col2, 40 AS col0
----
10
40

query I rowsort
SELECT + ( + - 65 ) AS col0
----
-65

query I rowsort
SELECT + ( 86 )
----
86

query I rowsort
SELECT DISTINCT + + 76 AS col2
----
76

query I rowsort
SELECT DISTINCT 61 + 27
----
88

query II rowsort
SELECT DISTINCT + - 47 + + 45 col1, 65
----
-2
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1357
SELECT ALL - COUNT( * ) + - + 39 * 8
----
-313

skipif mysql # not compatible
query I rowsort label-1357
SELECT ALL - COUNT ( * ) + - + 39 * 8
----
-313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1358
SELECT CAST( - 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-1358
SELECT CAST ( - 51 AS INTEGER )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT MAX( - + 65 ) * - + 90 - + + 19 + - 10 AS col2
----
5821

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT MAX ( - + 65 ) * - + 90 - + + 19 + - 10 AS col2
----
5821

query I rowsort
SELECT ALL - - 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT 14 * + + ( COUNT( * ) ) + - 70
----
-56

skipif mysql # not compatible
query I rowsort label-1361
SELECT 14 * + + ( COUNT ( * ) ) + - 70
----
-56

query I rowsort
SELECT 3 + - 61 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT ALL + SUM( + 35 ) + - + 1 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL + SUM ( + 35 ) + - + 1 AS col1
----
34

query I rowsort
SELECT DISTINCT - 31 AS col0
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1365
SELECT ALL + CAST( NULL AS DECIMAL ) + - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1365
SELECT ALL + CAST ( NULL AS REAL ) + - 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT ALL - 34 + + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL - 34 + + COUNT ( * )
----
-33

query I rowsort
SELECT ALL 55 col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT - 96 * - CAST( 32 AS SIGNED )
----
3072

skipif mysql # not compatible
query I rowsort label-1368
SELECT - 96 * - CAST ( 32 AS INTEGER )
----
3072

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT ALL 60 DIV + NULLIF ( - 50, 56 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL 60 / + NULLIF ( - 50, 56 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1370
SELECT - COUNT( * ) DIV + - 19 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1370
SELECT - COUNT ( * ) / + - 19 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT - COUNT( * ) * ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1371
SELECT - COUNT ( * ) * ( + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT DISTINCT + - CAST( 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT + - CAST ( 11 AS INTEGER )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1373
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1373
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT ALL + - 12 col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1375
SELECT ALL 79 DIV 93 + + + 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL 79 / 93 + + + 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL COUNT( - 35 )
----
1

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL COUNT ( - 35 )
----
1

query II rowsort
SELECT DISTINCT 10 AS col0, 30
----
10
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) * + 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1378
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + 86 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1379
SELECT CAST( + 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-1379
SELECT CAST ( + 28 AS INTEGER )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1380
SELECT ALL + + CAST( - - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL + + CAST ( - - 15 AS INTEGER )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL + SUM( + 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + SUM ( + 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1382
SELECT 34 DIV + COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1382
SELECT 34 / + COUNT ( * ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT ALL + - 78 + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + - 78 + COUNT ( * )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT DISTINCT - - MIN( DISTINCT + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-1384
SELECT DISTINCT - - MIN ( DISTINCT + 38 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1385
SELECT ALL - - 23 DIV - + COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL - - 23 / - + COUNT ( * ) AS col0
----
-23

query I rowsort
SELECT 96 * - + 69 + - + ( - - 46 ) col1
----
-6670

query I rowsort
SELECT 73 + + 30 AS col2
----
103

query I rowsort
SELECT ALL 76 + ( 7 ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT - COUNT( * ) AS col1, 49 AS col2
----
-1
49

skipif mysql # not compatible
query II rowsort label-1389
SELECT - COUNT ( * ) AS col1, 49 AS col2
----
-1
49

query I rowsort
SELECT 60 + + 6 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT DISTINCT COUNT( * ) * 0 * + + 60
----
0

skipif mysql # not compatible
query I rowsort label-1391
SELECT DISTINCT COUNT ( * ) * 0 * + + 60
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1392
SELECT + COUNT( * ) * COUNT( ALL - 76 ) * 33 AS col0, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-1392
SELECT + COUNT ( * ) * COUNT ( ALL - 76 ) * 33 AS col0, COUNT ( * )
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT - 79 * - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-1393
SELECT - 79 * - COUNT ( * )
----
79

query I rowsort
SELECT ALL NULLIF ( - 44, - 24 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1395
SELECT 21 col2, - CAST( NULL AS SIGNED ) col1, + - 46
----
21
NULL
-46

skipif mysql # not compatible
query III rowsort label-1395
SELECT 21 col2, - CAST ( NULL AS INTEGER ) col1, + - 46
----
21
NULL
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL - MIN( DISTINCT 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL - MIN ( DISTINCT 85 ) AS col0
----
-85

query I rowsort
SELECT + - ( + 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ( + SUM( DISTINCT + + 12 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1398
SELECT ( + SUM ( DISTINCT + + 12 ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT + MAX( + + 17 ) + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-1399
SELECT + MAX ( + + 17 ) + + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1400
SELECT - 94 + + COUNT( ALL - 64 ) + + 21
----
-72

skipif mysql # not compatible
query I rowsort label-1400
SELECT - 94 + + COUNT ( ALL - 64 ) + + 21
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT ALL - COUNT( * ) * - - 92 * - + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL - COUNT ( * ) * - - 92 * - + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT ALL - COUNT( * ) + - 51 col1
----
-52

skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL - COUNT ( * ) + - 51 col1
----
-52

query II rowsort
SELECT ALL 85, 51 AS col2
----
85
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT - SUM( ALL - 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT - SUM ( ALL - 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL - COALESCE ( - 8, + - COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL - COALESCE ( - 8, + - COUNT ( * ) )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1406
SELECT MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1407
SELECT ALL - ( + + COUNT( * ) ), 7 AS col2
----
-1
7

skipif mysql # not compatible
query II rowsort label-1407
SELECT ALL - ( + + COUNT ( * ) ), 7 AS col2
----
-1
7

query I rowsort
SELECT DISTINCT - - 55 AS col1
----
55

query I rowsort
SELECT + - 46 * - 52 AS col1
----
2392

query I rowsort
SELECT - - 31 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT + 15 + + + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1411
SELECT + 15 + + + COUNT ( * ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT ALL 43 * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL 43 * COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + SUM( DISTINCT - 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-1413
SELECT + SUM ( DISTINCT - 48 ) AS col0
----
-48

query I rowsort
SELECT DISTINCT 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + 13 * - - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-1415
SELECT + 13 * - - COUNT ( * )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1416
SELECT + CAST( 29 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1416
SELECT + CAST ( 29 AS INTEGER ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1417
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 39 AS col2
----
NULL
39

skipif mysql # not compatible
query II rowsort label-1417
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 39 AS col2
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT + COUNT( * ) * - COUNT( DISTINCT - 57 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1418
SELECT + COUNT ( * ) * - COUNT ( DISTINCT - 57 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT + COUNT( * ) * + - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1419
SELECT + COUNT ( * ) * + - ( - - COUNT ( * ) )
----
-1

query II rowsort
SELECT DISTINCT + 40, 65 AS col1
----
40
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT COUNT( * ) * 42 + - ( + NULLIF ( ( + + 50 ), 2 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-1421
SELECT COUNT ( * ) * 42 + - ( + NULLIF ( ( + + 50 ), 2 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT + - ( + - ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1422
SELECT + - ( + - ( - COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT 78 + + 90 + - ( + 58 )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT + MIN( + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1424
SELECT + MIN ( + 75 )
----
75

query I rowsort
SELECT ALL - + 84 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1426
SELECT + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1426
SELECT + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL + 40 col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL MIN( + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL MIN ( + 79 )
----
79

query I rowsort
SELECT ALL - 81 + + 64 AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1430
SELECT DISTINCT MIN( ALL + CAST( - + 86 AS SIGNED ) )
----
-86

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT MIN ( ALL + CAST ( - + 86 AS INTEGER ) )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT ALL - COUNT( * ) * - 70 + + 43 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-1431
SELECT ALL - COUNT ( * ) * - 70 + + 43 AS col2
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1432
SELECT 88, - CAST( NULL AS DECIMAL ) AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-1432
SELECT 88, - CAST ( NULL AS REAL ) AS col0
----
88
NULL

query I rowsort
SELECT ALL - + 94 * + 17
----
-1598

query I rowsort
SELECT ALL + - ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1435
SELECT ALL 79 * - + COUNT( * ), + COUNT( * ) col1
----
-79
1

skipif mysql # not compatible
query II rowsort label-1435
SELECT ALL 79 * - + COUNT ( * ), + COUNT ( * ) col1
----
-79
1

query I rowsort
SELECT - ( 46 )
----
-46

query I rowsort
SELECT - ( - 30 ) AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1438
SELECT - ( CAST( 75 AS SIGNED ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-1438
SELECT - ( CAST ( 75 AS INTEGER ) ) AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1439
SELECT CASE - 15 WHEN + - 6 THEN + + CAST( + COUNT( * ) AS SIGNED ) WHEN - - 44 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT CASE - 15 WHEN + - 6 THEN + + CAST ( + COUNT ( * ) AS INTEGER ) WHEN - - 44 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + + ( + 35 )
----
35

query I rowsort
SELECT DISTINCT - 84 col2
----
-84

query I rowsort
SELECT 82 + - - ( + 54 ) - + - 47 * - + 14 AS col0
----
-522

query I rowsort
SELECT ALL - - ( - 46 ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1444
SELECT - 61 + - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT - 61 + - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1445
SELECT DISTINCT + 81 - - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT + 81 - - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 66 AS col1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT 97 / + CAST( NULL AS SIGNED ) / + ( + 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT 97 / + CAST ( NULL AS INTEGER ) / + ( + 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT COUNT( * ) * - 19 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT COUNT ( * ) * - 19 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1449
SELECT DISTINCT COUNT( * ) * + 22 AS col1, 66
----
22
66

skipif mysql # not compatible
query II rowsort label-1449
SELECT DISTINCT COUNT ( * ) * + 22 AS col1, 66
----
22
66

query I rowsort
SELECT DISTINCT 19 + 41 AS col0
----
60

query II rowsort
SELECT ALL 39 + - 56 col1, - 13 AS col2
----
-17
-13

query I rowsort
SELECT DISTINCT - 20 * + 22 AS col0
----
-440

query I rowsort
SELECT + 72 * 86 + + 61 AS col0
----
6253

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1454
SELECT ALL MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1455
SELECT ALL - CAST( NULL AS SIGNED ) + 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL - CAST ( NULL AS INTEGER ) + 31 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT 41 * - MAX( 20 ) AS col1
----
-820

skipif mysql # not compatible
query I rowsort label-1456
SELECT 41 * - MAX ( 20 ) AS col1
----
-820

query I rowsort
SELECT - - 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL 86 - - + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 86 - - + COUNT ( * ) AS col0
----
87

query I rowsort
SELECT + 72 * - 0 * + - 29 AS col2
----
0

query I rowsort
SELECT ( + 11 ) AS col1
----
11

query I rowsort
SELECT + 81 col2
----
81

query I rowsort
SELECT - ( - - 21 ) * + + 41 + 13 AS col0
----
-848

query I rowsort
SELECT DISTINCT + + 19 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT ALL + 18 * - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL + 18 * - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1465
SELECT ALL + 55 DIV - + ( + + COUNT( * ) )
----
-55

skipif mysql # not compatible
query I rowsort label-1465
SELECT ALL + 55 / - + ( + + COUNT ( * ) )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1466
SELECT - - COUNT( * ), COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-1466
SELECT - - COUNT ( * ), COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT ALL - 70 col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-1468
SELECT - 52 AS col2, - COUNT( * ) AS col0
----
-52
-1

skipif mysql # not compatible
query II rowsort label-1468
SELECT - 52 AS col2, - COUNT ( * ) AS col0
----
-52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL COUNT( * ) + - ( - 50 )
----
51

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL COUNT ( * ) + - ( - 50 )
----
51

query II rowsort
SELECT + 43 + - + 65 AS col1, 33 AS col2
----
-22
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT + 89 + + COUNT( * ) * + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1471
SELECT + 89 + + COUNT ( * ) * + COUNT ( * ) AS col2
----
90

query I rowsort
SELECT DISTINCT + + 50 AS col1
----
50

query I rowsort
SELECT ALL - 38 AS col1
----
-38

query I rowsort
SELECT ALL - 32 + 23 AS col0
----
-9

query I rowsort
SELECT ALL 12 AS col2
----
12

query II rowsort
SELECT 57 * + + ( 93 ) AS col0, 22
----
5301
22

query I rowsort
SELECT DISTINCT - 37 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1478
SELECT ALL - + COUNT( * ) AS col1, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-1478
SELECT ALL - + COUNT ( * ) AS col1, COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT ALL 21 * - + 89 AS col1
----
-1869

query I rowsort
SELECT ALL 90 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT 67 * 50 * + COUNT( * )
----
3350

skipif mysql # not compatible
query I rowsort label-1481
SELECT 67 * 50 * + COUNT ( * )
----
3350

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL MAX( DISTINCT 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL MAX ( DISTINCT 14 ) AS col0
----
14

query I rowsort
SELECT + ( - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT - 82 * 21 * + MAX( - 22 ) + + - 2
----
37882

skipif mysql # not compatible
query I rowsort label-1484
SELECT - 82 * 21 * + MAX ( - 22 ) + + - 2
----
37882

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT - ( + CASE 11 WHEN 66 THEN - 61 END ) * - 4 + + 90 / + ( - - 33 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT - ( + CASE 11 WHEN 66 THEN - 61 END ) * - 4 + + 90 / + ( - - 33 ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1486
SELECT DISTINCT + CAST( 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT + CAST ( 59 AS INTEGER )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1487
SELECT CAST( 99 AS SIGNED ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1487
SELECT CAST ( 99 AS INTEGER ) AS col2
----
99

query I rowsort
SELECT + 22 * - 67
----
-1474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1489
SELECT ALL - 65 DIV - 80 + - MAX( ALL - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - 65 / - 80 + - MAX ( ALL - 91 )
----
91

query I rowsort
SELECT - 86 * + 34 AS col2
----
-2924

query I rowsort
SELECT ALL 37 * - 65 - ( 71 )
----
-2476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT ( CAST( 86 AS SIGNED ) ) * 7
----
602

skipif mysql # not compatible
query I rowsort label-1492
SELECT ( CAST ( 86 AS INTEGER ) ) * 7
----
602

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT COUNT( * ) * - 67 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT COUNT ( * ) * - 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT MIN( 25 ) + 74
----
99

skipif mysql # not compatible
query I rowsort label-1494
SELECT MIN ( 25 ) + 74
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT COUNT( DISTINCT 65 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1495
SELECT COUNT ( DISTINCT 65 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ALL - + 80 * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL - + 80 * + COUNT ( * )
----
-80

query I rowsort
SELECT DISTINCT ( - 22 ) + 60 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT + COUNT( * ) + - 35 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1498
SELECT + COUNT ( * ) + - 35 AS col0
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1499
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT + 7 * - COUNT( DISTINCT + 31 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1500
SELECT + 7 * - COUNT ( DISTINCT + 31 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT DISTINCT - MIN( + 46 ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT - MIN ( + 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT - COUNT( * ) * - 6 - 65 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1502
SELECT - COUNT ( * ) * - 6 - 65 AS col2
----
-59

query I rowsort
SELECT ALL 12 + + + 90 AS col1
----
102

query I rowsort
SELECT 20 + - + 14 * - 53
----
762

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT - ( - + 1 ) * + MAX( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-1505
SELECT - ( - + 1 ) * + MAX ( ALL + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT + COUNT( * ) * ( 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1506
SELECT + COUNT ( * ) * ( 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT - 89 + + + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-1507
SELECT - 89 + + + COUNT ( * ) AS col1
----
-88

query I rowsort
SELECT 17 col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT - - 82 + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-1509
SELECT - - 82 + + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT - COUNT( - 25 ) * - 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1510
SELECT - COUNT ( - 25 ) * - 6 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1511
SELECT DISTINCT COUNT( * ) * - CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT COUNT ( * ) * - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT ALL - MAX( DISTINCT 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL - MAX ( DISTINCT 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT DISTINCT - MIN( 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT - MIN ( 95 ) AS col1
----
-95

query I rowsort
SELECT DISTINCT 36 + - 95 AS col0
----
-59

query I rowsort
SELECT 87 - - + 41 AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL - MAX( ALL + + 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - MAX ( ALL + + 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-1517
SELECT + 61, COUNT( * ) AS col2
----
61
1

skipif mysql # not compatible
query II rowsort label-1517
SELECT + 61, COUNT ( * ) AS col2
----
61
1

query I rowsort
SELECT ALL - ( ( 6 ) )
----
-6

query I rowsort
SELECT + 75 + + 55 AS col0
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT - 42 + + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-1520
SELECT - 42 + + + COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-1521
SELECT + COUNT( * ) AS col2, - 5
----
1
-5

skipif mysql # not compatible
query II rowsort label-1521
SELECT + COUNT ( * ) AS col2, - 5
----
1
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL + SUM( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + SUM ( - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT - NULLIF ( 86, 55 + 61 ) * + + MIN( - 87 ) + + ( - 83 )
----
7399

skipif mysql # not compatible
query I rowsort label-1523
SELECT - NULLIF ( 86, 55 + 61 ) * + + MIN ( - 87 ) + + ( - 83 )
----
7399

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - ( - - COUNT( - + ( - 49 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1524
SELECT - ( - - COUNT ( - + ( - 49 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT + - COUNT( * ) + - - 88 col0
----
87

skipif mysql # not compatible
query I rowsort label-1525
SELECT + - COUNT ( * ) + - - 88 col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT - COUNT( * ) + + 47
----
46

skipif mysql # not compatible
query I rowsort label-1526
SELECT - COUNT ( * ) + + 47
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-1527
SELECT + COUNT( * ) col2, 83 * + - 42
----
1
-3486

skipif mysql # not compatible
query II rowsort label-1527
SELECT + COUNT ( * ) col2, 83 * + - 42
----
1
-3486

query I rowsort
SELECT ALL - - 21 col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1529
SELECT DISTINCT COUNT( * ), CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1529
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

query I rowsort
SELECT - + ( + 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1531
SELECT COUNT( * ) * - - 50, + 53 + + + MIN( ALL CAST( NULL AS SIGNED ) ) col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1531
SELECT COUNT ( * ) * - - 50, + 53 + + + MIN ( ALL CAST ( NULL AS INTEGER ) ) col0
----
50
NULL

query I rowsort
SELECT + + 25 AS col2
----
25

query I rowsort
SELECT ALL - ( + - 37 ) AS col1
----
37

query I rowsort
SELECT + + 60 * 58 AS col2
----
3480

query I rowsort
SELECT ALL 25 * 23 AS col0
----
575

query I rowsort
SELECT + - ( - 99 )
----
99

query I rowsort
SELECT ALL + - 66
----
-66

query I rowsort
SELECT + - 35 AS col2
----
-35

query I rowsort
SELECT ALL + + 32 AS col0
----
32

query I rowsort
SELECT - + 53 + + - 53
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1541
SELECT MAX( ALL + + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-1541
SELECT MAX ( ALL + + 92 )
----
92

query I rowsort
SELECT - 97 - 16
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-1543
SELECT ALL + 80, + COUNT( * ) + - - 90 AS col2
----
80
91

skipif mysql # not compatible
query II rowsort label-1543
SELECT ALL + 80, + COUNT ( * ) + - - 90 AS col2
----
80
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT MIN( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-1544
SELECT MIN ( 2 )
----
2

query I rowsort
SELECT ALL 60 col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1546
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) + + 21
----
NULL

query I rowsort
SELECT DISTINCT - 99 * - 59
----
5841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT DISTINCT - CAST( 56 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT - CAST ( 56 AS INTEGER )
----
-56

query I rowsort
SELECT - 25 col0
----
-25

query I rowsort
SELECT ALL 7 col2
----
7

query II rowsort
SELECT - + 94, 93 AS col2
----
-94
93

query I rowsort
SELECT + ( - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT 43 * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-1553
SELECT 43 * COUNT ( * )
----
43

query I rowsort
SELECT ALL + 95 * 18 AS col1
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT - COUNT( * ) * + MAX( ALL - 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL - 92 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT DISTINCT + 5 - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT + 5 - COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT - COUNT( * ) + + - 99
----
-100

skipif mysql # not compatible
query I rowsort label-1557
SELECT - COUNT ( * ) + + - 99
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT - 30 * - COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1558
SELECT - 30 * - COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ( - COUNT( DISTINCT + 73 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1559
SELECT ( - COUNT ( DISTINCT + 73 ) )
----
-1

query I rowsort
SELECT DISTINCT - 50 * + ( - + 33 ) - 73
----
1577

query II rowsort
SELECT DISTINCT + 0 AS col2, + 50 AS col1
----
0
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1562
SELECT + CAST( - AVG ( - - 21 ) AS SIGNED ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-1562
SELECT + CAST ( - AVG ( - - 21 ) AS INTEGER ) col2
----
-21

query I rowsort
SELECT - + 44 AS col1
----
-44

query I rowsort
SELECT - 81 col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT + - COUNT( * ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1565
SELECT + - COUNT ( * ) * - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + ( + 89 )
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT DISTINCT - 35, + 80 * + - COUNT( * ) col0
----
-35
-80

skipif mysql # not compatible
query II rowsort label-1567
SELECT DISTINCT - 35, + 80 * + - COUNT ( * ) col0
----
-35
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT DISTINCT 9 * + ( - + COUNT( * ) ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT 9 * + ( - + COUNT ( * ) ) AS col0
----
-9

query I rowsort
SELECT - ( + 47 ) AS col2
----
-47

query I rowsort
SELECT ALL 78 AS col1
----
78

query I rowsort
SELECT DISTINCT - ( + 14 )
----
-14

query I rowsort
SELECT + 94 * 58 + - 77
----
5375

query I rowsort
SELECT ALL - - 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT NULLIF ( COUNT( * ), - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-1574
SELECT NULLIF ( COUNT ( * ), - 89 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL COUNT( * ) * + COUNT( * ) + + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL COUNT ( * ) * + COUNT ( * ) + + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT DISTINCT + CAST( - 87 AS SIGNED ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT + CAST ( - 87 AS INTEGER ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - - MIN( DISTINCT + 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1577
SELECT - - MIN ( DISTINCT + 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT + COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1578
SELECT + COUNT ( * ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT - COUNT( * ) * 78
----
-78

skipif mysql # not compatible
query I rowsort label-1579
SELECT - COUNT ( * ) * 78
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT + ( + + ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1580
SELECT + ( + + ( - COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT 38 * + - CAST( 4 AS SIGNED ) + 0 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-1581
SELECT 38 * + - CAST ( 4 AS INTEGER ) + 0 AS col1
----
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1582
SELECT + CAST( + + 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-1582
SELECT + CAST ( + + 42 AS INTEGER )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT DISTINCT + + 46 * - COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT + + 46 * - COUNT ( * )
----
-46

query I rowsort
SELECT ALL + ( + 8 )
----
8

query I rowsort
SELECT DISTINCT + - 60
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1586
SELECT ALL + - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + - ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + 20 * + 95
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL - 54 + + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL - 54 + + + COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL MIN( - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL MIN ( - - 13 )
----
13

query I rowsort
SELECT DISTINCT + 2 - + 70
----
-68

query I rowsort
SELECT ALL - 12 * - + 86 AS col1
----
1032

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT MAX( DISTINCT + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT MAX ( DISTINCT + 32 ) AS col0
----
32

query II rowsort
SELECT + + 94 AS col2, 42 AS col1
----
94
42

query I rowsort
SELECT + - 26 * - + 61 + 99 AS col0
----
1685

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1595
SELECT ALL MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + ( - 64 )
----
-64

query I rowsort
SELECT ALL - 77 * + 48 AS col2
----
-3696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1598
SELECT ALL + 86 * CAST( + 77 AS SIGNED ) AS col2
----
6622

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + 86 * CAST ( + 77 AS INTEGER ) AS col2
----
6622

onlyif mysql # aggregate syntax: 
query II rowsort label-1599
SELECT DISTINCT 78 * + 80 * + - COUNT( * ) AS col1, + 77
----
-6240
77

skipif mysql # not compatible
query II rowsort label-1599
SELECT DISTINCT 78 * + 80 * + - COUNT ( * ) AS col1, + 77
----
-6240
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + 49 * SUM( - 98 )
----
-4802

skipif mysql # not compatible
query I rowsort label-1600
SELECT + 49 * SUM ( - 98 )
----
-4802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1601
SELECT + CAST( - + ( 57 ) AS SIGNED ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1601
SELECT + CAST ( - + ( 57 ) AS INTEGER ) AS col2
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-1602
SELECT DISTINCT 6 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT 6 / + 92
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1603
SELECT - SUM( DISTINCT - - 70 ) DIV SUM( DISTINCT 4 )
----
-17

skipif mysql # not compatible
query I rowsort label-1603
SELECT - SUM ( DISTINCT - - 70 ) / SUM ( DISTINCT 4 )
----
-17

query I rowsort
SELECT 93 * 30 AS col1
----
2790

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT + ( - + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1605
SELECT + ( - + COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT 89 * - 23 - - COUNT( * ) AS col0
----
-2046

skipif mysql # not compatible
query I rowsort label-1607
SELECT 89 * - 23 - - COUNT ( * ) AS col0
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT COUNT( * ) - + 8
----
-7

skipif mysql # not compatible
query I rowsort label-1608
SELECT COUNT ( * ) - + 8
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT COUNT( * ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-1609
SELECT COUNT ( * ) * + 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT DISTINCT - COUNT( * ) - - 19 * 4 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT - COUNT ( * ) - - 19 * 4 AS col0
----
75

query I rowsort
SELECT + - 77 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1612
SELECT + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ( - - COUNT( DISTINCT - + 87 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1613
SELECT ( - - COUNT ( DISTINCT - + 87 ) )
----
1

query I rowsort
SELECT ALL + ( + 49 )
----
49

query I rowsort
SELECT ALL + ( + 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT ALL - ( SUM( 80 ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-1616
SELECT ALL - ( SUM ( 80 ) ) AS col0
----
-80

query I rowsort
SELECT DISTINCT 6 * - 53 AS col0
----
-318

query I rowsort
SELECT - + 29
----
-29

query I rowsort
SELECT DISTINCT + 5 + - 93 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL - - COUNT( DISTINCT - - 25 ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL - - COUNT ( DISTINCT - - 25 ) + + - COUNT ( * ) AS col0
----
0

query II rowsort
SELECT DISTINCT 24 AS col0, - 83
----
24
-83

query II rowsort
SELECT 86 col0, + 16
----
86
16

query I rowsort
SELECT + + 44 AS col2
----
44

query I rowsort
SELECT ALL + 28 + + - 74 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT DISTINCT - - MIN( ALL + 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT - - MIN ( ALL + 72 ) AS col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT - 85 DIV + 39 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1626
SELECT - 85 / + 39 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT + COUNT( * ) * 64
----
64

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + COUNT ( * ) * 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT 92 - COUNT( * ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1628
SELECT 92 - COUNT ( * ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT - 60 * + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-1629
SELECT - 60 * + COUNT ( * )
----
-60

query I rowsort
SELECT DISTINCT 36 AS col0
----
36

query I rowsort
SELECT ALL + ( + ( - - 1 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT ALL SUM( ALL - 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL SUM ( ALL - 63 ) AS col1
----
-63

query I rowsort
SELECT DISTINCT 32 col0
----
32

query I rowsort
SELECT - ( - 35 ) col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT - COUNT( * ) + 3 - + 53
----
-51

skipif mysql # not compatible
query I rowsort label-1635
SELECT - COUNT ( * ) + 3 - + 53
----
-51

query I rowsort
SELECT DISTINCT + - 88 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-1637
SELECT ALL - COUNT( * ) AS col1, 29
----
-1
29

skipif mysql # not compatible
query II rowsort label-1637
SELECT ALL - COUNT ( * ) AS col1, 29
----
-1
29

query I rowsort
SELECT + ( 94 ) AS col1
----
94

query I rowsort
SELECT DISTINCT - + 28 AS col1
----
-28

query I rowsort
SELECT + ( + - 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT - COUNT( * ) * + 24
----
-24

skipif mysql # not compatible
query I rowsort label-1641
SELECT - COUNT ( * ) * + 24
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-1642
SELECT - COUNT( * ), 85 AS col0
----
-1
85

skipif mysql # not compatible
query II rowsort label-1642
SELECT - COUNT ( * ), 85 AS col0
----
-1
85

query I rowsort
SELECT + + 7 col1
----
7

query I rowsort
SELECT - 27 + - 52
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT + 81 + - ( COUNT( * ) )
----
80

skipif mysql # not compatible
query I rowsort label-1645
SELECT + 81 + - ( COUNT ( * ) )
----
80

query I rowsort
SELECT 75 * - + 36 AS col0
----
-2700

onlyif mysql # aggregate syntax: 
query II rowsort label-1647
SELECT - 12 AS col0, + COUNT( * ) AS col1
----
-12
1

skipif mysql # not compatible
query II rowsort label-1647
SELECT - 12 AS col0, + COUNT ( * ) AS col1
----
-12
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1648
SELECT - 45 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT - 45 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT ALL - + COUNT( * ) + - + CAST( + - 85 AS SIGNED ) + + - 93 col1
----
-9

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL - + COUNT ( * ) + - + CAST ( + - 85 AS INTEGER ) + + - 93 col1
----
-9

query I rowsort
SELECT ALL - 82 * 88 col0
----
-7216

query I rowsort
SELECT 51 col1
----
51

query I rowsort
SELECT - - 68 + + + 73
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT - - MIN( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1653
SELECT - - MIN ( 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT ALL MAX( + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL MAX ( + 99 ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1655
SELECT + CAST( - 91 AS SIGNED ) * - 68 col2
----
6188

skipif mysql # not compatible
query I rowsort label-1655
SELECT + CAST ( - 91 AS INTEGER ) * - 68 col2
----
6188

query I rowsort
SELECT - ( - 31 )
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1657
SELECT + - CAST( NULL AS DECIMAL ) / 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT + - CAST ( NULL AS REAL ) / 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT DISTINCT + 73 * 76 * COUNT( * )
----
5548

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT + 73 * 76 * COUNT ( * )
----
5548

query I rowsort
SELECT ALL + 19 col1
----
19

query I rowsort
SELECT DISTINCT + 22 col1
----
22

query I rowsort
SELECT + + 71
----
71

query I rowsort
SELECT ALL + 61 AS col0
----
61

query I rowsort
SELECT - 47 col1
----
-47

query I rowsort
SELECT - + 76 AS col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT ALL - 85 - + - 21 * 16 DIV + - 2 AS col0
----
-253

skipif mysql # not compatible
query I rowsort label-1665
SELECT ALL - 85 - + - 21 * 16 / + - 2 AS col0
----
-253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1666
SELECT + ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1666
SELECT + ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1667
SELECT ALL + 54, CAST( NULL AS SIGNED ) * - 5 col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-1667
SELECT ALL + 54, CAST ( NULL AS INTEGER ) * - 5 col0
----
54
NULL

query I rowsort
SELECT ( 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT ALL MAX( - + 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL MAX ( - + 13 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1671
SELECT - + CAST( MIN( - 40 ) AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1671
SELECT - + CAST ( MIN ( - 40 ) AS INTEGER ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1672
SELECT DISTINCT + 52 + + 62 * - - ( - - CAST( NULL AS SIGNED ) ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + 52 + + 62 * - - ( - - CAST ( NULL AS INTEGER ) ) + 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT + - NULLIF ( + COUNT( * ), - - 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-1673
SELECT + - NULLIF ( + COUNT ( * ), - - 29 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT DISTINCT + CAST( 72 AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT + CAST ( 72 AS INTEGER ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1675
SELECT DISTINCT 74, + CAST( NULL AS SIGNED ) AS col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-1675
SELECT DISTINCT 74, + CAST ( NULL AS INTEGER ) AS col0
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT ALL + COUNT( ALL - 24 )
----
1

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + COUNT ( ALL - 24 )
----
1

query I rowsort
SELECT + 49 col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT COUNT( ALL + 37 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1678
SELECT COUNT ( ALL + 37 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1679
SELECT DISTINCT + - MIN( + 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT + - MIN ( + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT DISTINCT COUNT( * ) * + 37
----
37

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT COUNT ( * ) * + 37
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1681
SELECT ALL + ( - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL + ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT - ( + - 36 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT - CAST( 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-1683
SELECT - CAST ( 6 AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + + COUNT( ALL + 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1684
SELECT + + COUNT ( ALL + 67 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + ( + 70 ) col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1686
SELECT CAST( NULL AS SIGNED ) - CAST( + 64 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1686
SELECT CAST ( NULL AS INTEGER ) - CAST ( + 64 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT COUNT( * ) + - 1
----
0

skipif mysql # not compatible
query I rowsort label-1687
SELECT COUNT ( * ) + - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT COUNT( * ) * - + MAX( + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-1688
SELECT COUNT ( * ) * - + MAX ( + 66 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1689
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) col1
----
NULL

query I rowsort
SELECT DISTINCT - - 7
----
7

query I rowsort
SELECT ALL - + 25 col1
----
-25

query I rowsort
SELECT ( 55 )
----
55

query I rowsort
SELECT ALL + 76 + 23 AS col0
----
99

query I rowsort
SELECT NULLIF ( - 43, AVG ( - 38 ) ) * - 46 AS col1
----
1978

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1695
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT COUNT( * ) * - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1696
SELECT COUNT ( * ) * - 42 AS col0
----
-42

query II rowsort
SELECT - 99, - 24 AS col0
----
-99
-24

query I rowsort
SELECT ALL ( - 37 ) AS col2
----
-37

query I rowsort
SELECT + - 36 AS col1
----
-36

query I rowsort
SELECT DISTINCT + 3 * - 16 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT + COUNT( * ) + + 90 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1701
SELECT + COUNT ( * ) + + 90 AS col1
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1702
SELECT - 52 / + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1702
SELECT - 52 / + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 33 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 27 * ( - + 71 ) AS col2
----
1917

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1705
SELECT - + 43, 0 + - + COUNT( * ) + + 62 DIV - 66 AS col0
----
-43
-1

skipif mysql # not compatible
query II rowsort label-1705
SELECT - + 43, 0 + - + COUNT ( * ) + + 62 / - 66 AS col0
----
-43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT - COUNT( - 71 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - COUNT ( - 71 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT + + SUM( ALL - - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-1707
SELECT + + SUM ( ALL - - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT - COUNT( * ) * - 12
----
12

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT - COUNT ( * ) * - 12
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1709
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT - ( - ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT - ( - ( - COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT 34 * 2 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT - + MAX( + - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-1712
SELECT - + MAX ( + - 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1713
SELECT - CAST( NULL AS SIGNED ) + - - 68 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1713
SELECT - CAST ( NULL AS INTEGER ) + - - 68 col0
----
NULL

query I rowsort
SELECT ALL 89 + - 16 * + 84
----
-1255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1715
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1715
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT ALL - AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 76
----
76

query I rowsort
SELECT DISTINCT - ( + 42 ) AS col1
----
-42

query I rowsort
SELECT ALL 5 + 75
----
80

query I rowsort
SELECT ALL + 82 + + 91 AS col0
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT ALL + 22 * 75, + COUNT( * ) AS col2
----
1650
1

skipif mysql # not compatible
query II rowsort label-1721
SELECT ALL + 22 * 75, + COUNT ( * ) AS col2
----
1650
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - MIN( 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-1722
SELECT - MIN ( 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT ALL 76 - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL 76 - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1724
SELECT + - CAST( NULL AS SIGNED ) * - 48 + - 36 col1, COUNT( * ) * - - 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-1724
SELECT + - CAST ( NULL AS INTEGER ) * - 48 + - 36 col1, COUNT ( * ) * - - 76 AS col0
----
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-1725
SELECT ALL + 46 DIV - + 96 - - + 79
----
79

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL + 46 / - + 96 - - + 79
----
79

query I rowsort
SELECT + 40 AS col1
----
40

query I rowsort
SELECT + ( 18 ) + - + 40 col2
----
-22

query I rowsort
SELECT - 34 * ( + 4 ) * - 21 AS col0
----
2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1729
SELECT ALL CAST( NULL AS SIGNED ) * - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT ALL CAST ( NULL AS INTEGER ) * - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT ALL SUM( - - 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL SUM ( - - 67 ) AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1731
SELECT CAST( 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-1731
SELECT CAST ( 10 AS INTEGER )
----
10

query I rowsort
SELECT DISTINCT - - 13
----
13

query I rowsort
SELECT 72 col1
----
72

query I rowsort
SELECT 43 * - - 72
----
3096

query I rowsort
SELECT + 59 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT ALL - COUNT( * ) + ( - 58 )
----
-59

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL - COUNT ( * ) + ( - 58 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1737
SELECT ALL NULLIF ( ( + CAST( NULL AS SIGNED ) ), 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1737
SELECT ALL NULLIF ( ( + CAST ( NULL AS INTEGER ) ), 27 )
----
NULL

query I rowsort
SELECT DISTINCT - 94 col0
----
-94

query I rowsort
SELECT - 74 * + 7 AS col0
----
-518

query I rowsort
SELECT + + 10 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1741
SELECT - COUNT( 30 ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT - COUNT ( 30 ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 59 + + 95 AS col1
----
154

query I rowsort
SELECT - - ( 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT + 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-1744
SELECT + 82 * - COUNT ( * )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT ALL ( + CAST( 90 AS SIGNED ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL ( + CAST ( 90 AS INTEGER ) ) AS col2
----
90

query I rowsort
SELECT + + ( + 76 ) AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1747
SELECT - - COUNT( * ) * + ( 4 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT - - COUNT ( * ) * + ( 4 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( + 71 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( + 71 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + 57 AS col2
----
-57

query I rowsort
SELECT ( 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT - MIN( 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT - MIN ( 63 )
----
-63

query I rowsort
SELECT DISTINCT - + ( 68 ) AS col2
----
-68

query I rowsort
SELECT 71 + - - 89
----
160

query I rowsort
SELECT - - 70 col0
----
70

query I rowsort
SELECT ALL - - 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL - SUM( 58 ) AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL - SUM ( 58 ) AS col1
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT ALL + NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL + NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - ( + 79 ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT ALL + COUNT( * ) + - - ( 58 ) * - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL + COUNT ( * ) + - - ( 58 ) * - COUNT ( * )
----
-57

query I rowsort
SELECT - - 16 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT DISTINCT - COUNT( * ) * 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1761
SELECT DISTINCT - COUNT ( * ) * 2 AS col1
----
-2

query I rowsort
SELECT ALL + - 43 AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT + 46 - 44 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT + 46 - 44 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 46 ) AS col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1765
SELECT DISTINCT CAST( + - MIN( - - 66 ) AS SIGNED ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT CAST ( + - MIN ( - - 66 ) AS INTEGER ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT - + MAX( ALL - 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1766
SELECT - + MAX ( ALL - 23 ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1767
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL ( - 22 ) AS col2
----
-22

query I rowsort
SELECT - - 28 + + - 77 AS col1
----
-49

query II rowsort
SELECT - - 33 AS col2, 27 + 26 AS col0
----
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT 6 + + COUNT( * ) * + 37
----
43

skipif mysql # not compatible
query I rowsort label-1771
SELECT 6 + + COUNT ( * ) * + 37
----
43

query I rowsort
SELECT ( + 68 )
----
68

query I rowsort
SELECT - 74 + - 63
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-1774
SELECT 32, COUNT( * ) AS col0
----
32
1

skipif mysql # not compatible
query II rowsort label-1774
SELECT 32, COUNT ( * ) AS col0
----
32
1

query I rowsort
SELECT ALL + 15 + + + 80 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT COUNT( * ) * - 38
----
-38

skipif mysql # not compatible
query I rowsort label-1776
SELECT COUNT ( * ) * - 38
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1777
SELECT ALL - 90 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL - 90 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 19 AS col2
----
19

query I rowsort
SELECT DISTINCT + ( + 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - MIN( DISTINCT + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1780
SELECT - MIN ( DISTINCT + 49 )
----
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1781
SELECT ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT 87 * + - COUNT( * ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-1782
SELECT 87 * + - COUNT ( * ) AS col0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT ( - 92 ) DIV - + 86 + ( + + 62 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1783
SELECT ( - 92 ) / - + 86 + ( + + 62 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT DISTINCT 33 + + - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT 33 + + - COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT - MIN( ALL + ( + 94 ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-1785
SELECT - MIN ( ALL + ( + 94 ) ) AS col2
----
-94

query II rowsort
SELECT - - 17 AS col2, 63
----
17
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT DISTINCT SUM( + + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT SUM ( + + 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT ALL + COUNT( * ) + - 80
----
-79

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL + COUNT ( * ) + - 80
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1789
SELECT ALL + 91 DIV + COUNT( * ) + + 58 + - 73
----
76

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL + 91 / + COUNT ( * ) + + 58 + - 73
----
76

query I rowsort
SELECT ALL + + 97 AS col2
----
97

query I rowsort
SELECT DISTINCT ( 49 )
----
49

query I rowsort
SELECT ALL 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT SUM( 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT SUM ( 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT CASE WHEN NOT + 60 > + - COUNT( * ) + + + 30 THEN - + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT CASE WHEN NOT + 60 > + - COUNT ( * ) + + + 30 THEN - + COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1795
SELECT - + MAX( 78 ) + 0 AS col1, - 10 DIV + - COUNT( * )
----
-78
10

skipif mysql # not compatible
query II rowsort label-1795
SELECT - + MAX ( 78 ) + 0 AS col1, - 10 / + - COUNT ( * )
----
-78
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT COUNT( * ) * + MIN( ALL - - 57 ) * MAX( DISTINCT 27 )
----
1539

skipif mysql # not compatible
query I rowsort label-1796
SELECT COUNT ( * ) * + MIN ( ALL - - 57 ) * MAX ( DISTINCT 27 )
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT COUNT( * ) + - - MIN( ALL + + 83 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1797
SELECT COUNT ( * ) + - - MIN ( ALL + + 83 ) AS col0
----
84

query I rowsort
SELECT + - 40 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL - MIN( DISTINCT - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - MIN ( DISTINCT - 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT + MAX( ALL + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-1800
SELECT + MAX ( ALL + 6 )
----
6

query I rowsort
SELECT 15 + 17
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1802
SELECT DISTINCT 34 col1, - ( - COUNT( * ) )
----
34
1

skipif mysql # not compatible
query II rowsort label-1802
SELECT DISTINCT 34 col1, - ( - COUNT ( * ) )
----
34
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT ALL COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT DISTINCT - 75 * + + ( - 76 ) * COUNT( * ) + - 22 - 6 AS col0
----
5672

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT - 75 * + + ( - 76 ) * COUNT ( * ) + - 22 - 6 AS col0
----
5672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1805
SELECT DISTINCT - COALESCE ( 73, - SUM( ( - + CAST( - 63 AS SIGNED ) ) ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT - COALESCE ( 73, - SUM ( ( - + CAST ( - 63 AS INTEGER ) ) ) ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1806
SELECT - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1806
SELECT - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 79 col2
----
-79

query I rowsort
SELECT - - 54 AS col1
----
54

query I rowsort
SELECT + - 72 AS col2
----
-72

query I rowsort
SELECT + ( 57 )
----
57

query I rowsort
SELECT ALL + 14 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1812
SELECT MAX( + - CAST( NULL AS DECIMAL ) ) AS col0, 30
----
NULL
30

skipif mysql # not compatible
query II rowsort label-1812
SELECT MAX ( + - CAST ( NULL AS REAL ) ) AS col0, 30
----
NULL
30

query I rowsort
SELECT DISTINCT + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT + + COUNT( DISTINCT - 12 ) * + 54 - + - 3
----
57

skipif mysql # not compatible
query I rowsort label-1814
SELECT + + COUNT ( DISTINCT - 12 ) * + 54 - + - 3
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT 59 + - COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1815
SELECT 59 + - COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ALL 85 + + MAX( DISTINCT - 15 )
----
70

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL 85 + + MAX ( DISTINCT - 15 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1817
SELECT ALL + COUNT( * ) AS col2, 23 AS col1
----
1
23

skipif mysql # not compatible
query II rowsort label-1817
SELECT ALL + COUNT ( * ) AS col2, 23 AS col1
----
1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT COUNT( * ) + 50
----
51

skipif mysql # not compatible
query I rowsort label-1818
SELECT COUNT ( * ) + 50
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT ALL - 65 + + 31 - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-1819
SELECT ALL - 65 + + 31 - COUNT ( * )
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1820
SELECT + COUNT( * ) / + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT + COUNT ( * ) / + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 0 * + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT DISTINCT 38 * + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT 38 * + COUNT ( * )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT + CAST( + + CAST( + - 17 AS SIGNED ) AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-1823
SELECT + CAST ( + + CAST ( + - 17 AS INTEGER ) AS INTEGER )
----
-17

query I rowsort
SELECT ALL + 67 col1
----
67

query II rowsort
SELECT - 79 AS col0, 9
----
-79
9

query II rowsort
SELECT ALL 10, ( - 14 ) AS col2
----
10
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1827
SELECT CAST( + + MAX( + 8 ) AS SIGNED ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1827
SELECT CAST ( + + MAX ( + 8 ) AS INTEGER ) AS col2
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT ALL 45 DIV + 45 - + 0
----
1

skipif mysql # not compatible
query I rowsort label-1828
SELECT ALL 45 / + 45 - + 0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1829
SELECT ALL + ( - - ( - CAST( NULL AS DECIMAL ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL + ( - - ( - CAST ( NULL AS REAL ) ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 62 col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1831
SELECT ALL + COUNT( * ) col2, - 74
----
1
-74

skipif mysql # not compatible
query II rowsort label-1831
SELECT ALL + COUNT ( * ) col2, - 74
----
1
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT + 55 * - COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1832
SELECT + 55 * - COUNT ( * ) AS col2
----
-55

query II rowsort
SELECT - 68 AS col1, 60
----
-68
60

query I rowsort
SELECT ( + - 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1835
SELECT + CASE - + 77 WHEN + 31 THEN + MAX( ALL - + ( CAST( NULL AS SIGNED ) ) ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT + CASE - + 77 WHEN + 31 THEN + MAX ( ALL - + ( CAST ( NULL AS INTEGER ) ) ) END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT - 55 DIV - COUNT( * ) + - 22 + 10 - + 77 + - - 53 * + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-1836
SELECT - 55 / - COUNT ( * ) + - 22 + 10 - + 77 + - - 53 * + COUNT ( * )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT ALL - + ( + 94 ) DIV - - 51
----
-1

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - + ( + 94 ) / - - 51
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL - 53 + + COUNT( * ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL - 53 + + COUNT ( * ) AS col2
----
-52

query I rowsort
SELECT ALL - 68 * + 47
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT ALL MIN( DISTINCT - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL MIN ( DISTINCT - 40 ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1841
SELECT DISTINCT COUNT( * ), ( + + SUM( - 61 ) ) AS col2
----
1
-61

skipif mysql # not compatible
query II rowsort label-1841
SELECT DISTINCT COUNT ( * ), ( + + SUM ( - 61 ) ) AS col2
----
1
-61

query I rowsort
SELECT ALL - + 20 AS col1
----
-20

query I rowsort
SELECT ALL - + 94 AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1844
SELECT ALL CAST( NULL AS DECIMAL ) / - 19 * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL CAST ( NULL AS REAL ) / - 19 * + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT DISTINCT + MAX( + 79 ) * + + 85 + + - COALESCE ( + - ( 45 ), - + 61 )
----
6760

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT + MAX ( + 79 ) * + + 85 + + - COALESCE ( + - ( 45 ), - + 61 )
----
6760

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT DISTINCT - COUNT( * ) * + 29 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT - COUNT ( * ) * + 29 AS col2
----
-29

query I rowsort
SELECT ALL - 37 * 34 AS col1
----
-1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1848
SELECT - 27 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1848
SELECT - 27 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL COUNT( * ) * - ( + + 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL COUNT ( * ) * - ( + + 87 ) AS col1
----
-87

query I rowsort
SELECT + 99 - + ( - 37 )
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1851
SELECT + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT COUNT( + 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1852
SELECT COUNT ( + 20 ) AS col2
----
1

query II rowsort
SELECT ALL + ( + 56 ) + - 32, 73 + + - 91 col0
----
24
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL COUNT( * ) * 45
----
45

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL COUNT ( * ) * 45
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1855
SELECT SUM( ALL - COALESCE ( + - 43, 65 ) ) DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-1855
SELECT SUM ( ALL - COALESCE ( + - 43, 65 ) ) / 42
----
1

query I rowsort
SELECT ALL - 64 * + 39 AS col1
----
-2496

query II rowsort
SELECT - 37, 75 * - 69 AS col0
----
-37
-5175

query I rowsort
SELECT ALL COALESCE ( - + 22, + ( - 1 ) ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT + + 61 + COUNT( * ) col0
----
62

skipif mysql # not compatible
query I rowsort label-1859
SELECT + + 61 + COUNT ( * ) col0
----
62

query I rowsort
SELECT DISTINCT + + 45
----
45

query I rowsort
SELECT ALL + 80 col0
----
80

query I rowsort
SELECT DISTINCT + - 12 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT + COUNT( * ) * - 16 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1863
SELECT + COUNT ( * ) * - 16 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT + COUNT( * ) + + 69 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1864
SELECT + COUNT ( * ) + + 69 AS col1
----
70

query I rowsort
SELECT ALL 29 * - - 90 AS col2
----
2610

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1866
SELECT + COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1866
SELECT + COUNT ( * ) / COUNT ( * ) AS col1
----
1

query II rowsort
SELECT ALL + 58 AS col2, 28 * - + 10 * - - 37 * + 99 AS col0
----
58
-1025640

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT DISTINCT + COUNT( - - 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1868
SELECT DISTINCT + COUNT ( - - 73 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1869
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 85 * - 82
----
6970

query I rowsort
SELECT ALL ( + + 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL SUM( ALL - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL SUM ( ALL - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-1873
SELECT COUNT( * ) * - + 44 AS col1, - ( + - 48 )
----
-44
48

skipif mysql # not compatible
query II rowsort label-1873
SELECT COUNT ( * ) * - + 44 AS col1, - ( + - 48 )
----
-44
48

query I rowsort
SELECT ALL + 16 * - 97
----
-1552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1875
SELECT ALL COUNT( * ) DIV + 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL COUNT ( * ) / + 21 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1876
SELECT COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT COUNT( 72 ) + + COUNT( ALL - 84 )
----
2

skipif mysql # not compatible
query I rowsort label-1878
SELECT COUNT ( 72 ) + + COUNT ( ALL - 84 )
----
2

query I rowsort
SELECT DISTINCT + ( 65 ) AS col2
----
65

query I rowsort
SELECT COALESCE ( + 99, - 85 ) AS col2
----
99

query I rowsort
SELECT ALL + 99 col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1882
SELECT ALL + ( CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL + ( CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT - 47 * 15
----
-705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1884
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COUNT( DISTINCT + 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT + 95 )
----
NULL

query I rowsort
SELECT ALL 7 * 72
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT + + COUNT( * ) * - 32
----
-32

skipif mysql # not compatible
query I rowsort label-1886
SELECT + + COUNT ( * ) * - 32
----
-32

query I rowsort
SELECT - 59 col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT ALL + NULLIF ( + 61, + - 21 * + COUNT( * ) ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL + NULLIF ( + 61, + - 21 * + COUNT ( * ) ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT - 21 DIV - MAX( + 97 ) * - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1889
SELECT - 21 / - MAX ( + 97 ) * - 18 AS col2
----
0

query I rowsort
SELECT DISTINCT + ( - 44 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT - - COUNT( * ) + - + 56 col0
----
-55

skipif mysql # not compatible
query I rowsort label-1891
SELECT - - COUNT ( * ) + - + 56 col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT COUNT( * ) + 17 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-1892
SELECT COUNT ( * ) + 17 AS col2
----
18

query I rowsort
SELECT DISTINCT - + NULLIF ( 59, - + 92 ) * - + ( + 76 ) - 4
----
4480

query I rowsort
SELECT ALL 40 + + + 85 * + 73
----
6245

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT 23 - + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-1895
SELECT 23 - + + COUNT ( * )
----
22

query I rowsort
SELECT ALL - - 85 AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL - ( - COUNT( * ) ) * 41
----
41

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL - ( - COUNT ( * ) ) * 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT DISTINCT + ( + ( - - COUNT( * ) ) ) * + - 36
----
-36

skipif mysql # not compatible
query I rowsort label-1898
SELECT DISTINCT + ( + ( - - COUNT ( * ) ) ) * + - 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT ALL - COUNT( * ) * + 29
----
-29

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL - COUNT ( * ) * + 29
----
-29

query I rowsort
SELECT + 75 + + ( - - 29 )
----
104

query I rowsort
SELECT ALL + 63 + - - 22
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT + - SUM( DISTINCT + ( + 88 ) ) col0
----
-88

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT + - SUM ( DISTINCT + ( + 88 ) ) col0
----
-88

query I rowsort
SELECT + 30 * 78 * + 23 AS col2
----
53820

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL COUNT( * ) * 6 + + + 15
----
21

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL COUNT ( * ) * 6 + + + 15
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT MIN( DISTINCT + 13 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1905
SELECT MIN ( DISTINCT + 13 ) AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT ALL CAST( + 98 AS SIGNED ) col1
----
98

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL CAST ( + 98 AS INTEGER ) col1
----
98

query II rowsort
SELECT ALL - 85, 29 * + + 88 AS col1
----
-85
2552

query I rowsort
SELECT - - ( + - ( + - 16 ) )
----
16

query I rowsort
SELECT ALL - - 51 col0
----
51

query I rowsort
SELECT ALL - ( - 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT COUNT( * ) + + 59 * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-1911
SELECT COUNT ( * ) + + 59 * COUNT ( * )
----
60

query I rowsort
SELECT 82 + 95 AS col1
----
177

query I rowsort
SELECT ALL + 42 * + 35
----
1470

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT DISTINCT - 3 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT - 3 / + 38
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT + ( + - CAST( NULL AS SIGNED ) ) * + - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT + ( + - CAST ( NULL AS INTEGER ) ) * + - 78 AS col1
----
NULL

query I rowsort
SELECT + 40 col2
----
40

query I rowsort
SELECT ALL - 41 * - 4 AS col2
----
164

query I rowsort
SELECT - ( 32 )
----
-32

query I rowsort
SELECT ALL ( - 60 )
----
-60

query I rowsort
SELECT ALL ( + 69 ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL + - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL + - COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL 38 + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL 38 + COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT + MAX( ALL 38 ) * + 22
----
836

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT + MAX ( ALL 38 ) * + 22
----
836

onlyif mysql # aggregate syntax: 
query II rowsort label-1924
SELECT COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1924
SELECT COUNT ( * ), COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT + 80 + + 48
----
128

query I rowsort
SELECT 59 col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT ALL + COUNT( * ) + - - 37
----
38

skipif mysql # not compatible
query I rowsort label-1927
SELECT ALL + COUNT ( * ) + - - 37
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT + 27 + - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1928
SELECT + 27 + - COUNT ( * ) AS col0
----
26

query I rowsort
SELECT 81 + + 47
----
128

query I rowsort
SELECT DISTINCT ( + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT 92 * + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1931
SELECT 92 * + COUNT ( * ) AS col1
----
92

query I rowsort
SELECT ALL + 14 * + 66
----
924

query I rowsort
SELECT ALL - 97 * + - ( - 88 ) AS col0
----
-8536

query I rowsort
SELECT ALL - 17 col2
----
-17

query I rowsort
SELECT - ( - + 22 ) AS col1
----
22

query I rowsort
SELECT ALL 21 + - + ( - 48 )
----
69

query I rowsort
SELECT + ( + 78 ) + 36 + + 40
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT ALL + MIN( 39 )
----
39

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL + MIN ( 39 )
----
39

query II rowsort
SELECT + + 65 AS col2, + 5
----
65
5

query I rowsort
SELECT ALL + 47 * - - 30
----
1410

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT + 83 * + + COUNT( * ) * + 1 - 26
----
57

skipif mysql # not compatible
query I rowsort label-1941
SELECT + 83 * + + COUNT ( * ) * + 1 - 26
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT CAST( NULL AS SIGNED ) + + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT CAST ( NULL AS INTEGER ) + + 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL COUNT( * ) * - 81 * + 50
----
-4050

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL COUNT ( * ) * - 81 * + 50
----
-4050

query I rowsort
SELECT DISTINCT - + ( - - 19 )
----
-19

query I rowsort
SELECT ( + 17 ) col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1946
SELECT COUNT( * ) + + 93 + + + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-1946
SELECT COUNT ( * ) + + 93 + + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL - ( - COUNT( * ) ) * + - 11 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL - ( - COUNT ( * ) ) * + - 11 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT DISTINCT MIN( ALL + - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT MIN ( ALL + - 96 )
----
-96

query I rowsort
SELECT ALL 98 * - 20
----
-1960

query I rowsort
SELECT - 80 * + + 40 * - 6
----
19200

query I rowsort
SELECT ALL ( + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL + ( + COUNT( DISTINCT - - 96 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + ( + COUNT ( DISTINCT - - 96 ) )
----
1

query I rowsort
SELECT + ( + ( + 93 ) )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1955
SELECT + CAST( + ( 64 ) AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1955
SELECT + CAST ( + ( 64 ) AS INTEGER ) AS col2
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1956
SELECT + CAST( + ( - AVG ( + + 31 ) ) AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-1956
SELECT + CAST ( + ( - AVG ( + + 31 ) ) AS INTEGER )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL 50 * + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL 50 * + - COUNT ( * )
----
-50

query I rowsort
SELECT - 62 * - 48
----
2976

query I rowsort
SELECT ALL - + 75 AS col2
----
-75

query I rowsort
SELECT ALL 45 * + 91 AS col0
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT + MAX( - 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-1961
SELECT + MAX ( - 19 )
----
-19

query II rowsort
SELECT - 37, + 22 AS col0
----
-37
22

query I rowsort
SELECT ALL - 56 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT COUNT( * ) * + 86
----
86

skipif mysql # not compatible
query I rowsort label-1964
SELECT COUNT ( * ) * + 86
----
86

query I rowsort
SELECT 39 * - 87
----
-3393

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT ALL - MAX( - 20 )
----
20

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL - MAX ( - 20 )
----
20

query I rowsort
SELECT + 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT + MAX( ALL - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + MAX ( ALL - 29 )
----
-29

query I rowsort
SELECT ALL + 63 col1
----
63

query I rowsort
SELECT COALESCE ( - 72, - 87 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL + 97 * - 24 + - 81 * - + COUNT( * )
----
-2247

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + 97 * - 24 + - 81 * - + COUNT ( * )
----
-2247

query I rowsort
SELECT DISTINCT + ( + 48 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1973
SELECT + 70 AS col0, - COUNT( * )
----
70
-1

skipif mysql # not compatible
query II rowsort label-1973
SELECT + 70 AS col0, - COUNT ( * )
----
70
-1

query I rowsort
SELECT DISTINCT ( + 89 )
----
89

query I rowsort
SELECT ALL ( + 39 ) AS col2
----
39

query I rowsort
SELECT ALL ( - 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT + 40 * COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-1977
SELECT + 40 * COUNT ( * )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 60 ) col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ( COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1980
SELECT ( COUNT ( * ) ) col1
----
1

query I rowsort
SELECT DISTINCT - 95 - + 19 AS col0
----
-114

query I rowsort
SELECT 44 + + 71 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT - MAX( DISTINCT - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-1983
SELECT - MAX ( DISTINCT - 36 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1984
SELECT DISTINCT - CAST( 36 AS SIGNED ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT - CAST ( 36 AS INTEGER ) AS col2
----
-36

query I rowsort
SELECT ALL + ( + - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT NULLIF ( + 83, + COUNT( * ) )
----
83

skipif mysql # not compatible
query I rowsort label-1986
SELECT NULLIF ( + 83, + COUNT ( * ) )
----
83

query I rowsort
SELECT + ( 7 ) * - + 42 + + 26
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT + 56 * + ( + + 69 ) - - COUNT( ALL - 49 ) AS col0
----
3865

skipif mysql # not compatible
query I rowsort label-1988
SELECT + 56 * + ( + + 69 ) - - COUNT ( ALL - 49 ) AS col0
----
3865

query I rowsort
SELECT ALL + - 63 AS col0
----
-63

query II rowsort
SELECT - 75 AS col0, 38
----
-75
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1991
SELECT + COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1991
SELECT + COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT 94 col2
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1993
SELECT - ( - + 57 ) DIV COUNT( + 43 ) DIV + 46 col2
----
1

skipif mysql # not compatible
query I rowsort label-1993
SELECT - ( - + 57 ) / COUNT ( + 43 ) / + 46 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT ALL + 82 * + COALESCE ( - 80, + CAST( NULL AS SIGNED ) ) AS col0
----
-6560

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL + 82 * + COALESCE ( - 80, + CAST ( NULL AS INTEGER ) ) AS col0
----
-6560

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT + ( - - MIN( - 35 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT + ( - - MIN ( - 35 ) ) AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1996
SELECT + + SUM( - CAST( NULL AS SIGNED ) ), 89 AS col0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-1996
SELECT + + SUM ( - CAST ( NULL AS INTEGER ) ), 89 AS col0
----
NULL
89

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT ALL - ( 72 ) DIV - 37 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL - ( 72 ) / - 37 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT SUM( + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-1998
SELECT SUM ( + 39 )
----
39

query I rowsort
SELECT ALL 4 * + 11
----
44

query I rowsort
SELECT 95 * + 74
----
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT + ( - ( - COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2001
SELECT + ( - ( - COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT COUNT( ALL 38 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2002
SELECT COUNT ( ALL 38 ) AS col1
----
1

query I rowsort
SELECT ALL 2 + - + 87 col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT DISTINCT - 14 * - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT - 14 * - COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT + + COUNT( DISTINCT 22 )
----
1

skipif mysql # not compatible
query I rowsort label-2005
SELECT + + COUNT ( DISTINCT 22 )
----
1

query I rowsort
SELECT ALL + 29 col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT + ( ( + COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT + ( ( + COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT - 50 + + COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-2008
SELECT - 50 + + COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT ALL + 32 * + 18
----
576

query I rowsort
SELECT - 60 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2011
SELECT - - COUNT( + ( + - 9 ) ) DIV + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2011
SELECT - - COUNT ( + ( + - 9 ) ) / + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT DISTINCT + - 47 col1
----
-47

query I rowsort
SELECT DISTINCT + 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT 20 * ( - - COUNT( * ) )
----
20

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT 20 * ( - - COUNT ( * ) )
----
20

query I rowsort
SELECT + 37 + - 26 AS col0
----
11

query I rowsort
SELECT ALL ( 54 ) AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2017
SELECT - 32 * + ( + CAST( + 52 AS SIGNED ) ) col2
----
-1664

skipif mysql # not compatible
query I rowsort label-2017
SELECT - 32 * + ( + CAST ( + 52 AS INTEGER ) ) col2
----
-1664

query I rowsort
SELECT - - 18 + + 97
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2019
SELECT ( - + 71 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT ( - + 71 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT DISTINCT + 19 + - 6 DIV - 91 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT + 19 + - 6 / - 91 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT - - COUNT( * ) + ( - 37 )
----
-36

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - - COUNT ( * ) + ( - 37 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT + MAX( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT + MAX ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2023
SELECT ALL - 73 - 94 - - - 97 DIV ( - SUM( ALL + 28 ) )
----
-164

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - 73 - 94 - - - 97 / ( - SUM ( ALL + 28 ) )
----
-164

query I rowsort
SELECT ALL ( + - 25 ) col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2025
SELECT - 84 DIV - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-2025
SELECT - 84 / - COUNT ( * ) AS col1
----
84

query I rowsort
SELECT DISTINCT 96 col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT ALL COUNT( * ) + + + 12 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL COUNT ( * ) + + + 12 AS col1
----
13

query I rowsort
SELECT ALL 70 + + 1
----
71

query I rowsort
SELECT ALL + - 83
----
-83

query I rowsort
SELECT DISTINCT + ( - 84 )
----
-84

query I rowsort
SELECT + 68 * - 45
----
-3060

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2032
SELECT - COUNT( * ) DIV + 53 AS col0, - NULLIF ( - SUM( 78 ), 99 )
----
0
78

skipif mysql # not compatible
query II rowsort label-2032
SELECT - COUNT ( * ) / + 53 AS col0, - NULLIF ( - SUM ( 78 ), 99 )
----
0
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT ALL - COUNT( * ) * + ( + ( + + 15 ) ) * - 66
----
990

skipif mysql # not compatible
query I rowsort label-2033
SELECT ALL - COUNT ( * ) * + ( + ( + + 15 ) ) * - 66
----
990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2034
SELECT - 73 AS col2, - CAST( NULL AS SIGNED )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-2034
SELECT - 73 AS col2, - CAST ( NULL AS INTEGER )
----
-73
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2035
SELECT 58 AS col2, COUNT( * ) AS col0
----
58
1

skipif mysql # not compatible
query II rowsort label-2035
SELECT 58 AS col2, COUNT ( * ) AS col0
----
58
1

query I rowsort
SELECT - + 48 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2037
SELECT + COUNT( * ) AS col0, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-2037
SELECT + COUNT ( * ) AS col0, 50
----
1
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT CAST( + + 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-2038
SELECT CAST ( + + 75 AS INTEGER )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2039
SELECT 73 * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2039
SELECT 73 * COUNT ( * )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2040
SELECT ( + 58 ) DIV 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2040
SELECT ( + 58 ) / 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT COUNT( * ) + + - 51
----
-50

skipif mysql # not compatible
query I rowsort label-2041
SELECT COUNT ( * ) + + - 51
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2042
SELECT ALL + 3 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + 3 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL - + MAX( + ( - 57 ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - + MAX ( + ( - 57 ) ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT COUNT( ( - 21 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2044
SELECT COUNT ( ( - 21 ) ) AS col1
----
1

query I rowsort
SELECT + ( + 54 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT - CAST( + 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-2046
SELECT - CAST ( + 71 AS INTEGER )
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2047
SELECT ALL - + 21 DIV - 9
----
2

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL - + 21 / - 9
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2048
SELECT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT + - MIN( DISTINCT + - ( - 59 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2049
SELECT + - MIN ( DISTINCT + - ( - 59 ) )
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) col0
----
1

query I rowsort
SELECT + 21 + - 45 AS col1
----
-24

query I rowsort
SELECT ALL 4 + + 98 AS col2
----
102

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2053
SELECT - 68 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT - 68 + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - ( + - 82 )
----
82

query I rowsort
SELECT - ( + - 65 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT DISTINCT COALESCE ( + + 97, - 48 DIV 52 DIV - 43 * 84 )
----
97

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT COALESCE ( + + 97, - 48 / 52 / - 43 * 84 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT - COUNT( * ) + - + 75 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2057
SELECT - COUNT ( * ) + - + 75 AS col1
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2058
SELECT CAST( NULL AS SIGNED ), 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-2058
SELECT CAST ( NULL AS INTEGER ), 17 AS col1
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - MAX( - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-2059
SELECT - MAX ( - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT 27 * - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT 27 * - COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT DISTINCT + 8 * + ( - COUNT( * ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2061
SELECT DISTINCT + 8 * + ( - COUNT ( * ) ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT + 98 * + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-2062
SELECT + 98 * + COUNT ( * )
----
98

query II rowsort
SELECT 81 AS col0, + 44
----
81
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT DISTINCT 91 + + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT 91 + + COUNT ( * ) AS col2
----
92

query I rowsort
SELECT - ( + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT DISTINCT COUNT( * ) * + 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT COUNT ( * ) * + 79 AS col1
----
79

query I rowsort
SELECT 33 * 44
----
1452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2068
SELECT ALL COUNT( * ) DIV + 36
----
0

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL COUNT ( * ) / + 36
----
0

query I rowsort
SELECT DISTINCT - - 71
----
71

query I rowsort
SELECT ALL - + 39 col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL SUM( DISTINCT - 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL SUM ( DISTINCT - 52 )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT ALL - 66 DIV + - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL - 66 / + - 82 AS col0
----
0

query I rowsort
SELECT - 19 - - - 83
----
-102

query I rowsort
SELECT - 13 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL COALESCE ( - COUNT( * ), + + COUNT( * ), + ( - 7 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL COALESCE ( - COUNT ( * ), + + COUNT ( * ), + ( - 7 ) ) AS col2
----
-1

query I rowsort
SELECT ALL + - ( + 2 ) AS col0
----
-2

query I rowsort
SELECT DISTINCT 86 AS col1
----
86

query I rowsort
SELECT - ( - ( 73 ) ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2079
SELECT MIN( DISTINCT - - 94 ) AS col2, - 29 AS col1
----
94
-29

skipif mysql # not compatible
query II rowsort label-2079
SELECT MIN ( DISTINCT - - 94 ) AS col2, - 29 AS col1
----
94
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT DISTINCT COUNT( + + 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT COUNT ( + + 97 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2081
SELECT ALL CAST( 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL CAST ( 97 AS INTEGER )
----
97

query I rowsort
SELECT + - ( - 47 ) * - 28 col0
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT + 41 + - + COUNT( * ) * COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT + 41 + - + COUNT ( * ) * COUNT ( * ) AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL - + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT + SUM( ( - 2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-2085
SELECT + SUM ( ( - 2 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT NULLIF ( 1, + 0 ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT NULLIF ( 1, + 0 ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT DISTINCT - 4 + COUNT( * ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-2087
SELECT DISTINCT - 4 + COUNT ( * ) AS col1
----
-3

query I rowsort
SELECT ALL - - 21 * + 39
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL - COUNT( * ) * + 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL - COUNT ( * ) * + 7 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT ALL - ( + - MAX( - - ( + + 74 ) ) )
----
74

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL - ( + - MAX ( - - ( + + 74 ) ) )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2091
SELECT 29 AS col2, 4 * + CAST( + COUNT( * ) AS SIGNED )
----
29
4

skipif mysql # not compatible
query II rowsort label-2091
SELECT 29 AS col2, 4 * + CAST ( + COUNT ( * ) AS INTEGER )
----
29
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT COUNT( * ) + MAX( - + 59 )
----
-58

skipif mysql # not compatible
query I rowsort label-2092
SELECT COUNT ( * ) + MAX ( - + 59 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT MIN( - 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2093
SELECT MIN ( - 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT 90 * 63 + + + COUNT( * ) AS col0
----
5671

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT 90 * 63 + + + COUNT ( * ) AS col0
----
5671

query I rowsort
SELECT + 61 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT ALL + COUNT( * ) - 9 col0
----
-8

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL + COUNT ( * ) - 9 col0
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT + - 23 * CAST( + 11 AS SIGNED )
----
-253

skipif mysql # not compatible
query I rowsort label-2097
SELECT + - 23 * CAST ( + 11 AS INTEGER )
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT + COUNT( * ) - + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2098
SELECT + COUNT ( * ) - + + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2099
SELECT - - 19 + + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT - - 19 + + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + + 26 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT DISTINCT + + ( - + ( + - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + + ( - + ( + - COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT ALL + ( + - 84 )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2103
SELECT ALL + CAST( 98 AS SIGNED ) * + COUNT( * ) + SUM( DISTINCT - 30 ) - - + 13
----
81

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL + CAST ( 98 AS INTEGER ) * + COUNT ( * ) + SUM ( DISTINCT - 30 ) - - + 13
----
81

query II rowsort
SELECT ALL 16 AS col2, - 71 + - 97
----
16
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT ALL MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 27 * 55
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + SUM( - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2107
SELECT + SUM ( - 61 ) AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) + + 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) + + 68 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2109
SELECT DISTINCT ( + - 14 ) DIV 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT ( + - 14 ) / 94 col2
----
0

query II rowsort
SELECT ALL 69, + 16 AS col0
----
69
16

query I rowsort
SELECT - ( - - 87 )
----
-87

query I rowsort
SELECT ALL ( 91 )
----
91

query I rowsort
SELECT DISTINCT + 64 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + - 71 AS col0
----
-71

query I rowsort
SELECT ALL 11 * - + 76 AS col1
----
-836

query I rowsort
SELECT DISTINCT - 6 col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT COUNT( * ) + 78 col0
----
79

skipif mysql # not compatible
query I rowsort label-2118
SELECT COUNT ( * ) + 78 col0
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2119
SELECT CAST( NULL AS DECIMAL ) + - - 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT CAST ( NULL AS REAL ) + - - 81 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT DISTINCT + COUNT( * ) - - - 7
----
-6

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + COUNT ( * ) - - - 7
----
-6

query I rowsort
SELECT ALL - + 10
----
-10

query I rowsort
SELECT + 8 * + 68
----
544

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT MAX( + - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2123
SELECT MAX ( + - 99 ) AS col0
----
-99

query I rowsort
SELECT ALL - 92 col1
----
-92

query I rowsort
SELECT - ( + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT 86 * + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2126
SELECT 86 * + COUNT ( * ) AS col1
----
86

query I rowsort
SELECT - - 76 AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2128
SELECT ALL - 95 + + NULLIF ( CAST( NULL AS SIGNED ), 99 ) / + ( COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL - 95 + + NULLIF ( CAST ( NULL AS INTEGER ), 99 ) / + ( COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2129
SELECT - 18 DIV - + 51 - + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2129
SELECT - 18 / - + 51 - + + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT DISTINCT + 23 * SUM( ALL + 62 )
----
1426

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT + 23 * SUM ( ALL + 62 )
----
1426

query I rowsort
SELECT ALL 79 col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT CAST( - 36 AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-2132
SELECT CAST ( - 36 AS INTEGER ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT NULLIF ( - 51, - MIN( - + 4 ) ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-2133
SELECT NULLIF ( - 51, - MIN ( - + 4 ) ) col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT - SUM( DISTINCT + 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2134
SELECT - SUM ( DISTINCT + 56 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL - 52 + - COUNT( * ) * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL - 52 + - COUNT ( * ) * COUNT ( * )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT ALL SUM( ALL - + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL SUM ( ALL - + 94 )
----
-94

query I rowsort
SELECT + ( - 68 )
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT CAST( 11 AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2138
SELECT CAST ( 11 AS INTEGER ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT 6 * + COUNT( * ) + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2139
SELECT 6 * + COUNT ( * ) + COUNT ( * ) AS col0
----
7

query I rowsort
SELECT + 72 * - 46
----
-3312

query I rowsort
SELECT ALL + 75 AS col2
----
75

query I rowsort
SELECT DISTINCT + + 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT ALL - COUNT( * ) + + - 81 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL - COUNT ( * ) + + - 81 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT 53 * 52 + - COUNT( * )
----
2755

skipif mysql # not compatible
query I rowsort label-2144
SELECT 53 * 52 + - COUNT ( * )
----
2755

query I rowsort
SELECT ALL + 74 * 19 * - - 92
----
129352

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT DISTINCT - COUNT( * ) * + - 73
----
73

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT - COUNT ( * ) * + - 73
----
73

query I rowsort
SELECT 46 + + ( - - 32 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2148
SELECT ALL - 4, COUNT( * ) AS col1
----
-4
1

skipif mysql # not compatible
query II rowsort label-2148
SELECT ALL - 4, COUNT ( * ) AS col1
----
-4
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT ALL - 27 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL - 27 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 15 + + 4 col0
----
19

query II rowsort
SELECT ALL 14 AS col2, 96
----
14
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2152
SELECT 40 DIV MAX( DISTINCT + + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT 40 / MAX ( DISTINCT + + 55 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2153
SELECT DISTINCT COUNT( * ) AS col1, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2153
SELECT DISTINCT COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2154
SELECT DISTINCT COUNT( * ) * + - 99 + - 0 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT COUNT ( * ) * + - 99 + - 0 AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT DISTINCT - CAST( - + 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT - CAST ( - + 82 AS INTEGER )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT COUNT( DISTINCT 13 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2156
SELECT COUNT ( DISTINCT 13 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2157
SELECT ALL + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL + 34 AS col1, + 78
----
34
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT ALL + CAST( + + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + CAST ( + + 74 AS INTEGER )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT DISTINCT COUNT( ALL + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT COUNT ( ALL + 58 )
----
1

query I rowsort
SELECT - 43 col0
----
-43

query I rowsort
SELECT DISTINCT + 83 * 19 - - + 72 - - 23 - + 86 AS col0
----
1586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2163
SELECT - CAST( 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2163
SELECT - CAST ( 99 AS INTEGER ) AS col2
----
-99

query I rowsort
SELECT ALL - 40 AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2165
SELECT ALL - - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL + 86 + - COUNT( * ) + - 66 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + 86 + - COUNT ( * ) + - 66 AS col2
----
19

query I rowsort
SELECT 22 + 62
----
84

query I rowsort
SELECT - + ( + 48 ) AS col1
----
-48

query I rowsort
SELECT + + 60 AS col0
----
60

query I rowsort
SELECT + 71 col1
----
71

query I rowsort
SELECT ALL + 26 - + 91 AS col2
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2172
SELECT + CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2172
SELECT + CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 11 col2
----
11

query II rowsort
SELECT DISTINCT + 1, + 32 col2
----
1
32

query I rowsort
SELECT + ( - 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2176
SELECT COUNT( * ), - MAX( + - 9 ) AS col0
----
1
9

skipif mysql # not compatible
query II rowsort label-2176
SELECT COUNT ( * ), - MAX ( + - 9 ) AS col0
----
1
9

query I rowsort
SELECT ALL + 31 * - 98 AS col2
----
-3038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL CAST( - 61 AS SIGNED ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL CAST ( - 61 AS INTEGER ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2179
SELECT DISTINCT - 51 AS col2, - CASE WHEN NOT NULL NOT IN ( - COUNT( * ) ) THEN ( - + 37 ) ELSE NULL END AS col2
----
-51
NULL

skipif mysql # not compatible
query II rowsort label-2179
SELECT DISTINCT - 51 AS col2, - CASE WHEN NOT NULL NOT IN ( - COUNT ( * ) ) THEN ( - + 37 ) ELSE NULL END AS col2
----
-51
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2180
SELECT 3 DIV - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-2180
SELECT 3 / - + COUNT ( * )
----
-3

query II rowsort
SELECT ALL 53 AS col1, - 78
----
53
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) + + ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) + + ( + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2183
SELECT 29 * - COUNT( * ) - - CAST( - 65 AS SIGNED ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2183
SELECT 29 * - COUNT ( * ) - - CAST ( - 65 AS INTEGER ) AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT COALESCE ( - + 63, - COUNT( * ) * 35 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-2184
SELECT COALESCE ( - + 63, - COUNT ( * ) * 35 ) AS col1
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2185
SELECT + 92 DIV + COUNT( * ) + - 86 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2185
SELECT + 92 / + COUNT ( * ) + - 86 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT + 55 + + + MIN( 32 )
----
87

skipif mysql # not compatible
query I rowsort label-2186
SELECT + 55 + + + MIN ( 32 )
----
87

query I rowsort
SELECT + 30 + - 32 col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2188
SELECT + CAST( + ( MAX( + - 3 ) ) AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-2188
SELECT + CAST ( + ( MAX ( + - 3 ) ) AS INTEGER )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT CAST( 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-2189
SELECT CAST ( 45 AS INTEGER )
----
45

query I rowsort
SELECT ( - 31 ) AS col2
----
-31

query I rowsort
SELECT ALL + + 69 AS col2
----
69

query I rowsort
SELECT ALL + ( + + 59 ) AS col0
----
59

query I rowsort
SELECT + 75 * 17
----
1275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2194
SELECT + COUNT( * ) DIV + 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2194
SELECT + COUNT ( * ) / + 46 AS col2
----
0

query I rowsort
SELECT - ( + 68 ) col2
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2196
SELECT COUNT( * ) * - + CAST( NULL AS SIGNED ) col0, 80 AS col0
----
NULL
80

skipif mysql # not compatible
query II rowsort label-2196
SELECT COUNT ( * ) * - + CAST ( NULL AS INTEGER ) col0, 80 AS col0
----
NULL
80

query I rowsort
SELECT DISTINCT - - ( 23 ) col2
----
23

query I rowsort
SELECT ALL - - 68 AS col1
----
68

query I rowsort
SELECT - 35 * - 34
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT + + COUNT( ALL + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT + + COUNT ( ALL + 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL + SUM( + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL + SUM ( + 37 )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT - 30 / + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT - 30 / + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL + ( - - COUNT( - 51 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL + ( - - COUNT ( - 51 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL + + MIN( ALL - + 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL + + MIN ( ALL - + 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT + - 22 + MIN( - 32 ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2205
SELECT + - 22 + MIN ( - 32 ) AS col1
----
-54

query I rowsort
SELECT DISTINCT 32 * + ( - 47 ) AS col1
----
-1504

query I rowsort
SELECT DISTINCT ( - + 49 ) AS col1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - + 80 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT COUNT( * ) * 93
----
93

skipif mysql # not compatible
query I rowsort label-2210
SELECT COUNT ( * ) * 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT COUNT( * ) * + + 72 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2211
SELECT COUNT ( * ) * + + 72 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT COUNT( * ) - 9 * 65
----
-584

skipif mysql # not compatible
query I rowsort label-2212
SELECT COUNT ( * ) - 9 * 65
----
-584

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT MAX( DISTINCT 12 ) + 92
----
104

skipif mysql # not compatible
query I rowsort label-2213
SELECT MAX ( DISTINCT 12 ) + 92
----
104

query I rowsort
SELECT DISTINCT + 14 * 32
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT DISTINCT - MIN( DISTINCT 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - MIN ( DISTINCT 83 )
----
-83

query I rowsort
SELECT 28 * + 7
----
196

query I rowsort
SELECT - 64 * ( 28 ) + - 34
----
-1826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2218
SELECT 18 * CAST( COUNT( * ) AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2218
SELECT 18 * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT DISTINCT + COUNT( * ) * ( 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + COUNT ( * ) * ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT SUM( DISTINCT - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT SUM ( DISTINCT - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT + MAX( DISTINCT - 44 ) * 33
----
-1452

skipif mysql # not compatible
query I rowsort label-2221
SELECT + MAX ( DISTINCT - 44 ) * 33
----
-1452

query I rowsort
SELECT + ( 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL + 93 * + COUNT( 0 )
----
93

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + 93 * + COUNT ( 0 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT MAX( - - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-2224
SELECT MAX ( - - 70 )
----
70

query I rowsort
SELECT - 35 col2
----
-35

query I rowsort
SELECT DISTINCT - 16 AS col0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT CAST( - - 27 AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2227
SELECT CAST ( - - 27 AS INTEGER ) AS col2
----
27

query I rowsort
SELECT ( 48 ) + - 24 col1
----
24

query I rowsort
SELECT - 96 + + + 28 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT - 70 * - - COUNT( * ) * - 36 AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-2230
SELECT - 70 * - - COUNT ( * ) * - 36 AS col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT 20 + 15 + - + 61 - + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2231
SELECT 20 + 15 + - + 61 - + COUNT ( * ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-2232
SELECT - 28 AS col1, COUNT( * )
----
-28
1

skipif mysql # not compatible
query II rowsort label-2232
SELECT - 28 AS col1, COUNT ( * )
----
-28
1

query I rowsort
SELECT DISTINCT - ( + - 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT + MIN( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT + MIN ( 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT + MAX( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT + MAX ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT ( - COUNT( * ) ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-2236
SELECT ( - COUNT ( * ) ) + 15
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT DISTINCT - - 89 DIV - MAX( DISTINCT - - 85 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT - - 89 / - MAX ( DISTINCT - - 85 ) AS col2
----
-1

query I rowsort
SELECT 38 + 51 col1
----
89

query I rowsort
SELECT 28 * - 15 AS col1
----
-420

query I rowsort
SELECT + 63 + 68
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2241
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT ALL COUNT( * ) + + 82 - + 75 / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL COUNT ( * ) + + 82 - + 75 / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ALL + - 24 + - COUNT( * ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-2243
SELECT ALL + - 24 + - COUNT ( * ) col2
----
-25

query I rowsort
SELECT DISTINCT 49 * 26
----
1274

query I rowsort
SELECT + 11 col1
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2246
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2247
SELECT DISTINCT + + CAST( + 89 AS SIGNED ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT + + CAST ( + 89 AS INTEGER ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL - + 5 * - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - + 5 * - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT - 82 AS col1, COUNT( * )
----
-82
1

skipif mysql # not compatible
query II rowsort label-2249
SELECT - 82 AS col1, COUNT ( * )
----
-82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT COUNT( + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-2250
SELECT COUNT ( + 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT COUNT( ALL - ( + 46 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2251
SELECT COUNT ( ALL - ( + 46 ) ) AS col1
----
1

query I rowsort
SELECT 81 * - + 21
----
-1701

query I rowsort
SELECT + ( - 39 )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2255
SELECT DISTINCT + ( + + SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2255
SELECT DISTINCT + ( + + SUM ( DISTINCT - CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT - 37 * + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2256
SELECT - 37 * + - COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT ALL MAX( ( - - 47 ) ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL MAX ( ( - - 47 ) ) AS col2
----
47

query I rowsort
SELECT + + 47 AS col0
----
47

query I rowsort
SELECT 0 col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2260
SELECT ALL 82 DIV - + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL 82 / - + COUNT ( * )
----
-82

query I rowsort
SELECT ALL + + 66 * + 70 AS col1
----
4620

query I rowsort
SELECT 39 col1
----
39

query I rowsort
SELECT ALL - COALESCE ( 86, + - NULLIF ( 98, + 55 ) ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT DISTINCT MAX( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT MAX ( + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT - MAX( ALL - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-2265
SELECT - MAX ( ALL - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT 25 * COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-2266
SELECT 25 * COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT ALL 29 DIV - ( - 90 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL 29 / - ( - 90 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT - 36 * - COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT - 36 * - COUNT ( * ) AS col2
----
36

query I rowsort
SELECT - + 11 + - - 87 + - 50 AS col2
----
26

query I rowsort
SELECT - - 87 + - 66 AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2271
SELECT DISTINCT 54 DIV 23
----
2

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT 54 / 23
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT + 18 * + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2272
SELECT + 18 * + COUNT ( * ) AS col0
----
18

query I rowsort
SELECT 15 * + + 52
----
780

query I rowsort
SELECT - + ( + 75 ) AS col1
----
-75

query I rowsort
SELECT ALL - - 5 - + 1 col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - COUNT( * ) * + 64 * - + 52 col2
----
3328

skipif mysql # not compatible
query I rowsort label-2276
SELECT - COUNT ( * ) * + 64 * - + 52 col2
----
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT ALL ( + 6 ) + ( + COUNT( * ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL ( + 6 ) + ( + COUNT ( * ) ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT + COUNT( * ) * + 41 - + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-2278
SELECT + COUNT ( * ) * + 41 - + COUNT ( * )
----
40

query I rowsort
SELECT ALL + ( + + 66 )
----
66

query I rowsort
SELECT 40 - - - 29
----
11

query I rowsort
SELECT COALESCE ( - + 61, - + 32 ) col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2282
SELECT ALL - 95 DIV - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - 95 / - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT COUNT( ALL + 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2283
SELECT COUNT ( ALL + 42 ) AS col2
----
1

query II rowsort
SELECT ALL + - 98 AS col1, 44 AS col2
----
-98
44

query I rowsort
SELECT + - 17 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2286
SELECT ALL SUM( 28 ) AS col0, 42
----
28
42

skipif mysql # not compatible
query II rowsort label-2286
SELECT ALL SUM ( 28 ) AS col0, 42
----
28
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT DISTINCT - 91 + + ( + COUNT( 9 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - 91 + + ( + COUNT ( 9 ) )
----
-90

query I rowsort
SELECT DISTINCT + 92 col0
----
92

query I rowsort
SELECT ALL + + 96
----
96

query I rowsort
SELECT - - 27 * + 85 AS col2
----
2295

query I rowsort
SELECT + 5 - + ( + 18 )
----
-13

query I rowsort
SELECT ALL - - 3
----
3

query I rowsort
SELECT DISTINCT - + 42
----
-42

query I rowsort
SELECT 64 * + 46 AS col1
----
2944

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL - COUNT( * ) + ( 45 ) + - 86 col1
----
-42

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL - COUNT ( * ) + ( 45 ) + - 86 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT COUNT( * ) + - - 81 + 6
----
88

skipif mysql # not compatible
query I rowsort label-2296
SELECT COUNT ( * ) + - - 81 + 6
----
88

query I rowsort
SELECT ALL ( 78 ) - 40 * + + 80 AS col1
----
-3122

query I rowsort
SELECT ALL - 2 col1
----
-2

query I rowsort
SELECT DISTINCT - + 43 AS col0
----
-43

query I rowsort
SELECT - 18 + 33 AS col0
----
15

query I rowsort
SELECT - 28 + 9 AS col0
----
-19

query I rowsort
SELECT ( 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT MIN( + + ( + + 97 ) )
----
97

skipif mysql # not compatible
query I rowsort label-2303
SELECT MIN ( + + ( + + 97 ) )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2304
SELECT - 76 AS col0, COUNT( * )
----
-76
1

skipif mysql # not compatible
query II rowsort label-2304
SELECT - 76 AS col0, COUNT ( * )
----
-76
1

query I rowsort
SELECT - ( + 78 ) + - 57
----
-135

query I rowsort
SELECT DISTINCT + + 81
----
81

query II rowsort
SELECT + 8 AS col2, - 77 AS col1
----
8
-77

query I rowsort
SELECT DISTINCT 59 + 9 AS col0
----
68

query II rowsort
SELECT + 54 AS col1, 0
----
54
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2310
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - COALESCE ( + 69, - 16 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - COALESCE ( + 69, - 16 )
----
NULL

query I rowsort
SELECT - + 38
----
-38

query I rowsort
SELECT ALL - 82 col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT DISTINCT COUNT( * ) * + ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT COUNT ( * ) * + ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2314
SELECT DISTINCT + MIN( ALL - + 76 ), + 18 AS col2
----
-76
18

skipif mysql # not compatible
query II rowsort label-2314
SELECT DISTINCT + MIN ( ALL - + 76 ), + 18 AS col2
----
-76
18

query I rowsort
SELECT DISTINCT - NULLIF ( - + 8, + 75 ) + + + 43
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2316
SELECT - 65 DIV + ( + COUNT( * ) ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-2316
SELECT - 65 / + ( + COUNT ( * ) ) AS col0
----
-65

query I rowsort
SELECT ( - - 85 )
----
85

query I rowsort
SELECT + 57 + 76 col0
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT + COUNT( * ) * + 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-2319
SELECT + COUNT ( * ) * + 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ( + COUNT( + - 60 ) ) * - 94
----
-94

skipif mysql # not compatible
query I rowsort label-2320
SELECT ( + COUNT ( + - 60 ) ) * - 94
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2321
SELECT 75 DIV 42 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2321
SELECT 75 / 42 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT + MIN( + 59 ) * - 86
----
-5074

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT + MIN ( + 59 ) * - 86
----
-5074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2323
SELECT CAST( NULL AS SIGNED ) * + 96 + + 55 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT CAST ( NULL AS INTEGER ) * + 96 + + 55 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2324
SELECT 76 AS col1, COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-2324
SELECT 76 AS col1, COUNT ( * )
----
76
1

query II rowsort
SELECT DISTINCT - 49 * + ( + 73 ), - 50 AS col2
----
-3577
-50

query I rowsort
SELECT - 87 * + 36 AS col2
----
-3132

query I rowsort
SELECT ALL + + 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT + + 7 - 53 * 11 * COUNT( * )
----
-576

skipif mysql # not compatible
query I rowsort label-2328
SELECT + + 7 - 53 * 11 * COUNT ( * )
----
-576

query I rowsort
SELECT ALL - + 91 + 60
----
-31

query I rowsort
SELECT ( + 70 ) AS col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2331
SELECT + COUNT( * ) * COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT + COUNT ( * ) * COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2332
SELECT - ( - ( + + COUNT( * ) ) ) / 22 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT - ( - ( + + COUNT ( * ) ) ) / 22 - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT - CAST( - - 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-2333
SELECT - CAST ( - - 15 AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-2334
SELECT + ( 2 ) col0, - COUNT( * ) AS col0
----
2
-1

skipif mysql # not compatible
query II rowsort label-2334
SELECT + ( 2 ) col0, - COUNT ( * ) AS col0
----
2
-1

query I rowsort
SELECT 24 * - 78
----
-1872

query I rowsort
SELECT DISTINCT - - 22 col2
----
22

query I rowsort
SELECT ALL - + 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT + ( 36 ) * + - COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT + ( 36 ) * + - COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT COUNT( * ) - 57 * + 43
----
-2450

skipif mysql # not compatible
query I rowsort label-2339
SELECT COUNT ( * ) - 57 * + 43
----
-2450

query I rowsort
SELECT + - 62 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT DISTINCT - MAX( ALL + + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT - MAX ( ALL + + 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT ALL - SUM( + + 48 ) + - + COUNT( - 2 )
----
-49

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - SUM ( + + 48 ) + - + COUNT ( - 2 )
----
-49

query I rowsort
SELECT ALL - + 88 col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT 61 * COUNT( - 98 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-2344
SELECT 61 * COUNT ( - 98 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL - SUM( ( + - 49 ) ) - - 90 + + COUNT( * ) - 42 col1
----
98

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - SUM ( ( + - 49 ) ) - - 90 + + COUNT ( * ) - 42 col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT 0 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT 0 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2347
SELECT 77 DIV + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-2347
SELECT 77 / + COUNT ( * )
----
77

query II rowsort
SELECT ALL - + 13, 16 AS col1
----
-13
16

query I rowsort
SELECT ALL + 41 + + 18 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL - MIN( ALL - 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL - MIN ( ALL - 32 ) AS col1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT + CAST( + 18 AS SIGNED ) - + 73 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2351
SELECT + CAST ( + 18 AS INTEGER ) - + 73 AS col0
----
-55

query I rowsort
SELECT DISTINCT 85 * + - 41 + + + 71
----
-3414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - MIN( ALL - 74 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - MIN ( ALL - 74 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2354
SELECT ALL ( - - 88 ) AS col1, + COUNT( * ) * 88 AS col0
----
88
88

skipif mysql # not compatible
query II rowsort label-2354
SELECT ALL ( - - 88 ) AS col1, + COUNT ( * ) * 88 AS col0
----
88
88

query I rowsort
SELECT ALL ( + - 81 )
----
-81

query I rowsort
SELECT + + 14 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL - 71 * COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL - 71 * COUNT ( * ) AS col0
----
-71

query I rowsort
SELECT 37 + - + 47
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT ALL + MIN( - CAST( - 20 AS SIGNED ) ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2359
SELECT ALL + MIN ( - CAST ( - 20 AS INTEGER ) ) AS col1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 25 AS col0
----
NULL

query I rowsort
SELECT - - 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL + + MAX( + - 93 ) + - COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + + MAX ( + - 93 ) + - COUNT ( * ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT 88 * - ( COUNT( DISTINCT + 4 ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-2363
SELECT 88 * - ( COUNT ( DISTINCT + 4 ) ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT ALL CAST( NULL AS SIGNED ) + + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL CAST ( NULL AS INTEGER ) + + 0 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2365
SELECT + CAST( - 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-2365
SELECT + CAST ( - 97 AS INTEGER )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2366
SELECT COUNT( * ) DIV + - 89 AS col2, 72 AS col2
----
0
72

skipif mysql # not compatible
query II rowsort label-2366
SELECT COUNT ( * ) / + - 89 AS col2, 72 AS col2
----
0
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2367
SELECT DISTINCT + CAST( - + 39 AS SIGNED ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT + CAST ( - + 39 AS INTEGER ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT - COUNT( * ) * - + 90
----
90

skipif mysql # not compatible
query I rowsort label-2368
SELECT - COUNT ( * ) * - + 90
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT + + CAST( NULL AS SIGNED ) * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT + + CAST ( NULL AS INTEGER ) * + 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT DISTINCT - ( + CAST( - 37 AS SIGNED ) ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-2370
SELECT DISTINCT - ( + CAST ( - 37 AS INTEGER ) ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL 22 * COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL 22 * COUNT ( * ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL - COUNT( * ) + + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT CAST( - ( + 45 ) AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2373
SELECT CAST ( - ( + 45 ) AS INTEGER ) AS col0
----
-45

query I rowsort
SELECT ( - + 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT - + ( COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2375
SELECT - + ( COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 55 * 44
----
-2420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT 3 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT 3 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2378
SELECT - 45 * - CAST( NULL AS SIGNED ) + - NULLIF ( COUNT( * ), - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2378
SELECT - 45 * - CAST ( NULL AS INTEGER ) + - NULLIF ( COUNT ( * ), - 21 )
----
NULL

query I rowsort
SELECT DISTINCT - 6 AS col1
----
-6

query I rowsort
SELECT ( - 40 ) + + 16 * 25
----
360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT - 40 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2381
SELECT - 40 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2382
SELECT DISTINCT + + COUNT( * ) DIV 30 * + - 18 col0
----
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT + + COUNT ( * ) / 30 * + - 18 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT DISTINCT + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT + ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL - - ( - - 75 ) - - + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - - ( - - 75 ) - - + COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT COUNT( * ) + - 70
----
-69

skipif mysql # not compatible
query I rowsort label-2385
SELECT COUNT ( * ) + - 70
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL COUNT( + + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL COUNT ( + + 95 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL COUNT( DISTINCT - 82 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL COUNT ( DISTINCT - 82 ) AS col0
----
1

query II rowsort
SELECT DISTINCT 93 col0, - 25 + + 28 AS col2
----
93
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - SUM( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT - SUM ( 0 )
----
0

query I rowsort
SELECT DISTINCT 78 * + 65 + 40
----
5110

query II rowsort
SELECT + 20 AS col1, + 75 AS col2
----
20
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + + COUNT( + 49 )
----
1

skipif mysql # not compatible
query I rowsort label-2392
SELECT + + COUNT ( + 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT + - COUNT( * ) + + + 32
----
31

skipif mysql # not compatible
query I rowsort label-2393
SELECT + - COUNT ( * ) + + + 32
----
31

query II rowsort
SELECT ALL 43 AS col0, 60
----
43
60

query I rowsort
SELECT - 29 * 72
----
-2088

query I rowsort
SELECT ALL + + 99 col2
----
99

query I rowsort
SELECT + 9 col2
----
9

query I rowsort
SELECT ALL + + 12 col2
----
12

query I rowsort
SELECT - ( + ( ( ( + 5 ) ) ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL + ( ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL + ( ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL - 4 col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT + + 18 DIV 13
----
1

skipif mysql # not compatible
query I rowsort label-2402
SELECT + + 18 / 13
----
1

query I rowsort
SELECT - NULLIF ( + 88, + + ( - - 25 ) ) col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT ALL - 29 DIV 15
----
-1

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - 29 / 15
----
-1

query I rowsort
SELECT DISTINCT - 20 * - + 78
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT + - MIN( + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2406
SELECT + - MIN ( + 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT SUM( DISTINCT - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-2407
SELECT SUM ( DISTINCT - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT - COUNT( * ) * 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - COUNT ( * ) * 14 AS col0
----
-14

query I rowsort
SELECT ALL + 94 * + - 65
----
-6110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2410
SELECT ALL 84 AS col2, - COUNT( * ) + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-2410
SELECT ALL 84 AS col2, - COUNT ( * ) + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
84
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2411
SELECT ALL - + COUNT( * ) col2, - 95 AS col2
----
-1
-95

skipif mysql # not compatible
query II rowsort label-2411
SELECT ALL - + COUNT ( * ) col2, - 95 AS col2
----
-1
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL + COUNT( * ) + - - 82 col2
----
83

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + COUNT ( * ) + - - 82 col2
----
83

query I rowsort
SELECT DISTINCT - 29 * + + ( 44 )
----
-1276

query I rowsort
SELECT ALL 28 - - + 26 AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT DISTINCT + - COUNT( * ) DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + - COUNT ( * ) / + 80
----
0

query I rowsort
SELECT ( + + 26 ) AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2417
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - + 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-2419
SELECT COUNT( * ), 27 AS col2
----
1
27

skipif mysql # not compatible
query II rowsort label-2419
SELECT COUNT ( * ), 27 AS col2
----
1
27

query I rowsort
SELECT ALL NULLIF ( + 92, - - 56 + + + 14 * - AVG ( ALL + 78 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL + COUNT( * ) + + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL + COUNT ( * ) + + - 46
----
-45

query I rowsort
SELECT + ( - + 62 ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2423
SELECT CAST( - + ( - 31 ) AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-2423
SELECT CAST ( - + ( - 31 ) AS INTEGER )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT + 36 + + COUNT( * ) col2
----
37

skipif mysql # not compatible
query I rowsort label-2424
SELECT + 36 + + COUNT ( * ) col2
----
37

query I rowsort
SELECT ALL 9 + + 57
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2426
SELECT COUNT( * ) * + 28 DIV - 33
----
0

skipif mysql # not compatible
query I rowsort label-2426
SELECT COUNT ( * ) * + 28 / - 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT COUNT( ALL - 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2427
SELECT COUNT ( ALL - 66 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT 52 * + ( - + COUNT( * ) ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-2428
SELECT 52 * + ( - + COUNT ( * ) ) col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT ALL COUNT( - 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL COUNT ( - 53 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT 57 * + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-2430
SELECT 57 * + - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL 70 + - COUNT( * ) col0
----
69

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL 70 + - COUNT ( * ) col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT DISTINCT COUNT( * ) + - 78 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT COUNT ( * ) + - 78 AS col2
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT ALL + 90 DIV - - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + 90 / - - COUNT ( * )
----
90

query I rowsort
SELECT DISTINCT + 96 * + 83 AS col0
----
7968

query I rowsort
SELECT - + 47 + + 78
----
31

query I rowsort
SELECT - ( - + ( 50 ) ) AS col2
----
50

query I rowsort
SELECT ALL 72 col1
----
72

query I rowsort
SELECT ALL + ( 65 ) col2
----
65

query I rowsort
SELECT + - 96 * + 67 AS col2
----
-6432

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + ( + ( COUNT( * ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2440
SELECT + ( + ( COUNT ( * ) ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT CAST( - + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2441
SELECT CAST ( - + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT + 10 * 78 + ( - - 20 )
----
800

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL 87 * - - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL 87 * - - COUNT ( * )
----
87

query I rowsort
SELECT ALL + + 73 AS col0
----
73

query I rowsort
SELECT - - 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT 73 + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2446
SELECT 73 + + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT + 90 * + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-2447
SELECT + 90 * + + COUNT ( * )
----
90

query I rowsort
SELECT DISTINCT - 62 col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT + CAST( NULL AS SIGNED ) / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT + CAST ( NULL AS INTEGER ) / 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT COUNT( * ) * COUNT( * ) * + ( + + 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2450
SELECT COUNT ( * ) * COUNT ( * ) * + ( + + 41 ) AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2451
SELECT DISTINCT - 18 DIV + - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT - 18 / + - 85 AS col1
----
0

query I rowsort
SELECT ALL + 49 col0
----
49

query I rowsort
SELECT - 34 + - 32 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT DISTINCT + COUNT( * ) * + 34 * 60
----
2040

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT + COUNT ( * ) * + 34 * 60
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT + 20 + + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2455
SELECT + 20 + + COUNT ( * ) AS col0
----
21

query I rowsort
SELECT DISTINCT + 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL + ( + MIN( - 80 ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL + ( + MIN ( - 80 ) ) AS col0
----
-80

query I rowsort
SELECT ALL + 35 col1
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2459
SELECT ALL CAST( NULL AS DECIMAL ) * - 19 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL CAST ( NULL AS REAL ) * - 19 + 5
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2460
SELECT - CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2462
SELECT - 51 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2462
SELECT - 51 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT - 59 * + COALESCE ( - 57, - 69 ) - + COUNT( * ) * 70 AS col2
----
3293

skipif mysql # not compatible
query I rowsort label-2463
SELECT - 59 * + COALESCE ( - 57, - 69 ) - + COUNT ( * ) * 70 AS col2
----
3293

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT + SUM( + - 83 ) * 85
----
-7055

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT + SUM ( + - 83 ) * 85
----
-7055

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT MAX( 5 ) + - 95 * 91 AS col2
----
-8640

skipif mysql # not compatible
query I rowsort label-2465
SELECT MAX ( 5 ) + - 95 * 91 AS col2
----
-8640

query I rowsort
SELECT 4 * 23 AS col2
----
92

query I rowsort
SELECT ( - 88 ) + 39 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT COUNT( * ) * 8
----
8

skipif mysql # not compatible
query I rowsort label-2468
SELECT COUNT ( * ) * 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL - 68 + COUNT( * ) * - 16
----
-84

skipif mysql # not compatible
query I rowsort label-2469
SELECT ALL - 68 + COUNT ( * ) * - 16
----
-84

query I rowsort
SELECT DISTINCT - ( + 28 ) AS col0
----
-28

query I rowsort
SELECT ALL - - 7 AS col2
----
7

query I rowsort
SELECT ALL - - 63 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT ALL - CAST( NULL AS SIGNED ) - + 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL - CAST ( NULL AS INTEGER ) - + 20 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2474
SELECT DISTINCT COUNT( * ) + + COUNT( * ) DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) / - COUNT ( * )
----
0

query I rowsort
SELECT - 16 * - 68 AS col2
----
1088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2476
SELECT DISTINCT + - CAST( + + 59 AS SIGNED ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT + - CAST ( + + 59 AS INTEGER ) AS col0
----
-59

query I rowsort
SELECT DISTINCT + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL ( + ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL ( + ( - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT - COUNT( * ) * + - 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-2479
SELECT - COUNT ( * ) * + - 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT + COUNT( * ) + 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2480
SELECT + COUNT ( * ) + 20 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT CAST( + + 96 AS SIGNED ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2481
SELECT CAST ( + + 96 AS INTEGER ) AS col2
----
96

query I rowsort
SELECT ( + - 5 ) AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT ALL COUNT( * ) DIV ( + ( - - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL COUNT ( * ) / ( + ( - - COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT COUNT( * ) * - 73
----
-73

skipif mysql # not compatible
query I rowsort label-2484
SELECT COUNT ( * ) * - 73
----
-73

query I rowsort
SELECT - - 96 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT ALL - COUNT( DISTINCT + 2 )
----
-1

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - COUNT ( DISTINCT + 2 )
----
-1

query I rowsort
SELECT DISTINCT 71 AS col0
----
71

query I rowsort
SELECT - + 12 col0
----
-12

query I rowsort
SELECT ALL - 2 + + - 12 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2490
SELECT DISTINCT - CAST( - ( - - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT - CAST ( - ( - - COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ALL ( 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT NULLIF ( - COUNT( * ), + MIN( - + 47 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2492
SELECT NULLIF ( - COUNT ( * ), + MIN ( - + 47 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT + COUNT( * ) * + - 46 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2493
SELECT + COUNT ( * ) * + - 46 AS col0
----
-46

query I rowsort
SELECT - + 96 - + - 88 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT SUM( DISTINCT - 48 ) AS col2, + 55 AS col0
----
-48
55

skipif mysql # not compatible
query II rowsort label-2495
SELECT SUM ( DISTINCT - 48 ) AS col2, + 55 AS col0
----
-48
55

query I rowsort
SELECT - - 59 col0
----
59

query I rowsort
SELECT ALL 65 + 31 col0
----
96

query I rowsort
SELECT - + 74 AS col0
----
-74

query I rowsort
SELECT CASE - 72 WHEN + + 76 THEN - 70 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2500
SELECT CAST( - + 65 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-2500
SELECT CAST ( - + 65 AS INTEGER )
----
-65

query I rowsort
SELECT ( 84 )
----
84

query I rowsort
SELECT DISTINCT + 2 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2503
SELECT - 70 + - CAST( NULL AS SIGNED ) + + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT - 70 + - CAST ( NULL AS INTEGER ) + + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + MAX( ALL 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2504
SELECT + MAX ( ALL 68 ) AS col2
----
68

query I rowsort
SELECT ALL - 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT - + MIN( ALL 18 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT - + MIN ( ALL 18 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - 10 + - COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-2507
SELECT - 10 + - COUNT ( * ) AS col2
----
-11

query I rowsort
SELECT - ( - 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT DISTINCT - CAST( + 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - CAST ( + 44 AS INTEGER )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT 83 - + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-2510
SELECT 83 - + COUNT ( * )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT ALL - CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT MIN( DISTINCT 16 )
----
16

skipif mysql # not compatible
query I rowsort label-2512
SELECT MIN ( DISTINCT 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT + COUNT( DISTINCT - - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-2513
SELECT + COUNT ( DISTINCT - - 91 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT + COUNT( ALL - + 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2514
SELECT + COUNT ( ALL - + 94 ) AS col0
----
1

query I rowsort
SELECT 79 col1
----
79

query I rowsort
SELECT + + 7 + + 90
----
97

query I rowsort
SELECT - + 2 - + + 38 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT - COUNT( * ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2518
SELECT - COUNT ( * ) * COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT - 82 AS col0, - 91 AS col0
----
-82
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT DISTINCT + COUNT( * ) * 36
----
36

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT + COUNT ( * ) * 36
----
36

query I rowsort
SELECT ALL + ( - 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2522
SELECT - CAST( NULL AS DECIMAL ) * - - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2522
SELECT - CAST ( NULL AS REAL ) * - - 14 AS col1
----
NULL

query I rowsort
SELECT ALL 67 * + 94 + 17 AS col0
----
6315

query I rowsort
SELECT + 35 - - 95 col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT MAX( ALL - + ( + 56 ) ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT MAX ( ALL - + ( + 56 ) ) col1
----
-56

query I rowsort
SELECT + 46 * - 82 + 23 * 47 + + + ( + 29 ) col2
----
-2662

query I rowsort
SELECT ALL - - 80 AS col0
----
80

query I rowsort
SELECT ( + - 68 ) + 66 * + ( + + 8 )
----
460

query I rowsort
SELECT 83 + - - 9
----
92

query I rowsort
SELECT DISTINCT 15 - 1
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2531
SELECT COUNT( + CAST( 76 AS SIGNED ) ) AS col2, + 94 AS col2
----
1
94

skipif mysql # not compatible
query II rowsort label-2531
SELECT COUNT ( + CAST ( 76 AS INTEGER ) ) AS col2, + 94 AS col2
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + MIN( ALL 87 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-2532
SELECT + MIN ( ALL 87 ) AS col0
----
87

query I rowsort
SELECT DISTINCT - + 46 AS col0
----
-46

query I rowsort
SELECT ALL - + 60 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT COUNT( * ) * 65 col1
----
65

skipif mysql # not compatible
query I rowsort label-2535
SELECT COUNT ( * ) * 65 col1
----
65

query I rowsort
SELECT ALL - + ( - 1 ) AS col2
----
1

query I rowsort
SELECT - 78 col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT COUNT( * ) - - - MIN( - 40 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2538
SELECT COUNT ( * ) - - - MIN ( - 40 ) AS col0
----
41

query I rowsort
SELECT DISTINCT - 17 * - - 29
----
-493

query I rowsort
SELECT ALL + 80 col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2541
SELECT + - COUNT( * ) * - - CAST( NULL AS SIGNED ) + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2541
SELECT + - COUNT ( * ) * - - CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + - NULLIF ( 96, 54 * + MAX( + 61 ) * 79 )
----
-96

skipif mysql # not compatible
query I rowsort label-2542
SELECT + - NULLIF ( 96, 54 * + MAX ( + 61 ) * 79 )
----
-96

query I rowsort
SELECT ALL - 3 * + 61
----
-183

query I rowsort
SELECT ALL ( - 28 ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT - - 28 + + + 83 + - COUNT( * ) AS col0
----
110

skipif mysql # not compatible
query I rowsort label-2545
SELECT - - 28 + + + 83 + - COUNT ( * ) AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT ( - COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT + + 12 + + - 47 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT + ( + MAX( DISTINCT - - 9 ) )
----
9

skipif mysql # not compatible
query I rowsort label-2548
SELECT + ( + MAX ( DISTINCT - - 9 ) )
----
9

query I rowsort
SELECT ( + - 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2550
SELECT DISTINCT 29, - CAST( NULL AS SIGNED ) / ( + 66 ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2550
SELECT DISTINCT 29, - CAST ( NULL AS INTEGER ) / ( + 66 ) AS col1
----
29
NULL

query II rowsort
SELECT 11 AS col1, 7 AS col1
----
11
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL SUM( ALL 11 )
----
11

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL SUM ( ALL 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + MAX( + - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2553
SELECT + MAX ( + - 39 ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2554
SELECT DISTINCT - ( + CAST( + COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT - ( + CAST ( + COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT MAX( - + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-2555
SELECT MAX ( - + 60 )
----
-60

query II rowsort
SELECT + 1, 4 AS col2
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL + - ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL + - ( - COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT ALL + 19 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL + 19 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ( 88 ), 11 AS col0
----
88
11

query I rowsort
SELECT ALL + 69 * - - 89 + + 72
----
6213

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT - - COUNT( * ) - 85 col2
----
-84

skipif mysql # not compatible
query I rowsort label-2561
SELECT - - COUNT ( * ) - 85 col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL - MAX( ALL 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL - MAX ( ALL 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL - ( - MAX( DISTINCT - 94 ) ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - ( - MAX ( DISTINCT - 94 ) ) AS col2
----
-94

query I rowsort
SELECT ALL - - 86 + + 28
----
114

query I rowsort
SELECT DISTINCT ( + 98 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2566
SELECT ALL - CAST( - - 82 AS SIGNED ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - CAST ( - - 82 AS INTEGER ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL - - COUNT( DISTINCT - ( - 98 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - - COUNT ( DISTINCT - ( - 98 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT - COUNT( * ) * + - 8
----
8

skipif mysql # not compatible
query I rowsort label-2568
SELECT - COUNT ( * ) * + - 8
----
8

query I rowsort
SELECT ALL 28 + - 6
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT COUNT( * ) DIV - + 11
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT COUNT ( * ) / - + 11
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL SUM( + - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL SUM ( + - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL SUM( ALL - 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL SUM ( ALL - 33 ) AS col2
----
-33

query I rowsort
SELECT - 80 + - 66
----
-146

query I rowsort
SELECT ( 89 ) AS col0
----
89

query I rowsort
SELECT ALL + + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL COUNT( ALL ( 60 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL COUNT ( ALL ( 60 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT ALL SUM( ALL 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL SUM ( ALL 99 ) AS col1
----
99

query I rowsort
SELECT - 33 * - + 17 AS col1
----
561

onlyif mysql # aggregate syntax: 
query II rowsort label-2579
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2579
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT 8 + - 76 AS col0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-2581
SELECT 26 DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-2581
SELECT 26 / 55
----
0

query I rowsort
SELECT 33 + - + 31
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - + SUM( DISTINCT + + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-2583
SELECT - + SUM ( DISTINCT + + 6 )
----
-6

query I rowsort
SELECT - - ( + - 97 ) AS col1
----
-97

query I rowsort
SELECT - + 61 col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT + SUM( - - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-2586
SELECT + SUM ( - - 14 )
----
14

query II rowsort
SELECT 21 AS col0, 92
----
21
92

query I rowsort
SELECT - - 63 AS col2
----
63

query I rowsort
SELECT ALL 70 col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT + - ( - - CAST( NULL AS SIGNED ) ) * + ( + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT + - ( - - CAST ( NULL AS INTEGER ) ) * + ( + 69 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2591
SELECT COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2591
SELECT COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + + ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2592
SELECT + + ( - + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT + - COUNT( * ) * - 81 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT + - COUNT ( * ) * - 81 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT + SUM( DISTINCT + 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT + SUM ( DISTINCT + 7 ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT - COUNT( * ) * - COUNT( ALL 72 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2595
SELECT - COUNT ( * ) * - COUNT ( ALL 72 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT SUM( 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2596
SELECT SUM ( 30 ) AS col1
----
30

query II rowsort
SELECT ALL + 16 AS col1, 21 AS col2
----
16
21

query I rowsort
SELECT DISTINCT + ( - ( - - 14 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT - COUNT( * ) * MIN( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2599
SELECT - COUNT ( * ) * MIN ( DISTINCT - 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT ALL SUM( - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL SUM ( - 2 ) AS col2
----
-2

query I rowsort
SELECT ALL + + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT DISTINCT MIN( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT MIN ( - 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT DISTINCT ( + CAST( ( - 92 ) AS SIGNED ) ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT ( + CAST ( ( - 92 ) AS INTEGER ) ) col0
----
-92

query I rowsort
SELECT DISTINCT + 43 AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT 72, + COUNT( * ) AS col0
----
72
1

skipif mysql # not compatible
query II rowsort label-2605
SELECT 72, + COUNT ( * ) AS col0
----
72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT COUNT( + 8 ) * + 80
----
80

skipif mysql # not compatible
query I rowsort label-2606
SELECT COUNT ( + 8 ) * + 80
----
80

query II rowsort
SELECT DISTINCT - 44, + 23 AS col0
----
-44
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT ( 85 ) * - 52 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT ( 85 ) * - 52 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - + 74 )
----
74

query I rowsort
SELECT 15 + - 24
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL 61 * + SUM( DISTINCT - 9 )
----
-549

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL 61 * + SUM ( DISTINCT - 9 )
----
-549

query II rowsort
SELECT DISTINCT - 45 AS col0, 51 AS col2
----
-45
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - + MIN( 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2613
SELECT - + MIN ( 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT + 67 * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-2614
SELECT + 67 * - COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT MIN( + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2615
SELECT MIN ( + 79 ) AS col0
----
79

query I rowsort
SELECT DISTINCT + ( 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT ALL + CAST( - 7 AS SIGNED ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL + CAST ( - 7 AS INTEGER ) AS col2
----
-7

query I rowsort
SELECT + ( - - 82 )
----
82

query I rowsort
SELECT ALL 79 * + 39 AS col2
----
3081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2620
SELECT ( - ( + COUNT( * ) ) ) * - - COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT ( - ( + COUNT ( * ) ) ) * - - COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 68 * - - 47 AS col2
----
3196

query I rowsort
SELECT ALL - + 10 + - + 60 AS col0
----
-70

query I rowsort
SELECT - 53 * - COALESCE ( - 35, + - ( - 57 ) ) AS col1
----
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT DISTINCT + 35 + + 7 + + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT + 35 + + 7 + + COUNT ( * ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT - MAX( 73 ) - - 5
----
-68

skipif mysql # not compatible
query I rowsort label-2625
SELECT - MAX ( 73 ) - - 5
----
-68

query I rowsort
SELECT - 21 col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT ( CAST( - - 48 AS SIGNED ) ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-2627
SELECT ( CAST ( - - 48 AS INTEGER ) ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT MAX( + 59 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT MAX ( + 59 ) col1
----
59

query I rowsort
SELECT DISTINCT NULLIF ( - - 96, - 93 ) col2
----
96

query I rowsort
SELECT 21 col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL - 25 + COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - 25 + COUNT ( * ) AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2632
SELECT - 85 DIV + + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-2632
SELECT - 85 / + + COUNT ( * )
----
-85

query I rowsort
SELECT DISTINCT - 8 + + 36
----
28

query I rowsort
SELECT ALL + + 82
----
82

query I rowsort
SELECT ALL + ( + + COALESCE ( 59, + + 45 ) ) AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2636
SELECT ALL + 3 AS col1, COUNT( DISTINCT - 98 ) DIV - 48
----
3
0

skipif mysql # not compatible
query II rowsort label-2636
SELECT ALL + 3 AS col1, COUNT ( DISTINCT - 98 ) / - 48
----
3
0

query I rowsort
SELECT ALL + 93 + + 63 AS col2
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-2638
SELECT DISTINCT 45 DIV 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT 45 / 48 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2639
SELECT ALL + - 24 * COUNT( * ) col0, - COUNT( * ) - - 74 + + 59
----
-24
132

skipif mysql # not compatible
query II rowsort label-2639
SELECT ALL + - 24 * COUNT ( * ) col0, - COUNT ( * ) - - 74 + + 59
----
-24
132

query I rowsort
SELECT ALL - - 23
----
23

query I rowsort
SELECT 80 * 16
----
1280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2642
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - ( - 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - ( - 8 ) AS col0
----
NULL

query I rowsort
SELECT - ( - + ( - + 95 ) ) col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT - 11 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT - 11 + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2645
SELECT 86 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT 86 - - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( - 45 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2647
SELECT DISTINCT COUNT( * ) AS col2, - 94
----
1
-94

skipif mysql # not compatible
query II rowsort label-2647
SELECT DISTINCT COUNT ( * ) AS col2, - 94
----
1
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT COUNT( * ) * - + ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2648
SELECT COUNT ( * ) * - + ( + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT - MIN( ALL - - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-2649
SELECT - MIN ( ALL - - 17 )
----
-17

query II rowsort
SELECT DISTINCT + 81 AS col0, 66
----
81
66

query II rowsort
SELECT - - 55, 70 AS col1
----
55
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT DISTINCT - COUNT( * ) * 16 + + 58 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT - COUNT ( * ) * 16 + + 58 AS col0
----
42

query I rowsort
SELECT - 49 * 93
----
-4557

query I rowsort
SELECT ALL ( - + 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT COUNT( - 69 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2655
SELECT COUNT ( - 69 ) col1
----
1

query I rowsort
SELECT + - ( - + 63 ) * 27 AS col1
----
1701

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT + - ( COUNT( * ) ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2657
SELECT + - ( COUNT ( * ) ) * + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2658
SELECT CAST( 51 AS SIGNED ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2658
SELECT CAST ( 51 AS INTEGER ) AS col0
----
51

query I rowsort
SELECT + ( + 58 ) AS col0
----
58

query I rowsort
SELECT ( + 7 ) AS col0
----
7

query II rowsort
SELECT + 78 AS col0, + 30
----
78
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL + COUNT( + 39 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + COUNT ( + 39 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2663
SELECT - 19 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2663
SELECT - 19 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT - - MAX( - - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-2664
SELECT - - MAX ( - - 94 )
----
94

query I rowsort
SELECT - 7 + - 47
----
-54

query I rowsort
SELECT - - 18
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT 79 - - AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT 79 - - AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2668
SELECT COUNT( * ) DIV - 30 col2
----
0

skipif mysql # not compatible
query I rowsort label-2668
SELECT COUNT ( * ) / - 30 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT COUNT( DISTINCT - - 73 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2669
SELECT COUNT ( DISTINCT - - 73 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ALL MAX( - - 0 ) + + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL MAX ( - - 0 ) + + + COUNT ( * ) AS col1
----
1

query II rowsort
SELECT ALL + 35, 64 AS col1
----
35
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL + NULLIF ( - COUNT( * ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT - 68 + 84
----
16

query I rowsort
SELECT ALL + - ( 65 )
----
-65

query I rowsort
SELECT ALL ( + 75 ) * + ( - + 46 )
----
-3450

query I rowsort
SELECT + 27 + - 85
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2677
SELECT - CAST( - NULLIF ( + - 18, + 69 * 25 + + MIN( DISTINCT 95 ) + + COUNT( * ) ) AS SIGNED ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2677
SELECT - CAST ( - NULLIF ( + - 18, + 69 * 25 + + MIN ( DISTINCT 95 ) + + COUNT ( * ) ) AS INTEGER ) AS col1
----
-18

query I rowsort
SELECT ALL - + 77
----
-77

query II rowsort
SELECT DISTINCT 97 AS col1, + 3 AS col0
----
97
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2680
SELECT COUNT( * ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2680
SELECT COUNT ( * ) / - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT ALL COUNT( + 53 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL COUNT ( + 53 ) col1
----
1

query I rowsort
SELECT ALL + + 95
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2683
SELECT COUNT( + CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) col1
----
0

query II rowsort
SELECT DISTINCT + 75 AS col0, + 97 AS col2
----
75
97

query I rowsort
SELECT + 86 * + 18
----
1548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2686
SELECT DISTINCT CAST( - - MIN( + 83 ) AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT CAST ( - - MIN ( + 83 ) AS INTEGER )
----
83

query I rowsort
SELECT - ( 57 ) AS col0
----
-57

query I rowsort
SELECT - ( + 95 ) + 89 AS col0
----
-6

query I rowsort
SELECT ( + 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT 43 * - COUNT( * ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-2690
SELECT 43 * - COUNT ( * ) AS col1
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT ALL - 38 DIV + + NULLIF ( 24, - 80 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL - 38 / + + NULLIF ( 24, - 80 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT - 21 + - COUNT( * ) * - 71
----
50

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - 21 + - COUNT ( * ) * - 71
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT 46 - COUNT( * ) col2, 76
----
45
76

skipif mysql # not compatible
query II rowsort label-2693
SELECT 46 - COUNT ( * ) col2, 76
----
45
76

query I rowsort
SELECT + ( 68 ) + 87 AS col1
----
155

query I rowsort
SELECT ALL + 53 * 4 AS col0
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT SUM( + - 11 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-2696
SELECT SUM ( + - 11 ) col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2697
SELECT + COUNT( * ) * + CAST( 89 AS SIGNED ) - - 90 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-2697
SELECT + COUNT ( * ) * + CAST ( 89 AS INTEGER ) - - 90 AS col0
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT MAX( ALL 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2698
SELECT MAX ( ALL 1 ) AS col0
----
1

query I rowsort
SELECT - + 60 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT - + 94 + + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-2700
SELECT - + 94 + + COUNT ( * )
----
-93

query I rowsort
SELECT - - 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ( + MAX( DISTINCT - + 52 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2702
SELECT ( + MAX ( DISTINCT - + 52 ) ) AS col0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2703
SELECT - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 58 * - + 65 AS col1
----
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT MIN( ALL + + 77 ) * + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-2705
SELECT MIN ( ALL + + 77 ) * + COUNT ( * ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT DISTINCT COUNT( * ) * + - 37
----
-37

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT COUNT ( * ) * + - 37
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2707
SELECT CAST( NULL AS SIGNED ) * + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT CAST ( NULL AS INTEGER ) * + 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT DISTINCT MIN( NULLIF ( ( + CAST( 16 AS SIGNED ) ), - 35 ) )
----
16

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT MIN ( NULLIF ( ( + CAST ( 16 AS INTEGER ) ), - 35 ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT COUNT( 11 ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2709
SELECT COUNT ( 11 ) * COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 2 + - 96
----
-94

query I rowsort
SELECT DISTINCT - ( ( 6 ) ) col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT ALL - + 68 - - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - + 68 - - COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT ALL + 80 * + 44
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT + - SUM( DISTINCT - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT + - SUM ( DISTINCT - 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL 95 * COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL 95 * COUNT ( * ) AS col2
----
95

query I rowsort
SELECT + 82 * - 67 AS col1
----
-5494

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - SUM( DISTINCT 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-2717
SELECT - SUM ( DISTINCT 75 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2718
SELECT ALL - 4 DIV COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL - 4 / COUNT ( * )
----
-4

query I rowsort
SELECT - + ( + 87 ) AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT ALL MIN( - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL MIN ( - 98 ) AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2721
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ( - 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL - COUNT( * ) * + 73
----
-73

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL - COUNT ( * ) * + 73
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT + MIN( 6 ) col1
----
6

skipif mysql # not compatible
query I rowsort label-2725
SELECT + MIN ( 6 ) col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT ALL COALESCE ( + + 94, - + COUNT( * ) + - 88 )
----
94

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL COALESCE ( + + 94, - + COUNT ( * ) + - 88 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2727
SELECT ALL 56, CAST( NULL AS SIGNED ) col1
----
56
NULL

skipif mysql # not compatible
query II rowsort label-2727
SELECT ALL 56, CAST ( NULL AS INTEGER ) col1
----
56
NULL

query I rowsort
SELECT ALL - + ( + + 52 )
----
-52

query I rowsort
SELECT ALL - + 25 + - - 79
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2730
SELECT + COUNT( * ), 31 AS col2
----
1
31

skipif mysql # not compatible
query II rowsort label-2730
SELECT + COUNT ( * ), 31 AS col2
----
1
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT 3 * COUNT( * ) col1
----
3

skipif mysql # not compatible
query I rowsort label-2731
SELECT 3 * COUNT ( * ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT COUNT( * ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT COUNT ( * ) * - 31
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) + + - ( - + ( MIN( DISTINCT 60 ) ) ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) + + - ( - + ( MIN ( DISTINCT 60 ) ) ) + 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT ALL 75 + - CAST( + NULLIF ( + CAST( + 12 AS SIGNED ), + 7 ) AS SIGNED ) * + 86 AS col0
----
-957

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL 75 + - CAST ( + NULLIF ( + CAST ( + 12 AS INTEGER ), + 7 ) AS INTEGER ) * + 86 AS col0
----
-957

query I rowsort
SELECT DISTINCT - - 45
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT CAST( + 32 AS SIGNED ) * + - COUNT( * ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-2736
SELECT CAST ( + 32 AS INTEGER ) * + - COUNT ( * ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT + NULLIF ( 57, - COUNT( * ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2737
SELECT + NULLIF ( 57, - COUNT ( * ) ) AS col0
----
57

query I rowsort
SELECT DISTINCT - + 53 AS col2
----
-53

query I rowsort
SELECT 31 - + - 16 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT ALL SUM( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL SUM ( - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT - 14 * + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-2741
SELECT - 14 * + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + COUNT( DISTINCT + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-2742
SELECT + COUNT ( DISTINCT + 67 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT + 58 + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT + 58 + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT SUM( DISTINCT + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT SUM ( DISTINCT + 6 )
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2746
SELECT ALL ( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL ( - - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL ( ( 54 ) )
----
54

query I rowsort
SELECT - - 77 - + 65 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2749
SELECT ALL + COUNT( * ), + 22 AS col1
----
1
22

skipif mysql # not compatible
query II rowsort label-2749
SELECT ALL + COUNT ( * ), + 22 AS col1
----
1
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2750
SELECT - CAST( 2 AS SIGNED )
----
-2

skipif mysql # not compatible
query I rowsort label-2750
SELECT - CAST ( 2 AS INTEGER )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT DISTINCT - + 76 * + COUNT( * ) + - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-2751
SELECT DISTINCT - + 76 * + COUNT ( * ) + - COUNT ( * ) AS col0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2752
SELECT + COUNT( * ) + - CAST( - + 72 AS SIGNED ) + - COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2752
SELECT + COUNT ( * ) + - CAST ( - + 72 AS INTEGER ) + - COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT - 38 * - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-2753
SELECT - 38 * - COUNT ( * ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT + 91 + 97 + + COUNT( * )
----
189

skipif mysql # not compatible
query I rowsort label-2754
SELECT + 91 + 97 + + COUNT ( * )
----
189

query I rowsort
SELECT DISTINCT - - 96 AS col2
----
96

query I rowsort
SELECT ALL - - 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT DISTINCT - COUNT( * ) * - + 82 col0
----
82

skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT - COUNT ( * ) * - + 82 col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2758
SELECT 21 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-2758
SELECT 21 / + 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT 56 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-2759
SELECT 56 * - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL COUNT( * ) * + 94
----
94

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL COUNT ( * ) * + 94
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT ALL + COUNT( * ), + 93 col2
----
1
93

skipif mysql # not compatible
query II rowsort label-2761
SELECT ALL + COUNT ( * ), + 93 col2
----
1
93

query I rowsort
SELECT ALL - 38 col2
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-2763
SELECT - COUNT( * ) col0, + ( - 77 )
----
-1
-77

skipif mysql # not compatible
query II rowsort label-2763
SELECT - COUNT ( * ) col0, + ( - 77 )
----
-1
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT ALL + COUNT( * ) * - - 86 * - - 76 * + 22 + + 36 AS col0
----
143828

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL + COUNT ( * ) * - - 86 * - - 76 * + 22 + + 36 AS col0
----
143828

query I rowsort
SELECT - 67 * + 52 AS col1
----
-3484

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT ALL + SUM( DISTINCT - + 85 ) col1
----
-85

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + SUM ( DISTINCT - + 85 ) col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2768
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) * - CAST( - COUNT( * ) AS SIGNED ) + 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) * - CAST ( - COUNT ( * ) AS INTEGER ) + 92 col0
----
NULL

query I rowsort
SELECT + + 24 - - 58
----
82

query I rowsort
SELECT ALL ( 10 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT ALL 42 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL 42 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 55 + 59 AS col2
----
114

query I rowsort
SELECT + ( + + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ( - ( - COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2774
SELECT ( - ( - COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT - 24 col0
----
-24

query I rowsort
SELECT ALL - 54 + 51
----
-3

query I rowsort
SELECT - 85 col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT ALL - COUNT( * ) * 90
----
-90

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - COUNT ( * ) * 90
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT ALL CAST( NULL AS SIGNED ) * 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL CAST ( NULL AS INTEGER ) * 83 AS col2
----
NULL

query II rowsort
SELECT DISTINCT - 14 AS col2, 82 * 79 AS col0
----
-14
6478

query I rowsort
SELECT ALL - - 72 - + ( - 53 )
----
125

query I rowsort
SELECT DISTINCT 87 col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2783
SELECT SUM( + 92 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT SUM ( + 92 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 40
----
-40

query I rowsort
SELECT ALL + 92 AS col1
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2786
SELECT DISTINCT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) / 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) / 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT COUNT( ALL 90 )
----
1

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT COUNT ( ALL 90 )
----
1

query II rowsort
SELECT ALL 93 AS col1, - 92
----
93
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT - 58 AS col2, COUNT( * ) + COUNT( * ) AS col0
----
-58
2

skipif mysql # not compatible
query II rowsort label-2789
SELECT - 58 AS col2, COUNT ( * ) + COUNT ( * ) AS col0
----
-58
2

query I rowsort
SELECT ( + - 21 )
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2791
SELECT 48, - CAST( NULL AS DECIMAL ) / - 22 AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2791
SELECT 48, - CAST ( NULL AS REAL ) / - 22 AS col2
----
48
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2792
SELECT - + 69 + - COUNT( - CAST( - + ( + 79 ) AS SIGNED ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2792
SELECT - + 69 + - COUNT ( - CAST ( - + ( + 79 ) AS INTEGER ) ) AS col1
----
-70

query I rowsort
SELECT - - 42 * - 65 col0
----
-2730

query I rowsort
SELECT - ( + + 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL NULLIF ( - 80, + + COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL NULLIF ( - 80, + + COUNT ( * ) )
----
-80

query I rowsort
SELECT ALL + 38 * - NULLIF ( + - 1, 14 )
----
38

query I rowsort
SELECT DISTINCT - - 25 AS col2
----
25

query I rowsort
SELECT + 78 * - + 99 col1
----
-7722

query I rowsort
SELECT ALL 56 * + 10 AS col0
----
560

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2800
SELECT CAST( + CAST( + 21 AS SIGNED ) AS SIGNED ) AS col0, 33
----
21
33

skipif mysql # not compatible
query II rowsort label-2800
SELECT CAST ( + CAST ( + 21 AS INTEGER ) AS INTEGER ) AS col0, 33
----
21
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT + 98 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT + 98 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2802
SELECT + CAST( - 81 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-2802
SELECT + CAST ( - 81 AS INTEGER ) AS col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT 91 DIV 23 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2803
SELECT 91 / 23 AS col0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2804
SELECT ALL + MIN( DISTINCT + + 49 ) AS col1, - 70
----
49
-70

skipif mysql # not compatible
query II rowsort label-2804
SELECT ALL + MIN ( DISTINCT + + 49 ) AS col1, - 70
----
49
-70

query I rowsort
SELECT DISTINCT + 36 * + - 94 + + 44 AS col1
----
-3340

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT - 76 * + - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-2806
SELECT - 76 * + - COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL + COUNT( * ) * + 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL + COUNT ( * ) * + 33 AS col1
----
33

query I rowsort
SELECT - ( - - 2 ) AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT + CAST( 86 AS SIGNED ) - - 17
----
103

skipif mysql # not compatible
query I rowsort label-2809
SELECT + CAST ( 86 AS INTEGER ) - - 17
----
103

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2810
SELECT + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT - - ( - 43 ) AS col1
----
-43

query I rowsort
SELECT DISTINCT + 42 * + 44 * - 26
----
-48048

query I rowsort
SELECT 74 - + 85
----
-11

query I rowsort
SELECT - 8 + - 83
----
-91

query I rowsort
SELECT + ( - - 75 )
----
75

query I rowsort
SELECT DISTINCT - 77 col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL + MIN( ALL 89 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL + MIN ( ALL 89 ) AS col1
----
89

query I rowsort
SELECT - - 97 + - ( 60 ) AS col0
----
37

query I rowsort
SELECT + 72 + + 37
----
109

query I rowsort
SELECT DISTINCT + ( - 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT + + 64 - COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2821
SELECT + + 64 - COUNT ( * ) AS col1
----
63

query I rowsort
SELECT + - 90 + 22 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT + ( + - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2823
SELECT + ( + - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT + CAST( NULL AS SIGNED ) * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT + CAST ( NULL AS INTEGER ) * - 63
----
NULL

query I rowsort
SELECT ( 58 )
----
58

query I rowsort
SELECT - 60 + + - 75 * - - 72
----
-5460

onlyif mysql # aggregate syntax: 
query II rowsort label-2827
SELECT ALL + 89 col1, - COUNT( * )
----
89
-1

skipif mysql # not compatible
query II rowsort label-2827
SELECT ALL + 89 col1, - COUNT ( * )
----
89
-1

query I rowsort
SELECT DISTINCT + ( + 1 ) AS col2
----
1

query I rowsort
SELECT + + 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT - + COUNT( * ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2830
SELECT - + COUNT ( * ) * - - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 58 AS col2
----
-58

query I rowsort
SELECT DISTINCT - ( + 34 ) col1
----
-34

query I rowsort
SELECT ALL - ( - - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT + + 76 * - COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + + 76 * - COUNT ( * ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT COUNT( * ) + - + 74 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2835
SELECT COUNT ( * ) + - + 74 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT MIN( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-2836
SELECT MIN ( 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT COUNT( * ) + + 38
----
39

skipif mysql # not compatible
query I rowsort label-2837
SELECT COUNT ( * ) + + 38
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT COUNT( * ) * - 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2838
SELECT COUNT ( * ) * - 40 AS col2
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2839
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col1, 70
----
NULL
70

skipif mysql # not compatible
query II rowsort label-2839
SELECT ALL - + CAST ( NULL AS REAL ) AS col1, 70
----
NULL
70

onlyif mysql # DIV for integer division: 
query I rowsort label-2840
SELECT 16 DIV + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2840
SELECT 16 / + 99 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT ALL CAST( - - 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL CAST ( - - 45 AS INTEGER )
----
45

query I rowsort
SELECT - 44 * - ( + + 37 ) * + 98 AS col0
----
159544

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT + SUM( 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-2843
SELECT + SUM ( 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT + 50 * - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2844
SELECT + 50 * - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - + COUNT( + + 59 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2845
SELECT - + COUNT ( + + 59 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT + MIN( DISTINCT + 53 ) + + + 43
----
96

skipif mysql # not compatible
query I rowsort label-2846
SELECT + MIN ( DISTINCT + 53 ) + + + 43
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT - CAST( + ( COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2847
SELECT - CAST ( + ( COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT - 73 + + COUNT( 88 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT - 73 + + COUNT ( 88 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT + COUNT( DISTINCT + - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2849
SELECT + COUNT ( DISTINCT + - 6 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2850
SELECT ALL ( 1 ) * CAST( NULL AS DECIMAL ) * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL ( 1 ) * CAST ( NULL AS REAL ) * + 51
----
NULL

query I rowsort
SELECT + 57 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT DISTINCT - ( + COUNT( * ) ) * COALESCE ( + + 40, + + 4 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2852
SELECT DISTINCT - ( + COUNT ( * ) ) * COALESCE ( + + 40, + + 4 ) AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT DISTINCT COUNT( ALL - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT COUNT ( ALL - 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT 44 * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-2854
SELECT 44 * + COUNT ( * )
----
44

query I rowsort
SELECT - 17 col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL 59 + - + COUNT( * ) col1
----
58

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL 59 + - + COUNT ( * ) col1
----
58

query I rowsort
SELECT + - 97 + 71 - + 71
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT DISTINCT + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2858
SELECT DISTINCT + - COUNT ( * ) col2
----
-1

query I rowsort
SELECT + - 87 col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT - COUNT( * ) * - 75 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2860
SELECT - COUNT ( * ) * - 75 AS col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2861
SELECT ALL + COUNT( * ), + 81 + - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2861
SELECT ALL + COUNT ( * ), + 81 + - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT ( + 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2863
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2864
SELECT + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2864
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT - COUNT( * ) - + 46 * + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-2866
SELECT - COUNT ( * ) - + 46 * + COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL + 91 + + COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + 91 + + COUNT ( * ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT SUM( DISTINCT + 46 ) * - 25 AS col1
----
-1150

skipif mysql # not compatible
query I rowsort label-2868
SELECT SUM ( DISTINCT + 46 ) * - 25 AS col1
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ALL - 99 * + COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL - 99 * + COUNT ( * ) AS col2
----
-99

query I rowsort
SELECT DISTINCT + ( + 4 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2871
SELECT - COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 72 col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT ALL - 33 + + - COUNT( * ) + + - 21 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2873
SELECT ALL - 33 + + - COUNT ( * ) + + - 21 AS col0
----
-55

query I rowsort
SELECT DISTINCT - 39 col0
----
-39

query I rowsort
SELECT + ( - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT ALL + ( - - MIN( - - 21 ) ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + ( - - MIN ( - - 21 ) ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT - + 8 + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-2877
SELECT - + 8 + - COUNT ( * )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT - SUM( DISTINCT + - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-2878
SELECT - SUM ( DISTINCT + - 4 )
----
4

query I rowsort
SELECT - 29 + - 2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2880
SELECT ALL + ( - 79 ) * CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) * + 79 * + MIN( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2880
SELECT ALL + ( - 79 ) * CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) * + 79 * + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

query I rowsort
SELECT + - 71 AS col2
----
-71

query I rowsort
SELECT DISTINCT + 12 AS col2
----
12

query I rowsort
SELECT DISTINCT - 39 * - ( 49 )
----
1911

query I rowsort
SELECT DISTINCT - + 88 AS col1
----
-88

query I rowsort
SELECT - 20 * 67 col1
----
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ALL MAX( ALL - + 8 ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL MAX ( ALL - + 8 ) AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2887
SELECT - CAST( - COUNT( * ) AS SIGNED ) + + MAX( DISTINCT + 18 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-2887
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + + MAX ( DISTINCT + 18 ) AS col2
----
19

query I rowsort
SELECT + + 28 + 10
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT COUNT( 84 )
----
1

skipif mysql # not compatible
query I rowsort label-2889
SELECT COUNT ( 84 )
----
1

query I rowsort
SELECT + 21 * - + 3 + + + 11
----
-52

query I rowsort
SELECT - + 29 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT + - COUNT( * ) - + 88
----
-89

skipif mysql # not compatible
query I rowsort label-2892
SELECT + - COUNT ( * ) - + 88
----
-89

query I rowsort
SELECT - 61 col0
----
-61

query I rowsort
SELECT ALL + ( + - 36 ) AS col0
----
-36

query I rowsort
SELECT + 3 * + ( + + 38 ) + 18 AS col2
----
132

query I rowsort
SELECT ALL + 34 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2897
SELECT + + CAST( NULL AS SIGNED ) + - - AVG ( + 45 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT + + CAST ( NULL AS INTEGER ) + - - AVG ( + 45 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT MAX( - 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2898
SELECT MAX ( - 60 ) AS col1
----
-60

query I rowsort
SELECT + ( - - 69 )
----
69

query I rowsort
SELECT ( - + COALESCE ( - 14, 19 ) )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT + CAST( + - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2901
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2902
SELECT + CAST( 35 AS SIGNED ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2902
SELECT + CAST ( 35 AS INTEGER ) AS col0
----
35

query II rowsort
SELECT DISTINCT + 48 col0, 85
----
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT 76 + MAX( 29 ) + - 90 col2
----
15

skipif mysql # not compatible
query I rowsort label-2904
SELECT 76 + MAX ( 29 ) + - 90 col2
----
15

query I rowsort
SELECT 25 * + 63 AS col1
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT - 38 - + - COUNT( * ) * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-2906
SELECT - 38 - + - COUNT ( * ) * - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT + SUM( - - 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2907
SELECT + SUM ( - - 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT DISTINCT + 11 * - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + 11 * - COUNT ( * ) AS col0
----
-11

query II rowsort
SELECT + 32, 22 * 28 col1
----
32
616

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT - 42 + MIN( ALL + - 17 )
----
-59

skipif mysql # not compatible
query I rowsort label-2910
SELECT - 42 + MIN ( ALL + - 17 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ( MAX( - 97 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2911
SELECT ( MAX ( - 97 ) ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT + 4 * + ( + COUNT( * ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT + 4 * + ( + COUNT ( * ) ) AS col2
----
4

query I rowsort
SELECT ALL - ( + + 37 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT ALL - MIN( - ( + 13 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2914
SELECT ALL - MIN ( - ( + 13 ) ) AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2915
SELECT 26 DIV + MAX( ALL - 57 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2915
SELECT 26 / + MAX ( ALL - 57 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2916
SELECT - 71 DIV 74 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT - 71 / 74 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - COUNT( * ) * + 94 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2917
SELECT - COUNT ( * ) * + 94 AS col0
----
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2918
SELECT + + 33 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT + + 33 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( 20 ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT - COUNT( * ) * 57 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT - COUNT ( * ) * 57 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + SUM( DISTINCT 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2921
SELECT + SUM ( DISTINCT 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2922
SELECT - 48 AS col1, COUNT( * ) col1
----
-48
1

skipif mysql # not compatible
query II rowsort label-2922
SELECT - 48 AS col1, COUNT ( * ) col1
----
-48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + MIN( ALL + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-2923
SELECT + MIN ( ALL + 36 )
----
36

query II rowsort
SELECT - 82 col2, 4 AS col1
----
-82
4

query I rowsort
SELECT DISTINCT 64 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL COUNT( 73 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL COUNT ( 73 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 83 col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT MIN( ALL + - 40 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-2928
SELECT MIN ( ALL + - 40 ) AS col1
----
-40

query I rowsort
SELECT ALL - 26 * - - ( - 60 ) col0
----
1560

query I rowsort
SELECT + 13 * 78 * 64
----
64896

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2931
SELECT ALL 24 col0, + CAST( NULL AS SIGNED ) AS col0
----
24
NULL

skipif mysql # not compatible
query II rowsort label-2931
SELECT ALL 24 col0, + CAST ( NULL AS INTEGER ) AS col0
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT COUNT( * ) + + + 23
----
24

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT COUNT ( * ) + + + 23
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2933
SELECT + COUNT( * ) AS col2, - 40 AS col0
----
1
-40

skipif mysql # not compatible
query II rowsort label-2933
SELECT + COUNT ( * ) AS col2, - 40 AS col0
----
1
-40

query I rowsort
SELECT DISTINCT - + 60
----
-60

query I rowsort
SELECT ALL - - 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT 32 AS col2, - COUNT( * ) col1
----
32
-1

skipif mysql # not compatible
query II rowsort label-2936
SELECT 32 AS col2, - COUNT ( * ) col1
----
32
-1

query I rowsort
SELECT DISTINCT 30 col1
----
30

query I rowsort
SELECT DISTINCT 64 * 64 AS col0
----
4096

query I rowsort
SELECT DISTINCT + - 85
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2940
SELECT + 0 DIV COUNT( * ) + + 36
----
36

skipif mysql # not compatible
query I rowsort label-2940
SELECT + 0 / COUNT ( * ) + + 36
----
36

query II rowsort
SELECT + + 21 + - 63 AS col2, 58
----
-42
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT - COUNT( * ) * + COUNT( * ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2942
SELECT - COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT - 45 col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT MAX( DISTINCT + - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-2944
SELECT MAX ( DISTINCT + - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + - MAX( ALL - 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2945
SELECT + - MAX ( ALL - 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL - SUM( - - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - SUM ( - - 18 )
----
-18

query I rowsort
SELECT 51 * 12 AS col0
----
612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2948
SELECT 70 + - + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT 70 + - + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2949
SELECT CAST( - + 75 AS SIGNED ) + + COUNT( * ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-2949
SELECT CAST ( - + 75 AS INTEGER ) + + COUNT ( * ) col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2950
SELECT DISTINCT - 1 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT - 1 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT MAX( ALL 32 ) - + - 64 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2951
SELECT MAX ( ALL 32 ) - + - 64 AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2952
SELECT 76 DIV 35 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2952
SELECT 76 / 35 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT DISTINCT + COUNT( * ) DIV + 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + COUNT ( * ) / + 73 AS col0
----
0

query I rowsort
SELECT + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT ALL + COUNT( DISTINCT - 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL + COUNT ( DISTINCT - 77 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) * + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) * + 96 AS col2
----
96

query I rowsort
SELECT - 53 * + ( 1 ) col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT COUNT( * ) * + 19
----
19

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT COUNT ( * ) * + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL 28 - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL 28 - COUNT ( * )
----
27

query I rowsort
SELECT + 38 + - 1 * + 81 AS col1
----
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2961
SELECT + 56 - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2961
SELECT + 56 - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT CAST( + 52 AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2962
SELECT CAST ( + 52 AS INTEGER ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT + 66 * - COUNT( * ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-2963
SELECT + 66 * - COUNT ( * ) col1
----
-66

query I rowsort
SELECT ALL + 5 col0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2965
SELECT + 84 DIV + 28 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2965
SELECT + 84 / + 28 AS col0
----
3

query I rowsort
SELECT ALL 12 * + 61
----
732

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT MIN( ALL ( ( - 86 ) ) ) col1
----
-86

skipif mysql # not compatible
query I rowsort label-2967
SELECT MIN ( ALL ( ( - 86 ) ) ) col1
----
-86

query I rowsort
SELECT ALL + 26 col0
----
26

query I rowsort
SELECT + 48 - + 76 AS col1
----
-28

query I rowsort
SELECT + 77 col0
----
77

query I rowsort
SELECT ALL - + ( 2 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2972
SELECT ALL - ( + ( - CASE - MAX( CAST( NULL AS DECIMAL ) ) WHEN + 95 THEN NULL ELSE + 47 END ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL - ( + ( - CASE - MAX ( CAST ( NULL AS REAL ) ) WHEN + 95 THEN NULL ELSE + 47 END ) ) AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2973
SELECT - 75 DIV 97 + 34 * + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2973
SELECT - 75 / 97 + 34 * + COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL - MIN( + 66 ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL - MIN ( + 66 ) col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT + CAST( NULL AS SIGNED ) + + MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT + CAST ( NULL AS INTEGER ) + + MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT 45 * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-2976
SELECT 45 * + COUNT ( * )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT 89 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT 89 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( + 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-2979
SELECT COUNT( * ) AS col0, + ( 1 ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-2979
SELECT COUNT ( * ) AS col0, + ( 1 ) AS col0
----
1
1

query I rowsort
SELECT ( 71 ) * - ( 42 )
----
-2982

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT - COUNT( * ) AS col0, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-2981
SELECT - COUNT ( * ) AS col0, COUNT ( * )
----
-1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT ALL + 12 DIV + 12
----
1

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + 12 / + 12
----
1

query I rowsort
SELECT + - 79 - + - ( + 87 ) AS col0
----
8

query I rowsort
SELECT ALL NULLIF ( + + 26, - - 92 )
----
26

query I rowsort
SELECT + 71 * + 38
----
2698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2986
SELECT - - 1 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2986
SELECT - - 1 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2987
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT - SUM( ALL + + 67 ) * 77
----
-5159

skipif mysql # not compatible
query I rowsort label-2988
SELECT - SUM ( ALL + + 67 ) * 77
----
-5159

query I rowsort
SELECT - - 29
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL ( ( - + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL ( ( - + COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT ALL + MAX( ALL + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + MAX ( ALL + 95 ) AS col1
----
95

query I rowsort
SELECT DISTINCT - 43 col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT COUNT( * ) * + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-2993
SELECT COUNT ( * ) * + 24 AS col2
----
24

query I rowsort
SELECT ALL + 61 * + - 78
----
-4758

query II rowsort
SELECT DISTINCT 7, 15 AS col1
----
7
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2996
SELECT + COUNT( * ) AS col0, 27
----
1
27

skipif mysql # not compatible
query II rowsort label-2996
SELECT + COUNT ( * ) AS col0, 27
----
1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT DISTINCT - + COUNT( * ) - - 71
----
70

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT - + COUNT ( * ) - - 71
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT + COUNT( * ) + + + 59 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-2998
SELECT + COUNT ( * ) + + + 59 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT - COUNT( * ) * 72
----
-72

skipif mysql # not compatible
query I rowsort label-2999
SELECT - COUNT ( * ) * 72
----
-72

query I rowsort
SELECT + + 37 AS col0
----
37

query I rowsort
SELECT + + 61 * + 87 AS col2
----
5307

query I rowsort
SELECT DISTINCT 94 + + - 57
----
37

query I rowsort
SELECT 20 + - 44 col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT + MAX( - + 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3004
SELECT + MAX ( - + 23 ) AS col2
----
-23

query I rowsort
SELECT + + ( 65 ) AS col0
----
65

query I rowsort
SELECT - NULLIF ( ( - 3 ), 10 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT COUNT( DISTINCT - + 19 ) * + CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3007
SELECT COUNT ( DISTINCT - + 19 ) * + CAST ( + COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT 20 - - - 60 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - SUM( ALL + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3009
SELECT - SUM ( ALL + 27 )
----
-27

query I rowsort
SELECT - + 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL 76 * + MIN( + 45 ) AS col0
----
3420

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL 76 * + MIN ( + 45 ) AS col0
----
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3012
SELECT ALL + MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3013
SELECT ALL CAST( NULL AS SIGNED ), COUNT( * ) + + 24 AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-3013
SELECT ALL CAST ( NULL AS INTEGER ), COUNT ( * ) + + 24 AS col2
----
NULL
25

query I rowsort
SELECT + - 39 AS col1
----
-39

query I rowsort
SELECT ( 92 ) AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3016
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1, 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-3016
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1, 7 AS col2
----
NULL
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3017
SELECT - + COUNT( * ) * + CAST( NULL AS SIGNED ) * + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + 41 AS col2
----
NULL

query I rowsort
SELECT - 39 col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT ( + - 61 ) + + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-3019
SELECT ( + - 61 ) + + + COUNT ( * )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT SUM( ALL + + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-3020
SELECT SUM ( ALL + + 57 )
----
57

query I rowsort
SELECT 67 - + + 47 * + 82 AS col2
----
-3787

query I rowsort
SELECT ALL - - 57 + + 55 AS col2
----
112

query I rowsort
SELECT DISTINCT - 23 * - 49 AS col1
----
1127

query I rowsort
SELECT ALL 2 AS col0
----
2

query I rowsort
SELECT ALL - 93 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3026
SELECT + COUNT( * ) DIV - 89 - + 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-3026
SELECT + COUNT ( * ) / - 89 - + 66 AS col0
----
-66

query I rowsort
SELECT - + 81 AS col2
----
-81

query I rowsort
SELECT + + 41 * + + 88 * + 58
----
209264

onlyif mysql # aggregate syntax: 
query II rowsort label-3029
SELECT ALL COUNT( * ) AS col0, + 57
----
1
57

skipif mysql # not compatible
query II rowsort label-3029
SELECT ALL COUNT ( * ) AS col0, + 57
----
1
57

query I rowsort
SELECT ( 90 ) col1
----
90

query I rowsort
SELECT ( 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT + + COUNT( * ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-3032
SELECT + + COUNT ( * ) + + 60
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL + COUNT( * ) * 65
----
65

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + COUNT ( * ) * 65
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL + 29 * - - COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL + 29 * - - COUNT ( * ) AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3035
SELECT ALL 55 AS col0, CAST( NULL AS SIGNED ) AS col2
----
55
NULL

skipif mysql # not compatible
query II rowsort label-3035
SELECT ALL 55 AS col0, CAST ( NULL AS INTEGER ) AS col2
----
55
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3036
SELECT ALL 71 + + + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL 71 + + + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT 6 + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT 6 + - COUNT ( * )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT + CAST( 2 AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3038
SELECT + CAST ( 2 AS INTEGER ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT + COUNT( * ) * - 10 * + - 46
----
460

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + COUNT ( * ) * - 10 * + - 46
----
460

query I rowsort
SELECT 81 col1
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3041
SELECT ALL - CAST( NULL AS DECIMAL ) - + AVG ( - 69 ) + - AVG ( + 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - CAST ( NULL AS REAL ) - + AVG ( - 69 ) + - AVG ( + 80 )
----
NULL

query I rowsort
SELECT 33 * - 81 AS col1
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT DISTINCT MAX( + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT MAX ( + 92 )
----
92

query I rowsort
SELECT - 67 col2
----
-67

query I rowsort
SELECT ALL + ( + 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL NULLIF ( + - 88, COUNT( * ) ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL NULLIF ( + - 88, COUNT ( * ) ) col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT + COUNT( * ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-3047
SELECT + COUNT ( * ) + + 10
----
11

query I rowsort
SELECT - 87 + + 36
----
-51

query I rowsort
SELECT ALL + + 66 AS col1
----
66

query I rowsort
SELECT DISTINCT - - 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3051
SELECT 53 col1, - COUNT( * ) col2
----
53
-1

skipif mysql # not compatible
query II rowsort label-3051
SELECT 53 col1, - COUNT ( * ) col2
----
53
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT + COUNT( * ) * - 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT + COUNT ( * ) * - 68 AS col2
----
-68

query I rowsort
SELECT ALL - 83 + + 9 AS col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT + CAST( - + 36 AS SIGNED ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-3054
SELECT + CAST ( - + 36 AS INTEGER ) col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ( NULLIF ( + ( COUNT( * ) ), 25 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3055
SELECT ( NULLIF ( + ( COUNT ( * ) ), 25 ) )
----
1

query I rowsort
SELECT ( + + 85 )
----
85

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3057
SELECT + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3058
SELECT ALL 69 * - 44 DIV + COUNT( * ) AS col1
----
-3036

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL 69 * - 44 / + COUNT ( * ) AS col1
----
-3036

query I rowsort
SELECT - - 32 + - 7 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT - CAST( ( - COUNT( * ) ) AS SIGNED ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3060
SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) - - COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT - 93 AS col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3062
SELECT DISTINCT ( + + 27 ) DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT ( + + 27 ) / 72
----
0

query I rowsort
SELECT ALL - - 43 AS col1
----
43

query I rowsort
SELECT DISTINCT - 82 + 86 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3065
SELECT DISTINCT 48, COUNT( * ) AS col2
----
48
1

skipif mysql # not compatible
query II rowsort label-3065
SELECT DISTINCT 48, COUNT ( * ) AS col2
----
48
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT COUNT( * ) * - 84 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3066
SELECT COUNT ( * ) * - 84 AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT - COUNT( * ) + - CAST( ( + 16 ) AS SIGNED ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3067
SELECT - COUNT ( * ) + - CAST ( ( + 16 ) AS INTEGER ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + COUNT( * ) + - ( 63 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-3068
SELECT + COUNT ( * ) + - ( 63 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT DISTINCT - SUM( DISTINCT + + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT - SUM ( DISTINCT + + 58 )
----
-58

query I rowsort
SELECT + - 48 + - 83 AS col1
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL MIN( ( + + 57 ) )
----
57

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL MIN ( ( + + 57 ) )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3072
SELECT + CAST( NULL AS DECIMAL ) + - MIN( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT + CAST ( NULL AS REAL ) + - MIN ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT - 15 + - + 1 * - + COUNT( * ) * + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT - 15 + - + 1 * - + COUNT ( * ) * + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT DISTINCT + COUNT( * ) * - SUM( DISTINCT 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT + COUNT ( * ) * - SUM ( DISTINCT 4 ) AS col0
----
-4

query I rowsort
SELECT ALL + - 47 AS col1
----
-47

query I rowsort
SELECT ALL + - 87 col1
----
-87

query I rowsort
SELECT + 18 + + 51
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3078
SELECT DISTINCT SUM( ALL + 59 ) AS col0, + COUNT( * ) * CAST( NULL AS SIGNED ) col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-3078
SELECT DISTINCT SUM ( ALL + 59 ) AS col0, + COUNT ( * ) * CAST ( NULL AS INTEGER ) col1
----
59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL SUM( ALL - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL SUM ( ALL - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT - 69 * + ( + COUNT( * ) )
----
-69

skipif mysql # not compatible
query I rowsort label-3080
SELECT - 69 * + ( + COUNT ( * ) )
----
-69

query I rowsort
SELECT DISTINCT - - 93
----
93

query I rowsort
SELECT + - COALESCE ( - 11, - 81, 36 ) AS col2
----
11

query I rowsort
SELECT DISTINCT 90 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT COUNT( * ) + - 49 col1
----
-48

skipif mysql # not compatible
query I rowsort label-3084
SELECT COUNT ( * ) + - 49 col1
----
-48

query II rowsort
SELECT + + 26 AS col2, - 32 AS col1
----
26
-32

query I rowsort
SELECT ALL - - 69 * 61
----
4209

query I rowsort
SELECT - - 49 AS col1
----
49

query I rowsort
SELECT DISTINCT 51 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT - SUM( 86 ) + + ( + - 30 ) * + 76 + + 79 AS col2
----
-2287

skipif mysql # not compatible
query I rowsort label-3089
SELECT - SUM ( 86 ) + + ( + - 30 ) * + 76 + + 79 AS col2
----
-2287

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT + - COALESCE ( - COUNT( * ), - 36 + - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-3090
SELECT + - COALESCE ( - COUNT ( * ), - 36 + - 85 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT + - COUNT( * ) * + + 77
----
-77

skipif mysql # not compatible
query I rowsort label-3091
SELECT + - COUNT ( * ) * + + 77
----
-77

query I rowsort
SELECT ALL + - 23 AS col1
----
-23

query I rowsort
SELECT DISTINCT + - 72 col0
----
-72

query I rowsort
SELECT ALL - 34 * - + 24 AS col0
----
816

query I rowsort
SELECT + 0 * - 70
----
0

query I rowsort
SELECT ALL NULLIF ( + - 6, - 20 )
----
-6

query I rowsort
SELECT ALL + 22 col0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3098
SELECT + ( + 80 ) AS col0, + COUNT( * ) AS col2
----
80
1

skipif mysql # not compatible
query II rowsort label-3098
SELECT + ( + 80 ) AS col0, + COUNT ( * ) AS col2
----
80
1

query I rowsort
SELECT ALL + 13 + + 44
----
57

query I rowsort
SELECT DISTINCT ( + 80 )
----
80

query I rowsort
SELECT ALL - ( - - 11 )
----
-11

query I rowsort
SELECT 36 + - + 94 AS col2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT CAST( NULL AS SIGNED ) * - 97 - + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT CAST ( NULL AS INTEGER ) * - 97 - + 77 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT DISTINCT - - SUM( ALL - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - - SUM ( ALL - 90 )
----
-90

query I rowsort
SELECT + - 20
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3106
SELECT + 63 AS col2, COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-3106
SELECT + 63 AS col2, COUNT ( * )
----
63
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3107
SELECT COUNT( * ), 66 AS col0
----
1
66

skipif mysql # not compatible
query II rowsort label-3107
SELECT COUNT ( * ), 66 AS col0
----
1
66

query I rowsort
SELECT - 94 - + 58 * 60 * - 70
----
243506

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3109
SELECT - + 30 AS col0, 70 * CAST( NULL AS DECIMAL )
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-3109
SELECT - + 30 AS col0, 70 * CAST ( NULL AS REAL )
----
-30
NULL

query I rowsort
SELECT DISTINCT 65 AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3111
SELECT + MAX( ALL - 19 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT + MAX ( ALL - 19 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT + CAST( + 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-3112
SELECT + CAST ( + 93 AS INTEGER )
----
93

query I rowsort
SELECT + ( 96 ) AS col1
----
96

query I rowsort
SELECT ( NULLIF ( + 90, AVG ( ALL + + 69 ) ) ) AS col2
----
90

query I rowsort
SELECT ALL + 54 * - 2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL + MAX( - + 69 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL + MAX ( - + 69 ) AS col0
----
-69

query I rowsort
SELECT - - ( 54 ) AS col2
----
54

query I rowsort
SELECT ALL 58 * - + 8 col1
----
-464

query I rowsort
SELECT ALL - - 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL + 17 * + MAX( + 87 ) AS col2
----
1479

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL + 17 * + MAX ( + 87 ) AS col2
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT SUM( ALL 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3121
SELECT SUM ( ALL 96 ) AS col2
----
96

query I rowsort
SELECT 70 + + 44
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-3123
SELECT 9 DIV + + 20 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3123
SELECT 9 / + + 20 AS col2
----
0

query I rowsort
SELECT ALL - 54 col2
----
-54

query II rowsort
SELECT - + 15 AS col1, 86
----
-15
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT - CAST( + 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-3126
SELECT - CAST ( + 63 AS INTEGER ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT ALL MAX( DISTINCT + - 33 ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL MAX ( DISTINCT + - 33 ) AS col1
----
-33

query I rowsort
SELECT + + 10 AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3129
SELECT + MAX( - CAST( - 31 AS SIGNED ) )
----
31

skipif mysql # not compatible
query I rowsort label-3129
SELECT + MAX ( - CAST ( - 31 AS INTEGER ) )
----
31

query I rowsort
SELECT + 71 * 32 AS col2
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT DISTINCT ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT ( + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3132
SELECT DISTINCT COUNT( * ), 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-3132
SELECT DISTINCT COUNT ( * ), 0 AS col2
----
1
0

query I rowsort
SELECT DISTINCT + 10 + + 1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3134
SELECT + ( COUNT( * ) ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3134
SELECT + ( COUNT ( * ) ) / - COUNT ( * )
----
-1

query I rowsort
SELECT ALL - + ( - + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT - - COUNT( ALL - 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3136
SELECT - - COUNT ( ALL - 10 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 41 * + + 90 AS col0
----
3690

onlyif mysql # aggregate syntax: 
query I rowsort label-3138
SELECT 73 - - COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-3138
SELECT 73 - - COUNT ( * ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT COUNT( DISTINCT - + 32 ) + 66
----
67

skipif mysql # not compatible
query I rowsort label-3139
SELECT COUNT ( DISTINCT - + 32 ) + 66
----
67

query I rowsort
SELECT ALL - - ( 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3141
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3142
SELECT + COUNT( * ) DIV + + 22 + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3142
SELECT + COUNT ( * ) / + + 22 + COUNT ( * ) col2
----
1

query I rowsort
SELECT ALL - - 11 col2
----
11

query I rowsort
SELECT ALL + 29 + 81
----
110

query I rowsort
SELECT DISTINCT - + 29 AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT DISTINCT - 92 + - CAST( - 60 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT - 92 + - CAST ( - 60 AS INTEGER )
----
-32

query I rowsort
SELECT DISTINCT + + 89
----
89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3148
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT + - SUM( ALL - + ( - + 50 ) ) + - 82
----
-132

skipif mysql # not compatible
query I rowsort label-3149
SELECT + - SUM ( ALL - + ( - + 50 ) ) + - 82
----
-132

query I rowsort
SELECT ALL + + 62 col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT + CAST( - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-3151
SELECT + CAST ( - 18 AS INTEGER )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3152
SELECT ALL MIN( + + 24 ) DIV - 16 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL MIN ( + + 24 ) / - 16 col1
----
-1

query I rowsort
SELECT 53 - + 58 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT 1 + - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3154
SELECT 1 + - + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3155
SELECT ALL - - MAX( 75 ) AS col1, COUNT( * ) AS col1
----
75
1

skipif mysql # not compatible
query II rowsort label-3155
SELECT ALL - - MAX ( 75 ) AS col1, COUNT ( * ) AS col1
----
75
1

query II rowsort
SELECT + 8, 78 AS col1
----
8
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT ALL - COUNT( * ) * - 20 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - COUNT ( * ) * - 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT - COUNT( * ) + + 91 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3158
SELECT - COUNT ( * ) + + 91 AS col1
----
90

query II rowsort
SELECT + - 77 AS col2, 7 col1
----
-77
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3160
SELECT ALL + - 32 * - 14 - CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL + - 32 * - 14 - CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

query I rowsort
SELECT 34 * - ( + + 15 ) AS col0
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT + COUNT( * ) * + + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3162
SELECT + COUNT ( * ) * + + 60 AS col2
----
60

query I rowsort
SELECT + - 87 - - 50
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL COUNT( * ) * + 40
----
40

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL COUNT ( * ) * + 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT - 58 - + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-3165
SELECT - 58 - + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - MIN( + ( 72 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-3166
SELECT - MIN ( + ( 72 ) )
----
-72

query I rowsort
SELECT ALL + 35 col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL + ( + MIN( 12 ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL + ( + MIN ( 12 ) ) AS col2
----
12

query I rowsort
SELECT - + 2 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL MIN( ALL 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL MIN ( ALL 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ALL + ( - - ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL + ( - - ( + COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3172
SELECT - COUNT( ALL + - 15 ) DIV + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3172
SELECT - COUNT ( ALL + - 15 ) / + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT CAST( NULL AS SIGNED ) * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT CAST ( NULL AS INTEGER ) * 63
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT ALL ( - - CAST( - + 12 AS SIGNED ) ) + - CAST( + - COUNT( DISTINCT - 65 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL ( - - CAST ( - + 12 AS INTEGER ) ) + - CAST ( + - COUNT ( DISTINCT - 65 ) AS INTEGER )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3175
SELECT ALL - CAST( NULL AS SIGNED ), 9 col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3175
SELECT ALL - CAST ( NULL AS INTEGER ), 9 col1
----
NULL
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT - - COUNT( * ) * + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT - - COUNT ( * ) * + COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3177
SELECT DISTINCT COUNT( * ) AS col1, - ( CAST( COUNT( * ) AS SIGNED ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-3177
SELECT DISTINCT COUNT ( * ) AS col1, - ( CAST ( COUNT ( * ) AS INTEGER ) )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT COUNT( * ) + - + ( + ( COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3178
SELECT COUNT ( * ) + - + ( + ( COUNT ( * ) ) )
----
0

query I rowsort
SELECT ALL - 16 * - 86
----
1376

onlyif mysql # aggregate syntax: 
query II rowsort label-3180
SELECT DISTINCT 86 * COUNT( * ) AS col1, 96 AS col1
----
86
96

skipif mysql # not compatible
query II rowsort label-3180
SELECT DISTINCT 86 * COUNT ( * ) AS col1, 96 AS col1
----
86
96

query I rowsort
SELECT - - 57 AS col2
----
57

query I rowsort
SELECT - - 33 + - 44
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT - COUNT( * ) * - 64
----
64

skipif mysql # not compatible
query I rowsort label-3183
SELECT - COUNT ( * ) * - 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL + + SUM( ALL 7 )
----
7

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL + + SUM ( ALL 7 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT ALL 77 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL 77 / + 91
----
0

query I rowsort
SELECT - - 2 col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT DISTINCT CAST( 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT CAST ( 55 AS INTEGER )
----
55

query I rowsort
SELECT ALL + 49 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL + - MIN( 3 ) * 84 AS col1
----
-252

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + - MIN ( 3 ) * 84 AS col1
----
-252

query I rowsort
SELECT ALL + - 88 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL + + MIN( ALL 83 ) * + + 47
----
3901

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL + + MIN ( ALL 83 ) * + + 47
----
3901

query I rowsort
SELECT + - 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT 37 * - + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-3193
SELECT 37 * - + COUNT ( * )
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3194
SELECT ALL - ( + + COUNT( * ) ) DIV - - ( - 38 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL - ( + + COUNT ( * ) ) / - - ( - 38 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL - SUM( DISTINCT 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - SUM ( DISTINCT 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL COUNT( DISTINCT 79 )
----
1

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL COUNT ( DISTINCT 79 )
----
1

query I rowsort
SELECT 33 - + 24 * 1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT 72 * COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-3198
SELECT 72 * COUNT ( * )
----
72

query I rowsort
SELECT + + 85 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL + SUM( + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + SUM ( + 20 )
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT - ( + 96 ) DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-3201
SELECT - ( + 96 ) / 56
----
-1

query I rowsort
SELECT ALL + 98 col1
----
98

query I rowsort
SELECT ALL ( - 15 )
----
-15

query I rowsort
SELECT - ( 10 ) AS col1
----
-10

query I rowsort
SELECT ALL - 32 + - 58 col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT - ( - 53 ) * + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-3206
SELECT - ( - 53 ) * + COUNT ( * )
----
53

query I rowsort
SELECT ALL 23 col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT - + MAX( 52 ) * - 73 AS col1
----
3796

skipif mysql # not compatible
query I rowsort label-3208
SELECT - + MAX ( 52 ) * - 73 AS col1
----
3796

query I rowsort
SELECT ALL + 71 col2
----
71

query I rowsort
SELECT ALL + - 46 AS col2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3211
SELECT + - COUNT( * ) * - + COUNT( * ) * - CAST( NULL AS SIGNED ) + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT + - COUNT ( * ) * - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 30 AS col1
----
NULL

query I rowsort
SELECT ( - - 68 ) AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3213
SELECT ALL + + COUNT( + 16 ) * - CAST( - 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + + COUNT ( + 16 ) * - CAST ( - 14 AS INTEGER ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT 40 * - 66 * - COUNT( * ) AS col1
----
2640

skipif mysql # not compatible
query I rowsort label-3214
SELECT 40 * - 66 * - COUNT ( * ) AS col1
----
2640

query II rowsort
SELECT + 82 AS col1, 88 AS col2
----
82
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3216
SELECT ALL COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3217
SELECT 86 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3217
SELECT 86 * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( - 95 )
----
-95

query I rowsort
SELECT - 45 * + - 38 AS col1
----
1710

query I rowsort
SELECT DISTINCT + ( - 3 ) AS col0
----
-3

query I rowsort
SELECT - 50 * 3
----
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3222
SELECT DISTINCT - CAST( + 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - CAST ( + 58 AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT 8, - ( + COUNT( 82 ) ) AS col1
----
8
-1

skipif mysql # not compatible
query II rowsort label-3223
SELECT 8, - ( + COUNT ( 82 ) ) AS col1
----
8
-1

query I rowsort
SELECT + 52 + - + 16 AS col2
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3225
SELECT ALL + COUNT( * ) DIV + - 28 DIV 7 col0
----
0

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + COUNT ( * ) / + - 28 / 7 col0
----
0

query II rowsort
SELECT - 50 col0, 67
----
-50
67

query I rowsort
SELECT - ( - 88 ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-3228
SELECT ALL + COUNT( - - 10 ) AS col2, - 88 col0
----
1
-88

skipif mysql # not compatible
query II rowsort label-3228
SELECT ALL + COUNT ( - - 10 ) AS col2, - 88 col0
----
1
-88

query I rowsort
SELECT DISTINCT - 79 AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT - CAST( + - 33 AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3230
SELECT - CAST ( + - 33 AS INTEGER ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT NULLIF ( COUNT( * ), - COUNT( * ) ) * 90 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-3231
SELECT NULLIF ( COUNT ( * ), - COUNT ( * ) ) * 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT COUNT( * ) + - + 57 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3232
SELECT COUNT ( * ) + - + 57 AS col0
----
-56

query II rowsort
SELECT + 8, - 7 col0
----
8
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT + COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3234
SELECT + COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT - COUNT( * ) + ( - 50 ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT - COUNT ( * ) + ( - 50 ) col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL MIN( ALL + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL MIN ( ALL + 1 )
----
1

query I rowsort
SELECT COALESCE ( - 54, + 90, ( - 80 ) )
----
-54

query I rowsort
SELECT ALL + + 67 AS col1
----
67

query I rowsort
SELECT ALL - 18 AS col0
----
-18

query I rowsort
SELECT - 52 * + + 25
----
-1300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT - CAST( 72 AS SIGNED )
----
-72

skipif mysql # not compatible
query I rowsort label-3241
SELECT - CAST ( 72 AS INTEGER )
----
-72

query I rowsort
SELECT - 44 + 11 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3243
SELECT CAST( NULL AS SIGNED ), CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3243
SELECT CAST ( NULL AS INTEGER ), CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT + SUM( + + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-3244
SELECT + SUM ( + + 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT ALL + - AVG ( DISTINCT + - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL + - AVG ( DISTINCT + - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - + 25 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ALL - + NULLIF ( 47, + COUNT( * ) ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - + NULLIF ( 47, + COUNT ( * ) ) AS col1
----
-47

query I rowsort
SELECT - - 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT + ( ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3249
SELECT + ( ( - COUNT ( * ) ) )
----
-1

query I rowsort
SELECT ALL - + ( ( - + ( + 70 ) ) ) AS col0
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3251
SELECT + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT + + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT - MAX( - + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT - MAX ( - + 41 ) AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT COALESCE ( - CAST( NULL AS SIGNED ), - 44 ) + 86
----
42

skipif mysql # not compatible
query I rowsort label-3253
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), - 44 ) + 86
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT COUNT( * ) + - SUM( + + 85 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-3254
SELECT COUNT ( * ) + - SUM ( + + 85 ) AS col1
----
-84

query I rowsort
SELECT DISTINCT + 89 * - - 87 AS col0
----
7743

query I rowsort
SELECT ALL 73 - + 91 AS col1
----
-18

query II rowsort
SELECT ALL + 70 AS col0, 13
----
70
13

query I rowsort
SELECT ALL ( + - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3259
SELECT - 67 * COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-3259
SELECT - 67 * COUNT ( * )
----
-67

query I rowsort
SELECT + - 80 * + 82 col0
----
-6560

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT SUM( DISTINCT 28 )
----
28

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT SUM ( DISTINCT 28 )
----
28

query I rowsort
SELECT + + 18 * 62
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT - COUNT( * ) - + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3263
SELECT - COUNT ( * ) - + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3264
SELECT DISTINCT + 51 + + MAX( ALL + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT + 51 + + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - - 84 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT ALL - + 93 + - + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - + 93 + - + COUNT ( * )
----
-94

query I rowsort
SELECT DISTINCT - + 69 AS col0
----
-69

query I rowsort
SELECT 12 * 43 AS col0
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - COUNT( ALL - 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-3269
SELECT - COUNT ( ALL - 21 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL - + COUNT( * ) * - - 40
----
-40

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL - + COUNT ( * ) * - - 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT ALL 49 * + ( - COUNT( * ) )
----
-49

skipif mysql # not compatible
query I rowsort label-3271
SELECT ALL 49 * + ( - COUNT ( * ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT COUNT( * ) + + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3272
SELECT COUNT ( * ) + + + COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3273
SELECT DISTINCT - CAST( 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT - CAST ( 5 AS INTEGER )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3274
SELECT 50 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT 50 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT + + COUNT( * ) * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-3275
SELECT + + COUNT ( * ) * - 3
----
-3

query I rowsort
SELECT 59 col2
----
59

query I rowsort
SELECT ( - + 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT MAX( DISTINCT - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-3278
SELECT MAX ( DISTINCT - 34 )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3279
SELECT ALL 81 AS col2, + COUNT( * ) DIV + 1 - + - 70
----
81
71

skipif mysql # not compatible
query II rowsort label-3279
SELECT ALL 81 AS col2, + COUNT ( * ) / + 1 - + - 70
----
81
71

query I rowsort
SELECT - + ( 66 ) AS col2
----
-66

query I rowsort
SELECT 79 * + - 55 AS col0
----
-4345

query I rowsort
SELECT + + ( + 99 ) AS col2
----
99

query I rowsort
SELECT DISTINCT - 83 col2
----
-83

query I rowsort
SELECT ALL - - 27 AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3285
SELECT DISTINCT + + COUNT( * ) DIV - 6
----
0

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + + COUNT ( * ) / - 6
----
0

query I rowsort
SELECT - 80 + 18
----
-62

query I rowsort
SELECT - 8 + + 91 AS col0
----
83

query I rowsort
SELECT DISTINCT + ( - - 59 )
----
59

query I rowsort
SELECT DISTINCT + 55 AS col2
----
55

query I rowsort
SELECT + + 72 - 35 AS col0
----
37

query I rowsort
SELECT + 77 * - 90 AS col2
----
-6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT - - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT - - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 58 * + 53 AS col0
----
-3074

query I rowsort
SELECT DISTINCT + ( - 27 ) AS col2
----
-27

query I rowsort
SELECT - 65 * - 38 col0
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT - - 91 * - COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3296
SELECT - - 91 * - COUNT ( * ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT ALL + + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL + + ( + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT ( 84 ) * - ( CAST( + - COUNT( * ) AS SIGNED ) ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3298
SELECT ( 84 ) * - ( CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col1
----
84

query I rowsort
SELECT ALL 15 * - 8 AS col0
----
-120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3300
SELECT DISTINCT - 13 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT DISTINCT - 13 - - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 61, 45 col2
----
61
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT - 83 DIV NULLIF ( + 70, + 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-3302
SELECT - 83 / NULLIF ( + 70, + 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT + + ( + MAX( DISTINCT + 31 ) )
----
31

skipif mysql # not compatible
query I rowsort label-3303
SELECT + + ( + MAX ( DISTINCT + 31 ) )
----
31

query I rowsort
SELECT + 92 + 46
----
138

query I rowsort
SELECT DISTINCT - 6 * - 19 + 43 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - + COALESCE ( COALESCE ( + 1, - COUNT( * ) - - 56 ), 82 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3306
SELECT - + COALESCE ( COALESCE ( + 1, - COUNT ( * ) - - 56 ), 82 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT - - 88 - + CAST( 61 AS SIGNED ) col1
----
27

skipif mysql # not compatible
query I rowsort label-3307
SELECT - - 88 - + CAST ( 61 AS INTEGER ) col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT - ( CAST( - 14 AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-3308
SELECT - ( CAST ( - 14 AS INTEGER ) )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + ( + 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT ALL CAST( 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL CAST ( 45 AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL + COUNT( * ) * - 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + COUNT ( * ) * - 28 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3313
SELECT COUNT( * ) + CAST( + COUNT( * ) AS SIGNED ) - - 86 + - - MIN( 40 )
----
128

skipif mysql # not compatible
query I rowsort label-3313
SELECT COUNT ( * ) + CAST ( + COUNT ( * ) AS INTEGER ) - - 86 + - - MIN ( 40 )
----
128

query I rowsort
SELECT DISTINCT + 73 * - 62 + - 92 AS col2
----
-4618

query I rowsort
SELECT ( 72 ) AS col0
----
72

query I rowsort
SELECT ( + - 76 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT ALL + CAST( 76 AS SIGNED ) col2
----
76

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL + CAST ( 76 AS INTEGER ) col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT + MIN( - + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-3318
SELECT + MIN ( - + 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT + MIN( ALL + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-3319
SELECT + MIN ( ALL + 87 )
----
87

query I rowsort
SELECT + 71 col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT + ( 86 ) * - + ( + 1 ) + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-3321
SELECT + ( 86 ) * - + ( + 1 ) + COUNT ( * )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT - SUM( DISTINCT 78 ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-3322
SELECT - SUM ( DISTINCT 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT + COUNT( * ) - 55 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3323
SELECT + COUNT ( * ) - 55 AS col1
----
-54

query I rowsort
SELECT - ( + - 98 ) AS col1
----
98

query I rowsort
SELECT ALL + 78 + + 95 AS col0
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3326
SELECT ALL SUM( DISTINCT - + CAST( + 44 AS SIGNED ) )
----
-44

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL SUM ( DISTINCT - + CAST ( + 44 AS INTEGER ) )
----
-44

query I rowsort
SELECT DISTINCT - + 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT DISTINCT - COUNT( * ) * + 51 - + - 23 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT - COUNT ( * ) * + 51 - + - 23 AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3329
SELECT 20 / + - CAST( NULL AS DECIMAL ) + COUNT( * ) / 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT 20 / + - CAST ( NULL AS REAL ) + COUNT ( * ) / 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT COUNT( * ) * + + 27
----
27

skipif mysql # not compatible
query I rowsort label-3330
SELECT COUNT ( * ) * + + 27
----
27

query I rowsort
SELECT + + 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT DISTINCT - + ( COUNT( * ) ) - 31
----
-32

skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT - + ( COUNT ( * ) ) - 31
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT DISTINCT SUM( DISTINCT - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT SUM ( DISTINCT - 49 ) AS col2
----
-49

query I rowsort
SELECT - 20 + - + ( - 9 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT - COUNT( * ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3335
SELECT - COUNT ( * ) * - - COUNT ( * )
----
-1

query I rowsort
SELECT + 97 * + + ( 77 ) AS col2
----
7469

query II rowsort
SELECT DISTINCT ( - 8 ) col1, 18
----
-8
18

query I rowsort
SELECT DISTINCT + ( + + 88 ) AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3339
SELECT DISTINCT COUNT( ALL - + CAST( NULL AS SIGNED ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT 38 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-3340
SELECT 38 / 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT ALL - - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
0

query II rowsort
SELECT 42 col2, + 22
----
42
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT 67 * - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3343
SELECT 67 * - - COUNT ( * )
----
67

query I rowsort
SELECT - ( + 98 ) AS col2
----
-98

query I rowsort
SELECT ALL - - 66 AS col0
----
66

query I rowsort
SELECT - 40 * + - 76
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL - 77 * CASE - + 95 WHEN + 9 THEN COUNT( * ) END + + 75 * + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL - 77 * CASE - + 95 WHEN + 9 THEN COUNT ( * ) END + + 75 * + - 74
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3348
SELECT ALL + 83 col2, - CAST( NULL AS DECIMAL )
----
83
NULL

skipif mysql # not compatible
query II rowsort label-3348
SELECT ALL + 83 col2, - CAST ( NULL AS REAL )
----
83
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3349
SELECT + + CAST( NULL AS SIGNED ) + + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT + + CAST ( NULL AS INTEGER ) + + - 22
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3350
SELECT DISTINCT + COUNT( * ) DIV - - 95 + + 54 col2
----
54

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT + COUNT ( * ) / - - 95 + + 54 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT COUNT( * ) * + + 16 + - COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-3351
SELECT COUNT ( * ) * + + 16 + - COUNT ( * ) col0
----
15

query I rowsort
SELECT + ( + + 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT ALL 83 * COUNT( * ) + - COUNT( * ) * + - 29
----
112

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL 83 * COUNT ( * ) + - COUNT ( * ) * + - 29
----
112

query I rowsort
SELECT - ( 48 ) * 35
----
-1680

query I rowsort
SELECT + 91 - - - 62 col1
----
29

query I rowsort
SELECT 56 + - 66 AS col2
----
-10

query I rowsort
SELECT DISTINCT - 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - - ( + ( ( SUM( - + 44 ) ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-3358
SELECT - - ( + ( ( SUM ( - + 44 ) ) ) )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT ALL - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - ( - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL - 58 col1
----
-58

query I rowsort
SELECT - - 48 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - 63 + - COUNT( * ) + - + 92
----
-156

skipif mysql # not compatible
query I rowsort label-3364
SELECT - 63 + - COUNT ( * ) + - + 92
----
-156

query I rowsort
SELECT ALL + ( 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT - COUNT( * ) * - 43
----
43

skipif mysql # not compatible
query I rowsort label-3366
SELECT - COUNT ( * ) * - 43
----
43

query I rowsort
SELECT + 4 col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT + COUNT( * ) + 6 AS col2
----
7

skipif mysql # not compatible
query I rowsort label-3368
SELECT + COUNT ( * ) + 6 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3369
SELECT DISTINCT 79 DIV + + 8
----
9

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT 79 / + + 8
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT DISTINCT + MAX( 67 )
----
67

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT + MAX ( 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT - + COUNT( DISTINCT - - 37 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - + COUNT ( DISTINCT - - 37 ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT + 22 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT + 22 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 80 col1
----
-80

query I rowsort
SELECT ALL + 62 col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3375
SELECT ALL - COUNT( ALL + 27 ) DIV + 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - COUNT ( ALL + 27 ) / + 75 AS col2
----
0

query I rowsort
SELECT ALL - ( 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL - 49 + + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL - 49 + + COUNT ( * ) AS col2
----
-48

query II rowsort
SELECT 82 + - + 4 AS col1, 3
----
78
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT DISTINCT - 31 + - + CAST( NULL AS SIGNED ) + - + AVG ( DISTINCT - + 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT - 31 + - + CAST ( NULL AS INTEGER ) + - + AVG ( DISTINCT - + 15 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT COUNT( * ) + + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3380
SELECT COUNT ( * ) + + 95 AS col1
----
96

query I rowsort
SELECT DISTINCT - 42 * 63 AS col1
----
-2646

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT + + MAX( ALL + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT + + MAX ( ALL + 73 )
----
73

query I rowsort
SELECT DISTINCT + ( 76 )
----
76

query I rowsort
SELECT ALL + + 40 col1
----
40

query I rowsort
SELECT + 60 * + 80 AS col2
----
4800

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT COUNT( * ) col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3386
SELECT COUNT ( * ) col1, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL - 27 * MIN( 91 ) AS col2
----
-2457

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - 27 * MIN ( 91 ) AS col2
----
-2457

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL MIN( DISTINCT + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL MIN ( DISTINCT + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT ALL MIN( 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-3389
SELECT ALL MIN ( 55 ) AS col1
----
55

query I rowsort
SELECT ALL + + 72
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3391
SELECT + NULLIF ( - COUNT( * ), - - COUNT( * ) * COUNT( * ) ) col2, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-3391
SELECT + NULLIF ( - COUNT ( * ), - - COUNT ( * ) * COUNT ( * ) ) col2, COUNT ( * ) AS col2
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT ALL - 54 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL - 54 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( - 74 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3394
SELECT COUNT( * ) * - 59 DIV - - 2
----
-29

skipif mysql # not compatible
query I rowsort label-3394
SELECT COUNT ( * ) * - 59 / - - 2
----
-29

query I rowsort
SELECT ALL - - ( ( + 13 ) ) AS col1
----
13

query I rowsort
SELECT - 64 + 13 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 75 * + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3397
SELECT 75 * + COUNT ( * )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + SUM( - - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-3398
SELECT + SUM ( - - 37 )
----
37

query I rowsort
SELECT 95 + - 89
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL + 96 * + - COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + 96 * + - COUNT ( * ) AS col0
----
-96

query II rowsort
SELECT ALL + 55 AS col0, - 56
----
55
-56

query I rowsort
SELECT ( + - 83 ) AS col0
----
-83

query I rowsort
SELECT DISTINCT + 42 col0
----
42

query I rowsort
SELECT - + 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT - 23 * COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT - 23 * COUNT ( * )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT ALL CAST( - AVG ( DISTINCT + NULLIF ( 52, - 0 ) ) AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL CAST ( - AVG ( DISTINCT + NULLIF ( 52, - 0 ) ) AS INTEGER )
----
-52

query I rowsort
SELECT - + 95 AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3409
SELECT DISTINCT + COUNT( ALL - ( + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) + + 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT + COUNT ( ALL - ( + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) + + 96 AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3410
SELECT 16 DIV - - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3410
SELECT 16 / - - 89 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3411
SELECT ALL MIN( CAST( NULL AS SIGNED ) ) - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT 35 * - + COUNT( * ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-3412
SELECT 35 * - + COUNT ( * ) col0
----
-35

query I rowsort
SELECT DISTINCT - + 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT ALL COUNT( 0 ) DIV - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL COUNT ( 0 ) / - + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - 62 * + 26
----
-1612

query I rowsort
SELECT DISTINCT + 51 + - 88 col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT 7 DIV 27 + 4
----
4

skipif mysql # not compatible
query I rowsort label-3417
SELECT 7 / 27 + 4
----
4

query I rowsort
SELECT + ( + 0 ) + 57
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT + 16 * NULLIF ( + COUNT( * ), 16 ) + - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT + 16 * NULLIF ( + COUNT ( * ), 16 ) + - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - COUNT( ALL 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3420
SELECT - COUNT ( ALL 90 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT MAX( ALL - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-3421
SELECT MAX ( ALL - 91 ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT ALL CAST( NULL AS SIGNED ) * + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL CAST ( NULL AS INTEGER ) * + 16
----
NULL

query I rowsort
SELECT ALL 92 + ( - 79 )
----
13

query I rowsort
SELECT DISTINCT + 2 * - 21
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT ALL + CAST( - 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL + CAST ( - 0 AS INTEGER ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT + + COUNT( DISTINCT + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT + + COUNT ( DISTINCT + 0 )
----
1

query I rowsort
SELECT - 73 * 38 + 58
----
-2716

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT + MAX( DISTINCT + 13 ) col1
----
13

skipif mysql # not compatible
query I rowsort label-3428
SELECT + MAX ( DISTINCT + 13 ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT 96 + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3429
SELECT 96 + COUNT ( * ) AS col2
----
97

query I rowsort
SELECT 19 + 26 AS col1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3431
SELECT 80 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-3431
SELECT 80 / + 96
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3432
SELECT ALL CAST( NULL AS SIGNED ) * + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL CAST ( NULL AS INTEGER ) * + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT MAX( 54 ) * + 4
----
216

skipif mysql # not compatible
query I rowsort label-3433
SELECT MAX ( 54 ) * + 4
----
216

query I rowsort
SELECT + + 8 AS col0
----
8

query I rowsort
SELECT ALL - - 47 AS col0
----
47

query I rowsort
SELECT 83 * + - 29 + 51
----
-2356

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT - MAX( + 99 ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3437
SELECT - MAX ( + 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3438
SELECT ALL COUNT( * ) AS col0, SUM( + 91 ) AS col1
----
1
91

skipif mysql # not compatible
query II rowsort label-3438
SELECT ALL COUNT ( * ) AS col0, SUM ( + 91 ) AS col1
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL COUNT( DISTINCT 93 )
----
1

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL COUNT ( DISTINCT 93 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT ALL NULLIF ( + + CAST( NULL AS SIGNED ), ( 40 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL NULLIF ( + + CAST ( NULL AS INTEGER ), ( 40 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT - COUNT( DISTINCT 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-3441
SELECT - COUNT ( DISTINCT 95 )
----
-1

query II rowsort
SELECT ALL + 87 AS col0, 50
----
87
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL COUNT( * ) - - + 97 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL COUNT ( * ) - - + 97 AS col1
----
98

query I rowsort
SELECT + 44 * - + 37 AS col0
----
-1628

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT - MAX( DISTINCT - 87 ) * + 70 AS col0
----
6090

skipif mysql # not compatible
query I rowsort label-3445
SELECT - MAX ( DISTINCT - 87 ) * + 70 AS col0
----
6090

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - 90 + + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-3446
SELECT - 90 + + COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT ALL + COUNT( * ) + - - 0
----
1

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL + COUNT ( * ) + - - 0
----
1

query I rowsort
SELECT - 96 col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT DISTINCT - CAST( + CAST( + 79 AS SIGNED ) AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-3449
SELECT DISTINCT - CAST ( + CAST ( + 79 AS INTEGER ) AS INTEGER )
----
-79

query I rowsort
SELECT DISTINCT + 73 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT SUM( DISTINCT + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-3451
SELECT SUM ( DISTINCT + 44 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3452
SELECT + COUNT( * ) * - CAST( + ( + + 12 ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-3452
SELECT + COUNT ( * ) * - CAST ( + ( + + 12 ) AS INTEGER )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL MIN( 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL MIN ( 72 ) AS col2
----
72

query I rowsort
SELECT + + 24 AS col1
----
24

query I rowsort
SELECT - 83 * + 62 col0
----
-5146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3456
SELECT - COUNT( * ) DIV - COUNT( * ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-3456
SELECT - COUNT ( * ) / - COUNT ( * ) + + 19
----
20

query I rowsort
SELECT ALL + + 97 * + 30 AS col2
----
2910

query I rowsort
SELECT - - 62 AS col1
----
62

query I rowsort
SELECT ( - 11 )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3460
SELECT 0 * - 90 * + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT 0 * - 90 * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT ALL - 22 * - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-3461
SELECT ALL - 22 * - COUNT ( * )
----
22

query I rowsort
SELECT ALL - 4 * 13
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + + 89 * + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3463
SELECT + + 89 * + COUNT ( * ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT DISTINCT COUNT( * ) * + 97 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT COUNT ( * ) * + 97 AS col0
----
97

query I rowsort
SELECT + ( + 48 ) AS col0
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3466
SELECT ALL - 36 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - 36 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 74 + 85 col2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT - 65 * - + COUNT( * ) - - 36 AS col2
----
101

skipif mysql # not compatible
query I rowsort label-3468
SELECT - 65 * - + COUNT ( * ) - - 36 AS col2
----
101

query I rowsort
SELECT DISTINCT - ( - + 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT + MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-3470
SELECT + MAX ( 45 )
----
45

query I rowsort
SELECT ALL + - ( 21 ) * + 65
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT MAX( ALL - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT MAX ( ALL - 75 )
----
-75

query I rowsort
SELECT ALL - 77 * - 93
----
7161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3474
SELECT DISTINCT - COUNT( * ) DIV - + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT - COUNT ( * ) / - + 36 AS col2
----
0

query I rowsort
SELECT + 38 + + 94 AS col1
----
132

query I rowsort
SELECT ALL + - ( + + 27 ) AS col2
----
-27

query I rowsort
SELECT ALL + + 57 AS col1
----
57

query I rowsort
SELECT + - 9 - 33
----
-42

query I rowsort
SELECT - ( + 73 )
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-3480
SELECT ALL + - 55 DIV + 45 AS col2, - 99
----
-1
-99

skipif mysql # not compatible
query II rowsort label-3480
SELECT ALL + - 55 / + 45 AS col2, - 99
----
-1
-99

query I rowsort
SELECT DISTINCT + + 90 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT COUNT( * ) * 18
----
18

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT COUNT ( * ) * 18
----
18

query I rowsort
SELECT 29 - - - 48
----
-19

query I rowsort
SELECT DISTINCT 30 + + - 60 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT DISTINCT COUNT( * ) * + - ( + 94 ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT COUNT ( * ) * + - ( + 94 ) AS col1
----
-94

query I rowsort
SELECT 75 * - 21
----
-1575

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT 29 * - COUNT( * ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-3487
SELECT 29 * - COUNT ( * ) AS col0
----
-29

query I rowsort
SELECT 95 + + 51
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT + COUNT( DISTINCT - + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3489
SELECT + COUNT ( DISTINCT - + 39 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + ( + 48 ) AS col2
----
48

query I rowsort
SELECT ALL - 86 + 92 AS col2
----
6

query I rowsort
SELECT 86 * 16 + + 52
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT - COUNT( * ) + + 9 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-3493
SELECT - COUNT ( * ) + + 9 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT DISTINCT COUNT( 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT COUNT ( 74 ) AS col1
----
1

query I rowsort
SELECT + ( + 32 ) + + 46 AS col1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3496
SELECT ALL + 85 DIV + + 13 + - 71 * - + 86 * 64
----
390790

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL + 85 / + + 13 + - 71 * - + 86 * 64
----
390790

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT DISTINCT + COALESCE ( + + 77, 76, + 77, COUNT( * ) )
----
77

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT + COALESCE ( + + 77, 76, + 77, COUNT ( * ) )
----
77

query I rowsort
SELECT ALL ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL SUM( 31 )
----
31

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL SUM ( 31 )
----
31

query I rowsort
SELECT DISTINCT 7 * 55 AS col0
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL - COUNT( DISTINCT + - 35 ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - COUNT ( DISTINCT + - 35 ) * - COUNT ( * )
----
1

query I rowsort
SELECT - 0 * + ( + 65 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT ALL CAST( + 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL CAST ( + 16 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT + COUNT( * ) * + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3504
SELECT + COUNT ( * ) * + 54 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL + CAST( NULL AS SIGNED ) + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL + CAST ( NULL AS INTEGER ) + 40 AS col2
----
NULL

query I rowsort
SELECT + + 76 AS col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT + 32 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT + 32 / + 58
----
0

query II rowsort
SELECT - 67, + 92 AS col2
----
-67
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT COUNT( * ) * + 74
----
74

skipif mysql # not compatible
query I rowsort label-3509
SELECT COUNT ( * ) * + 74
----
74

query I rowsort
SELECT - + 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-3511
SELECT + 11 AS col0, + 5 * SUM( 26 )
----
11
130

skipif mysql # not compatible
query II rowsort label-3511
SELECT + 11 AS col0, + 5 * SUM ( 26 )
----
11
130

onlyif mysql # aggregate syntax: 
query II rowsort label-3512
SELECT 48 AS col2, COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-3512
SELECT 48 AS col2, COUNT ( * ) AS col0
----
48
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT ALL COUNT( 35 ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL COUNT ( 35 ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3514
SELECT + COUNT( * ) * CAST( + 31 AS SIGNED ) - + 93 col0, - CAST( NULL AS SIGNED ) * - 67 AS col2
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-3514
SELECT + COUNT ( * ) * CAST ( + 31 AS INTEGER ) - + 93 col0, - CAST ( NULL AS INTEGER ) * - 67 AS col2
----
-62
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3515
SELECT + - COUNT( * ) DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-3515
SELECT + - COUNT ( * ) / + 63
----
0

query I rowsort
SELECT ( - ( + 12 ) )
----
-12

query I rowsort
SELECT - + 31 + - ( - 68 ) AS col2
----
37

query I rowsort
SELECT DISTINCT + - 59
----
-59

query I rowsort
SELECT ALL + 97 col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3520
SELECT - 46 * + CAST( NULL AS DECIMAL ) - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3520
SELECT - 46 * + CAST ( NULL AS REAL ) - - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT - COUNT( * ) * 69 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-3521
SELECT - COUNT ( * ) * 69 AS col0
----
-69

query I rowsort
SELECT ALL + 22 col2
----
22

query I rowsort
SELECT NULLIF ( + ( 86 ), - 94 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL + MAX( - - ( - 80 ) ) * + 33
----
-2640

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + MAX ( - - ( - 80 ) ) * + 33
----
-2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT ALL - CAST( NULL AS SIGNED ) - + + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL - CAST ( NULL AS INTEGER ) - + + 1 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 88 * 9
----
792

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3527
SELECT DISTINCT ( + - CAST( NULL AS DECIMAL ) ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT ( + - CAST ( NULL AS REAL ) ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3528
SELECT ALL SUM( 99 ) / + COUNT( * ) + CAST( NULL AS DECIMAL ) - + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL SUM ( 99 ) / + COUNT ( * ) + CAST ( NULL AS REAL ) - + 64 AS col2
----
NULL

query I rowsort
SELECT ALL 42 + - - 84
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT + 49 * + COUNT( * ) col1
----
49

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT + 49 * + COUNT ( * ) col1
----
49

query I rowsort
SELECT DISTINCT + ( + - 56 ) AS col2
----
-56

query II rowsort
SELECT - 96 AS col0, + 5
----
-96
5

query I rowsort
SELECT DISTINCT - 38 col2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3534
SELECT 67 + + 15 DIV COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3534
SELECT 67 + + 15 / COUNT ( * ) AS col1
----
82

query I rowsort
SELECT + + ( - 68 ) AS col2
----
-68

query I rowsort
SELECT + 97 * + ( + 43 )
----
4171

query I rowsort
SELECT 5 + - 39
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 91 AS col0
----
-91

query III rowsort
SELECT DISTINCT + 93 * 70 col1, + 61 AS col2, 82 AS col0
----
6510
61
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT - COUNT( * ) * - + COUNT( * ) * - COALESCE ( - 62, + 72 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-3541
SELECT - COUNT ( * ) * - + COUNT ( * ) * - COALESCE ( - 62, + 72 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT NULLIF ( 49, - COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-3542
SELECT NULLIF ( 49, - COUNT ( * ) )
----
49

query I rowsort
SELECT DISTINCT + 63 AS col1
----
63

query I rowsort
SELECT + + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3545
SELECT ALL 37 + + 11 AS col2, - COUNT( * ) AS col2
----
48
-1

skipif mysql # not compatible
query II rowsort label-3545
SELECT ALL 37 + + 11 AS col2, - COUNT ( * ) AS col2
----
48
-1

query I rowsort
SELECT - - 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL - 6 + - + 8
----
-14

query I rowsort
SELECT - ( - 99 ) AS col0
----
99

query I rowsort
SELECT - 12 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT DISTINCT + - MAX( - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT + - MAX ( - 6 ) AS col1
----
6

query I rowsort
SELECT DISTINCT + 79 AS col0
----
79

query I rowsort
SELECT + - 20 AS col1
----
-20

query I rowsort
SELECT + 9 * 24
----
216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3555
SELECT + - CASE - CAST( NULL AS DECIMAL ) WHEN AVG ( DISTINCT + + 56 ) THEN - + 41 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT + - CASE - CAST ( NULL AS REAL ) WHEN AVG ( DISTINCT + + 56 ) THEN - + 41 ELSE NULL END
----
NULL

query I rowsort
SELECT + - 73 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT DISTINCT - - 90 * + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - - 90 * + - COUNT ( * )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT + CAST( ( + - 88 ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-3558
SELECT + CAST ( ( + - 88 ) AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3559
SELECT DISTINCT 87 DIV + COUNT( * ) + 44 AS col0
----
131

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT 87 / + COUNT ( * ) + 44 AS col0
----
131

query I rowsort
SELECT - 89 * + 53 AS col2
----
-4717

query I rowsort
SELECT - 6 + - 78
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3562
SELECT - COUNT( * ) AS col2, + 65
----
-1
65

skipif mysql # not compatible
query II rowsort label-3562
SELECT - COUNT ( * ) AS col2, + 65
----
-1
65

query I rowsort
SELECT - ( 18 ) * - 80 AS col1
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT DISTINCT COUNT( * ) * + - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT COUNT ( * ) * + - 60 AS col1
----
-60

query I rowsort
SELECT ALL + 22 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT + - SUM( - 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3566
SELECT + - SUM ( - 78 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT COUNT( * ) + + + 96
----
97

skipif mysql # not compatible
query I rowsort label-3568
SELECT COUNT ( * ) + + + 96
----
97

query I rowsort
SELECT + 91 * - - 39
----
3549

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3570
SELECT MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3570
SELECT MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ( + 51 ) * + + ( + SUM( + - ( 59 ) ) ) - 54
----
-3063

skipif mysql # not compatible
query I rowsort label-3571
SELECT ( + 51 ) * + + ( + SUM ( + - ( 59 ) ) ) - 54
----
-3063

query I rowsort
SELECT + ( + 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT DISTINCT + + COUNT( * ) * - 10
----
-10

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT + + COUNT ( * ) * - 10
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3574
SELECT - CAST( 56 AS SIGNED ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-3574
SELECT - CAST ( 56 AS INTEGER ) col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3575
SELECT ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3576
SELECT + + CAST( NULL AS SIGNED ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT + + CAST ( NULL AS INTEGER ) - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT - CAST( + 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-3577
SELECT - CAST ( + 34 AS INTEGER )
----
-34

query I rowsort
SELECT - 30 + - 4
----
-34

query I rowsort
SELECT 12 * + 27
----
324

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - MIN( + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3580
SELECT - MIN ( + 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT - CASE - 72 WHEN - COUNT( * ) THEN - 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT - CASE - 72 WHEN - COUNT ( * ) THEN - 98 END AS col0
----
NULL

query I rowsort
SELECT 68 - - 67 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT 95 + 46 * + + ( + COUNT( * ) )
----
141

skipif mysql # not compatible
query I rowsort label-3583
SELECT 95 + 46 * + + ( + COUNT ( * ) )
----
141

query I rowsort
SELECT 14 + + - 51
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT + ( CAST( + + 58 AS SIGNED ) )
----
58

skipif mysql # not compatible
query I rowsort label-3585
SELECT + ( CAST ( + + 58 AS INTEGER ) )
----
58

query I rowsort
SELECT DISTINCT - - 9
----
9

query I rowsort
SELECT - - 6 AS col0
----
6

query I rowsort
SELECT 14 * 31
----
434

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT ALL COUNT( * ) AS col0, - 41
----
1
-41

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL COUNT ( * ) AS col0, - 41
----
1
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3590
SELECT ALL - CAST( NULL AS DECIMAL ) * + 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL - CAST ( NULL AS REAL ) * + 91 col2
----
NULL

query I rowsort
SELECT + 67 * 23
----
1541

query I rowsort
SELECT ALL + ( 30 ) AS col1
----
30

query I rowsort
SELECT - ( - 65 )
----
65

query I rowsort
SELECT + - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT - - ( + 57 ) * - MIN( DISTINCT 17 ) AS col2
----
-969

skipif mysql # not compatible
query I rowsort label-3595
SELECT - - ( + 57 ) * - MIN ( DISTINCT 17 ) AS col2
----
-969

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT DISTINCT - - ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3596
SELECT DISTINCT - - ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT + + 66, COUNT( * ) AS col2
----
66
1

skipif mysql # not compatible
query II rowsort label-3597
SELECT + + 66, COUNT ( * ) AS col2
----
66
1

query I rowsort
SELECT 58 * - + 13
----
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL - ( - - COUNT( DISTINCT + - 8 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL - ( - - COUNT ( DISTINCT + - 8 ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL - 39 * + COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - 39 * + COUNT ( * ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT DISTINCT - ( COUNT( * ) ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT - ( COUNT ( * ) ) + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3602
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3602
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1

query II rowsort
SELECT ALL - + 37 AS col1, 2
----
-37
2

query I rowsort
SELECT + - 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL COUNT( ALL 50 )
----
1

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL COUNT ( ALL 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT - 95 * - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-3606
SELECT - 95 * - COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT DISTINCT COUNT( ALL - + ( + 97 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3607
SELECT DISTINCT COUNT ( ALL - + ( + 97 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3608
SELECT + + MAX( + + 83 ), - 47 AS col0
----
83
-47

skipif mysql # not compatible
query II rowsort label-3608
SELECT + + MAX ( + + 83 ), - 47 AS col0
----
83
-47

query I rowsort
SELECT + 50 * - 33
----
-1650

query I rowsort
SELECT ALL + - 24 AS col0
----
-24

query I rowsort
SELECT DISTINCT - 43 * - 28
----
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL ( + MIN( + - 24 ) ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL ( + MIN ( + - 24 ) ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL + + 24 + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + + 24 + + COUNT ( * )
----
25

query I rowsort
SELECT ALL - 51 * 26 AS col0
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT DISTINCT + 60 + + - 61 * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT + 60 + + - 61 * + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT 1 * + - COUNT( * ) * - - ( 22 ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT 1 * + - COUNT ( * ) * - - ( 22 ) col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT 90 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3617
SELECT 90 + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT 73 * + COUNT( * ) * + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-3618
SELECT 73 * + COUNT ( * ) * + COUNT ( * )
----
73

query I rowsort
SELECT ALL + 46 * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col1, ( - 65 ) + 63 col0
----
-2
-2

skipif mysql # not compatible
query II rowsort label-3620
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col1, ( - 65 ) + 63 col0
----
-2
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3621
SELECT ALL - COUNT( * ), - 82 * + + 9 * + 16 AS col0
----
-1
-11808

skipif mysql # not compatible
query II rowsort label-3621
SELECT ALL - COUNT ( * ), - 82 * + + 9 * + 16 AS col0
----
-1
-11808

query I rowsort
SELECT DISTINCT - 51 col0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-3623
SELECT - 99, + COUNT( * ) AS col2
----
-99
1

skipif mysql # not compatible
query II rowsort label-3623
SELECT - 99, + COUNT ( * ) AS col2
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT - + COUNT( ALL + - 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-3624
SELECT - + COUNT ( ALL + - 70 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3625
SELECT ALL + 85 + - ( - 44 ), MAX( ( - + 63 ) ) * 74 * + CAST( NULL AS SIGNED ) + + 45 AS col1
----
129
NULL

skipif mysql # not compatible
query II rowsort label-3625
SELECT ALL + 85 + - ( - 44 ), MAX ( ( - + 63 ) ) * 74 * + CAST ( NULL AS INTEGER ) + + 45 AS col1
----
129
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT + 87 * - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-3626
SELECT + 87 * - COUNT ( * )
----
-87

query I rowsort
SELECT + 48 * + 48
----
2304

query I rowsort
SELECT DISTINCT + 90 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3630
SELECT + 66 AS col1, COUNT( * )
----
66
1

skipif mysql # not compatible
query II rowsort label-3630
SELECT + 66 AS col1, COUNT ( * )
----
66
1

query I rowsort
SELECT - 29 + - - 15 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3632
SELECT ALL 0 AS col2, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-3632
SELECT ALL 0 AS col2, COUNT ( * )
----
0
1

query I rowsort
SELECT - - ( + - 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT ALL 60 * - COUNT( DISTINCT + 73 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL 60 * - COUNT ( DISTINCT + 73 ) AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT CAST( 1 AS SIGNED ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3635
SELECT CAST ( 1 AS INTEGER ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3636
SELECT CAST( - + ( - CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT CAST ( - + ( - CAST ( NULL AS REAL ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT + 26 + 76 * 74 - + - COUNT( * )
----
5651

skipif mysql # not compatible
query I rowsort label-3637
SELECT + 26 + 76 * 74 - + - COUNT ( * )
----
5651

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3638
SELECT + SUM( CAST( - + 2 AS SIGNED ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3638
SELECT + SUM ( CAST ( - + 2 AS INTEGER ) ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT COUNT( * ) + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3639
SELECT COUNT ( * ) + 81 AS col1
----
82

query II rowsort
SELECT DISTINCT 37, 10 AS col0
----
37
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT 95 * 81 - + + COUNT( * ) + 26 col1
----
7720

skipif mysql # not compatible
query I rowsort label-3641
SELECT 95 * 81 - + + COUNT ( * ) + 26 col1
----
7720

query I rowsort
SELECT DISTINCT 5 + + 39
----
44

query I rowsort
SELECT - 86 col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL MAX( ALL - 70 ) col2
----
-70

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL MAX ( ALL - 70 ) col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL - COUNT( * ) + + 19 * + + 55
----
1044

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - COUNT ( * ) + + 19 * + + 55
----
1044

query I rowsort
SELECT ALL + 59 + + 85
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL + 39 + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL + 39 + COUNT ( * ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT CAST( 79 AS SIGNED ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3648
SELECT CAST ( 79 AS INTEGER ) AS col2
----
79

query I rowsort
SELECT ALL + ( - 68 )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3650
SELECT - + 40 DIV - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3650
SELECT - + 40 / - COUNT ( * )
----
40

query I rowsort
SELECT + - 72 AS col0
----
-72

query I rowsort
SELECT ALL - + 10 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT ( - COUNT( * ) ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3653
SELECT ( - COUNT ( * ) ) * - COUNT ( * )
----
1

query I rowsort
SELECT - 76 * 76
----
-5776

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL - - NULLIF ( + COUNT( * ), + 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - - NULLIF ( + COUNT ( * ), + 85 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT ( COUNT( * ) ) * - 54 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT ( COUNT ( * ) ) * - 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT COUNT( + + 8 ) * 53 + + + 78
----
131

skipif mysql # not compatible
query I rowsort label-3657
SELECT COUNT ( + + 8 ) * 53 + + + 78
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3658
SELECT COUNT( * ) - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT COUNT ( * ) - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3659
SELECT ALL - 63 DIV 2
----
-31

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - 63 / 2
----
-31

query I rowsort
SELECT DISTINCT + 89 * - 53 AS col2
----
-4717

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT + 62 * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + 62 * - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT + 35 + MIN( DISTINCT + ( + - 62 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3662
SELECT + 35 + MIN ( DISTINCT + ( + - 62 ) )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-3663
SELECT ALL - 18 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-3663
SELECT ALL - 18 / + 75
----
0

query I rowsort
SELECT + + 97 + - + 31
----
66

query I rowsort
SELECT DISTINCT 37 * 46
----
1702

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT ALL + COUNT( DISTINCT + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL + COUNT ( DISTINCT + 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT - MAX( DISTINCT + - 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3667
SELECT - MAX ( DISTINCT + - 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT COUNT( * ) * + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-3668
SELECT COUNT ( * ) * + - 21
----
-21

query I rowsort
SELECT ALL - 88 col0
----
-88

query I rowsort
SELECT 59 + 79 col2
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT - 65 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT - 65 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT - CAST( 48 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3672
SELECT - CAST ( 48 AS INTEGER ) AS col2
----
-48

query I rowsort
SELECT - 31 + - 1 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL COUNT( * ) * - 97
----
-97

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL COUNT ( * ) * - 97
----
-97

query I rowsort
SELECT ( 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + MIN( + 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + MIN ( + 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - 35 * + MIN( DISTINCT 47 ) AS col0
----
-1645

skipif mysql # not compatible
query I rowsort label-3677
SELECT - 35 * + MIN ( DISTINCT 47 ) AS col0
----
-1645

query I rowsort
SELECT ( - ( + 67 ) )
----
-67

query I rowsort
SELECT + + 35 + + + 75 AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT CAST( + 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-3680
SELECT CAST ( + 88 AS INTEGER )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT CAST( - 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-3681
SELECT CAST ( - 40 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ALL - COUNT( * ) + - 54
----
-55

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL - COUNT ( * ) + - 54
----
-55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3683
SELECT ALL ( CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL ( CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3684
SELECT 8 + 33 DIV 21 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3684
SELECT 8 + 33 / 21 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL + COUNT( * ) - 86
----
-85

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + COUNT ( * ) - 86
----
-85

query I rowsort
SELECT DISTINCT 35 col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL COUNT( DISTINCT ( - 38 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL COUNT ( DISTINCT ( - 38 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT 72 * + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-3688
SELECT 72 * + COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT + COUNT( + + 43 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3689
SELECT + COUNT ( + + 43 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT ALL + + CAST( + 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL + + CAST ( + 67 AS INTEGER )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT + + ( + + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT + + ( + + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL 41 * 50 AS col1
----
2050

query I rowsort
SELECT ALL - 23 - - 99 + - 63 * - 38
----
2470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT ALL + COUNT( * ) * - NULLIF ( CAST( NULL AS SIGNED ), + + CAST( + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL + COUNT ( * ) * - NULLIF ( CAST ( NULL AS INTEGER ), + + CAST ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3695
SELECT - ( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT - ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT + SUM( - 28 ) + 58
----
30

skipif mysql # not compatible
query I rowsort label-3696
SELECT + SUM ( - 28 ) + 58
----
30

query I rowsort
SELECT DISTINCT + 20 + - ( - - 58 ) * + 3
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT MAX( DISTINCT + + 53 ) * - + 63 AS col2
----
-3339

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT MAX ( DISTINCT + + 53 ) * - + 63 AS col2
----
-3339

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT + 19 * COUNT( * ) AS col0, + 25 AS col2
----
19
25

skipif mysql # not compatible
query II rowsort label-3699
SELECT + 19 * COUNT ( * ) AS col0, + 25 AS col2
----
19
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT MAX( DISTINCT + - 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3700
SELECT MAX ( DISTINCT + - 65 ) AS col2
----
-65

query I rowsort
SELECT ALL - + 80 AS col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3702
SELECT 62 DIV - - 66 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT 62 / - - 66 AS col0
----
0

query I rowsort
SELECT - 37 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL COUNT( * ) + + - 86
----
-85

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL COUNT ( * ) + + - 86
----
-85

query I rowsort
SELECT ALL 7 - 61 AS col2
----
-54

query I rowsort
SELECT ALL 73 * + - 80 col2
----
-5840

query I rowsort
SELECT DISTINCT - - 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT NULLIF ( - 61, - 86 * - COUNT( * ) )
----
-61

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT NULLIF ( - 61, - 86 * - COUNT ( * ) )
----
-61

query I rowsort
SELECT + 65 * 52
----
3380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3710
SELECT ALL - ( + CAST( + - AVG ( ALL - 12 ) AS SIGNED ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL - ( + CAST ( + - AVG ( ALL - 12 ) AS INTEGER ) ) AS col0
----
-12

query I rowsort
SELECT ALL + + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT COUNT( ALL + - 38 )
----
1

skipif mysql # not compatible
query I rowsort label-3712
SELECT COUNT ( ALL + - 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL NULLIF ( - COUNT( * ), - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL NULLIF ( - COUNT ( * ), - 81 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3714
SELECT - COUNT( * ) DIV 9
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT - COUNT ( * ) / 9
----
0

query I rowsort
SELECT DISTINCT ( - COALESCE ( + - 89, + 39 ) )
----
89

query I rowsort
SELECT DISTINCT 9 AS col1
----
9

query I rowsort
SELECT - 52 * + 59
----
-3068

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT + COUNT( * ) + - + 80
----
-79

skipif mysql # not compatible
query I rowsort label-3718
SELECT + COUNT ( * ) + - + 80
----
-79

query I rowsort
SELECT ALL 99 + + - 76 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT DISTINCT 47 DIV + - 39
----
-1

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT 47 / + - 39
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL - MAX( 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - MAX ( 85 ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT 5 - + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3722
SELECT 5 - + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL + 74 * - + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + 74 * - + COUNT ( * )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT CAST( + + 10 AS SIGNED ) * 97
----
970

skipif mysql # not compatible
query I rowsort label-3724
SELECT CAST ( + + 10 AS INTEGER ) * 97
----
970

onlyif mysql # aggregate syntax: 
query II rowsort label-3725
SELECT + COUNT( * ) + 16 col0, 77 col0
----
17
77

skipif mysql # not compatible
query II rowsort label-3725
SELECT + COUNT ( * ) + 16 col0, 77 col0
----
17
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3726
SELECT ALL + COUNT( * ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3726
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT ALL - 98 / 92 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL - 98 / 92 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 92 col2
----
92

query I rowsort
SELECT ALL + - 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL + COUNT( ALL + - 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL + COUNT ( ALL + - 6 ) AS col1
----
1

query I rowsort
SELECT - ( + - 16 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT + 28 * + + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT + 28 * + + COUNT ( * ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT DISTINCT CAST( + 48 AS SIGNED ) col0
----
48

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT CAST ( + 48 AS INTEGER ) col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT - COUNT( * ) - 92 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3734
SELECT - COUNT ( * ) - 92 AS col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3735
SELECT + CAST( - 93 AS SIGNED ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-3735
SELECT + CAST ( - 93 AS INTEGER ) AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3736
SELECT ALL CAST( NULL AS SIGNED ) + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL CAST ( NULL AS INTEGER ) + + 94
----
NULL

query I rowsort
SELECT DISTINCT - 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL COUNT( * ) * + COUNT( * ) * - ( 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL COUNT ( * ) * + COUNT ( * ) * - ( 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL + - 80 * - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + - 80 * - COUNT ( * ) AS col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3740
SELECT ALL + 67 + 60 + - 8 DIV - 42 AS col2, + COUNT( * ) AS col1
----
127
1

skipif mysql # not compatible
query II rowsort label-3740
SELECT ALL + 67 + 60 + - 8 / - 42 AS col2, + COUNT ( * ) AS col1
----
127
1

query I rowsort
SELECT ( - 7 ) * - 14 AS col2
----
98

query I rowsort
SELECT 15 + - + 72
----
-57

query I rowsort
SELECT + - 68 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT - COUNT( * ) * - 38 + - + ( + 28 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3744
SELECT - COUNT ( * ) * - 38 + - + ( + 28 ) AS col2
----
10

query I rowsort
SELECT DISTINCT + - 80
----
-80

query I rowsort
SELECT ALL + - 54 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT DISTINCT + + ( MIN( + ( - 44 ) ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT + + ( MIN ( + ( - 44 ) ) ) AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT + CAST( NULL AS SIGNED ) * + + 7 + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT + CAST ( NULL AS INTEGER ) * + + 7 + 95
----
NULL

query I rowsort
SELECT ALL + - COALESCE ( - 98, 99 * + 52 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT SUM( ALL - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-3750
SELECT SUM ( ALL - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT 52 - - ( + COUNT( * ) ) * 36
----
88

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT 52 - - ( + COUNT ( * ) ) * 36
----
88

query I rowsort
SELECT + 64 * - 19 col2
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL - - COUNT( * ) * 83
----
83

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL - - COUNT ( * ) * 83
----
83

query I rowsort
SELECT 8 * + + COALESCE ( - 1, + 61 * + - 27 + 38, + - 74 )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-3755
SELECT 39 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-3755
SELECT 39 / + + 95
----
0

query I rowsort
SELECT ( + 48 ) * 78
----
3744

query I rowsort
SELECT - - 28 col0
----
28

query I rowsort
SELECT ALL - - 50 AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT COUNT( * ) AS col2, 96 AS col2
----
1
96

skipif mysql # not compatible
query II rowsort label-3759
SELECT COUNT ( * ) AS col2, 96 AS col2
----
1
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT ALL - CAST( 72 AS SIGNED ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL - CAST ( 72 AS INTEGER ) AS col1
----
-72

query I rowsort
SELECT ALL - 70 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL COUNT( ALL 33 )
----
1

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL COUNT ( ALL 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - COUNT( * ) - + 49 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3763
SELECT - COUNT ( * ) - + 49 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + ( - NULLIF ( - 35, + SUM( DISTINCT 29 ) ) ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-3764
SELECT + ( - NULLIF ( - 35, + SUM ( DISTINCT 29 ) ) ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3765
SELECT NULLIF ( COUNT( * ), 47 DIV + + 44 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3765
SELECT NULLIF ( COUNT ( * ), 47 / + + 44 ) col1
----
NULL

query I rowsort
SELECT + ( 8 ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL 69 - + COUNT( * ) * + 1 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL 69 - + COUNT ( * ) * + 1 AS col1
----
68

query I rowsort
SELECT - + 71 - - 80 col0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3769
SELECT ALL 59 DIV - + COUNT( * ) col0, COUNT( * )
----
-59
1

skipif mysql # not compatible
query II rowsort label-3769
SELECT ALL 59 / - + COUNT ( * ) col0, COUNT ( * )
----
-59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL - COALESCE ( COUNT( * ), + + 68 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL - COALESCE ( COUNT ( * ), + + 68 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - ( - COALESCE ( - + 65, + 45 ) )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3772
SELECT + CAST( NULL AS SIGNED ) / + + ( - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT + CAST ( NULL AS INTEGER ) / + + ( - + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ( - 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT - COUNT( * ) + 8 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT - COUNT ( * ) + 8 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT - 6 - + - COUNT( * ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-3775
SELECT - 6 - + - COUNT ( * ) col0
----
-5

query I rowsort
SELECT NULLIF ( + - 49, 37 )
----
-49

query I rowsort
SELECT - + 84 AS col0
----
-84

query I rowsort
SELECT + 34 - - - 73 AS col1
----
-39

query I rowsort
SELECT ALL + COALESCE ( + 12, 90 * 88 * + + COALESCE ( + 56, - 89 + 3 + + 45 + + + 43 ) + + 79 ) AS col2
----
12

query I rowsort
SELECT - + 1 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL - MAX( - + 23 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - MAX ( - + 23 ) AS col1
----
23

query I rowsort
SELECT - ( + 44 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL - - 96 + - COUNT( - 13 ) + - + 43 * 45 col0
----
-1840

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - - 96 + - COUNT ( - 13 ) + - + 43 * 45 col0
----
-1840

query I rowsort
SELECT 59 * - 82
----
-4838

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT MAX( + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT MAX ( + 74 ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3786
SELECT - ( - 79 ), ( - - CAST( NULL AS SIGNED ) ) col2
----
79
NULL

skipif mysql # not compatible
query II rowsort label-3786
SELECT - ( - 79 ), ( - - CAST ( NULL AS INTEGER ) ) col2
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT ALL + ( + + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + ( + + COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT DISTINCT + + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT + + ( - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT DISTINCT MAX( DISTINCT + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT MAX ( DISTINCT + 63 )
----
63

query I rowsort
SELECT ALL - 6 * 46
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT - - COUNT( * ) * 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-3791
SELECT - - COUNT ( * ) * 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL - MAX( ALL - + 62 ) * + 3
----
186

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - MAX ( ALL - + 62 ) * + 3
----
186

query II rowsort
SELECT + 17 col0, 57 + - 8
----
17
49

query I rowsort
SELECT + - ( - 50 )
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT + ( - 58 ) DIV - - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT + ( - 58 ) / - - 63 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT ALL 28 + + + 91 DIV 6 * 21
----
343

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL 28 + + + 91 / 6 * 21
----
343

query I rowsort
SELECT ALL - 60 AS col0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3798
SELECT COUNT( * ) DIV + 26 col0
----
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT COUNT ( * ) / + 26 col0
----
0

query I rowsort
SELECT 65 * - 12
----
-780

query I rowsort
SELECT ALL - - 15 AS col2
----
15

query I rowsort
SELECT DISTINCT - + 55 AS col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3802
SELECT ( CAST( NULL AS SIGNED ) ) * - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT ( CAST ( NULL AS INTEGER ) ) * - 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3803
SELECT MIN( - 90 ) * SUM( 49 ) DIV + - COUNT( * ) * COUNT( * ) AS col0
----
4410

skipif mysql # not compatible
query I rowsort label-3803
SELECT MIN ( - 90 ) * SUM ( 49 ) / + - COUNT ( * ) * COUNT ( * ) AS col0
----
4410

query I rowsort
SELECT ALL + 13 * - + 40 AS col2
----
-520

query I rowsort
SELECT DISTINCT - - 48 AS col1
----
48

query I rowsort
SELECT DISTINCT - - 61
----
61

query I rowsort
SELECT + - ( - 64 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3808
SELECT DISTINCT - 26 DIV - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - 26 / - COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT + 29 AS col0
----
29

query I rowsort
SELECT + ( + 64 ) AS col0
----
64

query I rowsort
SELECT - 51 * 60 * + 5
----
-15300

query I rowsort
SELECT ALL 25 * 98 AS col2
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3813
SELECT ALL - COUNT( * ) + COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3813
SELECT ALL - COUNT ( * ) + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT 22 * + - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT 22 * + - COUNT ( * )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3816
SELECT COUNT( * ) + - COUNT( * ) DIV + 24 * CAST( - - 12 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3816
SELECT COUNT ( * ) + - COUNT ( * ) / + 24 * CAST ( - - 12 AS INTEGER )
----
1

query I rowsort
SELECT ALL + 11 AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT COUNT( * ) * SUM( ALL - + 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT COUNT ( * ) * SUM ( ALL - + 42 ) AS col1
----
-42

query I rowsort
SELECT DISTINCT - + 32 col1
----
-32

query I rowsort
SELECT DISTINCT - 38 + - 82 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL - 94 + COUNT( * ) * - 98 AS col0
----
-192

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - 94 + COUNT ( * ) * - 98 AS col0
----
-192

query I rowsort
SELECT - ( 51 ) col1
----
-51

query I rowsort
SELECT DISTINCT + ( + - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT + ( - MAX( 69 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + ( - MAX ( 69 ) )
----
-69

query I rowsort
SELECT + - 10 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT + + COUNT( 79 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3826
SELECT + + COUNT ( 79 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL + + MIN( 52 ) col0
----
52

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + + MIN ( 52 ) col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL + 82 - COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + 82 - COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT + + 27 + + - COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3829
SELECT + + 27 + + - COUNT ( * ) AS col0
----
26

query I rowsort
SELECT - - 52 + + - 27 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - COUNT( * ) + - 41 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3831
SELECT - COUNT ( * ) + - 41 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT + ( + + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL + ( 90 ) AS col0
----
90

query I rowsort
SELECT DISTINCT - ( 35 ) AS col1
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3835
SELECT - COUNT( DISTINCT - 65 ) - + CAST( MAX( 13 ) AS SIGNED ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-3835
SELECT - COUNT ( DISTINCT - 65 ) - + CAST ( MAX ( 13 ) AS INTEGER ) AS col1
----
-14

query I rowsort
SELECT ALL 93 * - 59
----
-5487

query I rowsort
SELECT 31 + 34
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT + + SUM( ALL + NULLIF ( - 98, + + 9 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3838
SELECT + + SUM ( ALL + NULLIF ( - 98, + + 9 ) ) AS col1
----
-98

query I rowsort
SELECT ALL - - 10 AS col1
----
10

query I rowsort
SELECT ALL - - 49 AS col0
----
49

query I rowsort
SELECT + + ( ( 10 ) ) col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT DISTINCT 1 AS col1, MIN( - 66 )
----
1
-66

skipif mysql # not compatible
query II rowsort label-3842
SELECT DISTINCT 1 AS col1, MIN ( - 66 )
----
1
-66

query I rowsort
SELECT ALL 33 + + 76 * + ( 60 )
----
4593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT CAST( - COUNT( * ) AS SIGNED ) + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT - MAX( DISTINCT + NULLIF ( 30, - + 94 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT - MAX ( DISTINCT + NULLIF ( 30, - + 94 ) )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT + CAST( NULL AS SIGNED ) / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT + CAST ( NULL AS INTEGER ) / - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT + - NULLIF ( + + CAST( NULL AS SIGNED ), + 24 * 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT + - NULLIF ( + + CAST ( NULL AS INTEGER ), + 24 * 96 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT + - CAST( - 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-3848
SELECT + - CAST ( - 10 AS INTEGER )
----
10

query I rowsort
SELECT ALL 92 - 20
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3850
SELECT ALL COUNT( * ) DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL COUNT ( * ) / + 39
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT ALL ( 55 ) AS col0, + MIN( 41 )
----
55
41

skipif mysql # not compatible
query II rowsort label-3851
SELECT ALL ( 55 ) AS col0, + MIN ( 41 )
----
55
41

query I rowsort
SELECT NULLIF ( + 53, + 90 ) AS col2
----
53

query I rowsort
SELECT DISTINCT + ( - ( - - 4 ) )
----
-4

query I rowsort
SELECT ALL ( - 24 )
----
-24

query I rowsort
SELECT ALL + 1 * 64
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT - + 64 DIV - 21
----
3

skipif mysql # not compatible
query I rowsort label-3856
SELECT - + 64 / - 21
----
3

query II rowsort
SELECT 30, + 30
----
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL + COUNT( * ) + - + 70 + + - 14 - - + 2 + + - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + COUNT ( * ) + - + 70 + + - 14 - - + 2 + + - COUNT ( * ) AS col0
----
-82

query I rowsort
SELECT ALL - 14 col0
----
-14

query I rowsort
SELECT DISTINCT 46 - 66 col0
----
-20

query I rowsort
SELECT ALL 74 * 21 * 90 AS col0
----
139860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3862
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), + 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), + 63 ) AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3863
SELECT - 15 col0, CAST( + - 32 AS SIGNED ) AS col0
----
-15
-32

skipif mysql # not compatible
query II rowsort label-3863
SELECT - 15 col0, CAST ( + - 32 AS INTEGER ) AS col0
----
-15
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-3864
SELECT + - 49 AS col0, COUNT( * ) AS col1
----
-49
1

skipif mysql # not compatible
query II rowsort label-3864
SELECT + - 49 AS col0, COUNT ( * ) AS col1
----
-49
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3865
SELECT 67 DIV - - 94
----
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT 67 / - - 94
----
0

query I rowsort
SELECT DISTINCT - 49 * - 6
----
294

query I rowsort
SELECT ALL 78 + - + 69 col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3868
SELECT DISTINCT CAST( + ( CAST( + SUM( ALL - + ( - 12 ) ) AS SIGNED ) ) AS SIGNED ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT CAST ( + ( CAST ( + SUM ( ALL - + ( - 12 ) ) AS INTEGER ) ) AS INTEGER ) AS col1
----
12

query I rowsort
SELECT - + 28 col0
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3870
SELECT + COUNT( * ) AS col2, + 25 AS col0
----
1
25

skipif mysql # not compatible
query II rowsort label-3870
SELECT + COUNT ( * ) AS col2, + 25 AS col0
----
1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT MIN( - 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-3871
SELECT MIN ( - 90 )
----
-90

query I rowsort
SELECT - + 25 AS col0
----
-25

query I rowsort
SELECT ALL - 64 * 4 AS col0
----
-256

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT + - 59 DIV 22
----
-2

skipif mysql # not compatible
query I rowsort label-3874
SELECT + - 59 / 22
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT - - COUNT( * ) * + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3875
SELECT - - COUNT ( * ) * + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL + 74 * + COUNT( + 51 )
----
74

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + 74 * + COUNT ( + 51 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT DISTINCT COUNT( - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT COUNT ( - 87 )
----
1

query I rowsort
SELECT ( ( + 46 ) ) + - + 95 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT COUNT( * ) + COUNT( * ) * + 55
----
56

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * + 55
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL - SUM( + ( 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - SUM ( + ( 56 ) )
----
-56

query I rowsort
SELECT DISTINCT - + 9 AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3882
SELECT - MIN( DISTINCT - 38 ) DIV - 69 + - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3882
SELECT - MIN ( DISTINCT - 38 ) / - 69 + - ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL + COALESCE ( - 14, - - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + COALESCE ( - 14, - - COUNT ( * ) )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3884
SELECT + CAST( + - 67 AS SIGNED ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3884
SELECT + CAST ( + - 67 AS INTEGER ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT + SUM( + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT + SUM ( + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3886
SELECT SUM( ALL + 20 ), + 43 AS col2
----
20
43

skipif mysql # not compatible
query II rowsort label-3886
SELECT SUM ( ALL + 20 ), + 43 AS col2
----
20
43

query I rowsort
SELECT ALL 51 * + 40 AS col1
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT SUM( ALL + 42 ) - 63
----
-21

skipif mysql # not compatible
query I rowsort label-3888
SELECT SUM ( ALL + 42 ) - 63
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT 16 * COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3889
SELECT 16 * COUNT ( * ) AS col2
----
16

query II rowsort
SELECT ALL - - 6, 38 AS col0
----
6
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL MIN( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL MIN ( 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT COUNT( DISTINCT + + 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3892
SELECT COUNT ( DISTINCT + + 85 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3893
SELECT ALL + COUNT( * ) AS col1, 28 + + COUNT( * )
----
1
29

skipif mysql # not compatible
query II rowsort label-3893
SELECT ALL + COUNT ( * ) AS col1, 28 + + COUNT ( * )
----
1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL MAX( + 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL MAX ( + 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT + COUNT( * ) + - + 56
----
-55

skipif mysql # not compatible
query I rowsort label-3895
SELECT + COUNT ( * ) + - + 56
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT - COUNT( * ) + - 80
----
-81

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT - COUNT ( * ) + - 80
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT + 45 * COUNT( * ) - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-3897
SELECT + 45 * COUNT ( * ) - - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT + MIN( DISTINCT 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-3898
SELECT + MIN ( DISTINCT 83 ) AS col2
----
83

query I rowsort
SELECT + ( + 7 ) AS col0
----
7

query I rowsort
SELECT ALL 29 * + 52 AS col0
----
1508

query I rowsort
SELECT ALL + 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - MIN( + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-3902
SELECT - MIN ( + 74 )
----
-74

query I rowsort
SELECT - 38 + 73 AS col0
----
35

query I rowsort
SELECT + 46 * + 33 AS col0
----
1518

query I rowsort
SELECT + 92 * + 21
----
1932

query I rowsort
SELECT 40 * - 47 AS col2
----
-1880

query I rowsort
SELECT 94 - 29
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT ALL 15 + - 28 + - 21 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL 15 + - 28 + - 21 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 77 - 82 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT COUNT( * ) + + + 68 * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-3910
SELECT COUNT ( * ) + + + 68 * - COUNT ( * )
----
-67

query I rowsort
SELECT DISTINCT NULLIF ( + 0, 80 - - 35 )
----
0

query I rowsort
SELECT 93 * - 92 * + 24 + - 37
----
-205381

query I rowsort
SELECT ALL - + 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT ALL ( - ( + 55 ) ) * COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL ( - ( + 55 ) ) * COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT COUNT( * ) + - + 85 * - - 49 AS col1
----
-4164

skipif mysql # not compatible
query I rowsort label-3915
SELECT COUNT ( * ) + - + 85 * - - 49 AS col1
----
-4164

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT DISTINCT SUM( DISTINCT 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT SUM ( DISTINCT 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - COUNT( * ) + + - 49 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-3917
SELECT - COUNT ( * ) + + - 49 AS col1
----
-50

query I rowsort
SELECT ALL + 9 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + ( + + 3 ) - - + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3919
SELECT + ( + + 3 ) - - + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3920
SELECT - COUNT( * ) * - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT - COUNT ( * ) * - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT - 49 DIV - - 16 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3921
SELECT - 49 / - - 16 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL + MIN( - 87 ) col1
----
-87

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + MIN ( - 87 ) col1
----
-87

query I rowsort
SELECT DISTINCT - ( + 28 )
----
-28

query I rowsort
SELECT - ( 7 ) AS col1
----
-7

query I rowsort
SELECT - + 94 col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3926
SELECT AVG ( DISTINCT - 12 ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3926
SELECT AVG ( DISTINCT - 12 ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 10 * - 66 AS col1
----
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3928
SELECT DISTINCT + 4 DIV + - MIN( + 99 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT + 4 / + - MIN ( + 99 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT ALL 50 * ( + COUNT( * ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL 50 * ( + COUNT ( * ) ) AS col2
----
50

query I rowsort
SELECT ALL + 21 + - 9 AS col2
----
12

query II rowsort
SELECT ALL + 73 AS col1, - 71
----
73
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3932
SELECT COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3932
SELECT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT - COUNT( * ) * + 61
----
-61

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT - COUNT ( * ) * + 61
----
-61

query I rowsort
SELECT 35 * - 40
----
-1400

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT - ( ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT - ( ( COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT COUNT( DISTINCT + - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT COUNT ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT COUNT( ALL + 49 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT COUNT ( ALL + 49 ) AS col1
----
1

query I rowsort
SELECT ALL ( + 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT + COUNT( DISTINCT - 62 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3939
SELECT + COUNT ( DISTINCT - 62 ) AS col1
----
1

query I rowsort
SELECT + - 87 AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3941
SELECT DISTINCT + CAST( + - 62 AS SIGNED ) * - - 58 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT + CAST ( + - 62 AS INTEGER ) * - - 58 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 90 col0
----
90

query I rowsort
SELECT ALL - + 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT DISTINCT COUNT( * ) + + + ( 34 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-3944
SELECT DISTINCT COUNT ( * ) + + + ( 34 ) AS col2
----
35

query I rowsort
SELECT ALL - - 50
----
50

query I rowsort
SELECT - 13 col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT ALL 90 + - 54 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL 90 + - 54 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 88 * + + 33
----
2904

query I rowsort
SELECT DISTINCT - 2 * - 40 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3950
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + 97 * - + ( - 1 )
----
NULL
97

skipif mysql # not compatible
query II rowsort label-3950
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + 97 * - + ( - 1 )
----
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - SUM( ALL - 97 ) + ( 8 ) col2
----
105

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - SUM ( ALL - 97 ) + ( 8 ) col2
----
105

query I rowsort
SELECT DISTINCT ( - 8 ) col0
----
-8

query I rowsort
SELECT DISTINCT - 80 AS col2
----
-80

query I rowsort
SELECT + 29 + + 58 AS col1
----
87

query I rowsort
SELECT ALL ( - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL 75 + - + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL 75 + - + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT SUM( DISTINCT 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3957
SELECT SUM ( DISTINCT 69 ) AS col0
----
69

query I rowsort
SELECT DISTINCT - - 2 AS col2
----
2

query II rowsort
SELECT DISTINCT - NULLIF ( + 89, 7 ) AS col2, + 91 AS col2
----
-89
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL + + COUNT( * ) + - + 28 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + + COUNT ( * ) + - + 28 AS col2
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT ALL - 6 DIV COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - 6 / COUNT ( * )
----
-6

query I rowsort
SELECT 33 + + 29 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL + MIN( DISTINCT - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL + MIN ( DISTINCT - 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL + COUNT( * ) + + - MIN( DISTINCT + + 67 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + COUNT ( * ) + + - MIN ( DISTINCT + + 67 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL - COUNT( * ) + + ( 57 )
----
56

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - COUNT ( * ) + + ( 57 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT - - 65 * - + COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT - - 65 * - + COUNT ( * ) AS col1
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3967
SELECT ALL + NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL + NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT DISTINCT + 92 * + + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3968
SELECT DISTINCT + 92 * + + COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT ALL + COUNT( - - 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL + COUNT ( - - 46 ) AS col1
----
1

query I rowsort
SELECT NULLIF ( + - 23, - - 2 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT COUNT( * ) * + COUNT( * ) + - NULLIF ( COUNT( * ), - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3971
SELECT COUNT ( * ) * + COUNT ( * ) + - NULLIF ( COUNT ( * ), - COUNT ( * ) )
----
0

query I rowsort
SELECT COALESCE ( + ( - + 35 ), + - COALESCE ( - + 43, + 10 ) + - 0 ) AS col2
----
-35

query I rowsort
SELECT - + 7 + 87 AS col0
----
80

query I rowsort
SELECT ALL - ( + 84 ) AS col2
----
-84

query I rowsort
SELECT DISTINCT + 4 * 13
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3976
SELECT + CAST( + + 92 AS SIGNED ) + + 20 DIV - ( + - 76 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-3976
SELECT + CAST ( + + 92 AS INTEGER ) + + 20 / - ( + - 76 ) AS col1
----
92

query I rowsort
SELECT 31 * - - ( - 58 ) + + ( - 86 )
----
-1884

query I rowsort
SELECT - 34 col0
----
-34

query I rowsort
SELECT ALL - + 98 - + 32 AS col0
----
-130

query II rowsort
SELECT + 6 * + - ( ( + + 59 ) ) AS col0, 94 AS col0
----
-354
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3981
SELECT DISTINCT 24, - COUNT( * ) AS col0
----
24
-1

skipif mysql # not compatible
query II rowsort label-3981
SELECT DISTINCT 24, - COUNT ( * ) AS col0
----
24
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3982
SELECT + 51 AS col0, COUNT( * )
----
51
1

skipif mysql # not compatible
query II rowsort label-3982
SELECT + 51 AS col0, COUNT ( * )
----
51
1

query I rowsort
SELECT ( + 92 ) * + - 39 AS col0
----
-3588

query I rowsort
SELECT + + 7 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT + COUNT( * ) + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT + COUNT ( * ) + 81 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT COUNT( * ) * + 30
----
30

skipif mysql # not compatible
query I rowsort label-3986
SELECT COUNT ( * ) * + 30
----
30

query I rowsort
SELECT ALL + 83 * + 91 + + 75
----
7628

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3988
SELECT 32 AS col1, - COUNT( * ) DIV - ( 16 ) AS col0
----
32
0

skipif mysql # not compatible
query II rowsort label-3988
SELECT 32 AS col1, - COUNT ( * ) / - ( 16 ) AS col0
----
32
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3989
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3990
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) AS col2
----
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT ALL MIN( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-3991
SELECT ALL MIN ( 2 )
----
2

query I rowsort
SELECT DISTINCT + 0 AS col0
----
0

query I rowsort
SELECT DISTINCT + - 51 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT - 4 * + 48 + COUNT( * )
----
-191

skipif mysql # not compatible
query I rowsort label-3994
SELECT - 4 * + 48 + COUNT ( * )
----
-191

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT ALL 34 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL 34 / - 97
----
0

query I rowsort
SELECT - ( + 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT MIN( - 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-3997
SELECT MIN ( - 31 ) AS col1
----
-31

query I rowsort
SELECT - 80 + + 42
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3999
SELECT ALL 98 / + 43 * - CAST( NULL AS SIGNED ) / - CAST( NULL AS DECIMAL ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL 98 / + 43 * - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS REAL ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL ( + - 97 ) AS col0
----
-97

query I rowsort
SELECT DISTINCT - ( + 83 )
----
-83

query I rowsort
SELECT ALL - - 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT + COUNT( * ) * - + 22 AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-4003
SELECT + COUNT ( * ) * - + 22 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT ALL 37 * + SUM( DISTINCT + 42 ) AS col1
----
1554

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL 37 * + SUM ( DISTINCT + 42 ) AS col1
----
1554

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - COUNT( ALL - - 12 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4005
SELECT - COUNT ( ALL - - 12 ) AS col2
----
-1

query I rowsort
SELECT + + 76 col1
----
76

query I rowsort
SELECT + 15 + + - 34
----
-19

query I rowsort
SELECT ALL ( - - ( + 71 ) ) AS col1
----
71

query I rowsort
SELECT + 2 * - 21
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT + SUM( + 73 ) DIV + COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4010
SELECT + SUM ( + 73 ) / + COUNT ( * )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( - + ( + 79 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( - + ( + 79 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT + + CAST( - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4012
SELECT + + CAST ( - 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT ALL + COUNT( ALL 10 )
----
1

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL + COUNT ( ALL 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT DISTINCT COUNT( * ) * - 33 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT COUNT ( * ) * - 33 AS col2
----
-33

query I rowsort
SELECT ALL 56 col2
----
56

query I rowsort
SELECT + - ( - 2 ) * + - 76
----
-152

query I rowsort
SELECT DISTINCT - 41 AS col1
----
-41

query I rowsort
SELECT - + 29 + 37
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT + 1 AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4019
SELECT + 1 AS col2, COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT + ( + 93 ) AS col0
----
93

query I rowsort
SELECT DISTINCT 69 * - + 78 AS col0
----
-5382

query I rowsort
SELECT ALL 8 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT DISTINCT - 54 * SUM( ALL + 71 )
----
-3834

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT - 54 * SUM ( ALL + 71 )
----
-3834

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL - ( COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - ( COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT 62 + + 0 * + COUNT( DISTINCT 37 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-4025
SELECT 62 + + 0 * + COUNT ( DISTINCT 37 ) col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL - COUNT( * ) + + 49 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL - COUNT ( * ) + + 49 AS col2
----
48

query I rowsort
SELECT - ( + 86 )
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT + 92 DIV - 12 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + 92 / - 12 AS col2
----
-7

query I rowsort
SELECT ALL 54 * 94
----
5076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT CAST( - CAST( + 86 AS SIGNED ) AS SIGNED ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-4030
SELECT CAST ( - CAST ( + 86 AS INTEGER ) AS INTEGER ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + COUNT( * ) * + - 51 col1
----
-51

skipif mysql # not compatible
query I rowsort label-4031
SELECT + COUNT ( * ) * + - 51 col1
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-4032
SELECT DISTINCT 90 DIV + + 6 - - 9 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT 90 / + + 6 - - 9 AS col2
----
24

query I rowsort
SELECT - 69 + - 39
----
-108

query I rowsort
SELECT DISTINCT ( + - 19 ) + ( - 6 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT ALL - SUM( DISTINCT + - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL - SUM ( DISTINCT + - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ( - MIN( DISTINCT - 15 ) ) col2
----
15

skipif mysql # not compatible
query I rowsort label-4036
SELECT ( - MIN ( DISTINCT - 15 ) ) col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT ALL COUNT( * ) + + 64 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL COUNT ( * ) + + 64 AS col1
----
65

query I rowsort
SELECT DISTINCT 69 * + 85
----
5865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4039
SELECT DISTINCT - + 82 DIV + COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - + 82 / + COUNT ( * ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT ALL MAX( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL MAX ( + 2 )
----
2

query I rowsort
SELECT + + 68 AS col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4042
SELECT DISTINCT 87 * + 13 DIV + COUNT( * ) AS col0
----
1131

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT 87 * + 13 / + COUNT ( * ) AS col0
----
1131

onlyif mysql # aggregate syntax: 
query II rowsort label-4043
SELECT 96, ( - MAX( 89 ) ) + - 71 AS col2
----
96
-160

skipif mysql # not compatible
query II rowsort label-4043
SELECT 96, ( - MAX ( 89 ) ) + - 71 AS col2
----
96
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + + ( + SUM( 41 ) ) - 71
----
-30

skipif mysql # not compatible
query I rowsort label-4044
SELECT + + ( + SUM ( 41 ) ) - 71
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4045
SELECT 70 AS col2, + CAST( NULL AS SIGNED ) AS col2
----
70
NULL

skipif mysql # not compatible
query II rowsort label-4045
SELECT 70 AS col2, + CAST ( NULL AS INTEGER ) AS col2
----
70
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT DISTINCT COUNT( * ), - 57 AS col2
----
1
-57

skipif mysql # not compatible
query II rowsort label-4046
SELECT DISTINCT COUNT ( * ), - 57 AS col2
----
1
-57

query II rowsort
SELECT DISTINCT 90, + 13 AS col2
----
90
13

query I rowsort
SELECT 60 col2
----
60

query I rowsort
SELECT + + NULLIF ( - 4, + ( - - 69 ) + + 6 ) AS col0
----
-4

query I rowsort
SELECT ALL + NULLIF ( + + 38, 18 ) - 17 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT - 90 * + COUNT( * ) * + 19 + - + COUNT( * ) AS col2
----
-1711

skipif mysql # not compatible
query I rowsort label-4051
SELECT - 90 * + COUNT ( * ) * + 19 + - + COUNT ( * ) AS col2
----
-1711

query I rowsort
SELECT 68 * + NULLIF ( + 19, + - 27 )
----
1292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4053
SELECT ALL - + COUNT( * ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - + COUNT ( * ) / COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4054
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, 94 AS col2
----
NULL
94

skipif mysql # not compatible
query II rowsort label-4054
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, 94 AS col2
----
NULL
94

query I rowsort
SELECT ALL - ( - 39 ) + - 63
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + COUNT( * ) + + 93
----
94

skipif mysql # not compatible
query I rowsort label-4056
SELECT + COUNT ( * ) + + 93
----
94

query I rowsort
SELECT ALL + 33 - + 4 col0
----
29

query I rowsort
SELECT ALL + + 65 AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4059
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-4059
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, 72
----
NULL
72

query I rowsort
SELECT NULLIF ( + + 95, - 31 ) AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT DISTINCT CAST( - - MAX( 55 ) AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT CAST ( - - MAX ( 55 ) AS INTEGER ) AS col0
----
55

query I rowsort
SELECT DISTINCT ( + - 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT - MIN( DISTINCT ( 41 ) )
----
-41

skipif mysql # not compatible
query I rowsort label-4063
SELECT - MIN ( DISTINCT ( 41 ) )
----
-41

query I rowsort
SELECT + - 22 + + + 18
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT - + CAST( NULL AS SIGNED ) + - 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT - + CAST ( NULL AS INTEGER ) + - 4 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT CAST( NULL AS SIGNED ) + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4066
SELECT CAST ( NULL AS INTEGER ) + 38 AS col2
----
NULL

query I rowsort
SELECT ALL + ( 34 )
----
34

query I rowsort
SELECT ALL ( 32 ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT DISTINCT - - COUNT( DISTINCT 75 ) + + - 40
----
-39

skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT - - COUNT ( DISTINCT 75 ) + + - 40
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT + MIN( ( - 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT + MIN ( ( - 33 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT MAX( DISTINCT + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4071
SELECT MAX ( DISTINCT + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT 95 * COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-4072
SELECT 95 * COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + 3 + COUNT( * ) + - 84 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4073
SELECT + 3 + COUNT ( * ) + - 84 AS col0
----
-80

query I rowsort
SELECT - - NULLIF ( + 23, 90 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4075
SELECT ALL 81 + - + ( + ( COALESCE ( + 14, - COUNT( * ), + CAST( NULL AS SIGNED ) ) ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL 81 + - + ( + ( COALESCE ( + 14, - COUNT ( * ), + CAST ( NULL AS INTEGER ) ) ) ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL - + 60 + + SUM( 51 )
----
-9

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL - + 60 + + SUM ( 51 )
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4077
SELECT + ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4077
SELECT + ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4078
SELECT ALL + 95 + + - 63 DIV - COUNT( * ) AS col1
----
158

skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL + 95 + + - 63 / - COUNT ( * ) AS col1
----
158

query II rowsort
SELECT DISTINCT + 63 AS col0, - 26
----
63
-26

query I rowsort
SELECT - - 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4081
SELECT - 91 + + 49, - COUNT( * ) AS col0
----
-42
-1

skipif mysql # not compatible
query II rowsort label-4081
SELECT - 91 + + 49, - COUNT ( * ) AS col0
----
-42
-1

query I rowsort
SELECT - 8 * - - 19 AS col0
----
-152

query I rowsort
SELECT DISTINCT + + 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL + - COUNT( + ( - 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + - COUNT ( + ( - 65 ) )
----
-1

query I rowsort
SELECT DISTINCT + 32 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL SUM( DISTINCT + 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL SUM ( DISTINCT + 29 ) AS col0
----
29

query I rowsort
SELECT - + 95
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT DISTINCT - COUNT( * ) * + + 32 DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT - COUNT ( * ) * + + 32 / 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT 34 * + MIN( ALL 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4089
SELECT 34 * + MIN ( ALL 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT DISTINCT 91 DIV - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT 91 / - COUNT ( * )
----
-91

query I rowsort
SELECT 24 + - + 13
----
11

query I rowsort
SELECT ALL - - 14 AS col2
----
14

query I rowsort
SELECT - 47 + 93 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL COUNT( * ) * 13
----
13

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL COUNT ( * ) * 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT - SUM( ALL - - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4095
SELECT - SUM ( ALL - - 42 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4096
SELECT COUNT( * ) DIV 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT COUNT ( * ) / 77 AS col2
----
0

query I rowsort
SELECT ALL - - 86 AS col1
----
86

query I rowsort
SELECT + ( - 95 ) AS col1
----
-95

query I rowsort
SELECT ALL + - 5
----
-5

query I rowsort
SELECT + 58 * - 81 + - 70
----
-4768

query I rowsort
SELECT - 72 + + - 89
----
-161

query II rowsort
SELECT 96 AS col2, 74
----
96
74

query I rowsort
SELECT ALL + ( - + 69 ) col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4104
SELECT + + COUNT( * ) * - CAST( NULL AS SIGNED ) / 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) / 74 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4105
SELECT ALL + MAX( 65 ) col1, + 67
----
65
67

skipif mysql # not compatible
query II rowsort label-4105
SELECT ALL + MAX ( 65 ) col1, + 67
----
65
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT + ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4106
SELECT + ( + COUNT ( * ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT ALL - COUNT( * ) * 23 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL - COUNT ( * ) * 23 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT MAX( - 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-4108
SELECT MAX ( - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT + COUNT( * ) * - - 98
----
98

skipif mysql # not compatible
query I rowsort label-4109
SELECT + COUNT ( * ) * - - 98
----
98

query I rowsort
SELECT 11 col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4111
SELECT ALL - COUNT( * ) DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL - COUNT ( * ) / + 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4112
SELECT CAST( COUNT( * ) AS SIGNED ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT + CASE 64 WHEN - 61 THEN + COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT + CASE 64 WHEN - 61 THEN + COUNT ( * ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 43 + 16 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT + 49 / - ( CAST( NULL AS SIGNED ) ) + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT + 49 / - ( CAST ( NULL AS INTEGER ) ) + 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT DISTINCT - - ( - ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT - - ( - ( - COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT ALL - + 60 + 62 AS col0
----
2

query I rowsort
SELECT DISTINCT + 96 + - - 10
----
106

query I rowsort
SELECT ALL - 94 col0
----
-94

query I rowsort
SELECT - + ( 57 )
----
-57

query I rowsort
SELECT DISTINCT + 37 + 65 AS col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT + 43 - - 43 * - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT + 43 - - 43 * - COUNT ( * ) col0
----
0

query I rowsort
SELECT DISTINCT + - 1 AS col2
----
-1

query I rowsort
SELECT + 14 + - - 30 + - + 57
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL 96 + COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL 96 + COUNT ( * ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT + COALESCE ( + SUM( + + 44 ), - 79, 64 )
----
44

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + COALESCE ( + SUM ( + + 44 ), - 79, 64 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT COUNT( DISTINCT + - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-4127
SELECT COUNT ( DISTINCT + - 92 )
----
1

query III rowsort
SELECT - + 67 AS col2, 44 col1, 37
----
-67
44
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL 55 + - ( - + COUNT( * ) ) col0
----
56

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL 55 + - ( - + COUNT ( * ) ) col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4130
SELECT 67 + - COUNT( * ) AS col2, - 86
----
66
-86

skipif mysql # not compatible
query II rowsort label-4130
SELECT 67 + - COUNT ( * ) AS col2, - 86
----
66
-86

query I rowsort
SELECT 56 * + 74 col2
----
4144

query I rowsort
SELECT ALL - 46 AS col2
----
-46

query I rowsort
SELECT + 75 col2
----
75

query I rowsort
SELECT - 50 + 56
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - COUNT( * ) * + 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4135
SELECT - COUNT ( * ) * + 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-4136
SELECT ALL + 91, COUNT( * ) AS col0
----
91
1

skipif mysql # not compatible
query II rowsort label-4136
SELECT ALL + 91, COUNT ( * ) AS col0
----
91
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT + - 28 * + + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-4137
SELECT + - 28 * + + COUNT ( * ) AS col0
----
-28

query I rowsort
SELECT ALL 52 + + - 90 col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL - COUNT( * ) + + 81 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - COUNT ( * ) + + 81 AS col0
----
80

query I rowsort
SELECT ALL + - ( + + 10 ) AS col2
----
-10

query I rowsort
SELECT + + ( 98 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL + 66 * - 31 * + - 57 * + MAX( ALL - 34 )
----
-3965148

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL + 66 * - 31 * + - 57 * + MAX ( ALL - 34 )
----
-3965148

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT DISTINCT - COUNT( + 49 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT - COUNT ( + 49 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4144
SELECT 52 DIV COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4144
SELECT 52 / COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT + 99 * COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT + 99 * COUNT ( * )
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT CAST( NULL AS SIGNED ) * + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT CAST ( NULL AS INTEGER ) * + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + - SUM( 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-4147
SELECT + - SUM ( 21 )
----
-21

query I rowsort
SELECT - 31 * - 78 AS col2
----
2418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT + COUNT( * ) + + 47 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-4149
SELECT + COUNT ( * ) + + 47 / 20
----
3

query I rowsort
SELECT ALL ( + 50 ) col2
----
50

query I rowsort
SELECT - 60 col1
----
-60

query I rowsort
SELECT ALL + - 23 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT + - SUM( - 46 ) * + 91 AS col0
----
4186

skipif mysql # not compatible
query I rowsort label-4153
SELECT + - SUM ( - 46 ) * + 91 AS col0
----
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL + SUM( ALL + 48 ) * 85
----
4080

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + SUM ( ALL + 48 ) * 85
----
4080

query I rowsort
SELECT DISTINCT + + 57 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT MIN( 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT MIN ( 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT ( + MIN( + 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT ( + MIN ( + 26 ) )
----
26

query I rowsort
SELECT ALL 34 + 73
----
107

query I rowsort
SELECT + + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ALL - SUM( ALL + - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL - SUM ( ALL + - 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4161
SELECT + CAST( + - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-4161
SELECT + CAST ( + - 74 AS INTEGER )
----
-74

query I rowsort
SELECT ALL - - 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT + + COUNT( * ) * + 43 + + 68
----
111

skipif mysql # not compatible
query I rowsort label-4163
SELECT + + COUNT ( * ) * + 43 + + 68
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT DISTINCT - - CAST( + 70 AS SIGNED ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT - - CAST ( + 70 AS INTEGER ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4165
SELECT - 43, + ( COUNT( * ) ) col0
----
-43
1

skipif mysql # not compatible
query II rowsort label-4165
SELECT - 43, + ( COUNT ( * ) ) col0
----
-43
1

query I rowsort
SELECT - 51 col2
----
-51

query I rowsort
SELECT ALL + - 41
----
-41

query I rowsort
SELECT ALL + 98 * 81 AS col0
----
7938

query I rowsort
SELECT ALL ( + - 73 ) AS col1
----
-73

query I rowsort
SELECT ALL ( + 34 ) AS col0
----
34

query I rowsort
SELECT - + 9 AS col2
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT CAST( + COUNT( ALL - - NULLIF ( 99, - 63 ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4172
SELECT CAST ( + COUNT ( ALL - - NULLIF ( 99, - 63 ) ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ( - 63 ) AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT - + MIN( DISTINCT + ( - 10 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4174
SELECT - + MIN ( DISTINCT + ( - 10 ) )
----
10

query I rowsort
SELECT ALL - 40 + + 58
----
18

query I rowsort
SELECT DISTINCT - 15 * + 73 AS col2
----
-1095

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT DISTINCT - SUM( DISTINCT - + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT - SUM ( DISTINCT - + 14 ) AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4178
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 98 AS col0
----
-98

query I rowsort
SELECT DISTINCT - 14 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT ALL - - MAX( ALL - 8 ) + + COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL - - MAX ( ALL - 8 ) + + COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT DISTINCT + + 37 + + - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT + + 37 + + - COUNT ( * )
----
36

query I rowsort
SELECT ALL 71 col1
----
71

query I rowsort
SELECT DISTINCT + ( 91 ) col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4185
SELECT + SUM( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL COUNT( * ) + + 7
----
8

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL COUNT ( * ) + + 7
----
8

query I rowsort
SELECT - ( + 77 )
----
-77

query I rowsort
SELECT - ( - 85 ) AS col0
----
85

query I rowsort
SELECT + 96 + + 37
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4190
SELECT - COUNT( * ) DIV - - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT - COUNT ( * ) / - - 11 AS col0
----
0

query I rowsort
SELECT ( - 82 ) col2
----
-82

query I rowsort
SELECT + - 1 AS col0
----
-1

query I rowsort
SELECT DISTINCT + + 91
----
91

query II rowsort
SELECT ALL 58 AS col0, + 94 AS col0
----
58
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL + COUNT( * ) + + ( + 7 )
----
8

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + COUNT ( * ) + + ( + 7 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4196
SELECT ALL - ( + + 15 ) AS col1, - CAST( - + 20 AS SIGNED ) col0
----
-15
20

skipif mysql # not compatible
query II rowsort label-4196
SELECT ALL - ( + + 15 ) AS col1, - CAST ( - + 20 AS INTEGER ) col0
----
-15
20

query I rowsort
SELECT - ( + 13 )
----
-13

query I rowsort
SELECT DISTINCT 70 col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4199
SELECT ALL 71 DIV 4
----
17

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL 71 / 4
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - COUNT( ALL - ( + 88 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4200
SELECT - COUNT ( ALL - ( + 88 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT MIN( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4201
SELECT MIN ( 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * - 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4202
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * - 61 AS col2
----
NULL

query I rowsort
SELECT ALL + 45 * 21
----
945

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT DISTINCT - - ( - COUNT( ALL - 32 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - - ( - COUNT ( ALL - 32 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT - + ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT - + ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT 20 * - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT 20 * - - COUNT ( * )
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT ALL 12 - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL 12 - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT ( - 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT ALL + + CAST( NULL AS SIGNED ) * 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL + + CAST ( NULL AS INTEGER ) * 35 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 39 * - 1 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ALL + COUNT( * ) * + + 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4211
SELECT ALL + COUNT ( * ) * + + 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT - - ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4212
SELECT - - ( - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT ALL - - 98 AS col2
----
98

query I rowsort
SELECT + + 93 AS col1
----
93

query I rowsort
SELECT 91 * - + 31 + + 68 AS col0
----
-2753

query I rowsort
SELECT + 63 - - + 33
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4217
SELECT CAST( + - 31 AS SIGNED )
----
-31

skipif mysql # not compatible
query I rowsort label-4217
SELECT CAST ( + - 31 AS INTEGER )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT ALL COALESCE ( + - CAST( NULL AS SIGNED ), - 29 ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL COALESCE ( + - CAST ( NULL AS INTEGER ), - 29 ) col0
----
-29

query I rowsort
SELECT ALL ( - - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - COALESCE ( + - 67, - + COUNT( * ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4220
SELECT - COALESCE ( + - 67, - + COUNT ( * ) ) AS col2
----
67

query I rowsort
SELECT + - 48 AS col2
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4222
SELECT ALL + 0 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + 0 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + ( - 64 ) * - 36
----
2304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4224
SELECT 23 * + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col2, + COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4224
SELECT 23 * + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col2, + COUNT ( * ) col0
----
1
1

query I rowsort
SELECT ALL - 29 col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT - MAX( ALL + 49 ) * + 51 AS col0
----
-2499

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT - MAX ( ALL + 49 ) * + 51 AS col0
----
-2499

query I rowsort
SELECT ( - 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL + MIN( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL + MIN ( ALL + 35 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT + 82 DIV + 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4229
SELECT + 82 / + 97 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4230
SELECT + + ( - 75 ) + - 39, CAST( NULL AS DECIMAL ) AS col0
----
-114
NULL

skipif mysql # not compatible
query II rowsort label-4230
SELECT + + ( - 75 ) + - 39, CAST ( NULL AS REAL ) AS col0
----
-114
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4231
SELECT - 75, + MIN( DISTINCT - 52 ) AS col0
----
-75
-52

skipif mysql # not compatible
query II rowsort label-4231
SELECT - 75, + MIN ( DISTINCT - 52 ) AS col0
----
-75
-52

query I rowsort
SELECT ALL - + 83 + - ( 77 ) * + + 52 * 9
----
-36119

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT + 36 + + ( - - COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-4233
SELECT + 36 + + ( - - COUNT ( * ) )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4234
SELECT - CAST( NULL AS SIGNED ) + MAX( - 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT - CAST ( NULL AS INTEGER ) + MAX ( - 96 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4235
SELECT DISTINCT + 57, 50 * - ( + CAST( NULL AS DECIMAL ) ) * + ( + 52 ) / + - COUNT( * ) AS col0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-4235
SELECT DISTINCT + 57, 50 * - ( + CAST ( NULL AS REAL ) ) * + ( + 52 ) / + - COUNT ( * ) AS col0
----
57
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT + CAST( - + 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + CAST ( - + 61 AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT + ( - - MIN( - 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT + ( - - MIN ( - 26 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT - COUNT( 97 ) * - ( + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-4238
SELECT - COUNT ( 97 ) * - ( + 27 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT + NULLIF ( CAST( NULL AS SIGNED ), 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + 42 + + - 72 + + COUNT( * ) + 14
----
-15

skipif mysql # not compatible
query I rowsort label-4240
SELECT + 42 + + - 72 + + COUNT ( * ) + 14
----
-15

query I rowsort
SELECT DISTINCT - + 52
----
-52

query II rowsort
SELECT ALL 53, 34 AS col2
----
53
34

query I rowsort
SELECT DISTINCT 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT + MAX( + 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4244
SELECT + MAX ( + 47 )
----
47

query I rowsort
SELECT + - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - 42 - + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-4246
SELECT - 42 - + COUNT ( * )
----
-43

query I rowsort
SELECT DISTINCT - 74 + - 36
----
-110

query I rowsort
SELECT DISTINCT + + 25
----
25

query I rowsort
SELECT ALL + 54 AS col0
----
54

query I rowsort
SELECT ALL ( 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL SUM( + + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL SUM ( + + 70 ) AS col1
----
70

query I rowsort
SELECT + ( + 91 ) + ( + 3 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL + MIN( + 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL + MIN ( + 80 ) AS col2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4254
SELECT + ( - + 21 ) DIV + 13
----
-1

skipif mysql # not compatible
query I rowsort label-4254
SELECT + ( - + 21 ) / + 13
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT 34 DIV + COUNT( * ) col1
----
34

skipif mysql # not compatible
query I rowsort label-4255
SELECT 34 / + COUNT ( * ) col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4256
SELECT ALL 99 AS col2, - COUNT( * ) * ( + 58 ) + - + COUNT( + + 66 ) AS col1
----
99
-59

skipif mysql # not compatible
query II rowsort label-4256
SELECT ALL 99 AS col2, - COUNT ( * ) * ( + 58 ) + - + COUNT ( + + 66 ) AS col1
----
99
-59

query I rowsort
SELECT ALL + - 70 - - 12
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT - ( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT - ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL - - 37
----
37

query I rowsort
SELECT + + 98 AS col1
----
98

query I rowsort
SELECT ALL - + 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT + - MAX( DISTINCT + 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-4262
SELECT + - MAX ( DISTINCT + 49 ) AS col0
----
-49

query I rowsort
SELECT 53 * - + 84
----
-4452

query I rowsort
SELECT DISTINCT 45 col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT CAST( - - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT CAST ( - - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 70
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT DISTINCT + COUNT( ( - 88 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT + COUNT ( ( - 88 ) )
----
1

query I rowsort
SELECT COALESCE ( - 58, - 72 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4269
SELECT + CAST( NULL AS SIGNED ) * 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4269
SELECT + CAST ( NULL AS INTEGER ) * 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT - - ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4270
SELECT - - ( - - COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4271
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT - CAST ( NULL AS REAL ) + - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 56 AS col0
----
-56

query I rowsort
SELECT ALL + ( + 38 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4274
SELECT ALL COUNT( * ) * + + COUNT( * ) - 66 DIV 42 col0
----
0

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL COUNT ( * ) * + + COUNT ( * ) - 66 / 42 col0
----
0

query I rowsort
SELECT DISTINCT + + 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL + COUNT( * ) * + + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + COUNT ( * ) * + + 79 AS col2
----
79

query I rowsort
SELECT DISTINCT - 20 AS col2
----
-20

query I rowsort
SELECT DISTINCT - - 47
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4279
SELECT ALL MIN( + 52 ) * - - COALESCE ( - CAST( NULL AS SIGNED ), - - CAST( - 84 AS SIGNED ) ) * - - 0
----
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL MIN ( + 52 ) * - - COALESCE ( - CAST ( NULL AS INTEGER ), - - CAST ( - 84 AS INTEGER ) ) * - - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT ALL - SUM( + + 77 ) + - 5 * + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - SUM ( + + 77 ) + - 5 * + - COUNT ( * )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT ALL AVG ( + NULLIF ( + - CAST( NULL AS SIGNED ), 78 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL AVG ( + NULLIF ( + - CAST ( NULL AS INTEGER ), 78 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL - 35 * COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - 35 * COUNT ( * ) AS col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT + - COUNT( * ) + - - CAST( + 82 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-4283
SELECT + - COUNT ( * ) + - - CAST ( + 82 AS INTEGER )
----
81

query I rowsort
SELECT ALL NULLIF ( - 51, 28 - ( - 48 ) )
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4285
SELECT DISTINCT 62 DIV + COUNT( * ) + - + 68
----
-6

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT 62 / + COUNT ( * ) + - + 68
----
-6

query I rowsort
SELECT ( + - 94 ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4287
SELECT + MAX( - - 8 ) * + MIN( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT + MAX ( - - 8 ) * + MIN ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4288
SELECT ALL + + SUM( + + 98 ) AS col0, - 99 + - COUNT( * )
----
98
-100

skipif mysql # not compatible
query II rowsort label-4288
SELECT ALL + + SUM ( + + 98 ) AS col0, - 99 + - COUNT ( * )
----
98
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-4289
SELECT + + 8 DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-4289
SELECT + + 8 / + 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT + + 35 * 78 - - SUM( + 4 ) AS col2
----
2734

skipif mysql # not compatible
query I rowsort label-4290
SELECT + + 35 * 78 - - SUM ( + 4 ) AS col2
----
2734

query II rowsort
SELECT ALL 18, - 87 AS col0
----
18
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT CAST( - 79 AS SIGNED ) * 55 - 71 + - ( + - 9 )
----
-4407

skipif mysql # not compatible
query I rowsort label-4292
SELECT CAST ( - 79 AS INTEGER ) * 55 - 71 + - ( + - 9 )
----
-4407

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL - 33 + - 9 * COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL - 33 + - 9 * COUNT ( * )
----
-42

query II rowsort
SELECT ALL - 15 AS col2, + 29 AS col1
----
-15
29

query I rowsort
SELECT ALL - 30 col1
----
-30

query I rowsort
SELECT + - 30
----
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-4297
SELECT ALL - - 83, 63 DIV - 75 AS col0
----
83
0

skipif mysql # not compatible
query II rowsort label-4297
SELECT ALL - - 83, 63 / - 75 AS col0
----
83
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4298
SELECT NULLIF ( - + 35, + + 36 ) / - COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT NULLIF ( - + 35, + + 36 ) / - COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + - 21 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT + - SUM( ALL - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-4300
SELECT + - SUM ( ALL - 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT DISTINCT + COUNT( * ) * + 83
----
83

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + COUNT ( * ) * + 83
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4302
SELECT ALL - 19 DIV + + 68 col1, 93 + COUNT( * ) + 10
----
0
104

skipif mysql # not compatible
query II rowsort label-4302
SELECT ALL - 19 / + + 68 col1, 93 + COUNT ( * ) + 10
----
0
104

query II rowsort
SELECT + - 97 AS col0, 81 AS col0
----
-97
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT COUNT( * ) * - 94 + + COUNT( * ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-4304
SELECT COUNT ( * ) * - 94 + + COUNT ( * ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT COUNT( - 77 ) * - 93 col0
----
-93

skipif mysql # not compatible
query I rowsort label-4305
SELECT COUNT ( - 77 ) * - 93 col0
----
-93

query I rowsort
SELECT ALL - + 31 + + 92
----
61

query I rowsort
SELECT 24 col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4308
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT DISTINCT + 9 + + + COUNT( DISTINCT - - 49 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + 9 + + + COUNT ( DISTINCT - - 49 ) AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4310
SELECT DISTINCT ( + 59 ) * + 97 DIV - COUNT( * ) AS col1
----
-5723

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT ( + 59 ) * + 97 / - COUNT ( * ) AS col1
----
-5723

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL 0 * + COUNT( * ) * + + 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL 0 * + COUNT ( * ) * + + 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT ALL + ( + COUNT( 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL + ( + COUNT ( 72 ) )
----
1

query I rowsort
SELECT ALL + 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT MIN( DISTINCT 52 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4314
SELECT MIN ( DISTINCT 52 ) AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL CAST( - 57 AS SIGNED ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL CAST ( - 57 AS INTEGER ) AS col0
----
-57

query I rowsort
SELECT ALL + 16 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT CAST( ( - - 98 ) AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4317
SELECT CAST ( ( - - 98 ) AS INTEGER ) AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4318
SELECT + CAST( - 64 AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4318
SELECT + CAST ( - 64 AS INTEGER ) AS col1
----
-64

query I rowsort
SELECT ( + 73 )
----
73

query I rowsort
SELECT - 35 + + + 45 * + 8
----
325

query I rowsort
SELECT - + 95 AS col2
----
-95

query I rowsort
SELECT + + 14 - - 89 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT - SUM( 51 ) + + COUNT( 36 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4323
SELECT - SUM ( 51 ) + + COUNT ( 36 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT COUNT( * ) * - 87 * + - 97 col0
----
8439

skipif mysql # not compatible
query I rowsort label-4324
SELECT COUNT ( * ) * - 87 * + - 97 col0
----
8439

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT DISTINCT 82 + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT 82 + + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT DISTINCT - 39 + 82 + ( - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - 39 + 82 + ( - COUNT ( * ) )
----
42

query I rowsort
SELECT - - 22 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT SUM( ALL + + 49 ) col0
----
49

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT SUM ( ALL + + 49 ) col0
----
49

query I rowsort
SELECT 16 + + - 40 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT MAX( ALL - ( - 55 ) ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4330
SELECT MAX ( ALL - ( - 55 ) ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT + SUM( DISTINCT + - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4331
SELECT + SUM ( DISTINCT + - 12 ) AS col1
----
-12

query I rowsort
SELECT 47 + 38
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + ( - ( - + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + ( - ( - + COUNT ( * ) ) )
----
1

query II rowsort
SELECT + - NULLIF ( + 44, - - 31 ) AS col2, 99
----
-44
99

query I rowsort
SELECT + ( + + 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT ALL + MIN( ALL + + 72 ) + - 88
----
-16

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL + MIN ( ALL + + 72 ) + - 88
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL + SUM( - - 54 ) * - 59
----
-3186

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL + SUM ( - - 54 ) * - 59
----
-3186

query I rowsort
SELECT ALL ( - - 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4339
SELECT + 68 DIV + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4339
SELECT + 68 / + COUNT ( * ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT DISTINCT + - COUNT( ALL + 84 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT + - COUNT ( ALL + 84 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + + 22 AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT + MAX( ALL + - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-4342
SELECT + MAX ( ALL + - 85 )
----
-85

query I rowsort
SELECT DISTINCT + - 15 AS col1
----
-15

query I rowsort
SELECT - 69 col1
----
-69

query I rowsort
SELECT - 70 * ( 13 )
----
-910

query I rowsort
SELECT - ( - 73 ) - 90 * 8 + + 73
----
-574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT + - 20 DIV - COUNT( * ) + + - 98 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-4347
SELECT + - 20 / - COUNT ( * ) + + - 98 AS col0
----
-78

query I rowsort
SELECT + + 64 AS col1
----
64

query I rowsort
SELECT 41 * + + 13 AS col0
----
533

query I rowsort
SELECT ALL 60 + - 15 - - - 22
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4352
SELECT ALL COUNT( * ) DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL COUNT ( * ) / 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT DISTINCT 81 * - COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT 81 * - COUNT ( * ) AS col2
----
-81

query I rowsort
SELECT + - 43 col1
----
-43

query I rowsort
SELECT ALL + 50 + - + 8
----
42

query I rowsort
SELECT ALL - 1 col2
----
-1

query I rowsort
SELECT DISTINCT 93 + + - 39 AS col2
----
54

query I rowsort
SELECT ALL - 91 col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT MIN( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4359
SELECT MIN ( - 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT ALL COUNT( * ) AS col0, - 16
----
1
-16

skipif mysql # not compatible
query II rowsort label-4361
SELECT ALL COUNT ( * ) AS col0, - 16
----
1
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT COUNT( DISTINCT - 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT COUNT ( DISTINCT - 39 )
----
1

query I rowsort
SELECT DISTINCT + ( 49 ) col2
----
49

query I rowsort
SELECT ( 59 ) AS col1
----
59

query I rowsort
SELECT - 83 * - + 41
----
3403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT + CAST( 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4366
SELECT + CAST ( 16 AS INTEGER ) AS col0
----
16

query I rowsort
SELECT ALL - 63 + 75
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL + CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + CAST ( 99 AS INTEGER )
----
99

query I rowsort
SELECT - 38 * + 84
----
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT MAX( - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4370
SELECT MAX ( - 76 ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT COUNT( ALL - 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT COUNT ( ALL - 39 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT 85 DIV 20 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4372
SELECT 85 / 20 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT CAST( - 18 AS SIGNED ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4373
SELECT CAST ( - 18 AS INTEGER ) AS col2
----
-18

query I rowsort
SELECT + 48 col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT COUNT( + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-4375
SELECT COUNT ( + 71 )
----
1

query I rowsort
SELECT DISTINCT 7 AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4377
SELECT + 8 DIV 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4377
SELECT + 8 / 49 AS col1
----
0

query I rowsort
SELECT - 75 + - 74
----
-149

query I rowsort
SELECT DISTINCT - + 28 * 12
----
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT - + 13 * - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-4380
SELECT - + 13 * - COUNT ( * )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL + NULLIF ( COUNT( * ), + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + NULLIF ( COUNT ( * ), + COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT 44 - 18
----
26

query I rowsort
SELECT + 98 col2
----
98

query I rowsort
SELECT - ( + 39 ) col1
----
-39

query I rowsort
SELECT 76 + - 60 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL 94 + - - COUNT( * ) + 11 AS col1
----
106

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL 94 + - - COUNT ( * ) + 11 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT 70 - + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT 70 - + COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ( COUNT( * ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4388
SELECT ( COUNT ( * ) ) * - COUNT ( * )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4389
SELECT 36 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-4389
SELECT 36 / - 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL - COUNT( ALL - + 15 ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL - COUNT ( ALL - + 15 ) + + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT 60 * + CAST( + ( + 25 ) AS SIGNED ) AS col2
----
1500

skipif mysql # not compatible
query I rowsort label-4391
SELECT 60 * + CAST ( + ( + 25 ) AS INTEGER ) AS col2
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT - ( - COUNT( CASE 1 WHEN + 90 * - 14 THEN 32 END ) )
----
0

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT - ( - COUNT ( CASE 1 WHEN + 90 * - 14 THEN 32 END ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-4393
SELECT COUNT ( * ) * + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT - - COUNT( ALL + ( + 48 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT - - COUNT ( ALL + ( + 48 ) )
----
1

query I rowsort
SELECT ALL + + 28 AS col1
----
28

query I rowsort
SELECT ALL + + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL - COUNT( + + 10 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - COUNT ( + + 10 ) col0
----
-1

query I rowsort
SELECT - + 28 + + 38 AS col2
----
10

query I rowsort
SELECT ALL ( - ( + 37 ) )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4400
SELECT DISTINCT + ( + 68 ) AS col0, CAST( NULL AS SIGNED )
----
68
NULL

skipif mysql # not compatible
query II rowsort label-4400
SELECT DISTINCT + ( + 68 ) AS col0, CAST ( NULL AS INTEGER )
----
68
NULL

query I rowsort
SELECT ALL + 80 * 13 + - + 51
----
989

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT DISTINCT MIN( 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT MIN ( 96 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4403
SELECT ALL CAST( - COUNT( - 7 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL CAST ( - COUNT ( - 7 ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT - MAX( + - 97 ) + - MIN( + 33 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - MAX ( + - 97 ) + - MIN ( + 33 ) AS col1
----
64

query I rowsort
SELECT ALL - + 52 + + + 4
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT ( COUNT( * ) ) + - ( - ( - 4 ) ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT ( COUNT ( * ) ) + - ( - ( - 4 ) ) AS col0
----
-3

query I rowsort
SELECT ALL - + 99
----
-99

query I rowsort
SELECT - 58 - + 31 + - - 35
----
-54

query I rowsort
SELECT DISTINCT - + 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT MAX( 54 )
----
54

skipif mysql # not compatible
query I rowsort label-4410
SELECT MAX ( 54 )
----
54

query I rowsort
SELECT + - 28 + + 21 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT - COUNT( * ) * + - 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT - COUNT ( * ) * + - 6 AS col0
----
6

query I rowsort
SELECT ALL + + ( + 10 )
----
10

query I rowsort
SELECT CASE WHEN NULL IS NOT NULL THEN 78 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4415
SELECT - COUNT( * ) * + CAST( + 88 AS SIGNED ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-4415
SELECT - COUNT ( * ) * + CAST ( + 88 AS INTEGER ) AS col1
----
-88

query I rowsort
SELECT ALL + ( 86 )
----
86

query I rowsort
SELECT DISTINCT + 35 * + 32 AS col2
----
1120

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT ALL - 15 - - + 30 DIV 66
----
-15

skipif mysql # not compatible
query I rowsort label-4418
SELECT ALL - 15 - - + 30 / 66
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT ALL - + 17 * + 99 + COUNT( * ) AS col0
----
-1682

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL - + 17 * + 99 + COUNT ( * ) AS col0
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT COUNT( * ) * + 42
----
42

skipif mysql # not compatible
query I rowsort label-4420
SELECT COUNT ( * ) * + 42
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4421
SELECT 13 DIV - COUNT( * ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-4421
SELECT 13 / - COUNT ( * ) AS col0
----
-13

query I rowsort
SELECT 22 * + 94
----
2068

query I rowsort
SELECT DISTINCT 16 * 10 AS col2
----
160

query I rowsort
SELECT 71 - 55 col2
----
16

query I rowsort
SELECT ALL - - 85 + ( + 35 ) AS col0
----
120

query I rowsort
SELECT - - 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - - 94 + + - 36 * + COUNT( * ) * 88 AS col1
----
-3074

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - - 94 + + - 36 * + COUNT ( * ) * 88 AS col1
----
-3074

query II rowsort
SELECT - 21 AS col0, 75
----
-21
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT + CAST( NULL AS SIGNED ) - - + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT + CAST ( NULL AS INTEGER ) - - + 20 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL 76 - - 95 + - + ( COUNT( * ) ) AS col2
----
170

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL 76 - - 95 + - + ( COUNT ( * ) ) AS col2
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4431
SELECT + 58 DIV COUNT( * ) AS col2, - 51 AS col1
----
58
-51

skipif mysql # not compatible
query II rowsort label-4431
SELECT + 58 / COUNT ( * ) AS col2, - 51 AS col1
----
58
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - COUNT( * ) * ( + - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-4432
SELECT - COUNT ( * ) * ( + - 56 )
----
56

query I rowsort
SELECT + 12 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT + ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT CAST( NULL AS SIGNED ) * + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT CAST ( NULL AS INTEGER ) * + 89 AS col1
----
NULL

query I rowsort
SELECT 63 + + 80 AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT DISTINCT 67 + COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT 67 + COUNT ( * ) AS col0
----
68

query I rowsort
SELECT ALL - + 85 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT 52 + - + COUNT( * ) + + - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4439
SELECT 52 + - + COUNT ( * ) + + - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4440
SELECT COUNT( * ) + 40 AS col0, COUNT( * )
----
41
1

skipif mysql # not compatible
query II rowsort label-4440
SELECT COUNT ( * ) + 40 AS col0, COUNT ( * )
----
41
1

query I rowsort
SELECT ( + + 8 ) + 85 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT MIN( DISTINCT + 94 ) + - 89
----
5

skipif mysql # not compatible
query I rowsort label-4442
SELECT MIN ( DISTINCT + 94 ) + - 89
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT SUM( ALL + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4443
SELECT SUM ( ALL + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT 92 * COUNT( ( - 61 ) )
----
92

skipif mysql # not compatible
query I rowsort label-4444
SELECT 92 * COUNT ( ( - 61 ) )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ( - COUNT( * ) ) * + 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-4445
SELECT ( - COUNT ( * ) ) * + 33 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT - SUM( + 92 ) * + - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4446
SELECT - SUM ( + 92 ) * + - COUNT ( * ) AS col1
----
92

query I rowsort
SELECT ( - 17 )
----
-17

query I rowsort
SELECT + + 70
----
70

query I rowsort
SELECT ALL + 68 col1
----
68

query II rowsort
SELECT ALL 27 AS col2, 41
----
27
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4451
SELECT - - CAST( - - COUNT( * ) AS SIGNED ) + - + CAST( - + 8 AS SIGNED ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4451
SELECT - - CAST ( - - COUNT ( * ) AS INTEGER ) + - + CAST ( - + 8 AS INTEGER ) AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT + CAST( + MAX( - 96 ) AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-4452
SELECT + CAST ( + MAX ( - 96 ) AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4453
SELECT ( - COUNT( * ) ) DIV + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4453
SELECT ( - COUNT ( * ) ) / + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4454
SELECT CAST( 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-4454
SELECT CAST ( 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL 29 + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL 29 + COUNT ( * ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL - 4 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL - 4 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT SUM( 62 )
----
62

skipif mysql # not compatible
query I rowsort label-4457
SELECT SUM ( 62 )
----
62

query I rowsort
SELECT DISTINCT + + ( 19 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT + 14 * 73 - - 80 * - ( + - COUNT( * ) )
----
1102

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + 14 * 73 - - 80 * - ( + - COUNT ( * ) )
----
1102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT DISTINCT ( - MAX( ALL CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT ( - MAX ( ALL CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT - CAST( COUNT( * ) AS SIGNED ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4461
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4462
SELECT ALL + 47 col1, CAST( NULL AS SIGNED ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-4462
SELECT ALL + 47 col1, CAST ( NULL AS INTEGER ) AS col2
----
47
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT - 98 DIV + + 15
----
-6

skipif mysql # not compatible
query I rowsort label-4463
SELECT - 98 / + + 15
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4464
SELECT - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 90 )
----
-90

query I rowsort
SELECT ALL ( - 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT ALL - COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL - COUNT ( * ) + + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT ( - + 79 )
----
-79

query I rowsort
SELECT ALL - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT 21 + + NULLIF ( - COUNT( * ), COUNT( * ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-4470
SELECT 21 + + NULLIF ( - COUNT ( * ), COUNT ( * ) ) AS col2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4471
SELECT + 15 + + - 59 DIV - COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 15 + + - 59 / - COUNT ( * ) AS col1
----
74

query I rowsort
SELECT + 33 + 18 + - 34
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL COUNT( * ) * 18 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL COUNT ( * ) * 18 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT - CAST( - + 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-4474
SELECT - CAST ( - + 64 AS INTEGER )
----
64

query I rowsort
SELECT ALL + ( + - 13 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - ( - - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT COUNT( * ) * + - 49
----
-49

skipif mysql # not compatible
query I rowsort label-4478
SELECT COUNT ( * ) * + - 49
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4479
SELECT 62 * + COUNT( * ) DIV + COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4479
SELECT 62 * + COUNT ( * ) / + COUNT ( * )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4480
SELECT - COUNT( * ) DIV - NULLIF ( ( + 24 ), - 99 )
----
0

skipif mysql # not compatible
query I rowsort label-4480
SELECT - COUNT ( * ) / - NULLIF ( ( + 24 ), - 99 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT ALL + + COUNT( * ) + + 51
----
52

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL + + COUNT ( * ) + + 51
----
52

query I rowsort
SELECT 92 * + + 17
----
1564

query I rowsort
SELECT DISTINCT 86 col1
----
86

query II rowsort
SELECT - 47, 23 AS col0
----
-47
23

query I rowsort
SELECT ALL COALESCE ( 43, + + 29 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT ALL MIN( + - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL MIN ( + - 51 ) AS col2
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4487
SELECT - 4 DIV COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4487
SELECT - 4 / COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT DISTINCT ( + 63 ) AS col2
----
63

query II rowsort
SELECT + 68, ( - 11 ) + - 64 AS col1
----
68
-75

query I rowsort
SELECT ALL + + 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - COUNT( * ) * COUNT( * ) + - - 98 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4491
SELECT - COUNT ( * ) * COUNT ( * ) + - - 98 AS col0
----
97

query I rowsort
SELECT + - 53 col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4493
SELECT ALL - COUNT( * ) * COUNT( * ) + - CAST( NULL AS SIGNED ) / CAST( - - 5 AS SIGNED ) * - ( + SUM( + 90 ) ) - - NULLIF ( + 45, + 78 ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - CAST ( NULL AS INTEGER ) / CAST ( - - 5 AS INTEGER ) * - ( + SUM ( + 90 ) ) - - NULLIF ( + 45, + 78 ) + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT + SUM( ALL + + 19 ) * - + 22 AS col2
----
-418

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT + SUM ( ALL + + 19 ) * - + 22 AS col2
----
-418

query I rowsort
SELECT + 63 * - ( - 59 ) AS col2
----
3717

query I rowsort
SELECT DISTINCT ( - 58 ) AS col1
----
-58

query I rowsort
SELECT ALL ( - 11 ) AS col1
----
-11

query I rowsort
SELECT ALL COALESCE ( - + 98, - 49, + 82 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4499
SELECT - - COUNT( * ) * + + 15
----
15

skipif mysql # not compatible
query I rowsort label-4499
SELECT - - COUNT ( * ) * + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT COUNT( * ) + + - COALESCE ( + COUNT( * ), + + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-4500
SELECT COUNT ( * ) + + - COALESCE ( + COUNT ( * ), + + 80 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4501
SELECT + + CAST( + MAX( DISTINCT + 46 ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-4501
SELECT + + CAST ( + MAX ( DISTINCT + 46 ) AS INTEGER )
----
46

query I rowsort
SELECT ALL - 81 col1
----
-81

query I rowsort
SELECT ( 78 ) + 84 AS col0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ALL - MAX( DISTINCT 17 ) - + 73
----
-90

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL - MAX ( DISTINCT 17 ) - + 73
----
-90

query I rowsort
SELECT ALL - 81 col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4506
SELECT 36 + + CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4506
SELECT 36 + + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4507
SELECT ALL 38 DIV + - MAX( ALL 50 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL 38 / + - MAX ( ALL 50 ) AS col0
----
0

query I rowsort
SELECT - + 54 AS col0
----
-54

query I rowsort
SELECT - - 30 AS col1
----
30

query I rowsort
SELECT DISTINCT + + 58
----
58

query II rowsort
SELECT + 86 AS col1, 29 AS col1
----
86
29

query I rowsort
SELECT DISTINCT ( 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - - COUNT( * ) + 68 * - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4513
SELECT - - COUNT ( * ) + 68 * - COUNT ( * ) AS col2
----
-67

query I rowsort
SELECT - 67 * 93
----
-6231

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT MIN( - + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-4515
SELECT MIN ( - + 6 )
----
-6

query I rowsort
SELECT DISTINCT 24 AS col0
----
24

query I rowsort
SELECT DISTINCT + 71 * 71 AS col2
----
5041

query I rowsort
SELECT + + 37 col0
----
37

query I rowsort
SELECT + 82 + - 69
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4520
SELECT ( - - ( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT ( - - ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + 75 * 41 AS col1
----
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT - COUNT( * ) + - - 7 * - 82 col1
----
-575

skipif mysql # not compatible
query I rowsort label-4522
SELECT - COUNT ( * ) + - - 7 * - 82 col1
----
-575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL - + ( - ( + - CAST( NULL AS SIGNED ) ) ) / + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL - + ( - ( + - CAST ( NULL AS INTEGER ) ) ) / + 49 AS col0
----
NULL

query I rowsort
SELECT - - 68 AS col1
----
68

query I rowsort
SELECT ALL - ( - 63 ) AS col2
----
63

query I rowsort
SELECT ALL + 42 * - 61
----
-2562

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT + - 3 * - COUNT( * ) + 79
----
82

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT + - 3 * - COUNT ( * ) + 79
----
82

query I rowsort
SELECT ALL - 15 + + - 73 AS col0
----
-88

query I rowsort
SELECT 73 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT - NULLIF ( + COUNT( * ), + - 41 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4530
SELECT - NULLIF ( + COUNT ( * ), + - 41 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT + ( - ( - CAST( NULL AS SIGNED ) ) ) + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4531
SELECT + ( - ( - CAST ( NULL AS INTEGER ) ) ) + - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT COUNT( DISTINCT - 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT COUNT ( DISTINCT - 25 ) AS col2
----
1

query I rowsort
SELECT ALL - ( + 83 ) AS col1
----
-83

query I rowsort
SELECT DISTINCT 38 * + 49 AS col1
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL 30 + + COUNT( * ) + - 45 + + 22
----
8

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL 30 + + COUNT ( * ) + - 45 + + 22
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4536
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) * + ( + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) * + ( + 88 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT ALL - 20 DIV - - 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL - 20 / - - 77 AS col1
----
0

query I rowsort
SELECT ALL + - 85 - + 86
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT COUNT( 0 )
----
1

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT COUNT ( 0 )
----
1

query I rowsort
SELECT ALL ( + 47 ) col0
----
47

query I rowsort
SELECT + 92 col1
----
92

query II rowsort
SELECT ( 65 ) AS col1, 32
----
65
32

query I rowsort
SELECT ALL + - 75
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT - + 5 + + + COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-4544
SELECT - + 5 + + + COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4545
SELECT - COUNT( ALL - 54 ) AS col0, - 8 col1
----
-1
-8

skipif mysql # not compatible
query II rowsort label-4545
SELECT - COUNT ( ALL - 54 ) AS col0, - 8 col1
----
-1
-8

query I rowsort
SELECT ALL NULLIF ( - 55, + 4 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT 6 * - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-4547
SELECT 6 * - COUNT ( * )
----
-6

query I rowsort
SELECT + 47 * - 42 col1
----
-1974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT CAST( NULL AS SIGNED ) * + 81 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT CAST ( NULL AS INTEGER ) * + 81 col2
----
NULL

query I rowsort
SELECT + ( - 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT + MAX( - - 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4551
SELECT + MAX ( - - 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT ALL - 30 + + - MAX( ( - 0 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL - 30 + + - MAX ( ( - 0 ) ) AS col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4553
SELECT - 45 DIV - 30, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-4553
SELECT - 45 / - 30, + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT - 13 + - COUNT( + 50 )
----
-14

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - 13 + - COUNT ( + 50 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4555
SELECT DISTINCT + + CAST( 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT + + CAST ( 30 AS INTEGER )
----
30

query I rowsort
SELECT ALL + + 32 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT - CAST( - 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-4557
SELECT - CAST ( - 35 AS INTEGER )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT - 62 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-4558
SELECT - 62 / 96
----
0

query I rowsort
SELECT - NULLIF ( 47, + 37 ) AS col1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4560
SELECT ALL 56 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL 56 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 78 * 28 * - 88
----
192192

query I rowsort
SELECT 80 * + + 68
----
5440

query I rowsort
SELECT 38 col1
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4564
SELECT ( + - 70 ) DIV 48 col0
----
-1

skipif mysql # not compatible
query I rowsort label-4564
SELECT ( + - 70 ) / 48 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - MIN( ALL - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4565
SELECT - MIN ( ALL - 46 )
----
46

query I rowsort
SELECT 95 + 77
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT - - MIN( + - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-4567
SELECT - - MIN ( + - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT + ( COUNT( * ) ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4568
SELECT + ( COUNT ( * ) ) * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL + ( - 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT MAX( - + 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-4570
SELECT MAX ( - + 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT ALL + ( - COUNT( * ) ) + - + 51 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + ( - COUNT ( * ) ) + - + 51 AS col2
----
-52

query I rowsort
SELECT - + 15 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL + SUM( - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL + SUM ( - 10 )
----
-10

query I rowsort
SELECT + 57 * - ( - - 95 ) AS col0
----
-5415

query I rowsort
SELECT ALL 93 AS col2
----
93

query I rowsort
SELECT ALL - 94 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT 79 - - + MAX( DISTINCT 70 ) + + COUNT( * )
----
150

skipif mysql # not compatible
query I rowsort label-4577
SELECT 79 - - + MAX ( DISTINCT 70 ) + + COUNT ( * )
----
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4578
SELECT DISTINCT COUNT( * ) DIV 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT COUNT ( * ) / 64 AS col2
----
0

query I rowsort
SELECT ALL 28 * + 94
----
2632

query I rowsort
SELECT DISTINCT 63 * + 99 AS col1
----
6237

query I rowsort
SELECT DISTINCT - 72 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4582
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4583
SELECT DISTINCT COUNT( * ) DIV + NULLIF ( + 63, + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT COUNT ( * ) / + NULLIF ( + 63, + 41 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ALL - - MAX( + 68 ) - - + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - - MAX ( + 68 ) - - + COUNT ( * )
----
69

query I rowsort
SELECT - - ( + 94 ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + COUNT( * ) * + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT + COUNT ( * ) * + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT + COUNT( * ) + + 34 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT + COUNT ( * ) + + 34 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT + ( 71 ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT + ( 71 ) / + 74
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT ALL MIN( ALL - 5 ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL MIN ( ALL - 5 ) / + 53
----
0

query I rowsort
SELECT + + 33 - + - 49
----
82

query I rowsort
SELECT ALL + + 27 AS col1
----
27

query I rowsort
SELECT ALL + - 94 AS col0
----
-94

query I rowsort
SELECT - 33 * + 18
----
-594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4594
SELECT DISTINCT - SUM( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT - SUM ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4595
SELECT ALL - - COUNT( * ), + 58 AS col1
----
1
58

skipif mysql # not compatible
query II rowsort label-4595
SELECT ALL - - COUNT ( * ), + 58 AS col1
----
1
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4596
SELECT + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT + + 61 * + SUM( + - 93 )
----
-5673

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT + + 61 * + SUM ( + - 93 )
----
-5673

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT DISTINCT + CAST( NULL AS SIGNED ) - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - 38 AS col2
----
NULL

query I rowsort
SELECT - 79 + 65 AS col1
----
-14

query I rowsort
SELECT DISTINCT - ( - - 27 )
----
-27

query I rowsort
SELECT - + 3 AS col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4602
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT - CAST( - ( - + 40 ) AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-4603
SELECT - CAST ( - ( - + 40 ) AS INTEGER ) AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4604
SELECT DISTINCT - 80 * ( 97 ) DIV + COUNT( * )
----
-7760

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - 80 * ( 97 ) / + COUNT ( * )
----
-7760

query I rowsort
SELECT ( ( + + 18 ) )
----
18

query I rowsort
SELECT + - 98 * + 92
----
-9016

onlyif mysql # aggregate syntax: 
query II rowsort label-4607
SELECT ALL - COUNT( * ) AS col2, ( - ( - 35 ) ) AS col1
----
-1
35

skipif mysql # not compatible
query II rowsort label-4607
SELECT ALL - COUNT ( * ) AS col2, ( - ( - 35 ) ) AS col1
----
-1
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT ALL CAST( NULL AS SIGNED ) * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL CAST ( NULL AS INTEGER ) * + 8
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4609
SELECT CAST( NULL AS SIGNED ) + + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT CAST ( NULL AS INTEGER ) + + 65 AS col0
----
NULL

query I rowsort
SELECT ( + ( - 30 ) ) + 71
----
41

query I rowsort
SELECT - ( 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT COALESCE ( 40, + 55 * COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT COALESCE ( 40, + 55 * COUNT ( * ) )
----
40

query I rowsort
SELECT ALL + ( + 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL - 11 * + ( - ( - COUNT( * ) ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL - 11 * + ( - ( - COUNT ( * ) ) ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT 39 * NULLIF ( 9, COUNT( * ) / 56 ) + 65
----
416

skipif mysql # not compatible
query I rowsort label-4615
SELECT 39 * NULLIF ( 9, COUNT ( * ) / 56 ) + 65
----
416

query I rowsort
SELECT ALL - 76 + + 91 * 56
----
5020

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT 78 - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT 78 - COUNT ( * )
----
77

query I rowsort
SELECT - 7 + + 20 col1
----
13

query I rowsort
SELECT - + 53 * + 52 + + 35 AS col0
----
-2721

query I rowsort
SELECT + - 25 + + + 75 AS col0
----
50

query I rowsort
SELECT 1 col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4622
SELECT DISTINCT + MAX( - - 33 ) * - CAST( - 2 / + 58 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT + MAX ( - - 33 ) * - CAST ( - 2 / + 58 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4623
SELECT CAST( - 5 AS SIGNED ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4623
SELECT CAST ( - 5 AS INTEGER ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4624
SELECT + COUNT( * ) DIV CAST( + 20 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4624
SELECT + COUNT ( * ) / CAST ( + 20 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ( ( 11 ) ) AS col2
----
11

query I rowsort
SELECT ( - 48 )
----
-48

query I rowsort
SELECT ( - 34 ) col2
----
-34

query I rowsort
SELECT ALL + ( 26 )
----
26

query I rowsort
SELECT - - 71 * + 89
----
6319

query I rowsort
SELECT - - 51
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT ALL + 58 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL + 58 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT COUNT( * ) * - 80
----
-80

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT COUNT ( * ) * - 80
----
-80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4633
SELECT ALL + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT CAST( NULL AS SIGNED ) + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT CAST ( NULL AS INTEGER ) + + 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT ALL - 21 + - COUNT( - 75 )
----
-22

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - 21 + - COUNT ( - 75 )
----
-22

query I rowsort
SELECT ALL + 7 - + 9 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT COALESCE ( - COUNT( * ), 27, - 94 ) * - 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4637
SELECT COALESCE ( - COUNT ( * ), 27, - 94 ) * - 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT MAX( ALL - + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-4638
SELECT MAX ( ALL - + 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT COUNT( 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4639
SELECT COUNT ( 29 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4640
SELECT ALL - + CAST( 36 AS SIGNED ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - + CAST ( 36 AS INTEGER ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT + MAX( ALL + ( 33 ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + MAX ( ALL + ( 33 ) ) AS col1
----
33

query I rowsort
SELECT - - 49 col1
----
49

query I rowsort
SELECT - ( - 15 ) AS col1
----
15

query I rowsort
SELECT DISTINCT + 48 + - 81
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL MAX( ALL + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL MAX ( ALL + 38 )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4646
SELECT - 32 - - - ( + MIN( DISTINCT + + CAST( + 71 AS SIGNED ) ) ) AS col0
----
-103

skipif mysql # not compatible
query I rowsort label-4646
SELECT - 32 - - - ( + MIN ( DISTINCT + + CAST ( + 71 AS INTEGER ) ) ) AS col0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT DISTINCT + CAST( + + 62 AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT + CAST ( + + 62 AS INTEGER ) AS col2
----
62

query I rowsort
SELECT DISTINCT + 59 * 34
----
2006

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + COUNT( * ) + - + 0 * 12
----
1

skipif mysql # not compatible
query I rowsort label-4649
SELECT + COUNT ( * ) + - + 0 * 12
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ( - COUNT( - 90 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4650
SELECT ( - COUNT ( - 90 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT + + 32 * + - NULLIF ( + 18, - + COUNT( * ) )
----
-576

skipif mysql # not compatible
query I rowsort label-4651
SELECT + + 32 * + - NULLIF ( + 18, - + COUNT ( * ) )
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT + MAX( - 5 ) + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-4652
SELECT + MAX ( - 5 ) + COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT + + 64 + 40
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT ALL CAST( + 50 AS SIGNED ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL CAST ( + 50 AS INTEGER ) AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT ALL + - ( ( + - 47 ) ) * ( - 22 ) DIV COUNT( * ) * COUNT( * )
----
-1034

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + - ( ( + - 47 ) ) * ( - 22 ) / COUNT ( * ) * COUNT ( * )
----
-1034

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT ALL - MIN( DISTINCT - ( - ( + 67 ) ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - MIN ( DISTINCT - ( - ( + 67 ) ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL MAX( + + 10 ) * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL MAX ( + + 10 ) * COUNT ( * )
----
10

query I rowsort
SELECT + + 1 AS col1
----
1

query I rowsort
SELECT ALL - - 22 AS col1
----
22

query I rowsort
SELECT ALL - + 89 AS col0
----
-89

query I rowsort
SELECT ALL - - 69 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ALL - - ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL - - ( + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - ( + 17 ) * + ( - 65 )
----
1105

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT 96 * COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4664
SELECT 96 * COUNT ( * ) AS col1
----
96

query I rowsort
SELECT DISTINCT + 88 col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4666
SELECT + CAST( + COUNT( * ) AS SIGNED ) - - 70
----
71

skipif mysql # not compatible
query I rowsort label-4666
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - - 70
----
71

query I rowsort
SELECT DISTINCT - 27 * - + 93
----
2511

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT DISTINCT + COUNT( * ) AS col0, + 9 AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-4668
SELECT DISTINCT + COUNT ( * ) AS col0, + 9 AS col2
----
1
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT DISTINCT + CAST( 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT + CAST ( 25 AS INTEGER )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL - MAX( + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL - MAX ( + 90 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4671
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4671
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4672
SELECT ALL - 91 AS col0, CAST( NULL AS SIGNED )
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-4672
SELECT ALL - 91 AS col0, CAST ( NULL AS INTEGER )
----
-91
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4673
SELECT + - CAST( - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT + - CAST ( - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT ALL - 66 col0
----
-66

query II rowsort
SELECT ALL - ( 26 ), 44 AS col0
----
-26
44

query I rowsort
SELECT + - 26 AS col0
----
-26

query I rowsort
SELECT DISTINCT + 82 col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4678
SELECT DISTINCT 37 DIV - + 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT 37 / - + 77 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT - 4 * - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4679
SELECT - 4 * - COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT ALL + SUM( ALL - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4680
SELECT ALL + SUM ( ALL - 58 ) AS col2
----
-58

query I rowsort
SELECT + 32 * - 90
----
-2880

onlyif mysql # aggregate syntax: 
query II rowsort label-4682
SELECT ALL + ( 73 ), - SUM( + + 30 ) AS col2
----
73
-30

skipif mysql # not compatible
query II rowsort label-4682
SELECT ALL + ( 73 ), - SUM ( + + 30 ) AS col2
----
73
-30

query I rowsort
SELECT - + ( 18 ) AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT 59 + - 81 + + - ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT 59 + - 81 + + - ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT 66 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT 66 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL - 10 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT DISTINCT - COUNT( + + 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT - COUNT ( + + 55 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT - COUNT( DISTINCT - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT - COUNT ( DISTINCT - 37 )
----
-1

query I rowsort
SELECT 55 + 89 AS col2
----
144

query I rowsort
SELECT - + 27 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4692
SELECT ALL + COUNT( * ), 38 * ( - 62 ) AS col0
----
1
-2356

skipif mysql # not compatible
query II rowsort label-4692
SELECT ALL + COUNT ( * ), 38 * ( - 62 ) AS col0
----
1
-2356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT 34 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT 34 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT SUM( DISTINCT + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4694
SELECT SUM ( DISTINCT + 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT COUNT( DISTINCT 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4695
SELECT COUNT ( DISTINCT 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - + COUNT( * ) + 72 - + + 16
----
55

skipif mysql # not compatible
query I rowsort label-4696
SELECT - + COUNT ( * ) + 72 - + + 16
----
55

query I rowsort
SELECT DISTINCT 75 * + - 57 AS col1
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL - 46 + - + COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - 46 + - + COUNT ( * ) AS col0
----
-47

query I rowsort
SELECT + 91 - - 90 * - + 74
----
-6569

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT DISTINCT COUNT( DISTINCT - 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT COUNT ( DISTINCT - 11 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT COUNT( * ) * - 34 + + 69 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4701
SELECT COUNT ( * ) * - 34 + + 69 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT ( - SUM( ALL + - 23 ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4702
SELECT ( - SUM ( ALL + - 23 ) ) AS col0
----
23

query I rowsort
SELECT ( - 94 ) AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4704
SELECT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT - - 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT - COUNT( * ) * + MAX( + + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-4706
SELECT - COUNT ( * ) * + MAX ( + + 15 )
----
-15

query I rowsort
SELECT ALL ( - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL - + NULLIF ( 80, - ( MIN( DISTINCT - 24 ) ) ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL - + NULLIF ( 80, - ( MIN ( DISTINCT - 24 ) ) ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT + COUNT( * ) * + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4709
SELECT + COUNT ( * ) * + 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-4710
SELECT + 24 AS col0, - MIN( DISTINCT 13 )
----
24
-13

skipif mysql # not compatible
query II rowsort label-4710
SELECT + 24 AS col0, - MIN ( DISTINCT 13 )
----
24
-13

query I rowsort
SELECT ALL + 8 + + 57
----
65

query II rowsort
SELECT 56, + 84 AS col0
----
56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT 4 * + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-4713
SELECT 4 * + COUNT ( * ) AS col0
----
4

query II rowsort
SELECT - 78 AS col1, 20 AS col0
----
-78
20

query I rowsort
SELECT ALL - 26 * - - 31 AS col0
----
-806

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT + COUNT( * ) * + 54
----
54

skipif mysql # not compatible
query I rowsort label-4716
SELECT + COUNT ( * ) * + 54
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4717
SELECT - 52, - CAST( NULL AS DECIMAL ) AS col0
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-4717
SELECT - 52, - CAST ( NULL AS REAL ) AS col0
----
-52
NULL

query I rowsort
SELECT DISTINCT + ( + + 18 ) AS col0
----
18

query I rowsort
SELECT ALL ( - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL - COUNT( * ) * - 66 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - COUNT ( * ) * - 66 AS col1
----
66

query I rowsort
SELECT ALL - 57 * + 27 AS col0
----
-1539

query I rowsort
SELECT ALL ( - ( - + 30 ) )
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4723
SELECT DISTINCT + 26 DIV + 74 + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + 26 / + 74 + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4724
SELECT + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) + + + 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4724
SELECT + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + + 35 AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4725
SELECT + CAST( + 22 AS SIGNED ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4725
SELECT + CAST ( + 22 AS INTEGER ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT + COUNT( * ) * + - ( - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4726
SELECT + COUNT ( * ) * + - ( - 86 )
----
86

query I rowsort
SELECT DISTINCT - 74 + + - 47 col2
----
-121

query I rowsort
SELECT - - 0
----
0

query I rowsort
SELECT ALL - + 71 AS col0
----
-71

query I rowsort
SELECT + + 25 AS col0
----
25

query II rowsort
SELECT + 29 AS col2, + 10
----
29
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4732
SELECT DISTINCT 78 - - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT 78 - - COUNT ( * )
----
79

query I rowsort
SELECT ALL + + 71 * + 58 AS col0
----
4118

query I rowsort
SELECT DISTINCT + ( 96 )
----
96

query II rowsort
SELECT DISTINCT - ( + 76 ), + 2 col1
----
-76
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT MAX( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-4736
SELECT MAX ( + 24 )
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT ALL 78 DIV 14 * + 10
----
50

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL 78 / 14 * + 10
----
50

query I rowsort
SELECT ALL - 23 * - + 24
----
552

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT ALL 97 DIV - 85 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL 97 / - 85 AS col0
----
-1

query I rowsort
SELECT ALL + 20 + - 7
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL - SUM( ALL + 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - SUM ( ALL + 91 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL + COUNT( * ) * 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL + COUNT ( * ) * 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL - 60 + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - 60 + - COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL MIN( ALL + + 18 ) - 41
----
-23

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL MIN ( ALL + + 18 ) - 41
----
-23

query I rowsort
SELECT 3 + - 63 - - 10
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT MAX( 69 )
----
69

skipif mysql # not compatible
query I rowsort label-4746
SELECT MAX ( 69 )
----
69

query I rowsort
SELECT ALL - 83 AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4748
SELECT CAST( - 59 AS SIGNED ) * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT CAST ( - 59 AS INTEGER ) * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT ALL CAST( NULL AS SIGNED ) / + 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL CAST ( NULL AS INTEGER ) / + 76 col0
----
NULL

query I rowsort
SELECT ALL - + 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL - 8 + + 17 - - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - 8 + + 17 - - COUNT ( * )
----
10

query I rowsort
SELECT DISTINCT + 35 * - 5 AS col0
----
-175

query I rowsort
SELECT - 14 * + 23 AS col2
----
-322

query I rowsort
SELECT DISTINCT + 28 * - 3
----
-84

query I rowsort
SELECT DISTINCT + 93 col1
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4756
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 91 + - 88 AS col0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT + COUNT( * ) + + 58 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4758
SELECT + COUNT ( * ) + + 58 AS col1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT DISTINCT + 89 DIV - 42
----
-2

skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + 89 / - 42
----
-2

query I rowsort
SELECT 12 + + 82
----
94

query I rowsort
SELECT DISTINCT - ( - 37 ) col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL - CAST( 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL - CAST ( 3 AS INTEGER )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL 19 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL 19 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 37 AS col1
----
37

query I rowsort
SELECT DISTINCT - 74 - - 60 AS col1
----
-14

query II rowsort
SELECT ALL + - 43 AS col2, 58 AS col0
----
-43
58

query I rowsort
SELECT DISTINCT ( + 99 )
----
99

query I rowsort
SELECT ALL 95 + + 53 AS col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4769
SELECT - CAST( COUNT( ALL - ( 4 ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4769
SELECT - CAST ( COUNT ( ALL - ( 4 ) ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT + - 76 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4771
SELECT MAX( CAST( NULL AS SIGNED ) ), 25 AS col2
----
NULL
25

skipif mysql # not compatible
query II rowsort label-4771
SELECT MAX ( CAST ( NULL AS INTEGER ) ), 25 AS col2
----
NULL
25

query I rowsort
SELECT ( 52 ) col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4773
SELECT + ( - MIN( ALL - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT + ( - MIN ( ALL - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ( 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4775
SELECT DISTINCT + NULLIF ( - 44, - 1 * - 71 ) AS col2, - COUNT( * ) + 78 AS col1
----
-44
77

skipif mysql # not compatible
query II rowsort label-4775
SELECT DISTINCT + NULLIF ( - 44, - 1 * - 71 ) AS col2, - COUNT ( * ) + 78 AS col1
----
-44
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL + 25 * - + COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + 25 * - + COUNT ( * ) AS col1
----
-25

query I rowsort
SELECT - 84 col1
----
-84

query I rowsort
SELECT ( - 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-4779
SELECT DISTINCT - COUNT( * ) AS col2, + 5
----
-1
5

skipif mysql # not compatible
query II rowsort label-4779
SELECT DISTINCT - COUNT ( * ) AS col2, + 5
----
-1
5

query I rowsort
SELECT 92 * - 81 + - 41
----
-7493

query I rowsort
SELECT + 72 AS col2
----
72

query I rowsort
SELECT ALL 49 + - 84
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4783
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT 65 * - 23 AS col1
----
-1495

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT COUNT( * ) AS col0, 31
----
1
31

skipif mysql # not compatible
query II rowsort label-4785
SELECT COUNT ( * ) AS col0, 31
----
1
31

query I rowsort
SELECT ALL ( ( - 92 ) )
----
-92

query I rowsort
SELECT - - 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT - SUM( DISTINCT - 42 ) * - - 88 col1
----
3696

skipif mysql # not compatible
query I rowsort label-4788
SELECT - SUM ( DISTINCT - 42 ) * - - 88 col1
----
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT + 97 + - 2 + + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-4789
SELECT + 97 + - 2 + + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ( ( + + COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4790
SELECT ( ( + + COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + 66 * - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + 66 * - COUNT ( * ) AS col2
----
-66

query I rowsort
SELECT ( + - 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT - COUNT( * ) * 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-4793
SELECT - COUNT ( * ) * 77 AS col1
----
-77

query I rowsort
SELECT ALL 38 * + - 54
----
-2052

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT SUM( DISTINCT - - 83 ) * + COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4795
SELECT SUM ( DISTINCT - - 83 ) * + COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL - COUNT( * ) + - 72 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - COUNT ( * ) + - 72 AS col0
----
-73

query I rowsort
SELECT ( + 24 ) * - 83 AS col0
----
-1992

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL - - COALESCE ( MAX( ALL + 15 ), - 22 )
----
15

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL - - COALESCE ( MAX ( ALL + 15 ), - 22 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4799
SELECT ( - CAST( - 42 AS SIGNED ) ) - + + 4 + - - 44 DIV + COUNT( * ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4799
SELECT ( - CAST ( - 42 AS INTEGER ) ) - + + 4 + - - 44 / + COUNT ( * ) AS col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT 17 DIV + + COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4800
SELECT 17 / + + COUNT ( * ) AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT SUM( ALL ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT SUM ( ALL ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - + 64 AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT + COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 97 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4805
SELECT ALL 40 AS col2, COUNT( * ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-4805
SELECT ALL 40 AS col2, COUNT ( * ) AS col1
----
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT - - COUNT( 77 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4806
SELECT - - COUNT ( 77 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT - 74 DIV 62 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4807
SELECT - 74 / 62 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT + 52 + 99 + - 99 * MAX( DISTINCT - 58 ) AS col2
----
5893

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT + 52 + 99 + - 99 * MAX ( DISTINCT - 58 ) AS col2
----
5893

query I rowsort
SELECT ALL NULLIF ( - 32, - ( - 99 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT DISTINCT + + ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + + ( - - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT + 68 * 53 AS col0
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT + COUNT( * ) * - + 3
----
-3

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + COUNT ( * ) * - + 3
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4813
SELECT - COUNT( * ), - 58 AS col0
----
-1
-58

skipif mysql # not compatible
query II rowsort label-4813
SELECT - COUNT ( * ), - 58 AS col0
----
-1
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT DISTINCT + + ( - 51 ) * - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT + + ( - 51 ) * - COUNT ( * )
----
51

query I rowsort
SELECT ( 1 ) AS col0
----
1

query I rowsort
SELECT NULLIF ( + 52, - 52 ) - + - 96 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT SUM( + 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4817
SELECT SUM ( + 74 ) AS col0
----
74

query I rowsort
SELECT ALL - - 42 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT + CAST( + - ( + 6 ) AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-4819
SELECT + CAST ( + - ( + 6 ) AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4820
SELECT + - SUM( ALL - + 94 ), COUNT( * ) AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-4820
SELECT + - SUM ( ALL - + 94 ), COUNT ( * ) AS col0
----
94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL - 19 + 28 + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - 19 + 28 + COUNT ( * )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4822
SELECT COUNT( * ) + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT COUNT ( * ) + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4823
SELECT DISTINCT + MIN( + 65 ) col2, + COUNT( * ) AS col0
----
65
1

skipif mysql # not compatible
query II rowsort label-4823
SELECT DISTINCT + MIN ( + 65 ) col2, + COUNT ( * ) AS col0
----
65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT - COUNT( * ) * 56
----
-56

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - COUNT ( * ) * 56
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4825
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - MAX( DISTINCT + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4826
SELECT - MAX ( DISTINCT + 97 )
----
-97

query I rowsort
SELECT ALL ( - 22 )
----
-22

query I rowsort
SELECT ALL ( + 73 ) AS col2
----
73

query II rowsort
SELECT + 33 AS col2, + 59
----
33
59

query II rowsort
SELECT ALL + 96 col0, - 47 AS col2
----
96
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT ALL + 51 DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL + 51 / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT + ( - SUM( + 69 ) ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-4832
SELECT + ( - SUM ( + 69 ) ) AS col2
----
-69

query I rowsort
SELECT ALL 13 * + - 63
----
-819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4834
SELECT DISTINCT CAST( + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT CAST ( + 2 AS INTEGER )
----
2

query I rowsort
SELECT NULLIF ( + 38, + 73 ) + + 15
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT DISTINCT + + 88 * + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4836
SELECT DISTINCT + + 88 * + - COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT DISTINCT SUM( ALL 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT SUM ( ALL 88 ) AS col1
----
88

query I rowsort
SELECT ALL + 54 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT MIN( 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4839
SELECT MIN ( 53 ) AS col0
----
53

query I rowsort
SELECT ALL - 40 + - + ( - 1 ) AS col0
----
-39

query I rowsort
SELECT + ( - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT + - 1 * + + ( - + 61 ) * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4842
SELECT + - 1 * + + ( - + 61 ) * COUNT ( * )
----
61

query I rowsort
SELECT DISTINCT + 48 AS col0
----
48

query I rowsort
SELECT - + 89 AS col0
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4845
SELECT ALL - COUNT( * ) / + 27 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL - COUNT ( * ) / + 27 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4846
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT + 25 + + COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-4847
SELECT + 25 + + COUNT ( * ) col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT ALL + - CAST( + + 96 AS SIGNED ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL + - CAST ( + + 96 AS INTEGER ) AS col2
----
-96

query I rowsort
SELECT - - 68 col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - COUNT( * ) * 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-4850
SELECT - COUNT ( * ) * 92 AS col1
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT ALL CAST( NULL AS SIGNED ) + - + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL CAST ( NULL AS INTEGER ) + - + 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4852
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT + CAST ( NULL AS REAL ) + + + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + 92 ) AS col0
----
92

query I rowsort
SELECT ALL - 6 col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4855
SELECT + + COUNT( * ), + 35 AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-4855
SELECT + + COUNT ( * ), + 35 AS col1
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT - + MAX( DISTINCT + 55 ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-4856
SELECT - + MAX ( DISTINCT + 55 ) col1
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4857
SELECT ALL 44 + - 90 AS col1, COUNT( * ) col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-4857
SELECT ALL 44 + - 90 AS col1, COUNT ( * ) col2
----
-46
1

query I rowsort
SELECT ALL 90 - 16
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT COUNT( * ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4859
SELECT COUNT ( * ) * COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT + - CASE - + 0 WHEN COUNT( * ) THEN 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4860
SELECT + - CASE - + 0 WHEN COUNT ( * ) THEN 19 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT + 84 * - COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + 84 * - COUNT ( * ) AS col1
----
-84

query I rowsort
SELECT DISTINCT - - 88 AS col0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-4863
SELECT 0 DIV - ( - + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-4863
SELECT 0 / - ( - + 84 )
----
0

query I rowsort
SELECT - 60 * + + 67 AS col1
----
-4020

query I rowsort
SELECT ALL 27 col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT - MIN( 37 ) * + 88 AS col2
----
-3256

skipif mysql # not compatible
query I rowsort label-4866
SELECT - MIN ( 37 ) * + 88 AS col2
----
-3256

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL COUNT( ALL 24 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL COUNT ( ALL 24 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4868
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT - ( 20 ) col2
----
-20

query I rowsort
SELECT + - ( 80 ) AS col1
----
-80

query I rowsort
SELECT ALL 22 * + 7
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT - + MAX( DISTINCT 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - + MAX ( DISTINCT 1 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ( COUNT( * ) ) * 79
----
79

skipif mysql # not compatible
query I rowsort label-4873
SELECT ( COUNT ( * ) ) * 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT + + 15 + COUNT( * ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + + 15 + COUNT ( * ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL + COUNT( * ) * + - 30 * + 27 AS col0
----
-810

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL + COUNT ( * ) * + - 30 * + 27 AS col0
----
-810

query I rowsort
SELECT - 44 col0
----
-44

query II rowsort
SELECT - 67 AS col0, - 61 AS col2
----
-67
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + COUNT( * ) + + ( - COUNT( DISTINCT + 77 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT + COUNT ( * ) + + ( - COUNT ( DISTINCT + 77 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT - 87 + + - COUNT( * ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-4879
SELECT - 87 + + - COUNT ( * ) col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT SUM( - - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-4880
SELECT SUM ( - - 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4881
SELECT ALL + 72 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + 72 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 73 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4883
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 73 AS col2
----
73

query I rowsort
SELECT ALL + + 84 AS col0
----
84

query I rowsort
SELECT NULLIF ( + + 72, - 43 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COALESCE ( COUNT( * ), - 6, + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4887
SELECT COALESCE ( COUNT ( * ), - 6, + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT COUNT( * ) * 96 AS col2
----
96

skipif mysql # not compatible
query I rowsort label-4888
SELECT COUNT ( * ) * 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4889
SELECT ALL + 52 AS col0, ( - COUNT( * ) )
----
52
-1

skipif mysql # not compatible
query II rowsort label-4889
SELECT ALL + 52 AS col0, ( - COUNT ( * ) )
----
52
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT - COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4890
SELECT - COUNT ( * ) + + COUNT ( * )
----
0

query I rowsort
SELECT 63 - 49 AS col1
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT ALL COUNT( * ) - - 45 DIV - 58
----
1

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL COUNT ( * ) - - 45 / - 58
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT + 53 col2, - 88 * - - COUNT( * )
----
53
-88

skipif mysql # not compatible
query II rowsort label-4893
SELECT + 53 col2, - 88 * - - COUNT ( * )
----
53
-88

query I rowsort
SELECT ALL 6 - - 99
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + SUM( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + SUM ( ALL - 73 )
----
-73

query I rowsort
SELECT - 76 col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT ALL - ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT ALL - ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT 69 * - - COUNT( * ) - + - 10
----
79

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT 69 * - - COUNT ( * ) - + - 10
----
79

query I rowsort
SELECT ALL + 15 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - COUNT( * ) + + COUNT( + + 1 ) + 88
----
88

skipif mysql # not compatible
query I rowsort label-4900
SELECT - COUNT ( * ) + + COUNT ( + + 1 ) + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT ALL + SUM( ALL 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL + SUM ( ALL 7 ) col0
----
7

query I rowsort
SELECT ALL - 97 * - 63
----
6111

query I rowsort
SELECT ALL + ( - - 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT - COUNT( * ) DIV 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4904
SELECT - COUNT ( * ) / 16 AS col2
----
0

query I rowsort
SELECT ALL + ( - 52 ) AS col0
----
-52

query I rowsort
SELECT DISTINCT + - 27 AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT + ( CAST( + + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 98 END AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4907
SELECT + ( CAST ( + + CASE WHEN NOT NULL IS NOT NULL THEN NULL ELSE 98 END AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4908
SELECT DISTINCT - + CAST( - + 27 AS SIGNED ) * CAST( + 18 AS SIGNED ) + - + 20 AS col0
----
466

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT - + CAST ( - + 27 AS INTEGER ) * CAST ( + 18 AS INTEGER ) + - + 20 AS col0
----
466

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT + ( - - 84 ) + COUNT( * ) AS col1, + 6 AS col0
----
85
6

skipif mysql # not compatible
query II rowsort label-4909
SELECT + ( - - 84 ) + COUNT ( * ) AS col1, + 6 AS col0
----
85
6

query I rowsort
SELECT + + 22 * + + 55 AS col0
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT + SUM( DISTINCT - 0 ) * + 40
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT + SUM ( DISTINCT - 0 ) * + 40
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4912
SELECT ALL - CAST( + 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - CAST ( + 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL + NULLIF ( COUNT( DISTINCT - 1 ), - 26 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + NULLIF ( COUNT ( DISTINCT - 1 ), - 26 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4916
SELECT ALL - COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT 34 - - 47 col2
----
81

query II rowsort
SELECT - 39 AS col0, 20
----
-39
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4919
SELECT + COUNT( * ) DIV - 25 * - - 65
----
0

skipif mysql # not compatible
query I rowsort label-4919
SELECT + COUNT ( * ) / - 25 * - - 65
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT ALL + MIN( DISTINCT + 23 ) + - + 84
----
-61

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL + MIN ( DISTINCT + 23 ) + - + 84
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + 49 * COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4921
SELECT + 49 * COUNT ( * ) AS col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4922
SELECT ALL - 58 DIV + MAX( ALL + 54 ) - - 8
----
7

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - 58 / + MAX ( ALL + 54 ) - - 8
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT + COUNT( * ) + + - 71
----
-70

skipif mysql # not compatible
query I rowsort label-4923
SELECT + COUNT ( * ) + + - 71
----
-70

query I rowsort
SELECT - 96 + 68
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL - + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL COUNT( * ) + 51 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL COUNT ( * ) + 51 AS col0
----
52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4927
SELECT ALL - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4928
SELECT COUNT( * ) * 99 * - CAST( 57 AS SIGNED ) AS col0
----
-5643

skipif mysql # not compatible
query I rowsort label-4928
SELECT COUNT ( * ) * 99 * - CAST ( 57 AS INTEGER ) AS col0
----
-5643

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL 52 * - + MIN( - - 11 )
----
-572

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL 52 * - + MIN ( - - 11 )
----
-572

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4930
SELECT ALL ( - SUM( DISTINCT 91 ) ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL ( - SUM ( DISTINCT 91 ) ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4931
SELECT ALL ( - CAST( - COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL ( - CAST ( - COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT DISTINCT - + 18 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - COUNT( * ) * + COUNT( * ) * + 51
----
-51

skipif mysql # not compatible
query I rowsort label-4933
SELECT - COUNT ( * ) * + COUNT ( * ) * + 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - SUM( - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-4934
SELECT - SUM ( - 69 )
----
69

query I rowsort
SELECT ALL + 4 + 72 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4936
SELECT + 42 + - COUNT( * ) * CAST( NULL AS SIGNED ) * - COALESCE ( - 58, - - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT + 42 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - COALESCE ( - 58, - - 39 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL + MIN( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + MIN ( + 4 )
----
4

query I rowsort
SELECT ( - + 48 ) col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4939
SELECT ALL + 97 AS col0, + COUNT( * ) DIV 74
----
97
0

skipif mysql # not compatible
query II rowsort label-4939
SELECT ALL + 97 AS col0, + COUNT ( * ) / 74
----
97
0

query I rowsort
SELECT - - 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT ALL + MIN( + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL + MIN ( + 67 ) AS col2
----
67

query I rowsort
SELECT ALL - ( 43 ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4943
SELECT - + 58, - COUNT( * ) AS col0
----
-58
-1

skipif mysql # not compatible
query II rowsort label-4943
SELECT - + 58, - COUNT ( * ) AS col0
----
-58
-1

query I rowsort
SELECT 33 * - 94 col0
----
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT DISTINCT 72 * + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT 72 * + - COUNT ( * )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4946
SELECT 52 DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4946
SELECT 52 / + 96 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT COUNT( * ) DIV + + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4947
SELECT COUNT ( * ) / + + 36 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT DISTINCT - 14 * COUNT( * ) * 20
----
-280

skipif mysql # not compatible
query I rowsort label-4948
SELECT DISTINCT - 14 * COUNT ( * ) * 20
----
-280

query I rowsort
SELECT DISTINCT - 9 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4950
SELECT + COUNT( * ) - COUNT( * ) DIV - + 12 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4950
SELECT + COUNT ( * ) - COUNT ( * ) / - + 12 AS col1
----
1

query I rowsort
SELECT - ( - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT + 13 + - MIN( ALL - 31 )
----
44

skipif mysql # not compatible
query I rowsort label-4952
SELECT + 13 + - MIN ( ALL - 31 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4953
SELECT DISTINCT - 19 AS col1, - COUNT( * ) + COUNT( * ) col1
----
-19
0

skipif mysql # not compatible
query II rowsort label-4953
SELECT DISTINCT - 19 AS col1, - COUNT ( * ) + COUNT ( * ) col1
----
-19
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT MAX( ALL - 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4954
SELECT MAX ( ALL - 2 ) AS col1
----
-2

query I rowsort
SELECT - 73 col1
----
-73

query I rowsort
SELECT DISTINCT + ( + 17 ) + + + 15
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4957
SELECT ALL + CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL + CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT - 90 DIV - - 90 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4958
SELECT - 90 / - - 90 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - 82 + - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4959
SELECT - 82 + - COUNT ( * ) AS col0
----
-83

query I rowsort
SELECT ( + + 82 )
----
82

query I rowsort
SELECT ( - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL 64 * - + COUNT( * ) * + 52
----
-3328

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL 64 * - + COUNT ( * ) * + 52
----
-3328

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT ALL 11 DIV - + 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL 11 / - + 44 AS col0
----
0

query I rowsort
SELECT ALL 45 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4965
SELECT + - 20 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4965
SELECT + - 20 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - COUNT( * ) - + + 7
----
-8

skipif mysql # not compatible
query I rowsort label-4966
SELECT - COUNT ( * ) - + + 7
----
-8

query II rowsort
SELECT - 36 AS col2, 20
----
-36
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL - COUNT( - + 11 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL - COUNT ( - + 11 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT - ( + 69 ) DIV + 12 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4969
SELECT - ( + 69 ) / + 12 AS col1
----
-5

query I rowsort
SELECT - - 4 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT ALL - COUNT( * ) + - + 27
----
-28

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - COUNT ( * ) + - + 27
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT COUNT( * ) - SUM( ALL 11 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4972
SELECT COUNT ( * ) - SUM ( ALL 11 ) AS col1
----
-10

query I rowsort
SELECT 51 - + 5 * 61
----
-254

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL COUNT( DISTINCT - - 36 ) * + + 23 AS col1
----
23

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL COUNT ( DISTINCT - - 36 ) * + + 23 AS col1
----
23

query II rowsort
SELECT 46 AS col2, - 92 col2
----
46
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT + + ( - - ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4976
SELECT + + ( - - ( - COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT ALL COUNT( * ) - - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL COUNT ( * ) - - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT ALL 24 DIV - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL 24 / - COUNT ( * ) AS col0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-4979
SELECT ALL 41 DIV - 96 * + 97
----
0

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL 41 / - 96 * + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT - ( - COUNT( * ) ) * + 49 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4980
SELECT - ( - COUNT ( * ) ) * + 49 AS col1
----
49

query I rowsort
SELECT ALL + - ( + ( 67 ) ) AS col1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT + 7 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4982
SELECT + 7 / 94 AS col1
----
0

query I rowsort
SELECT + 93 + - 59
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT ALL 62 + + CAST( NULL AS SIGNED ) + - - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL 62 + + CAST ( NULL AS INTEGER ) + - - 37
----
NULL

query II rowsort
SELECT + - 22 AS col1, ( - + 9 )
----
-22
-9

query I rowsort
SELECT ALL + + 42 col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4987
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL + 46 * ( + COUNT( * ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL + 46 * ( + COUNT ( * ) ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL - 74 * + + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - 74 * + + COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT ALL 12 * - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4990
SELECT ALL 12 * - COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT + 16 * - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-4991
SELECT + 16 * - COUNT ( * )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT ALL - 5 + + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - 5 + + + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 71 * + 0 AS col2
----
0

query I rowsort
SELECT 55 * + + ( + 95 ) AS col0
----
5225

query I rowsort
SELECT 14 * + 72
----
1008

query I rowsort
SELECT DISTINCT 21 AS col2
----
21

query I rowsort
SELECT DISTINCT - - 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT - 31 * - COUNT( * ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-4998
SELECT - 31 * - COUNT ( * ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4999
SELECT CAST( + 96 AS SIGNED ) * 56 + + COUNT( * ) AS col2
----
5377

skipif mysql # not compatible
query I rowsort label-4999
SELECT CAST ( + 96 AS INTEGER ) * 56 + + COUNT ( * ) AS col2
----
5377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL + CAST( + ( + COUNT( * ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT DISTINCT - COUNT( * ) + 22 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5001
SELECT DISTINCT - COUNT ( * ) + 22 AS col1
----
21

query I rowsort
SELECT - - 15 col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5003
SELECT + SUM( 71 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT + SUM ( 71 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5004
SELECT + 28 * + + COUNT( * ) col0, MIN( ALL CAST( NULL AS SIGNED ) )
----
28
NULL

skipif mysql # not compatible
query II rowsort label-5004
SELECT + 28 * + + COUNT ( * ) col0, MIN ( ALL CAST ( NULL AS INTEGER ) )
----
28
NULL

query I rowsort
SELECT ALL + - 47
----
-47

query I rowsort
SELECT + ( + 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5007
SELECT ( + - 64 ) AS col1, + COUNT( * )
----
-64
1

skipif mysql # not compatible
query II rowsort label-5007
SELECT ( + - 64 ) AS col1, + COUNT ( * )
----
-64
1

query I rowsort
SELECT ALL - 16 * ( 47 ) AS col2
----
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT COALESCE ( + COUNT( * ), 85, - 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5009
SELECT COALESCE ( + COUNT ( * ), 85, - 10 ) AS col0
----
1

query I rowsort
SELECT - 11 * - 51 AS col0
----
561

query I rowsort
SELECT DISTINCT + 58 AS col0
----
58

query I rowsort
SELECT DISTINCT ( - - 40 ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT - 92 / + CAST( NULL AS SIGNED ) * + ( 24 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT - 92 / + CAST ( NULL AS INTEGER ) * + ( 24 )
----
NULL

query I rowsort
SELECT ( 84 ) + - ( - + 85 ) AS col2
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5015
SELECT ALL - CAST( - COUNT( ALL - + 1 ) AS SIGNED ) * - 44 * 21 * - + COUNT( * ) AS col0
----
924

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL - CAST ( - COUNT ( ALL - + 1 ) AS INTEGER ) * - 44 * 21 * - + COUNT ( * ) AS col0
----
924

query I rowsort
SELECT - 41 col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5017
SELECT ALL - CAST( - 61 AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - CAST ( - 61 AS INTEGER ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT ALL CAST( - 75 AS SIGNED ) * - 63
----
4725

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL CAST ( - 75 AS INTEGER ) * - 63
----
4725

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT + MIN( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5019
SELECT + MIN ( + 40 )
----
40

query I rowsort
SELECT + - 83 col2
----
-83

query I rowsort
SELECT ALL - - 64 AS col1
----
64

query I rowsort
SELECT + ( + + 17 )
----
17

query I rowsort
SELECT + 10 * + 85 - + - 92 AS col2
----
942

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5024
SELECT DISTINCT CAST( - 34 AS SIGNED ) + - COUNT( * ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT CAST ( - 34 AS INTEGER ) + - COUNT ( * ) AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - COUNT( * ) * - MIN( DISTINCT ( - 87 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-5025
SELECT - COUNT ( * ) * - MIN ( DISTINCT ( - 87 ) )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL + CAST( + 72 AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL + CAST ( + 72 AS INTEGER ) AS col2
----
72

query I rowsort
SELECT ( - 94 ) col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT + MIN( + + 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5028
SELECT + MIN ( + + 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL + - 0 * + COUNT( * ) + + + 69 * + 18 * - COUNT( * )
----
-1242

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL + - 0 * + COUNT ( * ) + + + 69 * + 18 * - COUNT ( * )
----
-1242

query I rowsort
SELECT ALL + - 98 AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5032
SELECT - 11 DIV + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5032
SELECT - 11 / + COUNT ( * ) AS col2
----
-11

query I rowsort
SELECT + + 38 AS col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT 71 DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT 71 / 75 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT DISTINCT CAST( + - ( 26 ) AS SIGNED ) - 43
----
-69

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT CAST ( + - ( 26 ) AS INTEGER ) - 43
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT COUNT( * ) - - + 61
----
62

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) - - + 61
----
62

query I rowsort
SELECT ALL - + 82
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT COUNT( * ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5038
SELECT COUNT ( * ) / + - COUNT ( * )
----
-1

query I rowsort
SELECT 36 + 14 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT DISTINCT COALESCE ( + ( - COUNT( * ) ), - + 10 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT COALESCE ( + ( - COUNT ( * ) ), - + 10 ) AS col2
----
-1

query I rowsort
SELECT ALL + ( - - 82 ) col0
----
82

query I rowsort
SELECT ALL + - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + ( + 54 ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT MAX( DISTINCT 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT MAX ( DISTINCT 15 ) AS col0
----
15

query I rowsort
SELECT ALL + + 15
----
15

query I rowsort
SELECT DISTINCT + - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT 81 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-5048
SELECT 81 * - COUNT ( * )
----
-81

query II rowsort
SELECT ALL + 10 AS col1, + 75
----
10
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT + SUM( ( + 95 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5050
SELECT + SUM ( ( + 95 ) ) AS col2
----
95

query I rowsort
SELECT + 20 * - - 45
----
900

query I rowsort
SELECT ALL ( 54 )
----
54

query I rowsort
SELECT DISTINCT - 36 * + 6
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT MAX( ALL + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-5054
SELECT MAX ( ALL + 64 )
----
64

query I rowsort
SELECT - + 52 col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT + 99 * - ( - SUM( 9 ) ) AS col0
----
891

skipif mysql # not compatible
query I rowsort label-5056
SELECT + 99 * - ( - SUM ( 9 ) ) AS col0
----
891

query I rowsort
SELECT + 91 col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT + COUNT( ALL + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-5058
SELECT + COUNT ( ALL + 66 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT + NULLIF ( MIN( - + 44 ), + COUNT( * ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-5059
SELECT + NULLIF ( MIN ( - + 44 ), + COUNT ( * ) ) AS col0
----
-44

query I rowsort
SELECT + 44 + + 22 AS col0
----
66

query I rowsort
SELECT DISTINCT + 88 col1
----
88

query I rowsort
SELECT DISTINCT + 32 * 52
----
1664

onlyif mysql # DIV for integer division: 
query I rowsort label-5063
SELECT - ( 93 ) DIV + + ( + 7 ) + - 42
----
-55

skipif mysql # not compatible
query I rowsort label-5063
SELECT - ( 93 ) / + + ( + 7 ) + - 42
----
-55

query I rowsort
SELECT ( + 35 ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT ALL - 87 * + CAST( 66 AS SIGNED ) AS col0
----
-5742

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - 87 * + CAST ( 66 AS INTEGER ) AS col0
----
-5742

query I rowsort
SELECT - ( + 84 ) col2
----
-84

query I rowsort
SELECT ALL - 35 col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL - MAX( DISTINCT + 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - MAX ( DISTINCT + 52 ) AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT 65 * CAST( NULL AS SIGNED ) + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT 65 * CAST ( NULL AS INTEGER ) + 92
----
NULL

query I rowsort
SELECT + ( 23 ) + - 89
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL CAST( SUM( ALL + 48 ) AS SIGNED ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL CAST ( SUM ( ALL + 48 ) AS INTEGER ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5073
SELECT ALL 58 + - 19 * + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-5073
SELECT ALL 58 + - 19 * + COUNT ( * ) AS col2
----
39

query I rowsort
SELECT 74 * - 22
----
-1628

query I rowsort
SELECT 80 + - 37
----
43

query I rowsort
SELECT DISTINCT - 57 col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT COUNT( ( - 59 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5077
SELECT COUNT ( ( - 59 ) )
----
1

query I rowsort
SELECT + - 50 AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5079
SELECT DISTINCT AVG ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT AVG ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ALL - COUNT( * ) * + ( + 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL - COUNT ( * ) * + ( + 64 ) AS col2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5081
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5081
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5082
SELECT ALL + COUNT( * ) col1, + 21 AS col1
----
1
21

skipif mysql # not compatible
query II rowsort label-5082
SELECT ALL + COUNT ( * ) col1, + 21 AS col1
----
1
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5083
SELECT + 43 col2, + COUNT( * ) * + CAST( 86 AS SIGNED )
----
43
86

skipif mysql # not compatible
query II rowsort label-5083
SELECT + 43 col2, + COUNT ( * ) * + CAST ( 86 AS INTEGER )
----
43
86

query I rowsort
SELECT ( + 73 ) AS col2
----
73

query I rowsort
SELECT + + 77 AS col0
----
77

query II rowsort
SELECT DISTINCT + 41, 68 * + 90 AS col2
----
41
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL + 96 + COUNT( * ) + - 80
----
17

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + 96 + COUNT ( * ) + - 80
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + SUM( + + 31 ) * 37
----
1147

skipif mysql # not compatible
query I rowsort label-5088
SELECT + SUM ( + + 31 ) * 37
----
1147

query II rowsort
SELECT ALL ( - 12 ), 92 AS col2
----
-12
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5090
SELECT ALL 35 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL 35 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ( + + 70 ) - + - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-5091
SELECT ( + + 70 ) - + - COUNT ( * )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT ALL 17 DIV - + 8
----
-2

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL 17 / - + 8
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT COUNT( * ) - 33 * + + 68 * COUNT( * ) AS col2
----
-2243

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT COUNT ( * ) - 33 * + + 68 * COUNT ( * ) AS col2
----
-2243

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT 37 * COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5094
SELECT 37 * COUNT ( * ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5095
SELECT CAST( NULL AS SIGNED ) + + 9 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT CAST ( NULL AS INTEGER ) + + 9 col1
----
NULL

query I rowsort
SELECT ( 94 )
----
94

query I rowsort
SELECT + 13 * - + 90
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT DISTINCT - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5098
SELECT DISTINCT - - COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5099
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - 53
----
NULL

query I rowsort
SELECT ALL 70 - + - 63 AS col1
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT DISTINCT CAST( + - 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT CAST ( + - 49 AS INTEGER )
----
-49

query I rowsort
SELECT + 79 * - - 48
----
3792

query II rowsort
SELECT DISTINCT + 16 AS col0, - 69 - - + 4
----
16
-65

query I rowsort
SELECT ALL ( - + 46 )
----
-46

query I rowsort
SELECT ALL ( 36 ) AS col1
----
36

query I rowsort
SELECT DISTINCT - 8 + - - 40 col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT DISTINCT ( + 91 ), COUNT( * ) AS col2
----
91
1

skipif mysql # not compatible
query II rowsort label-5107
SELECT DISTINCT ( + 91 ), COUNT ( * ) AS col2
----
91
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 52 * + - 71
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT 43 + COUNT( + - 55 )
----
44

skipif mysql # not compatible
query I rowsort label-5110
SELECT 43 + COUNT ( + - 55 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT 53 + COUNT( DISTINCT 77 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5111
SELECT 53 + COUNT ( DISTINCT 77 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT ALL - COUNT( DISTINCT - 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL - COUNT ( DISTINCT - 37 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT - - ( 96 ) * + + COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - - ( 96 ) * + + COUNT ( * ) AS col0
----
96

query I rowsort
SELECT 7 - + 24
----
-17

query I rowsort
SELECT DISTINCT - - ( 31 ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT COUNT( * ) - + + 9
----
-8

skipif mysql # not compatible
query I rowsort label-5116
SELECT COUNT ( * ) - + + 9
----
-8

query I rowsort
SELECT DISTINCT 15 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT - COUNT( * ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5118
SELECT - COUNT ( * ) + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT - COUNT( DISTINCT + 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5119
SELECT - COUNT ( DISTINCT + 15 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT + 50 + + ( - COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-5120
SELECT + 50 + + ( - COUNT ( * ) )
----
49

query I rowsort
SELECT ALL - 45 + - 40 AS col1
----
-85

query I rowsort
SELECT - - 21 col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5123
SELECT - 88 AS col2, COUNT( * ) - 2 * CAST( NULL AS DECIMAL ) AS col1
----
-88
NULL

skipif mysql # not compatible
query II rowsort label-5123
SELECT - 88 AS col2, COUNT ( * ) - 2 * CAST ( NULL AS REAL ) AS col1
----
-88
NULL

query I rowsort
SELECT ALL + 24 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT ALL + MAX( 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL + MAX ( 41 ) AS col1
----
41

query I rowsort
SELECT ALL + ( 2 ) AS col2
----
2

query I rowsort
SELECT DISTINCT - 33 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT DISTINCT - MAX( 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT - MAX ( 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT ALL - MAX( + + 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5129
SELECT ALL - MAX ( + + 60 ) AS col2
----
-60

query I rowsort
SELECT ALL - ( 90 )
----
-90

query I rowsort
SELECT 12 + 53 AS col2
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT 18 DIV - 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT 18 / - 28 AS col2
----
0

query I rowsort
SELECT ALL 7 + 3
----
10

query I rowsort
SELECT 2 * 41 AS col1
----
82

query I rowsort
SELECT DISTINCT - 2 * 7 AS col2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT 21 DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT 21 / - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT SUM( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-5137
SELECT SUM ( - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT MAX( DISTINCT 78 )
----
78

skipif mysql # not compatible
query I rowsort label-5138
SELECT MAX ( DISTINCT 78 )
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT 31 * + 86 + - 36 DIV 18
----
2664

skipif mysql # not compatible
query I rowsort label-5139
SELECT 31 * + 86 + - 36 / 18
----
2664

query I rowsort
SELECT + ( 41 )
----
41

query I rowsort
SELECT ALL - - 93 AS col2
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5142
SELECT 66 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT 66 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT + MIN( DISTINCT + 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5143
SELECT + MIN ( DISTINCT + 48 ) AS col1
----
48

query I rowsort
SELECT DISTINCT - ( + 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT ( ( + COUNT( ALL 40 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5145
SELECT ( ( + COUNT ( ALL 40 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT - 23 + - ( + COUNT( * ) ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5146
SELECT - 23 + - ( + COUNT ( * ) ) AS col0
----
-24

query I rowsort
SELECT ( - + 83 ) AS col2
----
-83

query I rowsort
SELECT - 33 * 82
----
-2706

query I rowsort
SELECT - 51 + - 89
----
-140

query I rowsort
SELECT + 58 + + - 44 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - COUNT( * ) * - 54 * - 82 AS col2
----
-4428

skipif mysql # not compatible
query I rowsort label-5151
SELECT - COUNT ( * ) * - 54 * - 82 AS col2
----
-4428

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - MAX( ALL 58 ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5152
SELECT - MAX ( ALL 58 ) AS col0
----
-58

query I rowsort
SELECT ALL + ( + 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT - - COUNT( * ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-5154
SELECT - - COUNT ( * ) + - 58
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - ( + + ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5155
SELECT - ( + + ( - COUNT ( * ) ) )
----
1

query I rowsort
SELECT - 36 + - - 44 AS col1
----
8

query I rowsort
SELECT ALL ( - 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5158
SELECT + 81 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5158
SELECT + 81 * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT ( 26 ) AS col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5160
SELECT ALL CAST( NULL AS SIGNED ) AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5160
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT + 39 AS col0, COUNT( * ) AS col2
----
39
1

skipif mysql # not compatible
query II rowsort label-5161
SELECT + 39 AS col0, COUNT ( * ) AS col2
----
39
1

query I rowsort
SELECT DISTINCT + + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT COUNT( * ) - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5163
SELECT COUNT ( * ) - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT DISTINCT + 10 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + 10 + + COUNT ( * )
----
11

query I rowsort
SELECT ALL 68 + + 51 AS col1
----
119

query I rowsort
SELECT ALL - + 37 col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT COUNT( + COALESCE ( + 89, + - 33 ) ) * 65 + + 87 * 98
----
8591

skipif mysql # not compatible
query I rowsort label-5167
SELECT COUNT ( + COALESCE ( + 89, + - 33 ) ) * 65 + + 87 * 98
----
8591

query I rowsort
SELECT DISTINCT - ( 85 ) AS col1
----
-85

query I rowsort
SELECT + + 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT + + MAX( ALL + 36 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-5170
SELECT + + MAX ( ALL + 36 ) col0
----
36

query I rowsort
SELECT - 41 + - 44 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5172
SELECT COUNT( * ) AS col1, 35
----
1
35

skipif mysql # not compatible
query II rowsort label-5172
SELECT COUNT ( * ) AS col1, 35
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT SUM( DISTINCT - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-5173
SELECT SUM ( DISTINCT - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT + 0 AS col1, COALESCE ( + COUNT( * ), + COUNT( * ) ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-5174
SELECT + 0 AS col1, COALESCE ( + COUNT ( * ), + COUNT ( * ) ) AS col2
----
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT DISTINCT CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT MIN( DISTINCT - 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT MIN ( DISTINCT - 56 ) AS col1
----
-56

query I rowsort
SELECT ALL 5 + + 56 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT SUM( ALL 91 ) col1
----
91

skipif mysql # not compatible
query I rowsort label-5178
SELECT SUM ( ALL 91 ) col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT - 12 DIV - ( - ( - - 89 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5179
SELECT - 12 / - ( - ( - - 89 ) )
----
0

query I rowsort
SELECT ( - + 68 ) col2
----
-68

query I rowsort
SELECT ALL + ( - 1 ) AS col1
----
-1

query I rowsort
SELECT + ( + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL 79 + + + MIN( - 67 ) + - 46
----
-34

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL 79 + + + MIN ( - 67 ) + - 46
----
-34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5184
SELECT DISTINCT + ( + - 64 ) * + NULLIF ( - 80, CAST( NULL AS DECIMAL ) ), - CAST( NULLIF ( CAST( - + 80 AS SIGNED ), - + CAST( 91 AS SIGNED ) * 2 ) AS SIGNED ) AS col1
----
5120
80

skipif mysql # not compatible
query II rowsort label-5184
SELECT DISTINCT + ( + - 64 ) * + NULLIF ( - 80, CAST ( NULL AS REAL ) ), - CAST ( NULLIF ( CAST ( - + 80 AS INTEGER ), - + CAST ( 91 AS INTEGER ) * 2 ) AS INTEGER ) AS col1
----
5120
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT ALL ( - ( + - COUNT( * ) ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL ( - ( + - COUNT ( * ) ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5186
SELECT - CAST( - - COUNT( * ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5186
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) col0
----
-1

query I rowsort
SELECT DISTINCT 82 * 15
----
1230

query I rowsort
SELECT ALL + 88 + - - 13
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT + - COUNT( * ) * - 9 + 63 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5189
SELECT + - COUNT ( * ) * - 9 + 63 AS col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5190
SELECT DISTINCT + COUNT( * ) AS col2, - COUNT( * ) + SUM( - + 43 )
----
1
-44

skipif mysql # not compatible
query II rowsort label-5190
SELECT DISTINCT + COUNT ( * ) AS col2, - COUNT ( * ) + SUM ( - + 43 )
----
1
-44

query II rowsort
SELECT - 4 AS col2, 71
----
-4
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT + MAX( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-5192
SELECT + MAX ( - 5 )
----
-5

query I rowsort
SELECT ALL NULLIF ( + 67, + 91 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL MAX( DISTINCT - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL MAX ( DISTINCT - 40 )
----
-40

query II rowsort
SELECT - 58, + COALESCE ( + 12, - 61 ) AS col1
----
-58
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT DISTINCT + COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5196
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * )
----
0

query I rowsort
SELECT + 9 + - 55 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5198
SELECT ALL + CAST( + NULLIF ( - COUNT( * ), - + COUNT( * ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + CAST ( + NULLIF ( - COUNT ( * ), - + COUNT ( * ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT + COUNT( * ) * 54
----
54

skipif mysql # not compatible
query I rowsort label-5199
SELECT + COUNT ( * ) * 54
----
54

query I rowsort
SELECT ALL + 68 AS col1
----
68

query I rowsort
SELECT - 12 * + 4
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT - ( 91 ) + - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT - ( 91 ) + - COUNT ( * ) AS col1
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5203
SELECT DISTINCT ( + NULLIF ( CAST( NULL AS DECIMAL ), 34 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT ( + NULLIF ( CAST ( NULL AS REAL ), 34 ) )
----
NULL

query I rowsort
SELECT - 55 * - 50 AS col2
----
2750

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT ALL + ( COUNT( - 97 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL + ( COUNT ( - 97 ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT + + 95 + + 1 DIV 16
----
95

skipif mysql # not compatible
query I rowsort label-5206
SELECT + + 95 + + 1 / 16
----
95

query I rowsort
SELECT ALL + - 2 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5208
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 33 + - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5208
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 33 + - - 81
----
NULL

query I rowsort
SELECT ALL + 28 - + ( + ( - 1 ) )
----
29

query I rowsort
SELECT ALL - - 89 AS col0
----
89

query I rowsort
SELECT + + 41 AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT 56 DIV - - 12
----
4

skipif mysql # not compatible
query I rowsort label-5212
SELECT 56 / - - 12
----
4

query I rowsort
SELECT + 83 + 85
----
168

query II rowsort
SELECT 50 AS col2, 48 col2
----
50
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT DISTINCT COUNT( * ) AS col2, + 82 AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-5215
SELECT DISTINCT COUNT ( * ) AS col2, + 82 AS col2
----
1
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5216
SELECT ALL 20, - CAST( - 84 AS SIGNED ) AS col0
----
20
84

skipif mysql # not compatible
query II rowsort label-5216
SELECT ALL 20, - CAST ( - 84 AS INTEGER ) AS col0
----
20
84

query I rowsort
SELECT ALL - - ( + 8 )
----
8

query I rowsort
SELECT ALL + + 86
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5219
SELECT + 81 + + CAST( + 26 AS SIGNED )
----
107

skipif mysql # not compatible
query I rowsort label-5219
SELECT + 81 + + CAST ( + 26 AS INTEGER )
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT ALL + CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL + CAST ( NULL AS INTEGER ) / - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 71 + - 78
----
-149

query I rowsort
SELECT DISTINCT ( 68 ) * + - 29 AS col2
----
-1972

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL + 77 * + - COUNT( * ) * - + 33 - + 39
----
2502

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + 77 * + - COUNT ( * ) * - + 33 - + 39
----
2502

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT - COUNT( * ) * - 67
----
67

skipif mysql # not compatible
query I rowsort label-5224
SELECT - COUNT ( * ) * - 67
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT DISTINCT CAST( + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT CAST ( + 77 AS INTEGER )
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT DISTINCT + SUM( ALL 38 ) + + CAST( - - 0 AS SIGNED )
----
38

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + SUM ( ALL 38 ) + + CAST ( - - 0 AS INTEGER )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT - 52 * COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-5227
SELECT - 52 * COUNT ( * )
----
-52

query I rowsort
SELECT - - 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT COUNT( * ) * 73 col2
----
73

skipif mysql # not compatible
query I rowsort label-5229
SELECT COUNT ( * ) * 73 col2
----
73

query I rowsort
SELECT DISTINCT - 83 AS col1
----
-83

query I rowsort
SELECT ALL - - 26 col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT COUNT( * ) * - - ( - 77 ) * - - 43 * MIN( + + 60 ) AS col1
----
-198660

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT COUNT ( * ) * - - ( - 77 ) * - - 43 * MIN ( + + 60 ) AS col1
----
-198660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5233
SELECT ALL - 72 DIV + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - 72 / + COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT + MIN( ALL 20 )
----
20

skipif mysql # not compatible
query I rowsort label-5234
SELECT + MIN ( ALL 20 )
----
20

query I rowsort
SELECT DISTINCT - ( 3 ) AS col1
----
-3

query I rowsort
SELECT 34 * - 12
----
-408

query I rowsort
SELECT 69 * + 82
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT DISTINCT MIN( DISTINCT 89 )
----
89

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT MIN ( DISTINCT 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT DISTINCT COUNT( DISTINCT - - 84 ) - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT COUNT ( DISTINCT - - 84 ) - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT + 94 * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + 94 * COUNT ( * )
----
94

query I rowsort
SELECT ALL 35 * - 18
----
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-5242
SELECT + COUNT( * ) col0, 7 AS col2
----
1
7

skipif mysql # not compatible
query II rowsort label-5242
SELECT + COUNT ( * ) col0, 7 AS col2
----
1
7

query I rowsort
SELECT DISTINCT + 72 * - 60 * - 68
----
293760

query I rowsort
SELECT DISTINCT + 90 * + 79 col0
----
7110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5245
SELECT ALL + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) * - 50 AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5245
SELECT ALL + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) * - 50 AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT - COUNT( * ) + - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT - COUNT ( * ) + - - COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT ALL + 10 DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + 10 / - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT + COUNT( * ) * - 55 * - COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5248
SELECT + COUNT ( * ) * - 55 * - COUNT ( * ) AS col1
----
55

query I rowsort
SELECT ALL - + 96 AS col1
----
-96

query I rowsort
SELECT - + 88 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5251
SELECT DISTINCT - NULLIF ( - 35, - + 79 ) AS col0, COUNT( - CAST( NULL AS SIGNED ) )
----
35
0

skipif mysql # not compatible
query II rowsort label-5251
SELECT DISTINCT - NULLIF ( - 35, - + 79 ) AS col0, COUNT ( - CAST ( NULL AS INTEGER ) )
----
35
0

query I rowsort
SELECT 53 * + 5
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT COUNT( - ( + 87 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT COUNT ( - ( + 87 ) ) AS col1
----
1

query I rowsort
SELECT ALL + ( + - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT DISTINCT ( - SUM( - 89 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT ( - SUM ( - 89 ) ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT 41, COUNT( * ) AS col1
----
41
1

skipif mysql # not compatible
query II rowsort label-5256
SELECT 41, COUNT ( * ) AS col1
----
41
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5257
SELECT + + 6 DIV COUNT( * ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-5257
SELECT + + 6 / COUNT ( * ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT + CAST( + + 43 AS SIGNED ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5258
SELECT + CAST ( + + 43 AS INTEGER ) AS col1
----
43

query I rowsort
SELECT ALL + + 81
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5260
SELECT ALL CAST( NULL AS SIGNED ) * - 12 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL CAST ( NULL AS INTEGER ) * - 12 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT 19 + + COUNT( * ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5261
SELECT 19 + + COUNT ( * ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT DISTINCT + ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5262
SELECT DISTINCT + ( + - COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT + - COUNT( * ) AS col1, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-5263
SELECT + - COUNT ( * ) AS col1, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - ( + + 31 ) + + + COALESCE ( - - 55, - COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-5264
SELECT - ( + + 31 ) + + + COALESCE ( - - 55, - COUNT ( * ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ( 28 ) - + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-5265
SELECT ( 28 ) - + + COUNT ( * )
----
27

query I rowsort
SELECT 69 - 55 AS col2
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5267
SELECT COUNT( * ) AS col1, - 33 AS col1
----
1
-33

skipif mysql # not compatible
query II rowsort label-5267
SELECT COUNT ( * ) AS col1, - 33 AS col1
----
1
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5268
SELECT - 75 DIV + COUNT( * ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-5268
SELECT - 75 / + COUNT ( * ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT ( + + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - 85 + - + 56 col1
----
-141

query I rowsort
SELECT DISTINCT - 67 - + - 54 AS col1
----
-13

query I rowsort
SELECT DISTINCT + 10 AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5273
SELECT ALL 76 * - COUNT( * ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL 76 * - COUNT ( * ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 9 + + 86 + - ( + - 96 )
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT SUM( DISTINCT 18 ) - - 22
----
40

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT SUM ( DISTINCT 18 ) - - 22
----
40

query I rowsort
SELECT ALL - + 95
----
-95

query I rowsort
SELECT + 28 + + 7 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5278
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( 59 )
----
59

query I rowsort
SELECT NULLIF ( + ( 71 ), + 57 )
----
71

query I rowsort
SELECT + 61 + + + 89 AS col1
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT ALL CAST( NULL AS SIGNED ) * + + 93 * + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL CAST ( NULL AS INTEGER ) * + + 93 * + + 50
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5283
SELECT ALL + MIN( + 44 ) AS col2, ( + 62 ) AS col0
----
44
62

skipif mysql # not compatible
query II rowsort label-5283
SELECT ALL + MIN ( + 44 ) AS col2, ( + 62 ) AS col0
----
44
62

query I rowsort
SELECT - ( 26 ) AS col1
----
-26

query I rowsort
SELECT DISTINCT 63 * + 35
----
2205

query I rowsort
SELECT + + 55 AS col2
----
55

query I rowsort
SELECT 21 * + + 9
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT DISTINCT - + COUNT( * ) + + 49 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT - + COUNT ( * ) + + 49 AS col1
----
48

query I rowsort
SELECT DISTINCT 81 - 10
----
71

query I rowsort
SELECT ALL - - 13 AS col2
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5291
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 38 * + 28
----
1064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT DISTINCT 55 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT 55 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 79
----
79

query I rowsort
SELECT ALL 97 * + + 38
----
3686

query I rowsort
SELECT + + 18 AS col2
----
18

query I rowsort
SELECT ALL + - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT ALL + + MIN( - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + + MIN ( - 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT ALL + CAST( - 8 AS SIGNED ) * - 74 * - COUNT( * )
----
-592

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + CAST ( - 8 AS INTEGER ) * - 74 * - COUNT ( * )
----
-592

query II rowsort
SELECT 27 AS col0, 47 AS col0
----
27
47

query II rowsort
SELECT 14 AS col0, - 33 AS col0
----
14
-33

query I rowsort
SELECT ALL - 25 + - 70
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT - SUM( - 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5303
SELECT - SUM ( - 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL + MIN( DISTINCT + + 44 ) * 35
----
1540

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + MIN ( DISTINCT + + 44 ) * 35
----
1540

onlyif mysql # aggregate syntax: 
query II rowsort label-5305
SELECT + - 55 AS col0, + COUNT( + 22 ) AS col0
----
-55
1

skipif mysql # not compatible
query II rowsort label-5305
SELECT + - 55 AS col0, + COUNT ( + 22 ) AS col0
----
-55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT - 83 * - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT - 83 * - COUNT ( * ) AS col0
----
83

query I rowsort
SELECT ALL + + 45 * - 96 AS col2
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL - - COUNT( * ) - + 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL - - COUNT ( * ) - + 66 AS col0
----
-65

query II rowsort
SELECT + 24, + 67 * - - 25 AS col1
----
24
1675

onlyif mysql # aggregate syntax: 
query II rowsort label-5310
SELECT 77 AS col1, + COUNT( * ) col0
----
77
1

skipif mysql # not compatible
query II rowsort label-5310
SELECT 77 AS col1, + COUNT ( * ) col0
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT - MIN( DISTINCT - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - MIN ( DISTINCT - 83 ) AS col1
----
83

query I rowsort
SELECT 28 + 94
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), + 56 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), + 56 ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 64 col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT + MIN( - 36 ) * - 90 AS col0
----
3240

skipif mysql # not compatible
query I rowsort label-5315
SELECT + MIN ( - 36 ) * - 90 AS col0
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT - 9 - 85 + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5316
SELECT - 9 - 85 + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT - ( - + ( + + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5317
SELECT - ( - + ( + + COUNT ( * ) ) )
----
1

query I rowsort
SELECT ( - + 30 ) col0
----
-30

query I rowsort
SELECT + 32 col2
----
32

query I rowsort
SELECT ALL 92 * + 44
----
4048

query II rowsort
SELECT + 43 AS col0, 64
----
43
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT ALL + NULLIF ( COUNT( * ), + + 29 )
----
1

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL + NULLIF ( COUNT ( * ), + + 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT - COUNT( * ) - 58 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5323
SELECT - COUNT ( * ) - 58 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL COUNT( ALL - + 25 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL COUNT ( ALL - + 25 ) + + COUNT ( * )
----
2

query I rowsort
SELECT - + 76 + - 13
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT COUNT( * ) * - 36
----
-36

skipif mysql # not compatible
query I rowsort label-5326
SELECT COUNT ( * ) * - 36
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT - MAX( DISTINCT + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - MAX ( DISTINCT + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL 74 + + 49 * - - ( + COUNT( * ) ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL 74 + + 49 * - - ( + COUNT ( * ) ) AS col1
----
123

query I rowsort
SELECT DISTINCT + 60 + 68 col0
----
128

query I rowsort
SELECT - - ( 65 )
----
65

query I rowsort
SELECT - ( - + 89 )
----
89

query I rowsort
SELECT ALL 87 - - 81
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT COUNT( ALL - 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5334
SELECT COUNT ( ALL - 77 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL 39 * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL 39 * - COUNT ( * )
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5336
SELECT ALL - CAST( 30 AS SIGNED ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL - CAST ( 30 AS INTEGER ) AS col0
----
-30

query I rowsort
SELECT DISTINCT - 34 col0
----
-34

query I rowsort
SELECT DISTINCT 68 + + - ( + 42 ) AS col1
----
26

query I rowsort
SELECT + 7 AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5340
SELECT + COUNT( * ) + + CAST( 78 AS SIGNED ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5340
SELECT + COUNT ( * ) + + CAST ( 78 AS INTEGER ) AS col0
----
79

query I rowsort
SELECT - + 80 AS col2
----
-80

query I rowsort
SELECT - + 60 + 66
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL - + 99 * - COUNT( * ) + 85 AS col2
----
184

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - + 99 * - COUNT ( * ) + 85 AS col2
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT ALL AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5345
SELECT ALL - COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL - COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 11, - 43 AS col0
----
11
-43

query II rowsort
SELECT + 5 AS col2, 94 AS col1
----
5
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT 91 AS col2, - ( COUNT( * ) )
----
91
-1

skipif mysql # not compatible
query II rowsort label-5348
SELECT 91 AS col2, - ( COUNT ( * ) )
----
91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT COUNT( * ) * - 27 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT COUNT ( * ) * - 27 AS col0
----
-27

query I rowsort
SELECT + 5 - - - 69
----
-64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5351
SELECT + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT + COUNT ( * ) + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 46 * + 91 AS col1
----
4186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5353
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5354
SELECT ALL - 65 DIV + + 2 - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL - 65 / + + 2 - COUNT ( * )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT DISTINCT - CAST( + - 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT - CAST ( + - 7 AS INTEGER )
----
7

query I rowsort
SELECT DISTINCT + 41 - + 34 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5357
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) * + + COUNT( ALL + 24 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) * + + COUNT ( ALL + 24 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5358
SELECT 15 DIV + COUNT( * ) + + 12 AS col2, 15
----
27
15

skipif mysql # not compatible
query II rowsort label-5358
SELECT 15 / + COUNT ( * ) + + 12 AS col2, 15
----
27
15

query I rowsort
SELECT + 71 * + + 63 AS col2
----
4473

query I rowsort
SELECT ALL - - 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + SUM( + - 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5361
SELECT + SUM ( + - 24 ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL MAX( ALL - + 33 ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL MAX ( ALL - + 33 ) col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL COUNT( * ) - - COUNT( + - 25 )
----
2

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL COUNT ( * ) - - COUNT ( + - 25 )
----
2

query I rowsort
SELECT + 55 * 82
----
4510

query I rowsort
SELECT DISTINCT 82 * + + 22 + 12 * - 9 + - 4
----
1692

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5366
SELECT + CAST( COUNT( * ) AS SIGNED ) + + 5
----
6

skipif mysql # not compatible
query I rowsort label-5366
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + + 5
----
6

query I rowsort
SELECT + + 69 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT - 51 + + COUNT( * ) * - 88
----
-139

skipif mysql # not compatible
query I rowsort label-5368
SELECT - 51 + + COUNT ( * ) * - 88
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5369
SELECT DISTINCT CAST( + 65 AS SIGNED ), 69 AS col0
----
65
69

skipif mysql # not compatible
query II rowsort label-5369
SELECT DISTINCT CAST ( + 65 AS INTEGER ), 69 AS col0
----
65
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT COUNT( - 47 ) * 22 + COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT COUNT ( - 47 ) * 22 + COUNT ( * ) AS col1
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-5371
SELECT + 55 DIV 61, 76 AS col0
----
0
76

skipif mysql # not compatible
query II rowsort label-5371
SELECT + 55 / 61, 76 AS col0
----
0
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + + ( - + 15 ) + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5372
SELECT + + ( - + 15 ) + - COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5373
SELECT NULLIF ( + COUNT( * ), - COUNT( * ) ) AS col1, + ( - 35 ) AS col2
----
1
-35

skipif mysql # not compatible
query II rowsort label-5373
SELECT NULLIF ( + COUNT ( * ), - COUNT ( * ) ) AS col1, + ( - 35 ) AS col2
----
1
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5374
SELECT COUNT( * ) AS col2, 52
----
1
52

skipif mysql # not compatible
query II rowsort label-5374
SELECT COUNT ( * ) AS col2, 52
----
1
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT DISTINCT COUNT( * ) + - - 7 DIV + 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT COUNT ( * ) + - - 7 / + 40 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5376
SELECT + CAST( + ( + CAST( + 13 AS SIGNED ) ) AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-5376
SELECT + CAST ( + ( + CAST ( + 13 AS INTEGER ) ) AS INTEGER )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL - - MIN( ALL + - 56 ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL - - MIN ( ALL + - 56 ) col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT COUNT( * ) + - 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-5378
SELECT COUNT ( * ) + - 30 AS col1
----
-29

query I rowsort
SELECT - - 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT 4 * - - 62 * + COUNT( * )
----
248

skipif mysql # not compatible
query I rowsort label-5380
SELECT 4 * - - 62 * + COUNT ( * )
----
248

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT MIN( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5381
SELECT MIN ( + 4 )
----
4

query I rowsort
SELECT + ( 64 ) * + 9 AS col1
----
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5383
SELECT + CAST( NULL AS SIGNED ) - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT + CAST ( NULL AS INTEGER ) - - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL + SUM( - ( 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + SUM ( - ( 25 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT + COUNT( * ) + + 87
----
88

skipif mysql # not compatible
query I rowsort label-5385
SELECT + COUNT ( * ) + + 87
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT - MAX( DISTINCT 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5386
SELECT - MAX ( DISTINCT 67 ) AS col1
----
-67

query I rowsort
SELECT + - 37 + 2
----
-35

query I rowsort
SELECT + + 10 * ( 79 ) col0
----
790

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5389
SELECT ALL + CAST( NULL AS DECIMAL ) + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL + CAST ( NULL AS REAL ) + + 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT ALL - ( - COUNT( * ) ) * + 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - ( - COUNT ( * ) ) * + 36 AS col2
----
36

query I rowsort
SELECT ALL + 9 + + + 7 * 3 AS col2
----
30

query I rowsort
SELECT DISTINCT - 96 col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT COUNT( ALL 60 ) * COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5393
SELECT COUNT ( ALL 60 ) * COUNT ( * ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5394
SELECT DISTINCT + COUNT( * ) DIV + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT + COUNT ( * ) / + + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT + 11 * + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5395
SELECT + 11 * + COUNT ( * ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT 42 + COUNT( * ) + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5396
SELECT 42 + COUNT ( * ) + COUNT ( * )
----
44

query I rowsort
SELECT ALL - 98 * + - 59 col1
----
5782

query I rowsort
SELECT ALL ( ( - - 11 ) ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5399
SELECT + COUNT( * ) AS col0, - 69 AS col2
----
1
-69

skipif mysql # not compatible
query II rowsort label-5399
SELECT + COUNT ( * ) AS col0, - 69 AS col2
----
1
-69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5400
SELECT - COUNT( * ) col1, CAST( NULL AS DECIMAL ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5400
SELECT - COUNT ( * ) col1, CAST ( NULL AS REAL ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT CASE + MAX( DISTINCT 7 ) WHEN 86 THEN 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT CASE + MAX ( DISTINCT 7 ) WHEN 86 THEN 54 END
----
NULL

query I rowsort
SELECT - 30 * + + 21 - + 72 AS col1
----
-702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT - COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT - - ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5404
SELECT - - ( - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT - CAST( + MIN( + + ( + - 67 ) ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-5405
SELECT - CAST ( + MIN ( + + ( + - 67 ) ) AS INTEGER )
----
67

query I rowsort
SELECT + 62 - + + 71 + - 52
----
-61

query I rowsort
SELECT + 46 col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT 17 * + COUNT( * ) * + COUNT( * ) + ( 22 )
----
39

skipif mysql # not compatible
query I rowsort label-5408
SELECT 17 * + COUNT ( * ) * + COUNT ( * ) + ( 22 )
----
39

query I rowsort
SELECT ALL - ( 30 ) col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5410
SELECT + 48 DIV - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-5410
SELECT + 48 / - COUNT ( * )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT - CAST( NULL AS SIGNED ) * + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT - CAST ( NULL AS INTEGER ) * + + 78
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5412
SELECT 55 col2, COUNT( * ) AS col2
----
55
1

skipif mysql # not compatible
query II rowsort label-5412
SELECT 55 col2, COUNT ( * ) AS col2
----
55
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT COUNT( * ) - + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5413
SELECT COUNT ( * ) - + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL COUNT( 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL COUNT ( 48 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5415
SELECT COUNT( * ) + + - COUNT( * ) + - COUNT( * ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5415
SELECT COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * ) / COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT ALL COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT ( - - 31 ) * ( - 62 )
----
-1922

query II rowsort
SELECT ALL + 3 col2, - 94 col2
----
3
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5420
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT ( - ( 89 ) )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL + 59 - - 89 col2
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5424
SELECT DISTINCT + COUNT( * ) AS col2, - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5424
SELECT DISTINCT + COUNT ( * ) AS col2, - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ALL + + COUNT( ALL - + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL + + COUNT ( ALL - + 36 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT + COUNT( * ) * COUNT( * ) AS col1, - 11 * + 9
----
1
-99

skipif mysql # not compatible
query II rowsort label-5426
SELECT + COUNT ( * ) * COUNT ( * ) AS col1, - 11 * + 9
----
1
-99

query I rowsort
SELECT NULLIF ( - 57, + 65 )
----
-57

query I rowsort
SELECT ALL ( - + 67 ) AS col2
----
-67

query I rowsort
SELECT + - ( - - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT - COUNT( * ) + COUNT( DISTINCT - 39 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - COUNT ( * ) + COUNT ( DISTINCT - 39 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL 56 + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL 56 + COUNT ( * ) AS col0
----
57

query I rowsort
SELECT ( + 92 ) + 28 * + 76 AS col2
----
2220

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT + 99 + + - COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + 99 + + - COUNT ( * ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT ALL - + SUM( ALL - - 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL - + SUM ( ALL - - 10 ) AS col2
----
-10

query II rowsort
SELECT + + NULLIF ( - - 83, 39 ), 39 AS col2
----
83
39

query I rowsort
SELECT 99 * 47
----
4653

onlyif mysql # aggregate syntax: 
query II rowsort label-5437
SELECT ALL - COUNT( * ) AS col0, + 61 AS col1
----
-1
61

skipif mysql # not compatible
query II rowsort label-5437
SELECT ALL - COUNT ( * ) AS col0, + 61 AS col1
----
-1
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT ALL CAST( NULL AS SIGNED ) / - + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL CAST ( NULL AS INTEGER ) / - + 61 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5439
SELECT DISTINCT + CAST( - - MIN( + 78 ) AS SIGNED ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT + CAST ( - - MIN ( + 78 ) AS INTEGER ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT COALESCE ( - COUNT( ALL - 6 ), 83 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5440
SELECT COALESCE ( - COUNT ( ALL - 6 ), 83 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT COALESCE ( - COUNT( * ), 92 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5441
SELECT COALESCE ( - COUNT ( * ), 92 ) AS col2
----
-1

query I rowsort
SELECT + 3 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT DISTINCT + SUM( ALL + 27 ) col0
----
27

skipif mysql # not compatible
query I rowsort label-5443
SELECT DISTINCT + SUM ( ALL + 27 ) col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT + CAST( - - ( - + 33 ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-5444
SELECT + CAST ( - - ( - + 33 ) AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT ALL - COUNT( * ) - - 33 + + 97
----
129

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL - COUNT ( * ) - - 33 + + 97
----
129

query I rowsort
SELECT DISTINCT - 91 * 45
----
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL SUM( - - 29 ) + + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL SUM ( - - 29 ) + + COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - - 4 * COUNT( DISTINCT 91 ) + + 37 + - 3
----
38

skipif mysql # not compatible
query I rowsort label-5448
SELECT - - 4 * COUNT ( DISTINCT 91 ) + + 37 + - 3
----
38

query I rowsort
SELECT ALL + 83 * + 25 * + 40 AS col0
----
83000

query I rowsort
SELECT - 31 col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT DISTINCT + - SUM( DISTINCT - - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT + - SUM ( DISTINCT - - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT ALL - COUNT( * ) + - 8 + - 46
----
-55

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL - COUNT ( * ) + - 8 + - 46
----
-55

query I rowsort
SELECT ALL NULLIF ( + - 55, + - 27 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT ALL CAST( - - 10 AS SIGNED ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL CAST ( - - 10 AS INTEGER ) AS col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT ALL - 86 DIV + - 43 + - 26 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - 86 / + - 43 + - 26 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL - COUNT( * ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - COUNT ( * ) * + 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT DISTINCT + COUNT( ALL - 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT + COUNT ( ALL - 93 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5459
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( + 18 )
----
-18

query I rowsort
SELECT ALL - + 44
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT ALL - ( + - CAST( 23 AS SIGNED ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL - ( + - CAST ( 23 AS INTEGER ) ) AS col2
----
23

query II rowsort
SELECT - 63, ( + 56 ) col0
----
-63
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5464
SELECT - 39, + 79 + COUNT( * ) col1
----
-39
80

skipif mysql # not compatible
query II rowsort label-5464
SELECT - 39, + 79 + COUNT ( * ) col1
----
-39
80

query I rowsort
SELECT ALL + + 17 AS col0
----
17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5466
SELECT + - CAST( NULL AS DECIMAL ) * + 11 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT + - CAST ( NULL AS REAL ) * + 11 AS col0
----
NULL

query I rowsort
SELECT ALL - 47 - + - ( - + 41 ) AS col2
----
-88

query I rowsort
SELECT DISTINCT + 74 * - 99
----
-7326

query I rowsort
SELECT + 43 * - - 21 AS col1
----
903

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT + MAX( DISTINCT - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-5470
SELECT + MAX ( DISTINCT - 13 )
----
-13

query I rowsort
SELECT + + 87 AS col2
----
87

query I rowsort
SELECT ( + - 32 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT + COUNT( + - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT + COUNT ( + - 96 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL + 15 * + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + 15 * + COUNT ( * ) AS col1
----
15

query I rowsort
SELECT - 67 * + - 24 AS col1
----
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT - SUM( ALL + ( + + 75 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-5476
SELECT - SUM ( ALL + ( + + 75 ) )
----
-75

query I rowsort
SELECT - 24 + - 56 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - COUNT( * ) - + 57 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-5478
SELECT - COUNT ( * ) - + 57 AS col1
----
-58

query I rowsort
SELECT - 16 * + 98 + 48
----
-1520

query I rowsort
SELECT 26 * - 20
----
-520

query I rowsort
SELECT ALL ( + + 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5482
SELECT DISTINCT - 27 * - + COUNT( * ) DIV + - COUNT( + - 86 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT - 27 * - + COUNT ( * ) / + - COUNT ( + - 86 ) AS col1
----
-27

query II rowsort
SELECT 81 AS col1, + 16 - + 65 AS col1
----
81
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5484
SELECT ALL - - COUNT( * ) AS col2, 79
----
1
79

skipif mysql # not compatible
query II rowsort label-5484
SELECT ALL - - COUNT ( * ) AS col2, 79
----
1
79

query I rowsort
SELECT ALL - 94 AS col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT ALL 68 * - CAST( NULL AS SIGNED ) + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL 68 * - CAST ( NULL AS INTEGER ) + + 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT NULLIF ( + 61, + COUNT( * ) + + 80 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5487
SELECT NULLIF ( + 61, + COUNT ( * ) + + 80 ) AS col1
----
61

query I rowsort
SELECT + 89 col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT DISTINCT - 19 * + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT - 19 * + COUNT ( * )
----
-19

query I rowsort
SELECT - ( + + 6 ) - + 21 AS col2
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5491
SELECT ALL - 38 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - 38 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 61 * - + 77
----
-4697

query I rowsort
SELECT DISTINCT - 34 AS col0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5494
SELECT ALL - CAST( + 73 AS SIGNED )
----
-73

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - CAST ( + 73 AS INTEGER )
----
-73

query I rowsort
SELECT DISTINCT - + 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - ( + 4 ) * - + 39 + COUNT( * ) AS col0
----
157

skipif mysql # not compatible
query I rowsort label-5496
SELECT - ( + 4 ) * - + 39 + COUNT ( * ) AS col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT - 85 + - COUNT( * ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-5497
SELECT - 85 + - COUNT ( * ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL COUNT( - 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL COUNT ( - 0 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + COUNT( - 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5499
SELECT + COUNT ( - 57 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT - COUNT( * ) * + 4
----
-4

skipif mysql # not compatible
query I rowsort label-5500
SELECT - COUNT ( * ) * + 4
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT + SUM( DISTINCT + 79 ) col2
----
79

skipif mysql # not compatible
query I rowsort label-5501
SELECT + SUM ( DISTINCT + 79 ) col2
----
79

query I rowsort
SELECT ALL + 50 col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT ALL - + COUNT( * ) * NULLIF ( - COUNT( * ), + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL - + COUNT ( * ) * NULLIF ( - COUNT ( * ), + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5504
SELECT - CAST( NULL AS DECIMAL ) / - - ( + AVG ( DISTINCT - - ( + - 68 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT - CAST ( NULL AS REAL ) / - - ( + AVG ( DISTINCT - - ( + - 68 ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - 7 * - + COUNT( * ) + - 3 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5505
SELECT - 7 * - + COUNT ( * ) + - 3 AS col0
----
4

query I rowsort
SELECT DISTINCT + - 78
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT + COUNT( * ) + 67 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-5507
SELECT + COUNT ( * ) + 67 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT ( + - SUM( - 45 ) ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5508
SELECT ( + - SUM ( - 45 ) ) AS col2
----
45

query I rowsort
SELECT ALL + 18 + - 20 col1
----
-2

query II rowsort
SELECT ALL - + 57, + 76 AS col1
----
-57
76

query I rowsort
SELECT DISTINCT 65 + + 60 AS col0
----
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT ALL + 14 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + 14 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT - COUNT( * ) * + - 98 - - - 4
----
94

skipif mysql # not compatible
query I rowsort label-5513
SELECT - COUNT ( * ) * + - 98 - - - 4
----
94

query I rowsort
SELECT DISTINCT - + 63 AS col2
----
-63

query I rowsort
SELECT + + 50 AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT COUNT( DISTINCT 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5516
SELECT COUNT ( DISTINCT 88 ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5517
SELECT DISTINCT 70 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT 70 * + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 50
----
50

query I rowsort
SELECT - 66 - + 8
----
-74

query I rowsort
SELECT + 88 * 99
----
8712

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT + 47 DIV 47 + + 9 - - 89
----
99

skipif mysql # not compatible
query I rowsort label-5521
SELECT + 47 / 47 + + 9 - - 89
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT ALL CAST( - 86 AS SIGNED )
----
-86

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL CAST ( - 86 AS INTEGER )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT + COUNT( * ) * + 50 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5523
SELECT + COUNT ( * ) * + 50 AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT COUNT( * ) AS col2, 95
----
1
95

skipif mysql # not compatible
query II rowsort label-5524
SELECT COUNT ( * ) AS col2, 95
----
1
95

query I rowsort
SELECT ALL ( + 21 ) AS col2
----
21

query I rowsort
SELECT - 89 + + 22 AS col0
----
-67

query I rowsort
SELECT - 65 + - 75 AS col0
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5528
SELECT ( - - 42 ) DIV COUNT( DISTINCT 61 )
----
42

skipif mysql # not compatible
query I rowsort label-5528
SELECT ( - - 42 ) / COUNT ( DISTINCT 61 )
----
42

query I rowsort
SELECT DISTINCT - 8 col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5530
SELECT SUM( ALL 40 ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT SUM ( ALL 40 ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5531
SELECT CAST( NULL AS SIGNED ) * - 39 * - AVG ( DISTINCT + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT CAST ( NULL AS INTEGER ) * - 39 * - AVG ( DISTINCT + 35 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5532
SELECT ALL + 50 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL + 50 * - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT + 20, + ( + 96 ) AS col0
----
20
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5534
SELECT ( + 6 ) - + 16 AS col2, CAST( NULL AS SIGNED ) + - + 81 col0
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-5534
SELECT ( + 6 ) - + 16 AS col2, CAST ( NULL AS INTEGER ) + - + 81 col0
----
-10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL + 96 * + + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + 96 * + + COUNT ( * ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT - SUM( ALL - ( + 95 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT - SUM ( ALL - ( + 95 ) ) AS col2
----
95

query I rowsort
SELECT - ( 55 ) col2
----
-55

query II rowsort
SELECT - + 63 AS col0, + 42 AS col0
----
-63
42

query II rowsort
SELECT + 25 AS col2, 70 AS col2
----
25
70

query I rowsort
SELECT DISTINCT + ( 81 )
----
81

query I rowsort
SELECT ALL + ( 82 )
----
82

query I rowsort
SELECT + 26 - - 95
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5543
SELECT + - 46 * + CAST( NULL AS DECIMAL ) + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5543
SELECT + - 46 * + CAST ( NULL AS REAL ) + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT + NULLIF ( - 56, SUM( ALL - 41 ) ) + COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5544
SELECT + NULLIF ( - 56, SUM ( ALL - 41 ) ) + COUNT ( * ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL MIN( 67 )
----
67

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL MIN ( 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT + SUM( 23 )
----
23

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT + SUM ( 23 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5547
SELECT ALL - CAST( NULL AS DECIMAL ) + + ( - 98 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL - CAST ( NULL AS REAL ) + + ( - 98 ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT 77 + + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-5548
SELECT 77 + + COUNT ( * )
----
78

query I rowsort
SELECT ALL 43 * - + 76
----
-3268

query I rowsort
SELECT - - 77 col0
----
77

query I rowsort
SELECT ALL 70 - 37 AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5552
SELECT DISTINCT MIN( + 31 ) DIV 82 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT MIN ( + 31 ) / 82 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT COUNT( * ) * - 48 col0
----
-48

skipif mysql # not compatible
query I rowsort label-5553
SELECT COUNT ( * ) * - 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ( - 72 ) + + 74 + - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5554
SELECT ( - 72 ) + + 74 + - COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ( COUNT( * ) ) * - - NULLIF ( + COUNT( * ), - 38 ) - 19 * - ( - 8 ) AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-5555
SELECT ( COUNT ( * ) ) * - - NULLIF ( + COUNT ( * ), - 38 ) - 19 * - ( - 8 ) AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT + COUNT( * ) * - - 32 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5556
SELECT + COUNT ( * ) * - - 32 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT CASE - 60 WHEN - COUNT( * ) THEN NULL ELSE - - 37 END
----
37

skipif mysql # not compatible
query I rowsort label-5557
SELECT CASE - 60 WHEN - COUNT ( * ) THEN NULL ELSE - - 37 END
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT ALL + MAX( + ( - 95 ) ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL + MAX ( + ( - 95 ) ) AS col0
----
-95

query I rowsort
SELECT ALL - 31 * + 82 - 42
----
-2584

query I rowsort
SELECT + + 73 * 56 AS col1
----
4088

query I rowsort
SELECT - + 32 AS col2
----
-32

query I rowsort
SELECT - 95 * 43 AS col1
----
-4085

query I rowsort
SELECT ALL ( + 59 ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5564
SELECT + ( + COALESCE ( - - COUNT( * ), + + COUNT( * ) ) ), CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5564
SELECT + ( + COALESCE ( - - COUNT ( * ), + + COUNT ( * ) ) ), CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT - - COUNT( * ) * 19 - + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-5565
SELECT - - COUNT ( * ) * 19 - + - COUNT ( * )
----
20

query I rowsort
SELECT ALL - 5 * + + 4 col0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5567
SELECT DISTINCT CAST( NULL AS SIGNED ) - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT 0 DIV - 72
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT 0 / - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT 24 + - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5569
SELECT 24 + - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5570
SELECT ALL SUM( DISTINCT + + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-5570
SELECT ALL SUM ( DISTINCT + + 53 )
----
53

query I rowsort
SELECT 55 + + 94 col1
----
149

query I rowsort
SELECT DISTINCT 48 - - 73
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - COUNT( * ) * - + 77 col0
----
77

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - COUNT ( * ) * - + 77 col0
----
77

query I rowsort
SELECT - 28 * + 33
----
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL - 45 * + SUM( DISTINCT - 79 ) AS col0
----
3555

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL - 45 * + SUM ( DISTINCT - 79 ) AS col0
----
3555

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - 91 * + + COUNT( * ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-5576
SELECT - 91 * + + COUNT ( * ) col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL SUM( 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL SUM ( 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT + ( - + 2 ) * + - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT + ( - + 2 ) * + - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT - SUM( DISTINCT - - 41 ) col2
----
-41

skipif mysql # not compatible
query I rowsort label-5579
SELECT - SUM ( DISTINCT - - 41 ) col2
----
-41

query I rowsort
SELECT + + 56 + + - 17 AS col2
----
39

query II rowsort
SELECT - - 30 AS col1, 29
----
30
29

query I rowsort
SELECT + 55 + + 70 AS col1
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5583
SELECT - COUNT( * ) + - ( SUM( ALL + - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT - COUNT ( * ) + - ( SUM ( ALL + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL ( 71 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT DISTINCT CAST( - - 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT CAST ( - - 41 AS INTEGER )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT + ( + - 33 ) * + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + ( + - 33 ) * + COUNT ( * ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - COUNT( * ) + - + 1 * + 28 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-5587
SELECT - COUNT ( * ) + - + 1 * + 28 AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5588
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT ALL - SUM( 6 ) - - 97 + - 3
----
88

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL - SUM ( 6 ) - - 97 + - 3
----
88

query I rowsort
SELECT + + 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT 67 + + 78 + + COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-5591
SELECT 67 + + 78 + + COUNT ( * )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT DISTINCT - 81 + - COUNT( * ) + - 57 * 15
----
-937

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT - 81 + - COUNT ( * ) + - 57 * 15
----
-937

query I rowsort
SELECT DISTINCT + ( - - 57 ) + - 68 * 60
----
-4023

query I rowsort
SELECT ( - 25 )
----
-25

query II rowsort
SELECT 21 AS col2, + 59 AS col0
----
21
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5596
SELECT + 98 DIV + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-5596
SELECT + 98 / + COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT DISTINCT + ( COUNT( * ) ) - - + 54 col2
----
55

skipif mysql # not compatible
query I rowsort label-5597
SELECT DISTINCT + ( COUNT ( * ) ) - - + 54 col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT ALL - COUNT( + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - COUNT ( + 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT - + SUM( DISTINCT - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5599
SELECT - + SUM ( DISTINCT - 10 ) AS col0
----
10

query I rowsort
SELECT ALL + ( - + 75 )
----
-75

query I rowsort
SELECT + 53 col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5602
SELECT + ( CAST( + 6 AS SIGNED ) ) * COUNT( * ) + + + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-5602
SELECT + ( CAST ( + 6 AS INTEGER ) ) * COUNT ( * ) + + + COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT + COUNT( 8 )
----
1

skipif mysql # not compatible
query I rowsort label-5603
SELECT + COUNT ( 8 )
----
1

query I rowsort
SELECT + - 22 + + 85 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT + - COUNT( * ) * + - COUNT( * ) + + 37 * + 76
----
2813

skipif mysql # not compatible
query I rowsort label-5605
SELECT + - COUNT ( * ) * + - COUNT ( * ) + + 37 * + 76
----
2813

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL - 95 * + - COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - 95 * + - COUNT ( * ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5607
SELECT - 74 DIV - - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-5607
SELECT - 74 / - - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5608
SELECT ALL + 11 AS col2, COUNT( * ) DIV 21 AS col0
----
11
0

skipif mysql # not compatible
query II rowsort label-5608
SELECT ALL + 11 AS col2, COUNT ( * ) / 21 AS col0
----
11
0

query I rowsort
SELECT - COALESCE ( 3, - 95 )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5610
SELECT ALL + 29, + CAST( NULL AS DECIMAL ) * SUM( DISTINCT + + 78 ) AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-5610
SELECT ALL + 29, + CAST ( NULL AS REAL ) * SUM ( DISTINCT + + 78 ) AS col1
----
29
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT CAST( - + 9 AS SIGNED ) + - 28 - 81 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-5611
SELECT CAST ( - + 9 AS INTEGER ) + - 28 - 81 AS col1
----
-118

query I rowsort
SELECT ALL 54 * - 10
----
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT COUNT( * ) - - 18 col1
----
19

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT COUNT ( * ) - - 18 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT + - COUNT( ALL 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-5614
SELECT + - COUNT ( ALL 57 )
----
-1

query I rowsort
SELECT 58 * 6 * 16 AS col0
----
5568

query I rowsort
SELECT + 30 + + ( + 76 ) col0
----
106

query I rowsort
SELECT + 47 * + 69 AS col0
----
3243

query I rowsort
SELECT - 19 + + + 96 + 27 * + 62 AS col2
----
1751

query I rowsort
SELECT DISTINCT ( - - 13 ) AS col1
----
13

query I rowsort
SELECT + ( + 68 ) AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5621
SELECT CASE + COUNT( * ) WHEN + 55 THEN + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT CASE + COUNT ( * ) WHEN + 55 THEN + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT COUNT( DISTINCT 56 )
----
1

skipif mysql # not compatible
query I rowsort label-5622
SELECT COUNT ( DISTINCT 56 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5623
SELECT ALL + ( + COUNT( * ) ) DIV COUNT( * ) + - 8 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL + ( + COUNT ( * ) ) / COUNT ( * ) + - 8 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT 62 - - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-5624
SELECT 62 - - COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT 67 * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-5625
SELECT 67 * - COUNT ( * )
----
-67

query I rowsort
SELECT DISTINCT 90 * - 85 AS col1
----
-7650

query I rowsort
SELECT 86 - + 29 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5628
SELECT NULLIF ( SUM( + 68 ), + COUNT( - 26 ) * + 43 ) * + NULLIF ( COUNT( * ), + 6 * + 96 + - COUNT( * ) )
----
68

skipif mysql # not compatible
query I rowsort label-5628
SELECT NULLIF ( SUM ( + 68 ), + COUNT ( - 26 ) * + 43 ) * + NULLIF ( COUNT ( * ), + 6 * + 96 + - COUNT ( * ) )
----
68

query I rowsort
SELECT DISTINCT + 63 * 51 AS col1
----
3213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5630
SELECT CAST( NULL AS SIGNED ) * + SUM( 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT CAST ( NULL AS INTEGER ) * + SUM ( 45 ) AS col1
----
NULL

query I rowsort
SELECT ALL + 25 + + 5 * 38 AS col2
----
215

query I rowsort
SELECT - COALESCE ( + ( + 23 ), + 56 )
----
-23

query I rowsort
SELECT DISTINCT + 7 * + 50
----
350

query I rowsort
SELECT ALL + 57 * + 21
----
1197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5635
SELECT DISTINCT + - 60 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT + - 60 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5636
SELECT ALL + CAST( + 67 AS SIGNED ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL + CAST ( + 67 AS INTEGER ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT + 19 - COUNT( * ) * COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5637
SELECT + 19 - COUNT ( * ) * COUNT ( * )
----
18

query I rowsort
SELECT + 37 * 89
----
3293

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT + 77 * + ( COUNT( * ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5639
SELECT + 77 * + ( COUNT ( * ) ) AS col2
----
77

query I rowsort
SELECT ALL - 87 * + + 45 AS col1
----
-3915

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT MIN( DISTINCT 12 )
----
12

skipif mysql # not compatible
query I rowsort label-5641
SELECT MIN ( DISTINCT 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT + COUNT( * ) + + + 80 * COUNT( * ) col1
----
81

skipif mysql # not compatible
query I rowsort label-5642
SELECT + COUNT ( * ) + + + 80 * COUNT ( * ) col1
----
81

query I rowsort
SELECT DISTINCT + - 4 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT + SUM( ALL - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + SUM ( ALL - 54 )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT + CAST( - 12 AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5645
SELECT + CAST ( - 12 AS INTEGER ) AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT - CAST( - 55 AS SIGNED ) * - 45 col1
----
-2475

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT - CAST ( - 55 AS INTEGER ) * - 45 col1
----
-2475

query I rowsort
SELECT DISTINCT + + 29 AS col1
----
29

query II rowsort
SELECT ALL - 50, 42 AS col1
----
-50
42

query I rowsort
SELECT 36 * ( + 95 )
----
3420

query I rowsort
SELECT 75 + - 60 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5651
SELECT ALL - CAST( - 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL - CAST ( - 68 AS INTEGER ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT COUNT( + - 8 )
----
1

skipif mysql # not compatible
query I rowsort label-5652
SELECT COUNT ( + - 8 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT COUNT( * ) DIV 62 col1
----
0

skipif mysql # not compatible
query I rowsort label-5653
SELECT COUNT ( * ) / 62 col1
----
0

query I rowsort
SELECT 62 + + + 20 col1
----
82

query I rowsort
SELECT DISTINCT 73 col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5656
SELECT DISTINCT - ( + 73 ) + + COUNT( * ) AS col1, 2 AS col0
----
-72
2

skipif mysql # not compatible
query II rowsort label-5656
SELECT DISTINCT - ( + 73 ) + + COUNT ( * ) AS col1, 2 AS col0
----
-72
2

query I rowsort
SELECT DISTINCT 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT + 23 + + 16 + - MAX( - 46 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5658
SELECT + 23 + + 16 + - MAX ( - 46 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT + ( + 50 ) * + COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-5659
SELECT + ( + 50 ) * + COUNT ( * ) AS col2
----
50

query I rowsort
SELECT ALL + 81 AS col0
----
81

query I rowsort
SELECT - 71 + + 72
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT + COUNT( ALL + ( 4 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT + COUNT ( ALL + ( 4 ) ) AS col2
----
1

query I rowsort
SELECT ALL + + 21 col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT DISTINCT - COUNT( * ) + - + 63
----
-64

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - COUNT ( * ) + - + 63
----
-64

query II rowsort
SELECT + 69 AS col2, 14 AS col2
----
69
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT 62 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-5666
SELECT 62 / 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL + COUNT( * ) + + 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + COUNT ( * ) + + 11 AS col0
----
12

query I rowsort
SELECT 6 * 35 AS col1
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL - + 44 * - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL - + 44 * - COUNT ( * )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5670
SELECT + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL - + ( - + 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT COUNT( + 20 ) * NULLIF ( - + 50, + 73 ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-5672
SELECT COUNT ( + 20 ) * NULLIF ( - + 50, + 73 ) col2
----
-50

query I rowsort
SELECT DISTINCT - 51 * + + 30
----
-1530

query I rowsort
SELECT DISTINCT ( - - 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5675
SELECT - COUNT( * ) * ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5675
SELECT - COUNT ( * ) * ( - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT DISTINCT + 80 * - + MIN( DISTINCT 83 ) * + COUNT( * ) AS col2
----
-6640

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + 80 * - + MIN ( DISTINCT 83 ) * + COUNT ( * ) AS col2
----
-6640

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT DISTINCT COUNT( * ) + - 49
----
-48

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT COUNT ( * ) + - 49
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT - COUNT( * ) + + 50
----
49

skipif mysql # not compatible
query I rowsort label-5678
SELECT - COUNT ( * ) + + 50
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5679
SELECT DISTINCT - 93 DIV 81 - + COALESCE ( 53, + 4 )
----
-54

skipif mysql # not compatible
query I rowsort label-5679
SELECT DISTINCT - 93 / 81 - + COALESCE ( 53, + 4 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT + - MIN( DISTINCT + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-5680
SELECT + - MIN ( DISTINCT + 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL - COUNT( * ) * 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL - COUNT ( * ) * 67 AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + 83 * - ( COUNT( * ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-5682
SELECT + 83 * - ( COUNT ( * ) ) AS col2
----
-83

query I rowsort
SELECT DISTINCT + + 57 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + COUNT( * ) * - 5 col1
----
-5

skipif mysql # not compatible
query I rowsort label-5684
SELECT + COUNT ( * ) * - 5 col1
----
-5

query I rowsort
SELECT + 36 + - 89 AS col1
----
-53

query I rowsort
SELECT ALL ( + - ( - 62 ) ) AS col2
----
62

query I rowsort
SELECT ALL - 39 + 48
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-5688
SELECT ALL - - 23, + COUNT( * ) AS col0
----
23
1

skipif mysql # not compatible
query II rowsort label-5688
SELECT ALL - - 23, + COUNT ( * ) AS col0
----
23
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5689
SELECT 50 DIV + - 34
----
-1

skipif mysql # not compatible
query I rowsort label-5689
SELECT 50 / + - 34
----
-1

query I rowsort
SELECT - 49 col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT ALL - COUNT( * ) * 75
----
-75

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL - COUNT ( * ) * 75
----
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5692
SELECT ALL + + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL + + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT - 47 / ( + AVG ( ALL CAST( NULL AS SIGNED ) ) ) - 20 + 8 + 16 - + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5693
SELECT - 47 / ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) - 20 + 8 + 16 - + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT COUNT( ALL - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-5694
SELECT COUNT ( ALL - 6 )
----
1

query I rowsort
SELECT ALL 72 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + COUNT( * ) + - - 2
----
3

skipif mysql # not compatible
query I rowsort label-5696
SELECT + COUNT ( * ) + - - 2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5697
SELECT DISTINCT 1 / - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT 1 / - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5698
SELECT DISTINCT - ( - 28 ) DIV + CAST( MIN( - 59 ) AS SIGNED ) + 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT - ( - 28 ) / + CAST ( MIN ( - 59 ) AS INTEGER ) + 68 AS col2
----
68

query I rowsort
SELECT DISTINCT - + 53 * - ( 58 ) AS col0
----
3074

query I rowsort
SELECT ( 46 ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT ALL 46 * - 36 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL 46 * - 36 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL - 48 * - - NULLIF ( COUNT( * ), - COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL - 48 * - - NULLIF ( COUNT ( * ), - COUNT ( * ) )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL 18 * + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL 18 * + COUNT ( * )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT ALL + 13 DIV - 13
----
-1

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL + 13 / - 13
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL CAST( NULL AS SIGNED ) * + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL CAST ( NULL AS INTEGER ) * + + 57
----
NULL

query I rowsort
SELECT - + ( - 92 )
----
92

query I rowsort
SELECT 74 - + 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5708
SELECT ALL COUNT( * ) * 99, + 63 AS col0
----
99
63

skipif mysql # not compatible
query II rowsort label-5708
SELECT ALL COUNT ( * ) * 99, + 63 AS col0
----
99
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5709
SELECT ALL 5 + MAX( - + 61 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL 5 + MAX ( - + 61 ) AS col0
----
-56

query I rowsort
SELECT - - 57
----
57

query II rowsort
SELECT + ( + + 34 ) + 49 + - 8 AS col2, 27 - - 3 * - 82 AS col2
----
75
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT ALL - CAST( - 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - CAST ( - 74 AS INTEGER ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT MAX( + + 8 ) col2
----
8

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT MAX ( + + 8 ) col2
----
8

query I rowsort
SELECT ALL + 89 col0
----
89

query I rowsort
SELECT - + ( + 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT + 1 + - COUNT( * ) + + 52
----
52

skipif mysql # not compatible
query I rowsort label-5716
SELECT + 1 + - COUNT ( * ) + + 52
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5717
SELECT + CAST( NULL AS DECIMAL ) * - COUNT( * ) * + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT + CAST ( NULL AS REAL ) * - COUNT ( * ) * + 88 AS col2
----
NULL

query I rowsort
SELECT - 44 * 22 AS col0
----
-968

query I rowsort
SELECT DISTINCT 89 + 7 * + 37 AS col0
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT COUNT( * ) - + 34 + 85
----
52

skipif mysql # not compatible
query I rowsort label-5720
SELECT COUNT ( * ) - + 34 + 85
----
52

query I rowsort
SELECT DISTINCT 53 + 74
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT ALL SUM( DISTINCT + - 54 ) + 4
----
-50

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL SUM ( DISTINCT + - 54 ) + 4
----
-50

query I rowsort
SELECT ALL - + 84
----
-84

query I rowsort
SELECT - - 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT 9 * - + COUNT( * ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5725
SELECT 9 * - + COUNT ( * ) AS col0
----
-9

query I rowsort
SELECT 50 + 40 AS col1
----
90

query I rowsort
SELECT ALL - - 16 AS col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5728
SELECT + + 26 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5728
SELECT + + 26 / - 90 AS col0
----
0

query I rowsort
SELECT - 76 * + - 18 AS col2
----
1368

query I rowsort
SELECT + ( + - 22 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT - SUM( ALL 71 ) - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-5732
SELECT - SUM ( ALL 71 ) - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT DISTINCT ( 1 )
----
1

query I rowsort
SELECT ALL + 24 * + 30 col2
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT - MIN( - - 71 ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-5735
SELECT - MIN ( - - 71 ) AS col1
----
-71

query I rowsort
SELECT + 19 * + - 71
----
-1349

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT ALL 97 * - COUNT( * ) - 17
----
-114

skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL 97 * - COUNT ( * ) - 17
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5739
SELECT ALL - 37 * - - 16 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL - 37 * - - 16 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5740
SELECT ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query I rowsort
SELECT 25 * + - 66
----
-1650

query I rowsort
SELECT DISTINCT + 34 + 84 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT ALL - 41 + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL - 41 + + COUNT ( * )
----
-40

query I rowsort
SELECT DISTINCT - 51 col1
----
-51

query I rowsort
SELECT 34 + + 83
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT ALL - COUNT( * ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL - COUNT ( * ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 47 col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5748
SELECT - MAX( DISTINCT - - CAST( - 77 AS SIGNED ) ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5748
SELECT - MAX ( DISTINCT - - CAST ( - 77 AS INTEGER ) ) AS col0
----
77

query I rowsort
SELECT + - 36 AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT + 73 * - 39 + - 22 / + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5750
SELECT + 73 * - 39 + - 22 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 24 * + + 83
----
-1992

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT ALL - COUNT( * ) * - 4 + + COUNT( * ) + 68 * + 3 AS col1
----
209

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL - COUNT ( * ) * - 4 + + COUNT ( * ) + 68 * + 3 AS col1
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT - COUNT( * ) * + 80 col1
----
-80

skipif mysql # not compatible
query I rowsort label-5753
SELECT - COUNT ( * ) * + 80 col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT + - COUNT( * ) * 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5754
SELECT + - COUNT ( * ) * 7 AS col1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5755
SELECT ALL - COUNT( * ) DIV - - 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - COUNT ( * ) / - - 24 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5756
SELECT ALL CAST( NULL AS DECIMAL ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL CAST ( NULL AS REAL ) * + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT - + 10 * - COUNT( * ) + - + 58 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT - + 10 * - COUNT ( * ) + - + 58 AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5758
SELECT ALL - ( - COUNT( * ) ) - 75 DIV COUNT( * ) - + + COUNT( * ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL - ( - COUNT ( * ) ) - 75 / COUNT ( * ) - + + COUNT ( * ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT - COUNT( 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-5759
SELECT - COUNT ( 61 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL - ( - + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - ( - + COUNT ( * ) ) col1
----
1

query I rowsort
SELECT ( 34 ) + 81
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT + SUM( - - 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-5762
SELECT + SUM ( - - 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT + COUNT( * ) * + COUNT( * ) - 57 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5763
SELECT + COUNT ( * ) * + COUNT ( * ) - 57 AS col2
----
-56

query I rowsort
SELECT DISTINCT - - 11
----
11

query I rowsort
SELECT ALL + COALESCE ( - 96, 7 ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL COUNT( + 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL COUNT ( + 56 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT - 76 * + MIN( ALL + 49 ) col1
----
-3724

skipif mysql # not compatible
query I rowsort label-5767
SELECT - 76 * + MIN ( ALL + 49 ) col1
----
-3724

query I rowsort
SELECT DISTINCT + ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5769
SELECT DISTINCT + COUNT( * ) AS col1, - 45 + + 11
----
1
-34

skipif mysql # not compatible
query II rowsort label-5769
SELECT DISTINCT + COUNT ( * ) AS col1, - 45 + + 11
----
1
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + MIN( ALL + + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5770
SELECT + MIN ( ALL + + 99 ) AS col2
----
99

query I rowsort
SELECT DISTINCT 97 * - 73 AS col1
----
-7081

query I rowsort
SELECT - 68 + + - 91 AS col1
----
-159

query I rowsort
SELECT DISTINCT NULLIF ( - 13, 19 )
----
-13

query I rowsort
SELECT DISTINCT 23 AS col0
----
23

query I rowsort
SELECT ALL + + 47 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT - 32 DIV 22 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT - 32 / 22 AS col2
----
-1

query I rowsort
SELECT - + ( - 31 )
----
31

query I rowsort
SELECT ALL 40 + 58 AS col0
----
98

query I rowsort
SELECT ALL + 5 + - 30 AS col0
----
-25

query I rowsort
SELECT 35 + 44
----
79

query I rowsort
SELECT ALL 1 - - - 59 AS col2
----
-58

query I rowsort
SELECT 98 * - - 90
----
8820

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT 23 * - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5783
SELECT 23 * - - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT MIN( ALL + 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5784
SELECT MIN ( ALL + 99 ) AS col1
----
99

query I rowsort
SELECT ALL - ( - + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL COUNT( * ) * - - 48 col0
----
48

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL COUNT ( * ) * - - 48 col0
----
48

query I rowsort
SELECT DISTINCT + 75 col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5788
SELECT - 83 * + 66 * 89 AS col1, CAST( - - 12 AS SIGNED ) AS col1
----
-487542
12

skipif mysql # not compatible
query II rowsort label-5788
SELECT - 83 * + 66 * 89 AS col1, CAST ( - - 12 AS INTEGER ) AS col1
----
-487542
12

query I rowsort
SELECT ALL ( - - 51 ) AS col2
----
51

query II rowsort
SELECT DISTINCT + 12 + + 13, 51 + + + 33 AS col1
----
25
84

query I rowsort
SELECT - 6 * 15 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL - COUNT( * ) - - 48
----
47

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL - COUNT ( * ) - - 48
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL COUNT( * ) + - 30 + + + 49
----
20

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL COUNT ( * ) + - 30 + + + 49
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + COUNT( * ) - + ( + 26 )
----
-25

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + COUNT ( * ) - + ( + 26 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT DISTINCT + + 88 - - + SUM( - + 35 )
----
53

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT + + 88 - - + SUM ( - + 35 )
----
53

query I rowsort
SELECT - - 53 AS col2
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5797
SELECT 50 DIV + - COUNT( ALL - - 35 )
----
-50

skipif mysql # not compatible
query I rowsort label-5797
SELECT 50 / + - COUNT ( ALL - - 35 )
----
-50

query I rowsort
SELECT ALL + 80 + + + 23 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT + MAX( DISTINCT + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5799
SELECT + MAX ( DISTINCT + 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5800
SELECT - MAX( + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-5800
SELECT - MAX ( + 26 )
----
-26

query I rowsort
SELECT - - 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL COUNT( - 60 )
----
1

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL COUNT ( - 60 )
----
1

query I rowsort
SELECT ALL - 70 * + 67 col1
----
-4690

query I rowsort
SELECT - + 59 * - 25
----
1475

query I rowsort
SELECT - 0 * + NULLIF ( - 90, - 65 * - 10 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT COALESCE ( - 12, + + MAX( ALL - + 10 ), - - COUNT( * ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-5806
SELECT COALESCE ( - 12, + + MAX ( ALL - + 10 ), - - COUNT ( * ) ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL + MAX( DISTINCT + 58 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL + MAX ( DISTINCT + 58 ) col1
----
58

query II rowsort
SELECT ALL + 74, 20 - 87 AS col1
----
74
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT + + 54 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-5809
SELECT + + 54 / - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT ALL - MAX( DISTINCT - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL - MAX ( DISTINCT - 36 )
----
36

query I rowsort
SELECT ALL 69 col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT + 24 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT + 24 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 99 * - 7
----
-693

onlyif mysql # aggregate syntax: 
query II rowsort label-5814
SELECT 74 AS col0, COUNT( * ) AS col1
----
74
1

skipif mysql # not compatible
query II rowsort label-5814
SELECT 74 AS col0, COUNT ( * ) AS col1
----
74
1

query I rowsort
SELECT 3 * + 27 AS col0
----
81

query I rowsort
SELECT - 22 * 8 AS col0
----
-176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT ALL SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT ALL + 0 - - COUNT( * ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL + 0 - - COUNT ( * ) + + 58
----
59

query I rowsort
SELECT - - 40 AS col0
----
40

query I rowsort
SELECT DISTINCT + 97 * - - 33
----
3201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT ALL - CAST( 73 AS SIGNED ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL - CAST ( 73 AS INTEGER ) AS col1
----
-73

query I rowsort
SELECT ALL ( + 22 )
----
22

query I rowsort
SELECT ALL + 87 + - + 95 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5824
SELECT + 83 * 86 - 17 AS col2, + COUNT( * ) AS col1
----
7121
1

skipif mysql # not compatible
query II rowsort label-5824
SELECT + 83 * 86 - 17 AS col2, + COUNT ( * ) AS col1
----
7121
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT ALL - 55 * + COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - 55 * + COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT + MAX( ALL - - 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-5826
SELECT + MAX ( ALL - - 62 ) AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT - - COUNT( * ) DIV 34
----
0

skipif mysql # not compatible
query I rowsort label-5827
SELECT - - COUNT ( * ) / 34
----
0

query II rowsort
SELECT ALL 89, 70 col2
----
89
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5829
SELECT ALL + COUNT( * ) col1, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5829
SELECT ALL + COUNT ( * ) col1, + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL - COUNT( DISTINCT - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - COUNT ( DISTINCT - 90 )
----
-1

query I rowsort
SELECT DISTINCT - ( + + 54 ) AS col2
----
-54

query I rowsort
SELECT ALL - - 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - MIN( - COALESCE ( - 15, + 54 ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5833
SELECT - MIN ( - COALESCE ( - 15, + 54 ) ) AS col0
----
-15

query I rowsort
SELECT ALL - 50 AS col0
----
-50

query I rowsort
SELECT ALL - + 25
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5836
SELECT ( + + 17 ) AS col2, COUNT( * )
----
17
1

skipif mysql # not compatible
query II rowsort label-5836
SELECT ( + + 17 ) AS col2, COUNT ( * )
----
17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT ALL + COUNT( * ) + - 38 * COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL + COUNT ( * ) + - 38 * COUNT ( * ) AS col0
----
-37

query II rowsort
SELECT 45, 71 AS col1
----
45
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5839
SELECT - + CAST( + + 9 AS SIGNED )
----
-9

skipif mysql # not compatible
query I rowsort label-5839
SELECT - + CAST ( + + 9 AS INTEGER )
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5840
SELECT + - 32 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5840
SELECT + - 32 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + ( 70 ) - 0 col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5842
SELECT + + 5 * 35 DIV 19 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5842
SELECT + + 5 * 35 / 19 AS col2
----
9

query I rowsort
SELECT + 30 + + 2 * + - 67
----
-104

query I rowsort
SELECT NULLIF ( + 46, + 45 ) col2
----
46

query I rowsort
SELECT ALL - + 43
----
-43

query I rowsort
SELECT ALL - + 94 AS col1
----
-94

query I rowsort
SELECT DISTINCT - ( 9 ) AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5848
SELECT ALL - CAST( NULL AS SIGNED ), - 36 col2
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-5848
SELECT ALL - CAST ( NULL AS INTEGER ), - 36 col2
----
NULL
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL 4 * COUNT( * ) col2
----
4

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL 4 * COUNT ( * ) col2
----
4

query II rowsort
SELECT 42 AS col2, + 94 col2
----
42
94

onlyif mysql # aggregate syntax: 
query II rowsort label-5851
SELECT 70, + COUNT( ALL + - 83 ) AS col0
----
70
1

skipif mysql # not compatible
query II rowsort label-5851
SELECT 70, + COUNT ( ALL + - 83 ) AS col0
----
70
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5852
SELECT - - COUNT( * ), - CAST( NULL AS SIGNED ) - - + 39 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5852
SELECT - - COUNT ( * ), - CAST ( NULL AS INTEGER ) - - + 39 AS col1
----
1
NULL

query I rowsort
SELECT ALL ( + 44 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5854
SELECT - - 7 + - ( - COUNT( * ) ) DIV + + 63 * + - 18 * + + 95
----
7

skipif mysql # not compatible
query I rowsort label-5854
SELECT - - 7 + - ( - COUNT ( * ) ) / + + 63 * + - 18 * + + 95
----
7

query I rowsort
SELECT + 83 col0
----
83

query II rowsort
SELECT ALL + 48 * - + 32 col0, 67 AS col1
----
-1536
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT DISTINCT + COUNT( * ) * + 31 col1
----
31

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT + COUNT ( * ) * + 31 col1
----
31

query I rowsort
SELECT ( 40 )
----
40

query I rowsort
SELECT - - 57 AS col0
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT + 47 DIV - 6 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5860
SELECT + 47 / - 6 AS col0
----
-7

query II rowsort
SELECT + 81 col1, - 45
----
81
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5862
SELECT CAST( ( 87 ) AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5862
SELECT CAST ( ( 87 ) AS INTEGER ) AS col1
----
87

query I rowsort
SELECT ALL + ( + + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT COUNT( DISTINCT - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5864
SELECT COUNT ( DISTINCT - 55 )
----
1

query I rowsort
SELECT ALL + 36 col0
----
36

query I rowsort
SELECT DISTINCT 65 - 40
----
25

query I rowsort
SELECT DISTINCT - - 27 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT - 38 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5868
SELECT - 38 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( - 55 )
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT ALL - 16 DIV + 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL - 16 / + 92 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5871
SELECT DISTINCT + CAST( NULL AS SIGNED ), COUNT( * ) * + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5871
SELECT DISTINCT + CAST ( NULL AS INTEGER ), COUNT ( * ) * + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT + ( 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT MAX( 28 ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5873
SELECT MAX ( 28 ) AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT - 43 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT - 43 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 10 col1
----
10

query I rowsort
SELECT - 34 * + 91 AS col1
----
-3094

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL - 30 * - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL - 30 * - COUNT ( * ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT - MIN( 99 ) + - ( + 9 )
----
-108

skipif mysql # not compatible
query I rowsort label-5878
SELECT - MIN ( 99 ) + - ( + 9 )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT DISTINCT - COUNT( * ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT - COUNT ( * ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT + SUM( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5880
SELECT + SUM ( DISTINCT + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT + - COUNT( DISTINCT 74 ) + + 54
----
53

skipif mysql # not compatible
query I rowsort label-5881
SELECT + - COUNT ( DISTINCT 74 ) + + 54
----
53

query I rowsort
SELECT ALL + + CASE - 33 WHEN 10 THEN 66 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT - + COUNT( * ) + 16 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - + COUNT ( * ) + 16 AS col1
----
15

query II rowsort
SELECT - 31, ( - 92 ) AS col1
----
-31
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT - MAX( - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5885
SELECT - MAX ( - 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT DISTINCT 45 * COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT 45 * COUNT ( * ) AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5887
SELECT + CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5887
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT - 49 * + - 65
----
3185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5889
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ( + 41 ) AS col0
----
41

query I rowsort
SELECT + + 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL + - MIN( - 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL + - MIN ( - 6 ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5893
SELECT ALL - COUNT( * ) / - 75 * + 45 / - NULLIF ( CAST( NULL AS SIGNED ), 87 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL - COUNT ( * ) / - 75 * + 45 / - NULLIF ( CAST ( NULL AS INTEGER ), 87 ) col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5894
SELECT ALL - 5 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT ALL - 5 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - 44 - - + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5895
SELECT - 44 - - + COUNT ( * )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5896
SELECT ALL CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT + ( - NULLIF ( - - SUM( + - 18 ), + COUNT( * ) ) )
----
18

skipif mysql # not compatible
query I rowsort label-5897
SELECT + ( - NULLIF ( - - SUM ( + - 18 ), + COUNT ( * ) ) )
----
18

query I rowsort
SELECT ALL - - ( - 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT - COUNT( 29 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5899
SELECT - COUNT ( 29 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 55 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5901
SELECT ALL 57 + + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL 57 + + COUNT ( * ) AS col1
----
58

query I rowsort
SELECT - ( + ( 3 ) ) col2
----
-3

query I rowsort
SELECT + ( + 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5904
SELECT DISTINCT ( 43 ) DIV - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT ( 43 ) / - COUNT ( * )
----
-43

query I rowsort
SELECT 19 - + 3 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT + SUM( + 77 ) col1
----
77

skipif mysql # not compatible
query I rowsort label-5906
SELECT + SUM ( + 77 ) col1
----
77

query I rowsort
SELECT + 59 * + 18 col1
----
1062

onlyif mysql # aggregate syntax: 
query II rowsort label-5908
SELECT ALL + 68, + COUNT( * ) AS col0
----
68
1

skipif mysql # not compatible
query II rowsort label-5908
SELECT ALL + 68, + COUNT ( * ) AS col0
----
68
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5909
SELECT + COUNT( * ), - COUNT( * ) * + 10 AS col1
----
1
-10

skipif mysql # not compatible
query II rowsort label-5909
SELECT + COUNT ( * ), - COUNT ( * ) * + 10 AS col1
----
1
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL + SUM( 73 )
----
73

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL + SUM ( 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT - ( + COUNT( * ) ) * + 52
----
-52

skipif mysql # not compatible
query I rowsort label-5911
SELECT - ( + COUNT ( * ) ) * + 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT - MIN( ALL + + 60 ) * + 93
----
-5580

skipif mysql # not compatible
query I rowsort label-5912
SELECT - MIN ( ALL + + 60 ) * + 93
----
-5580

query I rowsort
SELECT ( 57 )
----
57

query I rowsort
SELECT - 18 + + 0 col1
----
-18

query I rowsort
SELECT ALL - 94 * - 42 + + + 25
----
3973

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL + COUNT( * ) - - + ( + + 17 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL + COUNT ( * ) - - + ( + + 17 ) AS col0
----
18

query I rowsort
SELECT ALL 22 + 14
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT + 15 + + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-5918
SELECT + 15 + + COUNT ( * )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL + COUNT( * ) - + COUNT( * ) + + 35
----
35

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL + COUNT ( * ) - + COUNT ( * ) + + 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT MIN( DISTINCT - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5920
SELECT MIN ( DISTINCT - 0 ) AS col0
----
0

query I rowsort
SELECT 39 * - - 57
----
2223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5922
SELECT - COUNT( * ) AS col2, - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5922
SELECT - COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT 64 * - - COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5923
SELECT 64 * - - COUNT ( * ) AS col1
----
64

query I rowsort
SELECT COALESCE ( 59, - 97 )
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-5925
SELECT + 88, COUNT( * ) AS col0
----
88
1

skipif mysql # not compatible
query II rowsort label-5925
SELECT + 88, COUNT ( * ) AS col0
----
88
1

query I rowsort
SELECT + ( - + 66 ) AS col1
----
-66

query I rowsort
SELECT ALL 55 * 35
----
1925

query II rowsort
SELECT - 99, 65 AS col0
----
-99
65

query I rowsort
SELECT - 76 + ( + 0 ) AS col1
----
-76

query I rowsort
SELECT - 51 + - - 91
----
40

query I rowsort
SELECT DISTINCT ( + + ( 25 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - COALESCE ( COUNT( * ), 16 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5932
SELECT - COALESCE ( COUNT ( * ), 16 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT DISTINCT COUNT( * ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT COUNT ( * ) * + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT DISTINCT + 42 + - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT + 42 + - COUNT ( * )
----
41

query I rowsort
SELECT ALL + 97 + 76 col1
----
173

query II rowsort
SELECT + 76 AS col2, + 18
----
76
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5937
SELECT + COUNT( * ), 35 AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-5937
SELECT + COUNT ( * ), 35 AS col1
----
1
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT COUNT( * ) + - 86 col0
----
-85

skipif mysql # not compatible
query I rowsort label-5938
SELECT COUNT ( * ) + - 86 col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL - - 79 * - - ( + COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL - - 79 * - - ( + COUNT ( * ) )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5940
SELECT CAST( NULL AS SIGNED ) * + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT CAST ( NULL AS INTEGER ) * + - 0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5941
SELECT DISTINCT - 89 DIV + COUNT( * ) col2, 63 AS col1
----
-89
63

skipif mysql # not compatible
query II rowsort label-5941
SELECT DISTINCT - 89 / + COUNT ( * ) col2, 63 AS col1
----
-89
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5942
SELECT + 58 AS col1, + COUNT( * ) AS col2
----
58
1

skipif mysql # not compatible
query II rowsort label-5942
SELECT + 58 AS col1, + COUNT ( * ) AS col2
----
58
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5943
SELECT + 80 DIV - 61
----
-1

skipif mysql # not compatible
query I rowsort label-5943
SELECT + 80 / - 61
----
-1

query I rowsort
SELECT NULLIF ( + 24, ( - ( - 69 ) ) )
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-5945
SELECT COUNT( * ) AS col0, COUNT( * ) * - 54
----
1
-54

skipif mysql # not compatible
query II rowsort label-5945
SELECT COUNT ( * ) AS col0, COUNT ( * ) * - 54
----
1
-54

query I rowsort
SELECT ALL - 93 * + 25 AS col0
----
-2325

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT DISTINCT - MIN( DISTINCT + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT - MIN ( DISTINCT + 22 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5948
SELECT ALL 84 + + - 76 DIV - CAST( + 88 AS SIGNED ) * - 85
----
84

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL 84 + + - 76 / - CAST ( + 88 AS INTEGER ) * - 85
----
84

query I rowsort
SELECT + - 31 AS col0
----
-31

query I rowsort
SELECT ALL + 70 * - 94 AS col0
----
-6580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5951
SELECT ALL + - MIN( DISTINCT + CAST( 9 AS SIGNED ) ) + 27 col0
----
18

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL + - MIN ( DISTINCT + CAST ( 9 AS INTEGER ) ) + 27 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT 51 - + SUM( + - 79 )
----
130

skipif mysql # not compatible
query I rowsort label-5952
SELECT 51 - + SUM ( + - 79 )
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-5953
SELECT DISTINCT - 50, + COUNT( * ) col0
----
-50
1

skipif mysql # not compatible
query II rowsort label-5953
SELECT DISTINCT - 50, + COUNT ( * ) col0
----
-50
1

query I rowsort
SELECT - ( - + 50 )
----
50

query I rowsort
SELECT DISTINCT 58 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT - + MAX( ALL + - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5956
SELECT - + MAX ( ALL + - 59 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT - 98 * 21 DIV + + 59 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-5957
SELECT - 98 * 21 / + + 59 AS col1
----
-34

query I rowsort
SELECT + ( 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + - COUNT( * ) + 59
----
58

skipif mysql # not compatible
query I rowsort label-5959
SELECT + - COUNT ( * ) + 59
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5960
SELECT DISTINCT - 81 * + + 47 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT - 81 * + + 47 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5961
SELECT ALL 40 DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL 40 / - 45
----
0

query I rowsort
SELECT - 74 * 66
----
-4884

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL + MIN( 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + MIN ( 34 ) AS col2
----
34

query I rowsort
SELECT ALL + NULLIF ( + + ( + + 27 ), - 58 ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT DISTINCT 35 + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT 35 + COUNT ( * )
----
36

query I rowsort
SELECT DISTINCT + 72 * + 38
----
2736

query I rowsort
SELECT DISTINCT - - 55 AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT ALL - - COUNT( * ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5968
SELECT ALL - - COUNT ( * ) AS col0, COUNT ( * )
----
1
1

query I rowsort
SELECT 73 * 57
----
4161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5970
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT ( + 73 ) * + 69 AS col2, 95
----
5037
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT ALL ( - + 27 ) * - 9 - + 8 * - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL ( - + 27 ) * - 9 - + 8 * - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT DISTINCT + + COUNT( ALL 40 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT + + COUNT ( ALL 40 ) col0
----
1

query I rowsort
SELECT ALL + + 87 AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT - - 51 / - - CAST( NULL AS SIGNED ) / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT - - 51 / - - CAST ( NULL AS INTEGER ) / - 98
----
NULL

query I rowsort
SELECT DISTINCT 94 * + + 33
----
3102

query I rowsort
SELECT - + 81 AS col0
----
-81

query I rowsort
SELECT DISTINCT + 44 - - 3 AS col1
----
47

query I rowsort
SELECT - 43 * - 64 AS col2
----
2752

query II rowsort
SELECT + - 71, 30 col2
----
-71
30

query I rowsort
SELECT + ( + - 42 ) AS col2
----
-42

query I rowsort
SELECT ALL ( - 37 ) col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT DISTINCT - 62 + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT - 62 + COUNT ( * )
----
-61

query I rowsort
SELECT DISTINCT - ( + + 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT COUNT( * ) * 65 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-5985
SELECT COUNT ( * ) * 65 AS col0
----
65

query I rowsort
SELECT ALL 34 * + - ( - 30 )
----
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5987
SELECT COUNT( * ) DIV - + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5987
SELECT COUNT ( * ) / - + 66 AS col2
----
0

query I rowsort
SELECT 36 * 43
----
1548

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5989
SELECT 42 + + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT 42 + + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT DISTINCT 62 * - - COALESCE ( + CAST( NULL AS SIGNED ), + 56 )
----
3472

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT 62 * - - COALESCE ( + CAST ( NULL AS INTEGER ), + 56 )
----
3472

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT 79 + COUNT( * ) col0
----
80

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT 79 + COUNT ( * ) col0
----
80

query I rowsort
SELECT 32 + - 16
----
16

query I rowsort
SELECT 77 - + 53 + + + 4 + + 57 AS col2
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5994
SELECT - CAST( NULL AS DECIMAL ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT - CAST ( NULL AS REAL ) + 43
----
NULL

query I rowsort
SELECT DISTINCT + ( 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT - MAX( ALL + + 97 ) col0
----
-97

skipif mysql # not compatible
query I rowsort label-5996
SELECT - MAX ( ALL + + 97 ) col0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5997
SELECT ALL - + 36 * COUNT( * ) * 36 DIV 62 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL - + 36 * COUNT ( * ) * 36 / 62 AS col1
----
-20

query I rowsort
SELECT DISTINCT - - 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT DISTINCT - - ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - - ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6000
SELECT DISTINCT - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT 10 - + COUNT( * ) col0
----
9

skipif mysql # not compatible
query I rowsort label-6001
SELECT 10 - + COUNT ( * ) col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6002
SELECT DISTINCT - COUNT( DISTINCT CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + - ( - 57 )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT + 49 DIV + - 29 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6004
SELECT + 49 / + - 29 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT - COUNT( * ) * - 43 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-6005
SELECT - COUNT ( * ) * - 43 AS col2
----
43

query I rowsort
SELECT DISTINCT - ( 39 )
----
-39

query I rowsort
SELECT DISTINCT - 88 * 63 AS col2
----
-5544

query I rowsort
SELECT - 75 + - 96 AS col0
----
-171

query I rowsort
SELECT + 46 * + 9 AS col1
----
414

query I rowsort
SELECT - + 62 AS col1
----
-62

query I rowsort
SELECT - ( 12 ) col0
----
-12

query I rowsort
SELECT ( 41 )
----
41

query I rowsort
SELECT DISTINCT 97 * - 17 AS col0
----
-1649

query I rowsort
SELECT DISTINCT 54 col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL SUM( DISTINCT + + ( ( 99 ) ) )
----
99

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL SUM ( DISTINCT + + ( ( 99 ) ) )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6016
SELECT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) * 46 * + 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6016
SELECT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) * 46 * + 70 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6017
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6017
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL - + 2 + + CASE WHEN NOT ( NULL ) > + + 41 THEN + 91 + + COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - + 2 + + CASE WHEN NOT ( NULL ) > + + 41 THEN + 91 + + COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT - - MIN( - - 9 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6019
SELECT - - MIN ( - - 9 ) AS col1
----
9

query I rowsort
SELECT DISTINCT + + 64 + ( 3 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT NULLIF ( - COUNT( * ), + 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-6021
SELECT NULLIF ( - COUNT ( * ), + 96 )
----
-1

query I rowsort
SELECT DISTINCT 3 * - + 89
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL COUNT( * ) * - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL COUNT ( * ) * - 68 AS col1
----
-68

query I rowsort
SELECT ALL + + 80 AS col1
----
80

query I rowsort
SELECT - - COALESCE ( + 58, 38 * 20 * + 99 + + 20 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT + 87 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT + 87 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT - ( + ( + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6027
SELECT - ( + ( + COUNT ( * ) ) ) AS col1
----
-1

query I rowsort
SELECT ALL + ( 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT ALL + ( + + CAST( + 41 AS SIGNED ) ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL + ( + + CAST ( + 41 AS INTEGER ) ) AS col2
----
41

query I rowsort
SELECT - - 19 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT - - MIN( + 31 ) col0
----
31

skipif mysql # not compatible
query I rowsort label-6031
SELECT - - MIN ( + 31 ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT + COUNT( * ) + + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6032
SELECT + COUNT ( * ) + + 23 AS col0
----
24

query I rowsort
SELECT ( - + 71 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT ALL - - CAST( NULL AS SIGNED ) / - - 66 / + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - - CAST ( NULL AS INTEGER ) / - - 66 / + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT ALL + + 90 - - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL + + 90 - - - COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT DISTINCT COUNT( ALL - 63 )
----
1

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT COUNT ( ALL - 63 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT 80 + 45 * + COUNT( * ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-6038
SELECT 80 + 45 * + COUNT ( * ) AS col2
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT COUNT( - 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6039
SELECT COUNT ( - 38 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - + 50 + + + COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-6040
SELECT - + 50 + + + COUNT ( * ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT - 56 * + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-6041
SELECT - 56 * + COUNT ( * )
----
-56

query I rowsort
SELECT ALL + 15 * + 72
----
1080

query I rowsort
SELECT 17 col2
----
17

query I rowsort
SELECT ALL + 88 + - 48 AS col2
----
40

query I rowsort
SELECT DISTINCT 29 col1
----
29

query I rowsort
SELECT - 84 * + 43 AS col1
----
-3612

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT DISTINCT + - 61 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT + - 61 / - 86
----
0

query I rowsort
SELECT + 57 * - + 82
----
-4674

query I rowsort
SELECT ALL + + 96 AS col1
----
96

query I rowsort
SELECT 5 + + 39
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT CAST( + + CAST( - 65 AS SIGNED ) AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-6051
SELECT CAST ( + + CAST ( - 65 AS INTEGER ) AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT - - SUM( 92 )
----
92

skipif mysql # not compatible
query I rowsort label-6052
SELECT - - SUM ( 92 )
----
92

query I rowsort
SELECT + + ( - 17 )
----
-17

query I rowsort
SELECT ALL + 19 + 51 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT DISTINCT - 2 + + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6055
SELECT DISTINCT - 2 + + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT + MAX( 37 ) * + SUM( - 79 ) - COUNT( * ) - - 88 AS col2
----
-2836

skipif mysql # not compatible
query I rowsort label-6056
SELECT + MAX ( 37 ) * + SUM ( - 79 ) - COUNT ( * ) - - 88 AS col2
----
-2836

query I rowsort
SELECT DISTINCT 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL + SUM( - + 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL + SUM ( - + 55 )
----
-55

query I rowsort
SELECT + - 66 - - 20 AS col0
----
-46

query I rowsort
SELECT - - ( - + 39 ) AS col0
----
-39

query I rowsort
SELECT + + 95 * - - 6 * + + 60
----
34200

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT - COUNT( * ) * 96
----
-96

skipif mysql # not compatible
query I rowsort label-6062
SELECT - COUNT ( * ) * 96
----
-96

query I rowsort
SELECT ALL - 61 * 43
----
-2623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6064
SELECT ALL - COUNT( * ) DIV + CAST( + - 17 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL - COUNT ( * ) / + CAST ( + - 17 AS INTEGER ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL SUM( 64 ) + 3
----
67

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL SUM ( 64 ) + 3
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-6066
SELECT + 95 AS col0, - COUNT( * )
----
95
-1

skipif mysql # not compatible
query II rowsort label-6066
SELECT + 95 AS col0, - COUNT ( * )
----
95
-1

query I rowsort
SELECT DISTINCT + + ( + - 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL - COUNT( + 93 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL - COUNT ( + 93 ) col0
----
-1

query I rowsort
SELECT ALL - ( 34 ) col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT ALL - MIN( DISTINCT - + 7 ) + - 85 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL - MIN ( DISTINCT - + 7 ) + - 85 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT COUNT( * ) + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-6071
SELECT COUNT ( * ) + - 66
----
-65

query I rowsort
SELECT 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL - SUM( - 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL - SUM ( - 94 ) AS col0
----
94

query I rowsort
SELECT + 79 * - 78 + + - 21 AS col1
----
-6183

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT DISTINCT - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * )
----
1

query II rowsort
SELECT - 90, - 78 AS col1
----
-90
-78

query I rowsort
SELECT DISTINCT + 94 * 70
----
6580

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT + SUM( ALL - 58 ) * + 24
----
-1392

skipif mysql # not compatible
query I rowsort label-6078
SELECT + SUM ( ALL - 58 ) * + 24
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT + COUNT( * ) * - + 43 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-6079
SELECT + COUNT ( * ) * - + 43 AS col1
----
-43

query I rowsort
SELECT ALL + - 18 AS col1
----
-18

query II rowsort
SELECT + - 92 col1, 11 AS col1
----
-92
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6082
SELECT + + 10 + + COUNT( * ) AS col1, 45 + + - 66
----
11
-21

skipif mysql # not compatible
query II rowsort label-6082
SELECT + + 10 + + COUNT ( * ) AS col1, 45 + + - 66
----
11
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6083
SELECT - COUNT( * ) DIV + 95 + + - 83
----
-83

skipif mysql # not compatible
query I rowsort label-6083
SELECT - COUNT ( * ) / + 95 + + - 83
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT ( + COUNT( * ) ), - 92 AS col1
----
1
-92

skipif mysql # not compatible
query II rowsort label-6084
SELECT ( + COUNT ( * ) ), - 92 AS col1
----
1
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT ALL + SUM( - 2 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL + SUM ( - 2 ) AS col0
----
-2

query I rowsort
SELECT + - 44 * 90 AS col1
----
-3960

query I rowsort
SELECT - 24 + + 17
----
-7

query I rowsort
SELECT ALL - 76 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL ( - 6 ) - - COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL ( - 6 ) - - COUNT ( * ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6090
SELECT DISTINCT - - CAST( + - ( + + 42 ) AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT - - CAST ( + - ( + + 42 ) AS INTEGER )
----
-42

query I rowsort
SELECT DISTINCT ( - 50 ) * + 37
----
-1850

query I rowsort
SELECT - 62 + 84 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - MIN( DISTINCT 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-6093
SELECT - MIN ( DISTINCT 42 )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6094
SELECT - 26 * COALESCE ( - 65, + CAST( NULL AS SIGNED ) * - COUNT( * ) ) * COUNT( * )
----
1690

skipif mysql # not compatible
query I rowsort label-6094
SELECT - 26 * COALESCE ( - 65, + CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) * COUNT ( * )
----
1690

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT + COUNT( * ) * - + 95
----
-95

skipif mysql # not compatible
query I rowsort label-6095
SELECT + COUNT ( * ) * - + 95
----
-95

query I rowsort
SELECT ALL 72 * 52 + - 14 AS col1
----
3730

query I rowsort
SELECT + + 10 AS col2
----
10

query I rowsort
SELECT - 3 + + + 95 AS col1
----
92

query II rowsort
SELECT 42, 78 + + - 80 AS col2
----
42
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6100
SELECT ALL CAST( 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL CAST ( 29 AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + 1 + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 1 + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT ALL + COUNT( * ) * + 22
----
22

skipif mysql # not compatible
query I rowsort label-6102
SELECT ALL + COUNT ( * ) * + 22
----
22

query I rowsort
SELECT 7 * + 42 AS col2
----
294

query I rowsort
SELECT DISTINCT - 94 col1
----
-94

query I rowsort
SELECT DISTINCT - 10 AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6106
SELECT ALL - MIN( ALL - CAST( - 31 AS SIGNED ) ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL - MIN ( ALL - CAST ( - 31 AS INTEGER ) ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT ALL 48 + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL 48 + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT DISTINCT - SUM( - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-6108
SELECT DISTINCT - SUM ( - - 37 )
----
-37

query I rowsort
SELECT - 44 * + 38 AS col2
----
-1672

query I rowsort
SELECT - 27 col2
----
-27

query I rowsort
SELECT ALL + - 84
----
-84

query I rowsort
SELECT ALL + - ( 72 )
----
-72

query I rowsort
SELECT DISTINCT + 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ( SUM( ALL - 7 ) ) + - - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-6114
SELECT ( SUM ( ALL - 7 ) ) + - - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT COUNT( * ) + 82 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6115
SELECT COUNT ( * ) + 82 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT COUNT( * ) * + 53 col2
----
53

skipif mysql # not compatible
query I rowsort label-6116
SELECT COUNT ( * ) * + 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT COUNT( * ) * ( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-6117
SELECT COUNT ( * ) * ( + 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT 26 - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6118
SELECT 26 - - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT COUNT( * ) + + 45 * + 85 AS col2
----
3826

skipif mysql # not compatible
query I rowsort label-6119
SELECT COUNT ( * ) + + 45 * + 85 AS col2
----
3826

query I rowsort
SELECT DISTINCT 50 * + 49
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT DISTINCT - 73 + + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT - 73 + + COUNT ( * ) AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6122
SELECT + 83 DIV - MAX( ALL 34 ) - 76
----
-78

skipif mysql # not compatible
query I rowsort label-6122
SELECT + 83 / - MAX ( ALL 34 ) - 76
----
-78

query I rowsort
SELECT + 84 * 54
----
4536

query I rowsort
SELECT ALL + 31 AS col1
----
31

query I rowsort
SELECT ALL + 76 col2
----
76

query I rowsort
SELECT DISTINCT + - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT - CAST( NULL AS SIGNED ) + - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT - CAST ( NULL AS INTEGER ) + - + 99
----
NULL

query I rowsort
SELECT ALL + - 48 col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - ( + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT + COUNT( * ) * + - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6130
SELECT + COUNT ( * ) * + - COUNT ( * ) col0
----
-1

query I rowsort
SELECT ALL + ( ( 78 ) )
----
78

query I rowsort
SELECT + 57 col0
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6133
SELECT - COUNT( * ) AS col1, - COUNT( * ) DIV COUNT( * ) * 78 AS col0
----
-1
-78

skipif mysql # not compatible
query II rowsort label-6133
SELECT - COUNT ( * ) AS col1, - COUNT ( * ) / COUNT ( * ) * 78 AS col0
----
-1
-78

query I rowsort
SELECT 61 + + 16 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6135
SELECT ALL + CAST( NULL AS SIGNED ) / + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 92 + + 82
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT 31 DIV COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6137
SELECT 31 / COUNT ( * ) AS col2
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT ALL + COUNT( * ) DIV - 28 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL + COUNT ( * ) / - 28 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6139
SELECT ALL + + COUNT( CAST( NULL AS SIGNED ) ) + + 4 * COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL + + COUNT ( CAST ( NULL AS INTEGER ) ) + + 4 * COUNT ( * ) col1
----
4

query I rowsort
SELECT DISTINCT - + 28 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT MIN( + + 34 ) + + 93 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-6141
SELECT MIN ( + + 34 ) + + 93 AS col0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT COUNT( * ) + + 21
----
22

skipif mysql # not compatible
query I rowsort label-6142
SELECT COUNT ( * ) + + 21
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT DISTINCT MAX( + + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT MAX ( + + 97 )
----
97

query I rowsort
SELECT DISTINCT - - 98 AS col2
----
98

query I rowsort
SELECT ALL - - 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT ALL MAX( ALL + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL MAX ( ALL + 82 )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6147
SELECT ALL + 59, COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-6147
SELECT ALL + 59, COUNT ( * ) AS col0
----
59
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT DISTINCT - 72 * COUNT( * ) AS col0, - ( - COUNT( * ) )
----
-72
1

skipif mysql # not compatible
query II rowsort label-6148
SELECT DISTINCT - 72 * COUNT ( * ) AS col0, - ( - COUNT ( * ) )
----
-72
1

query I rowsort
SELECT ALL + ( + - 89 ) + 56 AS col1
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6150
SELECT 22 DIV - 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6150
SELECT 22 / - 29 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL 68 + + MIN( - + 1 ) col1
----
67

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL 68 + + MIN ( - + 1 ) col1
----
67

query I rowsort
SELECT DISTINCT - 12 + + + 28 AS col2
----
16

query I rowsort
SELECT DISTINCT ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT - 49 * - + 38 * COUNT( * ) + COUNT( * )
----
1863

skipif mysql # not compatible
query I rowsort label-6154
SELECT - 49 * - + 38 * COUNT ( * ) + COUNT ( * )
----
1863

query I rowsort
SELECT + 53 * + + 71 + - 67 AS col1
----
3696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6156
SELECT - 36 + + CAST( NULL AS SIGNED ) col1, - 64
----
NULL
-64

skipif mysql # not compatible
query II rowsort label-6156
SELECT - 36 + + CAST ( NULL AS INTEGER ) col1, - 64
----
NULL
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6157
SELECT + COUNT( * ), 56 col0
----
1
56

skipif mysql # not compatible
query II rowsort label-6157
SELECT + COUNT ( * ), 56 col0
----
1
56

onlyif mysql # aggregate syntax: 
query II rowsort label-6158
SELECT + - COUNT( ALL + - 95 ) * + - 6, - 41 + + - COUNT( * ) + + 13 * 31 AS col2
----
6
361

skipif mysql # not compatible
query II rowsort label-6158
SELECT + - COUNT ( ALL + - 95 ) * + - 6, - 41 + + - COUNT ( * ) + + 13 * 31 AS col2
----
6
361

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT + COUNT( * ) * + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6159
SELECT + COUNT ( * ) * + COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT + MAX( + 80 ) + - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-6160
SELECT + MAX ( + 80 ) + - - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT DISTINCT + NULLIF ( + - COUNT( DISTINCT ( 23 ) ), - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT + NULLIF ( + - COUNT ( DISTINCT ( 23 ) ), - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6162
SELECT ALL + MAX( ALL - 64 ) col1, + COUNT( + 77 ) * - - MAX( DISTINCT + 30 ) * + + 14 AS col1
----
-64
420

skipif mysql # not compatible
query II rowsort label-6162
SELECT ALL + MAX ( ALL - 64 ) col1, + COUNT ( + 77 ) * - - MAX ( DISTINCT + 30 ) * + + 14 AS col1
----
-64
420

query I rowsort
SELECT 75 + - 87 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT DISTINCT - MAX( ALL - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT - MAX ( ALL - 9 )
----
9

query I rowsort
SELECT ALL - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT + MAX( ALL + - ( - 11 ) )
----
11

skipif mysql # not compatible
query I rowsort label-6166
SELECT + MAX ( ALL + - ( - 11 ) )
----
11

query I rowsort
SELECT DISTINCT - 83 + + - 0
----
-83

query II rowsort
SELECT 37 col1, ( 10 )
----
37
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT + 7 + - COUNT( * ) col1
----
6

skipif mysql # not compatible
query I rowsort label-6169
SELECT + 7 + - COUNT ( * ) col1
----
6

query II rowsort
SELECT - 58 AS col2, 56
----
-58
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6171
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) - + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) - + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6172
SELECT ALL 91 DIV 43
----
2

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL 91 / 43
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + COUNT( * ) * - - SUM( ALL 27 )
----
27

skipif mysql # not compatible
query I rowsort label-6173
SELECT + COUNT ( * ) * - - SUM ( ALL 27 )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-6174
SELECT ALL COUNT( * ) AS col0, + 29 AS col1
----
1
29

skipif mysql # not compatible
query II rowsort label-6174
SELECT ALL COUNT ( * ) AS col0, + 29 AS col1
----
1
29

query I rowsort
SELECT + COALESCE ( 86, - - 17, 43 ) AS col0
----
86

query I rowsort
SELECT + ( + 23 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + 33 * - - COUNT( + + 69 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6177
SELECT + 33 * - - COUNT ( + + 69 ) AS col2
----
33

query I rowsort
SELECT - 38 * - 85 AS col0
----
3230

query I rowsort
SELECT + 51 col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT ALL + ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6180
SELECT ALL + ( - + COUNT ( * ) )
----
-1

query I rowsort
SELECT + 19 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL + ( - MIN( + 26 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL + ( - MIN ( + 26 ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + COUNT( - - 81 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6183
SELECT + COUNT ( - - 81 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT MAX( ALL + + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-6184
SELECT MAX ( ALL + + 64 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT - CAST( - - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-6185
SELECT - CAST ( - - 58 AS INTEGER )
----
-58

query I rowsort
SELECT + - 66 AS col1
----
-66

query I rowsort
SELECT DISTINCT - - ( - 55 ) AS col1
----
-55

query I rowsort
SELECT DISTINCT + 57 * 14 AS col2
----
798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT DISTINCT CAST( NULL AS SIGNED ) + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6190
SELECT - COUNT( DISTINCT - CAST( ( - - 59 ) AS SIGNED ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6190
SELECT - COUNT ( DISTINCT - CAST ( ( - - 59 ) AS INTEGER ) ) col2
----
-1

query I rowsort
SELECT ALL - 24 col1
----
-24

query I rowsort
SELECT - ( + - 24 )
----
24

query I rowsort
SELECT + 97 * - 96
----
-9312

query I rowsort
SELECT - 25 + ( + 68 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT COUNT( + - 53 )
----
1

skipif mysql # not compatible
query I rowsort label-6195
SELECT COUNT ( + - 53 )
----
1

query I rowsort
SELECT ALL ( 22 )
----
22

query I rowsort
SELECT DISTINCT ( + 65 ) col2
----
65

query I rowsort
SELECT + - 30 col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT DISTINCT + 11 * + + COUNT( * ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT + 11 * + + COUNT ( * ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6200
SELECT ALL CAST( + + 98 AS SIGNED ), 62 col1
----
98
62

skipif mysql # not compatible
query II rowsort label-6200
SELECT ALL CAST ( + + 98 AS INTEGER ), 62 col1
----
98
62

query I rowsort
SELECT 49 * + 81
----
3969

query I rowsort
SELECT + 84 col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6203
SELECT CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT 4 + + + 67 * ( - + 53 )
----
-3547

query I rowsort
SELECT - + ( - 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6206
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( + 94 )
----
94

query I rowsort
SELECT DISTINCT + 47 * - - 72 AS col1
----
3384

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT MIN( 39 )
----
39

skipif mysql # not compatible
query I rowsort label-6209
SELECT MIN ( 39 )
----
39

query II rowsort
SELECT + 53 AS col0, 81 AS col0
----
53
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT + 14 + + + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6211
SELECT + 14 + + + COUNT ( * ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT + CAST( NULL AS SIGNED ) + 38 * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT + CAST ( NULL AS INTEGER ) + 38 * + 20
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6213
SELECT - ( + 93 ) * - + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT - ( + 93 ) * - + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL + COALESCE ( - MAX( - - 4 ), - 66 )
----
-4

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + COALESCE ( - MAX ( - - 4 ), - 66 )
----
-4

query I rowsort
SELECT ALL + 55 col1
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-6216
SELECT ( - 15 ), + 61 DIV + 27 AS col1
----
-15
2

skipif mysql # not compatible
query II rowsort label-6216
SELECT ( - 15 ), + 61 / + 27 AS col1
----
-15
2

query I rowsort
SELECT ALL + ( + + 14 ) col2
----
14

query II rowsort
SELECT - 77 + + - 78 AS col2, 15
----
-155
15

query I rowsort
SELECT DISTINCT + 43 * - ( 68 ) col2
----
-2924

query I rowsort
SELECT - - ( - - 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT ALL 26 + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL 26 + COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT COUNT( * ) * - + 74
----
-74

skipif mysql # not compatible
query I rowsort label-6222
SELECT COUNT ( * ) * - + 74
----
-74

query I rowsort
SELECT DISTINCT 89 + 86
----
175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6224
SELECT ALL - - CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6225
SELECT - COUNT( * ) * + CAST( SUM( + - 18 ) AS SIGNED ) * + - 8
----
-144

skipif mysql # not compatible
query I rowsort label-6225
SELECT - COUNT ( * ) * + CAST ( SUM ( + - 18 ) AS INTEGER ) * + - 8
----
-144

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6226
SELECT ALL - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6227
SELECT ALL - 78 AS col2, + COUNT( * )
----
-78
1

skipif mysql # not compatible
query II rowsort label-6227
SELECT ALL - 78 AS col2, + COUNT ( * )
----
-78
1

query I rowsort
SELECT ALL + ( - - 95 )
----
95

query I rowsort
SELECT - + 57 AS col2
----
-57

query I rowsort
SELECT DISTINCT - 56 * + 75
----
-4200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6231
SELECT - 96 DIV COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-6231
SELECT - 96 / COUNT ( * ) AS col1
----
-96

query I rowsort
SELECT DISTINCT ( + - 13 )
----
-13

query I rowsort
SELECT - 42 * - 0 * + 99 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT + + 36 DIV 63
----
0

skipif mysql # not compatible
query I rowsort label-6234
SELECT + + 36 / 63
----
0

query I rowsort
SELECT ALL 49 * 29
----
1421

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6236
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-6236
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 83
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT COUNT( * ) * + + 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6237
SELECT COUNT ( * ) * + + 98 AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6238
SELECT COUNT( * ) DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-6238
SELECT COUNT ( * ) / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT ALL - - 54 + + + 72 + COUNT( * )
----
127

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - - 54 + + + 72 + COUNT ( * )
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT DISTINCT + - COUNT( * ) + + 82
----
81

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT + - COUNT ( * ) + + 82
----
81

query I rowsort
SELECT - - 30 col1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT ALL CAST( NULL AS SIGNED ) + + 74 + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL CAST ( NULL AS INTEGER ) + + 74 + + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL - SUM( ALL ( + 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL - SUM ( ALL ( + 56 ) )
----
-56

query I rowsort
SELECT DISTINCT - - 28 col0
----
28

query I rowsort
SELECT DISTINCT - + 34
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-6246
SELECT - COUNT( * ), + 13 AS col2
----
-1
13

skipif mysql # not compatible
query II rowsort label-6246
SELECT - COUNT ( * ), + 13 AS col2
----
-1
13

query I rowsort
SELECT + ( + 31 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT ALL - 68 DIV 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL - 68 / 39 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT - COUNT( DISTINCT CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6249
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT DISTINCT + 91 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT + 91 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ALL + MAX( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL + MAX ( 45 )
----
45

query I rowsort
SELECT DISTINCT + 3 * ( 79 ) AS col1
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6254
SELECT - 60 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT - 60 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + 51 )
----
51

query I rowsort
SELECT 31 + 77 AS col0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-6257
SELECT 38 DIV - - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6257
SELECT 38 / - - 80 AS col0
----
0

query I rowsort
SELECT DISTINCT - ( + 58 ) col0
----
-58

query I rowsort
SELECT ALL ( - - 47 )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6260
SELECT ALL - COUNT( * ) DIV - 17 col0
----
0

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - COUNT ( * ) / - 17 col0
----
0

query I rowsort
SELECT DISTINCT 32 AS col0
----
32

query I rowsort
SELECT DISTINCT - - 46
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6263
SELECT ALL MIN( DISTINCT 76 ) DIV + 17
----
4

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL MIN ( DISTINCT 76 ) / + 17
----
4

query II rowsort
SELECT 77, + 94 * ( 61 ) AS col1
----
77
5734

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT ALL + 87 DIV - ( - 44 )
----
1

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL + 87 / - ( - 44 )
----
1

query I rowsort
SELECT ALL - - 50 + - 0
----
50

query I rowsort
SELECT DISTINCT - ( - 40 ) col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT COUNT( DISTINCT - - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-6268
SELECT COUNT ( DISTINCT - - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL ( 80 ) * + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL ( 80 ) * + COUNT ( * )
----
80

query II rowsort
SELECT - ( + - 55 ) * + - 46, - 38 AS col2
----
-2530
-38

query II rowsort
SELECT ALL + 17 AS col0, + 63 AS col2
----
17
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6272
SELECT - CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6272
SELECT - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6273
SELECT ALL + + ( CAST( + COUNT( * ) AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + + ( CAST ( + COUNT ( * ) AS INTEGER ) ) col0
----
1

query I rowsort
SELECT DISTINCT - 20 + + 34 AS col1
----
14

query I rowsort
SELECT DISTINCT - ( 10 ) AS col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6276
SELECT ALL - AVG ( + + CAST( NULL AS SIGNED ) ) col2, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6276
SELECT ALL - AVG ( + + CAST ( NULL AS INTEGER ) ) col2, + COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT + + 71 col2
----
71

query I rowsort
SELECT + 96 - + - 44
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6279
SELECT 12 + COUNT( + CAST( NULL AS SIGNED ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6279
SELECT 12 + COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT MIN( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6280
SELECT MIN ( DISTINCT + 22 )
----
22

query I rowsort
SELECT DISTINCT + + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT + - NULLIF ( SUM( + 50 ), - 76 )
----
-50

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT + - NULLIF ( SUM ( + 50 ), - 76 )
----
-50

query I rowsort
SELECT DISTINCT ( - 69 ) AS col0
----
-69

query II rowsort
SELECT - 42 AS col0, + 16
----
-42
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT + + COUNT( * ) + 16
----
17

skipif mysql # not compatible
query I rowsort label-6285
SELECT + + COUNT ( * ) + 16
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT 78 AS col0, 19 * COUNT( * ) * + 33 - - 23 + - 26 col1
----
78
624

skipif mysql # not compatible
query II rowsort label-6286
SELECT 78 AS col0, 19 * COUNT ( * ) * + 33 - - 23 + - 26 col1
----
78
624

query I rowsort
SELECT ALL + + 2 col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6288
SELECT + + 8 + - + COUNT( * ) AS col1, + 14
----
7
14

skipif mysql # not compatible
query II rowsort label-6288
SELECT + + 8 + - + COUNT ( * ) AS col1, + 14
----
7
14

query I rowsort
SELECT - 77 + + 21
----
-56

query I rowsort
SELECT DISTINCT - - 41 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT + SUM( ALL 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6291
SELECT + SUM ( ALL 67 ) AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6292
SELECT + ( - - CAST( + + COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6292
SELECT + ( - - CAST ( + + COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL 2 * + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL 2 * + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT 1 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT 1 + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ( COUNT( * ) ) + + 10
----
11

skipif mysql # not compatible
query I rowsort label-6295
SELECT ( COUNT ( * ) ) + + 10
----
11

query II rowsort
SELECT ALL - 7 col2, + 58 AS col0
----
-7
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6297
SELECT DISTINCT + + ( + ( - 39 ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT + + ( + ( - 39 ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT 72 + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-6298
SELECT 72 + COUNT ( * ) AS col1
----
73

query I rowsort
SELECT DISTINCT + - 86
----
-86

query I rowsort
SELECT - ( + + ( - 10 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6301
SELECT DISTINCT - COUNT( * ) * - 12 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT - COUNT ( * ) * - 12 AS col2
----
12

query I rowsort
SELECT DISTINCT + ( - + 98 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6303
SELECT DISTINCT CAST( - SUM( - 34 ) AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6303
SELECT DISTINCT CAST ( - SUM ( - 34 ) AS INTEGER ) AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT DISTINCT 91 DIV + ( + 87 ) + 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT 91 / + ( + 87 ) + 74 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT ALL - COUNT( ALL - 86 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL - COUNT ( ALL - 86 ) AS col2
----
-1

query I rowsort
SELECT ALL - 89 * + + CASE + + 60 WHEN 94 THEN - 57 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT ALL + CAST( - - 31 AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL + CAST ( - - 31 AS INTEGER ) AS col0
----
31

query I rowsort
SELECT DISTINCT + 1 * - + 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT NULLIF ( - COUNT( * ), 27 * - COUNT( * ) ) * + - 5 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6309
SELECT NULLIF ( - COUNT ( * ), 27 * - COUNT ( * ) ) * + - 5 AS col0
----
5

query I rowsort
SELECT 57 col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT ALL CAST( NULL AS SIGNED ) * ( + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL CAST ( NULL AS INTEGER ) * ( + 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT - MAX( DISTINCT + + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-6312
SELECT - MAX ( DISTINCT + + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + - 79 * + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + - 79 * + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - SUM( - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-6314
SELECT - SUM ( - 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT ALL COUNT( * ) * - + 60 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL COUNT ( * ) * - + 60 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT ALL + COUNT( + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL + COUNT ( + 57 )
----
1

query I rowsort
SELECT DISTINCT 47 col2
----
47

query II rowsort
SELECT ALL 37, + 72 AS col2
----
37
72

query I rowsort
SELECT ALL ( - 53 ) AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6320
SELECT 20 DIV - 45 + - 31 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6320
SELECT 20 / - 45 + - 31 AS col2
----
-31

query I rowsort
SELECT ALL + 79 * + 11 + - 62
----
807

query I rowsort
SELECT DISTINCT - - 45 * 97
----
4365

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT MAX( ALL + - 30 ) * + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-6323
SELECT MAX ( ALL + - 30 ) * + - COUNT ( * )
----
30

query I rowsort
SELECT ALL 24 + 72 * 97 AS col0
----
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL - SUM( ALL 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - SUM ( ALL 27 ) AS col2
----
-27

query I rowsort
SELECT ALL ( - 87 ) col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT COUNT( * ) - - COUNT( * ) + - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6327
SELECT COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6328
SELECT - 74, COUNT( * ) AS col1
----
-74
1

skipif mysql # not compatible
query II rowsort label-6328
SELECT - 74, COUNT ( * ) AS col1
----
-74
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6329
SELECT + 88, 99 - + CAST( NULL AS SIGNED ) AS col0
----
88
NULL

skipif mysql # not compatible
query II rowsort label-6329
SELECT + 88, 99 - + CAST ( NULL AS INTEGER ) AS col0
----
88
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6330
SELECT AVG ( DISTINCT - 41 ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) + + COUNT( * ) * 51 * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT AVG ( DISTINCT - 41 ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + COUNT ( * ) * 51 * 71
----
NULL

query I rowsort
SELECT DISTINCT - 12 AS col2
----
-12

query I rowsort
SELECT ALL - 14 * 89 - - 44
----
-1202

query I rowsort
SELECT + + 99 AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT ALL - - 73 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - - 73 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT ALL + 68 + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + 68 + COUNT ( * )
----
69

query I rowsort
SELECT DISTINCT + ( - 33 ) + 4
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT + MIN( DISTINCT + ( + 27 ) ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT + MIN ( DISTINCT + ( + 27 ) ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL + 85 * - - 30 + + + SUM( 99 ) AS col2
----
2649

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL + 85 * - - 30 + + + SUM ( 99 ) AS col2
----
2649

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT DISTINCT + COUNT( * ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT + COUNT ( * ) * 39
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6341
SELECT ALL + CAST( 16 AS SIGNED ) + + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL + CAST ( 16 AS INTEGER ) + + COUNT ( * )
----
17

query I rowsort
SELECT ALL 38 + + 95 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT + + COALESCE ( + - 12, + - MAX( DISTINCT + - 63 ) )
----
-12

skipif mysql # not compatible
query I rowsort label-6343
SELECT + + COALESCE ( + - 12, + - MAX ( DISTINCT + - 63 ) )
----
-12

query I rowsort
SELECT - 62 col1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6345
SELECT MAX( 38 ) DIV 11
----
3

skipif mysql # not compatible
query I rowsort label-6345
SELECT MAX ( 38 ) / 11
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6346
SELECT CAST( NULL AS SIGNED ) * - - 25 AS col0, COUNT( * ) * + COUNT( * ) + + 53 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-6346
SELECT CAST ( NULL AS INTEGER ) * - - 25 AS col0, COUNT ( * ) * + COUNT ( * ) + + 53 AS col2
----
NULL
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6347
SELECT 25 DIV COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-6347
SELECT 25 / COUNT ( * )
----
25

query II rowsort
SELECT 47 AS col0, - 55 - + 35
----
47
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT ALL COUNT( + 21 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6349
SELECT ALL COUNT ( + 21 ) AS col1
----
1

query I rowsort
SELECT ALL 86 + 26
----
112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6351
SELECT ALL COUNT( * ) DIV 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL COUNT ( * ) / 28 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT - COUNT( - 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-6352
SELECT - COUNT ( - 32 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT + ( + CAST( NULL AS SIGNED ) ) * + 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + 56 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ALL - COUNT( * ) * 14 + + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL - COUNT ( * ) * 14 + + COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT DISTINCT 11 * - COUNT( * ) + - 51 col2
----
-62

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT 11 * - COUNT ( * ) + - 51 col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL - 73 + + COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - 73 + + COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT - ( 11 ) * 67 AS col2
----
-737

query I rowsort
SELECT - + 6 col0
----
-6

query I rowsort
SELECT - - 83
----
83

query I rowsort
SELECT + 15 + - 91
----
-76

query I rowsort
SELECT + + 68 - 93
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6362
SELECT + CAST( - 76 AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT + CAST ( - 76 AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT COUNT( * ) - ( SUM( ALL - 22 ) )
----
23

skipif mysql # not compatible
query I rowsort label-6364
SELECT COUNT ( * ) - ( SUM ( ALL - 22 ) )
----
23

query I rowsort
SELECT 92 col2
----
92

query I rowsort
SELECT DISTINCT - ( + 26 ) AS col2
----
-26

query I rowsort
SELECT ALL ( + + 71 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6368
SELECT ALL + SUM( DISTINCT + 15 ) * 89 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL + SUM ( DISTINCT + 15 ) * 89 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 55 * 12 + + + ( - 54 ) AS col2
----
606

query I rowsort
SELECT ALL 61 * + - 17 + - - 89
----
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT + COUNT( - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-6371
SELECT + COUNT ( - 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT - COUNT( * ) * + - 4 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6372
SELECT - COUNT ( * ) * + - 4 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6373
SELECT - CAST( NULL AS SIGNED ), - 20 col0
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-6373
SELECT - CAST ( NULL AS INTEGER ), - 20 col0
----
NULL
-20

query I rowsort
SELECT ( + + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT - COUNT( * ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6375
SELECT - COUNT ( * ) * - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL - 83 * 63
----
-5229

query I rowsort
SELECT - 38 * - - 55 AS col2
----
-2090

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT SUM( 10 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6378
SELECT SUM ( 10 ) AS col2
----
10

query I rowsort
SELECT + 79 col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT MAX( ALL 70 ) + + 57 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-6380
SELECT MAX ( ALL 70 ) + + 57 AS col0
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6381
SELECT 20 DIV + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-6381
SELECT 20 / + COUNT ( * )
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6382
SELECT ALL + + 96 + - CAST( NULL AS DECIMAL ) AS col1, - 34 AS col0
----
NULL
-34

skipif mysql # not compatible
query II rowsort label-6382
SELECT ALL + + 96 + - CAST ( NULL AS REAL ) AS col1, - 34 AS col0
----
NULL
-34

query I rowsort
SELECT DISTINCT - + 65 AS col2
----
-65

query I rowsort
SELECT - - 47 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT DISTINCT + COUNT( * ) + + COUNT( + 42 )
----
2

skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT + COUNT ( * ) + + COUNT ( + 42 )
----
2

query I rowsort
SELECT ALL - - 4 AS col1
----
4

query I rowsort
SELECT + + 0 AS col1
----
0

query I rowsort
SELECT - ( - + 68 )
----
68

query I rowsort
SELECT + + 48 col0
----
48

query I rowsort
SELECT ALL ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT ALL COUNT( * ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL COUNT ( * ) * 39
----
39

query I rowsort
SELECT + - 68 col1
----
-68

query I rowsort
SELECT 5 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT ALL - MAX( - 26 ) + - 20 * + ( + - 59 )
----
1206

skipif mysql # not compatible
query I rowsort label-6394
SELECT ALL - MAX ( - 26 ) + - 20 * + ( + - 59 )
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT ALL + ( - COUNT( * ) ) + + + 3 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL + ( - COUNT ( * ) ) + + + 3 AS col1
----
2

query I rowsort
SELECT DISTINCT - + ( - 49 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ALL COUNT( * ) * 14 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL COUNT ( * ) * 14 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT COUNT( * ) * 29 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT COUNT ( * ) * 29 AS col0
----
29

query I rowsort
SELECT ( - - 52 ) + 93 AS col1
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT + - COUNT( * ) * 36 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT + - COUNT ( * ) * 36 AS col1
----
-36

query I rowsort
SELECT ALL - 59 col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT + 87 DIV - 84
----
-1

skipif mysql # not compatible
query I rowsort label-6402
SELECT + 87 / - 84
----
-1

query I rowsort
SELECT + 40 * + 3 AS col2
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6404
SELECT ALL + CAST( + 64 AS SIGNED ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6404
SELECT ALL + CAST ( + 64 AS INTEGER ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6405
SELECT + + 18 AS col2, + MIN( 5 ) AS col0
----
18
5

skipif mysql # not compatible
query II rowsort label-6405
SELECT + + 18 AS col2, + MIN ( 5 ) AS col0
----
18
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6406
SELECT - 47 * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT - 47 * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT DISTINCT + 5 + ( SUM( + + 88 ) ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT + 5 + ( SUM ( + + 88 ) ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT - COUNT( * ) + + 9 * - 33 * 34
----
-10099

skipif mysql # not compatible
query I rowsort label-6408
SELECT - COUNT ( * ) + + 9 * - 33 * 34
----
-10099

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT ALL - SUM( - 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL - SUM ( - 88 ) AS col0
----
88

query I rowsort
SELECT DISTINCT - 30 * - 85 AS col0
----
2550

query I rowsort
SELECT - - 11 AS col2
----
11

query I rowsort
SELECT DISTINCT - + NULLIF ( - - 21, + ( + 47 ) ) * - 49 AS col0
----
1029

query I rowsort
SELECT ALL 93 + + 58 AS col0
----
151

onlyif mysql # aggregate syntax: 
query II rowsort label-6414
SELECT ALL COUNT( * ), + 65 AS col0
----
1
65

skipif mysql # not compatible
query II rowsort label-6414
SELECT ALL COUNT ( * ), + 65 AS col0
----
1
65

query I rowsort
SELECT DISTINCT - 81 AS col2
----
-81

query I rowsort
SELECT 39 + + - 13
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL SUM( + 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL SUM ( + 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT 4 + + COUNT( ALL - + 79 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6418
SELECT 4 + + COUNT ( ALL - + 79 ) AS col0
----
5

query I rowsort
SELECT NULLIF ( + + 87, - ( AVG ( ALL + 64 ) ) )
----
87

query I rowsort
SELECT ALL + 57 * - + 47 AS col0
----
-2679

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT MAX( DISTINCT - 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6421
SELECT MAX ( DISTINCT - 36 ) AS col1
----
-36

query I rowsort
SELECT ALL + + 92
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6423
SELECT - 85, + 39 + + COUNT( * ) AS col0
----
-85
40

skipif mysql # not compatible
query II rowsort label-6423
SELECT - 85, + 39 + + COUNT ( * ) AS col0
----
-85
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6424
SELECT DISTINCT - COUNT( * ) * + 68 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT - COUNT ( * ) * + 68 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6425
SELECT + COUNT( * ) AS col0, + 4
----
1
4

skipif mysql # not compatible
query II rowsort label-6425
SELECT + COUNT ( * ) AS col0, + 4
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT DISTINCT + + SUM( DISTINCT 29 ) * + 75 AS col1
----
2175

skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT + + SUM ( DISTINCT 29 ) * + 75 AS col1
----
2175

query I rowsort
SELECT + 43 * 12 AS col2
----
516

onlyif mysql # aggregate syntax: 
query II rowsort label-6428
SELECT ALL + COUNT( * ) AS col0, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-6428
SELECT ALL + COUNT ( * ) AS col0, 33
----
1
33

query I rowsort
SELECT - ( - 59 ) AS col1
----
59

query II rowsort
SELECT 57 * + - 88 AS col1, + 26 AS col2
----
-5016
26

query I rowsort
SELECT DISTINCT + 41 * + ( - + ( - 21 ) ) AS col2
----
861

query I rowsort
SELECT - ( 58 )
----
-58

query I rowsort
SELECT ALL - + 10 col0
----
-10

query I rowsort
SELECT ALL - - 76 AS col0
----
76

onlyif mysql # DIV for integer division: 
query II rowsort label-6435
SELECT - ( 16 ), 91 DIV - 86 col1
----
-16
-1

skipif mysql # not compatible
query II rowsort label-6435
SELECT - ( 16 ), 91 / - 86 col1
----
-16
-1

query I rowsort
SELECT ALL - 16 * + + 27
----
-432

query I rowsort
SELECT 32 + + - 9
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT COUNT( DISTINCT 8 )
----
1

skipif mysql # not compatible
query I rowsort label-6438
SELECT COUNT ( DISTINCT 8 )
----
1

query I rowsort
SELECT ALL - + 22 * 49 AS col2
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL + - COUNT( * ) + + 85 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL + - COUNT ( * ) + + 85 AS col0
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT ALL 52 DIV - 70 * 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL 52 / - 70 * 28 AS col1
----
0

query I rowsort
SELECT DISTINCT ( - - 0 ) AS col1
----
0

query I rowsort
SELECT ALL + - 67 AS col0
----
-67

query II rowsort
SELECT ( 30 ) AS col2, + 99 AS col2
----
30
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT - 34 + COUNT( ALL + + 50 )
----
-33

skipif mysql # not compatible
query I rowsort label-6445
SELECT - 34 + COUNT ( ALL + + 50 )
----
-33

query I rowsort
SELECT ALL + + 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL COUNT( ALL 9 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL COUNT ( ALL 9 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6448
SELECT - 19 AS col2, CAST( NULL AS SIGNED )
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-6448
SELECT - 19 AS col2, CAST ( NULL AS INTEGER )
----
-19
NULL

query I rowsort
SELECT ALL ( + + 84 )
----
84

query I rowsort
SELECT + - 37 col0
----
-37

query I rowsort
SELECT DISTINCT - + 46 AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6452
SELECT - ( - 85 ) * CAST( + 83 AS SIGNED )
----
7055

skipif mysql # not compatible
query I rowsort label-6452
SELECT - ( - 85 ) * CAST ( + 83 AS INTEGER )
----
7055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6453
SELECT 41 + + + CAST( + + 40 AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6453
SELECT 41 + + + CAST ( + + 40 AS INTEGER ) AS col0
----
81

query I rowsort
SELECT ALL 77 * + + 29
----
2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT CAST( 35 AS SIGNED ) + 33 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-6455
SELECT CAST ( 35 AS INTEGER ) + 33 AS col0
----
68

query II rowsort
SELECT ALL 34 * + + 35 AS col1, 8
----
1190
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT 18 * + + COUNT( * ) col1
----
18

skipif mysql # not compatible
query I rowsort label-6457
SELECT 18 * + + COUNT ( * ) col1
----
18

query I rowsort
SELECT ALL + + 61 + + 46 + - + ( 69 )
----
38

query I rowsort
SELECT ALL - + 79 AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT - MIN( DISTINCT + 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6460
SELECT - MIN ( DISTINCT + 50 ) AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6461
SELECT - - CAST( NULL AS SIGNED ) - - ( + - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT - - CAST ( NULL AS INTEGER ) - - ( + - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT - 58 + + - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-6462
SELECT - 58 + + - COUNT ( * )
----
-59

query I rowsort
SELECT - 71 + - 35 * - 88
----
3009

query I rowsort
SELECT - 69 col0
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6465
SELECT - CAST( NULL AS SIGNED ) * - - 13 + + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT - CAST ( NULL AS INTEGER ) * - - 13 + + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( + 89 ) AS col2
----
89

query I rowsort
SELECT ALL 6 * 17
----
102

query I rowsort
SELECT + 16 + - 7
----
9

query I rowsort
SELECT ALL + + 84 AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL + COUNT( * ) - 66
----
-65

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL + COUNT ( * ) - 66
----
-65

query I rowsort
SELECT - ( - 78 ) + 91
----
169

query I rowsort
SELECT ALL 34 * 92 * + + 18 AS col2
----
56304

query I rowsort
SELECT DISTINCT - 43 AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6474
SELECT ALL COUNT( * ) DIV + COUNT( * ) * - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL COUNT ( * ) / + COUNT ( * ) * - COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6475
SELECT ALL + - 89 DIV + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-6475
SELECT ALL + - 89 / + COUNT ( * )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT ALL + 64 * + MAX( DISTINCT 17 )
----
1088

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + 64 * + MAX ( DISTINCT 17 )
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT COUNT( * ) + - 74 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-6477
SELECT COUNT ( * ) + - 74 AS col0
----
-73

query II rowsort
SELECT ALL 33, 25 AS col2
----
33
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT 2 + + 34 + 36 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6479
SELECT 2 + + 34 + 36 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 92 col2
----
-92

query I rowsort
SELECT DISTINCT + 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT + MAX( ALL + - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6482
SELECT + MAX ( ALL + - 21 ) AS col2
----
-21

query I rowsort
SELECT ALL - 31 col1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT DISTINCT + 66 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT + 66 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6485
SELECT + - 27 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT + - 27 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT - SUM( + + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-6486
SELECT - SUM ( + + 39 )
----
-39

query I rowsort
SELECT ( 5 ) AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT ALL + COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL + COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT ALL - + 3 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - + 3 + + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + ( - 48 ) AS col1
----
-48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6491
SELECT + 93 * - - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6491
SELECT + 93 * - - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + ( 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT COUNT( * ) * + - 41
----
-41

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT COUNT ( * ) * + - 41
----
-41

query I rowsort
SELECT + 66 * 19 + - + 62 AS col1
----
1192

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT + 46 * + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT + 46 * + COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT - MAX( ALL + 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-6496
SELECT - MAX ( ALL + 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + COUNT( * ) * + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6497
SELECT + COUNT ( * ) * + COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT + MIN( DISTINCT + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-6498
SELECT + MIN ( DISTINCT + 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6499
SELECT - CAST( NULL AS SIGNED ) AS col1, - 77 AS col0
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-6499
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 77 AS col0
----
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT - MIN( DISTINCT + - 45 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6500
SELECT - MIN ( DISTINCT + - 45 ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6501
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 32
----
NULL
32

skipif mysql # not compatible
query II rowsort label-6501
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 32
----
NULL
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6502
SELECT DISTINCT - COUNT( * ) col0, + CAST( NULL AS SIGNED ) * 57 + COUNT( * )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6502
SELECT DISTINCT - COUNT ( * ) col0, + CAST ( NULL AS INTEGER ) * 57 + COUNT ( * )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT DISTINCT + COUNT( - + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT + COUNT ( - + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT SUM( DISTINCT - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-6504
SELECT SUM ( DISTINCT - 91 ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT + 14 + + COUNT( * ) + 91 AS col0
----
106

skipif mysql # not compatible
query I rowsort label-6505
SELECT + 14 + + COUNT ( * ) + 91 AS col0
----
106

query I rowsort
SELECT ALL + 15 * + 7 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6507
SELECT CAST( ( - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6507
SELECT CAST ( ( - COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6508
SELECT ( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 45 * + 67 AS col1
----
3015

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT DISTINCT + MIN( - + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT + MIN ( - + 28 ) AS col0
----
-28

query I rowsort
SELECT - 77 col1
----
-77

query I rowsort
SELECT - - COALESCE ( + ( 37 ), - - 57 ) col0
----
37

query I rowsort
SELECT - + 99 AS col1
----
-99

query I rowsort
SELECT - 95 + - + 68 AS col0
----
-163

query I rowsort
SELECT ( 65 ) + - 91
----
-26

query I rowsort
SELECT DISTINCT - 3 AS col0
----
-3

query II rowsort
SELECT + 66 AS col0, 14 AS col2
----
66
14

query I rowsort
SELECT DISTINCT - 4 * + - 86 AS col0
----
344

query I rowsort
SELECT + 87 * + ( + 53 ) AS col1
----
4611

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT - 67 * - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6520
SELECT - 67 * - COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT - COUNT( DISTINCT - - 81 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6521
SELECT - COUNT ( DISTINCT - - 81 ) AS col0
----
-1

query I rowsort
SELECT - + 45 col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT SUM( DISTINCT - + 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6523
SELECT SUM ( DISTINCT - + 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6524
SELECT - 12 * + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-6524
SELECT - 12 * + COUNT ( * )
----
-12

query II rowsort
SELECT - 84 col2, + 77 AS col2
----
-84
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6526
SELECT - 76 * 32 * + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6526
SELECT - 76 * 32 * + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT + COUNT( DISTINCT - - 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6527
SELECT + COUNT ( DISTINCT - - 75 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6528
SELECT ALL 58 DIV - 44
----
-1

skipif mysql # not compatible
query I rowsort label-6528
SELECT ALL 58 / - 44
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6529
SELECT + 88 - + CAST( - COUNT( * ) AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-6529
SELECT + 88 - + CAST ( - COUNT ( * ) AS INTEGER )
----
89

query I rowsort
SELECT ALL 29 col0
----
29

query I rowsort
SELECT DISTINCT NULLIF ( + 76, + 75 ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT - 56 - + + COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-6532
SELECT - 56 - + + COUNT ( * ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT DISTINCT - ( - - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT - ( - - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6534
SELECT DISTINCT - COUNT( * ) * - SUM( ALL - 62 ) DIV + 80, + COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-6534
SELECT DISTINCT - COUNT ( * ) * - SUM ( ALL - 62 ) / + 80, + COUNT ( * ) AS col2
----
0
1

query I rowsort
SELECT - 60 col2
----
-60

query I rowsort
SELECT 32 + 86 AS col2
----
118

query I rowsort
SELECT DISTINCT - - 35
----
35

query I rowsort
SELECT + 63 + - 11
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6539
SELECT 6 AS col0, + COUNT( * ) col1
----
6
1

skipif mysql # not compatible
query II rowsort label-6539
SELECT 6 AS col0, + COUNT ( * ) col1
----
6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT + NULLIF ( - COUNT( * ), - 42 / 17 * + 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6540
SELECT + NULLIF ( - COUNT ( * ), - 42 / 17 * + 63 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + + 42 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT + COUNT( * ) + - MIN( 59 ) + + 29 - - + 72
----
43

skipif mysql # not compatible
query I rowsort label-6542
SELECT + COUNT ( * ) + - MIN ( 59 ) + + 29 - - + 72
----
43

query I rowsort
SELECT ALL ( + 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT - + 32 + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-6544
SELECT - + 32 + COUNT ( * )
----
-31

query I rowsort
SELECT - + 49 col1
----
-49

query I rowsort
SELECT ALL 34 * - 42
----
-1428

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT DISTINCT 81 * - - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT 81 * - - COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT DISTINCT COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * )
----
1

query I rowsort
SELECT 33 * + - 30 AS col1
----
-990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT CAST( NULL AS SIGNED ) / 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT CAST ( NULL AS INTEGER ) / 24
----
NULL

query I rowsort
SELECT ALL + 15 + + 38
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT 64 * - - COUNT( * ) * 39 AS col2
----
2496

skipif mysql # not compatible
query I rowsort label-6552
SELECT 64 * - - COUNT ( * ) * 39 AS col2
----
2496

query I rowsort
SELECT ALL - 19 + 51 AS col2
----
32

query I rowsort
SELECT - 87 + + 1
----
-86

query I rowsort
SELECT + 25 col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT ALL + MIN( 18 )
----
18

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL + MIN ( 18 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6557
SELECT CAST( + + COUNT( DISTINCT 83 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6557
SELECT CAST ( + + COUNT ( DISTINCT 83 ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT SUM( ALL + 34 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT SUM ( ALL + 34 ) AS col2
----
34

query I rowsort
SELECT - ( + - ( 73 ) ) col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6561
SELECT - COUNT( * ) DIV + + 77 col1
----
0

skipif mysql # not compatible
query I rowsort label-6561
SELECT - COUNT ( * ) / + + 77 col1
----
0

query I rowsort
SELECT ALL + ( + - 8 )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6563
SELECT 42 DIV + + MAX( ALL CAST( 16 AS SIGNED ) ) - 21 col2
----
-19

skipif mysql # not compatible
query I rowsort label-6563
SELECT 42 / + + MAX ( ALL CAST ( 16 AS INTEGER ) ) - 21 col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL + COUNT( ALL 45 )
----
1

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL + COUNT ( ALL 45 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6565
SELECT - 74 AS col1, - CAST( - - 3 AS SIGNED )
----
-74
-3

skipif mysql # not compatible
query II rowsort label-6565
SELECT - 74 AS col1, - CAST ( - - 3 AS INTEGER )
----
-74
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT - 92 + COUNT( DISTINCT + 36 )
----
-91

skipif mysql # not compatible
query I rowsort label-6566
SELECT - 92 + COUNT ( DISTINCT + 36 )
----
-91

query I rowsort
SELECT DISTINCT 26 AS col0
----
26

query II rowsort
SELECT - 70 AS col2, + 68
----
-70
68

query I rowsort
SELECT 2 * + - 31 * 22 AS col1
----
-1364

query I rowsort
SELECT DISTINCT - 65 col2
----
-65

query I rowsort
SELECT ALL 75 col2
----
75

query I rowsort
SELECT DISTINCT ( - + ( + 10 ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT + MIN( + ( - 53 ) ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-6573
SELECT + MIN ( + ( - 53 ) ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT ALL + - MAX( DISTINCT - 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL + - MAX ( DISTINCT - 75 ) AS col2
----
75

query I rowsort
SELECT ALL - - ( - 68 ) + - ( 78 )
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT DISTINCT + 92 DIV - - 95
----
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT + 92 / - - 95
----
0

query I rowsort
SELECT ( 97 )
----
97

query I rowsort
SELECT ALL + ( 44 ) col2
----
44

query I rowsort
SELECT ALL + 88 * + 95 AS col0
----
8360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT ALL ( + AVG ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL ( + AVG ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6581
SELECT DISTINCT - COUNT( * ) DIV - 7 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6581
SELECT DISTINCT - COUNT ( * ) / - 7 AS col2
----
0

query I rowsort
SELECT 68 * 21
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT 96 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6583
SELECT 96 + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT MIN( DISTINCT + 37 ) * 14 AS col1
----
518

skipif mysql # not compatible
query I rowsort label-6584
SELECT MIN ( DISTINCT + 37 ) * 14 AS col1
----
518

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT 86 + COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6585
SELECT 86 + COUNT ( * ) AS col0
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6586
SELECT DISTINCT COUNT( * ) DIV MIN( ALL - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT COUNT ( * ) / MIN ( ALL - 76 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT COUNT( * ) * 59 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6587
SELECT COUNT ( * ) * 59 AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6588
SELECT ALL - - 82 + 23 DIV - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - - 82 + 23 / - COUNT ( * ) AS col1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT ALL - CAST( NULL AS SIGNED ) + 9 * + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL - CAST ( NULL AS INTEGER ) + 9 * + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT DISTINCT - MIN( ALL + 93 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-6590
SELECT DISTINCT - MIN ( ALL + 93 ) AS col1
----
-93

query I rowsort
SELECT - 47 * - 31 AS col0
----
1457

query I rowsort
SELECT DISTINCT - - 48 col1
----
48

query I rowsort
SELECT - 22 * + 30 AS col0
----
-660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6594
SELECT - 39 - 27 DIV + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-6594
SELECT - 39 - 27 / + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT DISTINCT 21 + - 31 * COUNT( * ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-6595
SELECT DISTINCT 21 + - 31 * COUNT ( * ) col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT + + 12 + + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-6596
SELECT + + 12 + + - COUNT ( * )
----
11

query I rowsort
SELECT ALL + + 88 AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6598
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) * - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT ALL + + 71 * - + 17 * - 64 + + MAX( ALL - 38 ) AS col2
----
77210

skipif mysql # not compatible
query I rowsort label-6599
SELECT ALL + + 71 * - + 17 * - 64 + + MAX ( ALL - 38 ) AS col2
----
77210

query I rowsort
SELECT ALL + 20 * - ( + + 50 )
----
-1000

query I rowsort
SELECT DISTINCT ( + 28 )
----
28

query I rowsort
SELECT ALL ( - - 4 ) AS col2
----
4

query I rowsort
SELECT ALL - 57 + - + 31
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6604
SELECT - 66 DIV - + ( + + 83 ) - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6604
SELECT - 66 / - + ( + + 83 ) - COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + ( + 40 ) AS col2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6606
SELECT ALL 40 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL 40 / - 94
----
0

query I rowsort
SELECT ALL 68 + - 0 * + 72 AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6608
SELECT + CAST( 40 AS SIGNED ) + + MAX( + 28 ) + - - CAST( 2 AS SIGNED ) * 13
----
94

skipif mysql # not compatible
query I rowsort label-6608
SELECT + CAST ( 40 AS INTEGER ) + + MAX ( + 28 ) + - - CAST ( 2 AS INTEGER ) * 13
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL - 67 * COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - 67 * COUNT ( * ) AS col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT ( + CAST( 99 AS SIGNED ) )
----
99

skipif mysql # not compatible
query I rowsort label-6610
SELECT ( + CAST ( 99 AS INTEGER ) )
----
99

query I rowsort
SELECT DISTINCT + COALESCE ( - 48, - + ( 1 ) ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT DISTINCT - 37 * - 77 * + + 31 + COUNT( * )
----
88320

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT - 37 * - 77 * + + 31 + COUNT ( * )
----
88320

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT + + 41 + 89 * - COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-6613
SELECT + + 41 + 89 * - COUNT ( * ) AS col1
----
-48

query I rowsort
SELECT - - 8 AS col2
----
8

query I rowsort
SELECT 57 * 1
----
57

query II rowsort
SELECT ALL - 25 + + 37 col1, + 98 AS col1
----
12
98

query I rowsort
SELECT ALL - 80 - - - 51 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT + 1 + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT + 1 + - COUNT ( * )
----
0

query I rowsort
SELECT + ( + + 57 )
----
57

query I rowsort
SELECT + + 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT ALL - COUNT( * ) * 33
----
-33

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - COUNT ( * ) * 33
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT + COUNT( * ), 90 AS col0
----
1
90

skipif mysql # not compatible
query II rowsort label-6622
SELECT + COUNT ( * ), 90 AS col0
----
1
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6623
SELECT ALL - - NULLIF ( MIN( ALL - ( 97 ) ), + 96 + CAST( NULL AS DECIMAL ) )
----
-97

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL - - NULLIF ( MIN ( ALL - ( 97 ) ), + 96 + CAST ( NULL AS REAL ) )
----
-97

onlyif mysql # aggregate syntax: 
query II rows