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 rowsort label-6624
SELECT ALL - + COUNT( * ), 32 AS col0
----
-1
32

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6625
SELECT 84, - COUNT( * ) + + - 44 + - 8 AS col0
----
84
-53

skipif mysql # not compatible
query II rowsort label-6625
SELECT 84, - COUNT ( * ) + + - 44 + - 8 AS col0
----
84
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT ( - 86 ) DIV + + 74 + - 6 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-6626
SELECT ( - 86 ) / + + 74 + - 6 AS col1
----
-7

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

query I rowsort
SELECT + - 64 col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6629
SELECT ALL + 22 + - - COUNT( * ) * - 16, COUNT( * ) AS col0
----
6
1

skipif mysql # not compatible
query II rowsort label-6629
SELECT ALL + 22 + - - COUNT ( * ) * - 16, COUNT ( * ) AS col0
----
6
1

query II rowsort
SELECT + 67 AS col0, 26 AS col1
----
67
26

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6635
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 96, + ( - - AVG ( - CAST( NULL AS SIGNED ) ) ) + CAST( NULL AS SIGNED ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6635
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 96, + ( - - AVG ( - CAST ( NULL AS INTEGER ) ) ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6638
SELECT + 49 AS col0, + COUNT( * ) + - - COUNT( * ) - COUNT( * ) + - + COUNT( * ) AS col2
----
49
0

skipif mysql # not compatible
query II rowsort label-6638
SELECT + 49 AS col0, + COUNT ( * ) + - - COUNT ( * ) - COUNT ( * ) + - + COUNT ( * ) AS col2
----
49
0

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

query I rowsort
SELECT 31 * + - 59
----
-1829

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

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

query II rowsort
SELECT 9 AS col2, + COALESCE ( 84, - 93 * + + 99 + 82 ) AS col1
----
9
84

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT DISTINCT MIN( DISTINCT + - 89 ) * - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT MIN ( DISTINCT + - 89 ) * - COUNT ( * )
----
89

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

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

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

query I rowsort
SELECT - 2 * - 16
----
32

query I rowsort
SELECT + - 89 - + + 57
----
-146

query I rowsort
SELECT 30 * 44 AS col2
----
1320

query I rowsort
SELECT ALL - 34 + + + 70 * + 67
----
4656

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT 13 - COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6656
SELECT 13 - COUNT ( * ) AS col0
----
12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT MIN( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-6658
SELECT MIN ( - 88 )
----
-88

query I rowsort
SELECT - 72 * - 82
----
5904

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT DISTINCT - + 53 + + COUNT( * )
----
-52

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT ALL SUM( DISTINCT - - 50 ) col1
----
50

skipif mysql # not compatible
query I rowsort label-6663
SELECT ALL SUM ( DISTINCT - - 50 ) col1
----
50

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL + 21 - + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL + 21 - + COUNT ( * )
----
20

query I rowsort
SELECT - 76 + - 80 AS col0
----
-156

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6674
SELECT COUNT( * ) + 48 AS col0, + 41 AS col1
----
49
41

skipif mysql # not compatible
query II rowsort label-6674
SELECT COUNT ( * ) + 48 AS col0, + 41 AS col1
----
49
41

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

skipif mysql # not compatible
query II rowsort label-6675
SELECT + + CAST ( + COUNT ( * ) AS INTEGER ) AS col2, MAX ( ALL + 67 ) col0
----
1
67

query I rowsort
SELECT ALL 34 + - 41
----
-7

query I rowsort
SELECT ALL + 17 * 51
----
867

onlyif mysql # aggregate syntax: 
query II rowsort label-6678
SELECT COUNT( - - 75 ) + - + COUNT( * ) AS col2, - 11
----
0
-11

skipif mysql # not compatible
query II rowsort label-6678
SELECT COUNT ( - - 75 ) + - + COUNT ( * ) AS col2, - 11
----
0
-11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT DISTINCT - MAX( 34 ) * - 16 * - 51
----
-27744

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT - MAX ( 34 ) * - 16 * - 51
----
-27744

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

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

query I rowsort
SELECT - 50 * + + ( + 40 ) AS col0
----
-2000

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

skipif mysql # not compatible
query I rowsort label-6683
SELECT - COUNT ( * ) * - - 35
----
-35

query I rowsort
SELECT 32 col2
----
32

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6690
SELECT ALL + 58 DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT ALL + 58 / 90 AS col1
----
0

query I rowsort
SELECT 19 * - - 71
----
1349

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6692
SELECT DISTINCT - + CAST( NULL AS DECIMAL ), + 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-6692
SELECT DISTINCT - + CAST ( NULL AS REAL ), + 76 AS col2
----
NULL
76

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

query I rowsort
SELECT - 18 + + 22 AS col0
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT 41 * 90 * 59 + - COUNT( DISTINCT + - 92 )
----
217709

skipif mysql # not compatible
query I rowsort label-6696
SELECT 41 * 90 * 59 + - COUNT ( DISTINCT + - 92 )
----
217709

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT ALL NULLIF ( + 32, - + COUNT( * ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL NULLIF ( + 32, - + COUNT ( * ) ) AS col1
----
32

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6702
SELECT DISTINCT ( + COUNT( * ) ) * + SUM( ALL - 97 ) AS col0, + COUNT( + 98 )
----
-97
1

skipif mysql # not compatible
query II rowsort label-6702
SELECT DISTINCT ( + COUNT ( * ) ) * + SUM ( ALL - 97 ) AS col0, + COUNT ( + 98 )
----
-97
1

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

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

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

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

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

query I rowsort
SELECT + - 33 * - + 65
----
2145

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

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

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

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

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

query I rowsort
SELECT 93 + 68 col1
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT 38 - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-6711
SELECT 38 - COUNT ( * ) AS col0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-6712
SELECT ALL + - 35 DIV - + 48
----
0

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL + - 35 / - + 48
----
0

query II rowsort
SELECT ALL - 78 AS col2, - 25
----
-78
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT - + COUNT( * ) + 36
----
35

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT - + COUNT ( * ) + 36
----
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6717
SELECT ALL MIN( + CAST( 96 AS SIGNED ) ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL MIN ( + CAST ( 96 AS INTEGER ) ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT - 55 - COUNT( * ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-6718
SELECT - 55 - COUNT ( * ) AS col1
----
-56

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

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

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

query I rowsort
SELECT - 15 * - 94
----
1410

query I rowsort
SELECT ALL - 63 col1
----
-63

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 27 * + 15
----
405

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

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

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

skipif mysql # not compatible
query I rowsort label-6732
SELECT MAX ( DISTINCT 15 )
----
15

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

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

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

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

query I rowsort
SELECT DISTINCT 20 col1
----
20

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

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

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

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - 34 + - COUNT ( * ) AS col0
----
-35

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

query I rowsort
SELECT DISTINCT 73 - + - 31 AS col2
----
104

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6745
SELECT ALL 54 * + 30 AS col1, COUNT( * ) + + 59
----
1620
60

skipif mysql # not compatible
query II rowsort label-6745
SELECT ALL 54 * + 30 AS col1, COUNT ( * ) + + 59
----
1620
60

query I rowsort
SELECT ALL 78 + 22 col0
----
100

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 52 * - ( - + 52 )
----
2704

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6753
SELECT + 62 / - - COUNT ( DISTINCT 37 )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6754
SELECT DISTINCT 53 AS col1, CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1
----
53
NULL

skipif mysql # not compatible
query II rowsort label-6754
SELECT DISTINCT 53 AS col1, CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1
----
53
NULL

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

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

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

query I rowsort
SELECT ALL + 66 * - 61 AS col2
----
-4026

onlyif mysql # DIV for integer division: 
query I rowsort label-6758
SELECT DISTINCT - 25 DIV - 10
----
2

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT - 25 / - 10
----
2

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

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

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

query I rowsort
SELECT DISTINCT + 28 * - - 35
----
980

query I rowsort
SELECT ALL 98 + + 62 col0
----
160

query I rowsort
SELECT + 60 * - 33 AS col2
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT + SUM( ALL - - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6764
SELECT + SUM ( ALL - - 60 ) AS col2
----
60

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT + + MIN( ALL 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-6766
SELECT + + MIN ( ALL 94 ) col1
----
94

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

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

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

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

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

query II rowsort
SELECT DISTINCT ( + 85 ), 37 AS col2
----
85
37

query I rowsort
SELECT + - 83 * + + 82
----
-6806

query I rowsort
SELECT + 6 * + 34 AS col1
----
204

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

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

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

query I rowsort
SELECT 81 + - 39
----
42

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + MIN( ALL - + 19 ) * 75 AS col0
----
-1425

skipif mysql # not compatible
query I rowsort label-6780
SELECT + MIN ( ALL - + 19 ) * 75 AS col0
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT 66 + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-6781
SELECT 66 + + COUNT ( * )
----
67

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

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

query II rowsort
SELECT - 22 AS col0, ( 80 )
----
-22
80

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

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

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

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

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

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

query I rowsort
SELECT + - NULLIF ( 11, 97 ) AS col2
----
-11

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

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

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

query I rowsort
SELECT ALL - 1 * + - 3 + + 80
----
83

query I rowsort
SELECT - 56 * + 40
----
-2240

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6794
SELECT ALL - COALESCE ( - CAST( NULL AS SIGNED ), 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL - COALESCE ( - CAST ( NULL AS INTEGER ), 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT COUNT( * ) + + 89 * + 6
----
535

skipif mysql # not compatible
query I rowsort label-6795
SELECT COUNT ( * ) + + 89 * + 6
----
535

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT SUM( 47 )
----
47

skipif mysql # not compatible
query I rowsort label-6797
SELECT SUM ( 47 )
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT MAX( - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-6799
SELECT MAX ( - 70 )
----
-70

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 24 * 79
----
1896

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT + COUNT( * ) - 22 * - COUNT( * ) col2
----
23

skipif mysql # not compatible
query I rowsort label-6806
SELECT + COUNT ( * ) - 22 * - COUNT ( * ) col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL - MAX( DISTINCT 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL - MAX ( DISTINCT 69 )
----
-69

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT COUNT ( * ) * + ( + 55 ) * - 71 AS col1
----
-3905

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 20 * 51 col0
----
-1020

query I rowsort
SELECT + 58 * + 13
----
754

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT + + CAST( NULL AS SIGNED ) * + 61 * + 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT + + CAST ( NULL AS INTEGER ) * + 61 * + 74 AS col0
----
NULL

query I rowsort
SELECT - 10 col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT ALL 43 + - 47 * CAST( - 47 AS SIGNED )
----
2252

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL 43 + - 47 * CAST ( - 47 AS INTEGER )
----
2252

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT - COUNT( * ) - + 55 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-6822
SELECT - COUNT ( * ) - + 55 AS col2
----
-56

query I rowsort
SELECT ALL 49 * 23 AS col1
----
1127

query I rowsort
SELECT ALL + 48 * 85
----
4080

query II rowsort
SELECT ALL - 91 AS col0, - 94 AS col2
----
-91
-94

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

query I rowsort
SELECT ALL - - 22
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT 88 * + + CAST( NULL AS SIGNED ) * - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT 88 * + + CAST ( NULL AS INTEGER ) * - 90 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - 48 * + ( - + MAX( + - 17 ) ) AS col1
----
-816

skipif mysql # not compatible
query I rowsort label-6830
SELECT - 48 * + ( - + MAX ( + - 17 ) ) AS col1
----
-816

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT ALL 82 DIV + 69 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL 82 / + 69 AS col2
----
1

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6834
SELECT COALESCE ( CAST( - + 6 AS SIGNED ), - COUNT( * ) * + - 59 )
----
-6

skipif mysql # not compatible
query I rowsort label-6834
SELECT COALESCE ( CAST ( - + 6 AS INTEGER ), - COUNT ( * ) * + - 59 )
----
-6

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

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

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

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

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

query I rowsort
SELECT ALL + + 97 * - 56 AS col0
----
-5432

query I rowsort
SELECT ALL + + 22 + - 4
----
18

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6842
SELECT ALL 89 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL 89 / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT MAX( + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6843
SELECT MAX ( + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL COUNT( 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL COUNT ( 43 ) AS col0
----
1

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

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

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

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

skipif mysql # not compatible
query II rowsort label-6847
SELECT ALL 19 / - 93, COUNT ( * ) AS col1
----
0
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT - 65 * SUM( + ( + - 7 ) )
----
455

skipif mysql # not compatible
query I rowsort label-6849
SELECT - 65 * SUM ( + ( + - 7 ) )
----
455

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT + COUNT( * ) * MAX( - 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT + COUNT ( * ) * MAX ( - 80 )
----
-80

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT 4 - - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6856
SELECT 4 - - COUNT ( * )
----
5

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

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

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

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

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

query I rowsort
SELECT 88 + - - 2 col0
----
90

query II rowsort
SELECT - 98 col0, 96 - - + 64 AS col1
----
-98
160

query I rowsort
SELECT ALL + 35 + 55 col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT - MAX( - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-6864
SELECT - MAX ( - 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT + + 36 * - COUNT( * ) * 20
----
-720

skipif mysql # not compatible
query I rowsort label-6865
SELECT + + 36 * - COUNT ( * ) * 20
----
-720

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT DISTINCT + COUNT( ALL 75 ) + - 19 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + COUNT ( ALL 75 ) + - 19 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL + ( + COUNT( * ) ) - - 18 + + 74
----
93

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL + ( + COUNT ( * ) ) - - 18 + + 74
----
93

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL COUNT ( * ) - - ( - ( + - 44 ) ) + + COUNT ( * ) / - 14 AS col2
----
45

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

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

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

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - SUM ( - 8 )
----
8

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

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

query II rowsort
SELECT DISTINCT + 9 AS col2, - 68 col2
----
9
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT - + 98 * - - COUNT( * ) + + 7
----
-91

skipif mysql # not compatible
query I rowsort label-6878
SELECT - + 98 * - - COUNT ( * ) + + 7
----
-91

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - 83 - + 38 AS col2
----
-121

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 12 col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT SUM( DISTINCT + 33 ) col2
----
33

skipif mysql # not compatible
query I rowsort label-6893
SELECT SUM ( DISTINCT + 33 ) col2
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT SUM( ALL + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT SUM ( ALL + 84 ) AS col0
----
84

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

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

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

query I rowsort
SELECT ALL + - 49
----
-49

query I rowsort
SELECT - - ( 35 )
----
35

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

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

skipif mysql # not compatible
query I rowsort label-6901
SELECT DISTINCT - MAX ( 94 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT 32 - CAST( - 39 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-6902
SELECT 32 - CAST ( - 39 AS INTEGER )
----
71

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

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

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

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

query I rowsort
SELECT 71 * - - 12
----
852

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6907
SELECT - 6 AS col1, 57 * + - 68 + + - MAX( DISTINCT + + 1 )
----
-6
-3877

skipif mysql # not compatible
query II rowsort label-6907
SELECT - 6 AS col1, 57 * + - 68 + + - MAX ( DISTINCT + + 1 )
----
-6
-3877

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT COUNT( + 60 ) + - 47 col1
----
-46

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT COUNT ( + 60 ) + - 47 col1
----
-46

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT 66 DIV 62
----
1

skipif mysql # not compatible
query I rowsort label-6917
SELECT 66 / 62
----
1

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

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

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

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

query I rowsort
SELECT ( - 72 ) * - 97 - - + 18 AS col0
----
7002

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT - 72 + + - COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6922
SELECT - 72 + + - COUNT ( * ) AS col1
----
-73

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

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

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( - + 57, + + 19 )
----
57

query II rowsort
SELECT - 94, 45 AS col0
----
-94
45

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 5 * + 0 AS col0
----
0

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

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

skipif mysql # not compatible
query I rowsort label-6935
SELECT + - COUNT ( * ) * + 92 / COUNT ( * ) * + 48
----
-4416

query I rowsort
SELECT DISTINCT + 45 * + 78 * - - 65 AS col2
----
228150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT ALL - MAX( - 88 )
----
88

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL - MAX ( - 88 )
----
88

query I rowsort
SELECT DISTINCT 6 * + 83 AS col2
----
498

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( - 98, - + 81 )
----
-98

query I rowsort
SELECT DISTINCT + 71 * - 21
----
-1491

query I rowsort
SELECT + 72 * - - 71
----
5112

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

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

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

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

query I rowsort
SELECT + + 25 * 64 col2
----
1600

query I rowsort
SELECT + 49 * + 65
----
3185

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

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

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

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

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

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

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

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

query I rowsort
SELECT 98 * - 20
----
-1960

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

query I rowsort
SELECT - ( - 12 ) + - - 34 AS col0
----
46

query I rowsort
SELECT ALL - - 85 col2
----
85

query I rowsort
SELECT - 43 * + 94 col2
----
-4042

query I rowsort
SELECT ALL 13 * + 64 AS col0
----
832

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT ALL CAST( + 97 AS SIGNED ) + + 11
----
108

skipif mysql # not compatible
query I rowsort label-6963
SELECT ALL CAST ( + 97 AS INTEGER ) + + 11
----
108

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6970
SELECT ALL 17 DIV - 79
----
0

skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL 17 / - 79
----
0

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * 41 * - ( - 8 ) AS col1
----
328

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * 41 * - ( - 8 ) AS col1
----
328

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

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT - 33 / - - COUNT ( * )
----
-33

query I rowsort
SELECT ALL - 93 col2
----
-93

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT DISTINCT + - COUNT( * ) + - SUM( 68 )
----
-69

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT + - COUNT ( * ) + - SUM ( 68 )
----
-69

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

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

query I rowsort
SELECT ALL - + 39 * - 44
----
1716

onlyif mysql # DIV for integer division: 
query I rowsort label-6985
SELECT 41 DIV + 54 * - 26 + + 77 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-6985
SELECT 41 / + 54 * - 26 + + 77 AS col1
----
77

query I rowsort
SELECT DISTINCT - 71 col1
----
-71

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT - COUNT( * ) + + 98 * + 5
----
489

skipif mysql # not compatible
query I rowsort label-6990
SELECT - COUNT ( * ) + + 98 * + 5
----
489

query I rowsort
SELECT - 26 * - 43 - + 33
----
1085

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

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

query I rowsort
SELECT - - 34 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6994
SELECT - COALESCE ( - 86, + CAST( NULL AS SIGNED ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-6994
SELECT - COALESCE ( - 86, + CAST ( NULL AS INTEGER ) ) AS col2
----
86

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

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

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

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT - COUNT ( * ) + + 38 AS col1
----
37

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

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

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

skipif mysql # not compatible
query I rowsort label-6999
SELECT + - MIN ( 93 )
----
-93

query I rowsort
SELECT ALL + - 32 * + + 16
----
-512

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - MAX( + 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-7001
SELECT - MAX ( + 43 ) col0
----
-43

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

query I rowsort
SELECT ALL 25 col0
----
25

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

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

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

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

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

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

query I rowsort
SELECT 77 - 29 + 66 + 65 AS col1
----
179

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

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

query I rowsort
SELECT + 13 + 9 AS col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7010
SELECT - 77 * 40 DIV - + 91 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7010
SELECT - 77 * 40 / - + 91 AS col0
----
33

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - COUNT ( * ) + + - 73 AS col0
----
-74

query I rowsort
SELECT - 1 - - + 16 col2
----
15

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT - 23 + MAX( + - 90 ) AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-7021
SELECT - 23 + MAX ( + - 90 ) AS col0
----
-113

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT DISTINCT + 43 * + MIN( DISTINCT - - 84 ) * - 52 col1
----
-187824

skipif mysql # not compatible
query I rowsort label-7023
SELECT DISTINCT + 43 * + MIN ( DISTINCT - - 84 ) * - 52 col1
----
-187824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7024
SELECT ALL 60 - 89 * - CAST( NULL AS SIGNED ) * + MAX( ALL 64 ), 31 AS col1
----
NULL
31

skipif mysql # not compatible
query II rowsort label-7024
SELECT ALL 60 - 89 * - CAST ( NULL AS INTEGER ) * + MAX ( ALL 64 ), 31 AS col1
----
NULL
31

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

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

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

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

query I rowsort
SELECT 61 col0
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT - - SUM( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-7030
SELECT - - SUM ( 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7031
SELECT DISTINCT COUNT( * ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT COUNT ( * ) + 55
----
56

query I rowsort
SELECT - 89 * 49 AS col1
----
-4361

query I rowsort
SELECT + 34 + + 27 AS col0
----
61

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 49 * 98
----
4802

query I rowsort
SELECT ( - 87 ) * 67
----
-5829

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT 2 * CAST( + 32 AS SIGNED ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-7042
SELECT 2 * CAST ( + 32 AS INTEGER ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT - MAX( DISTINCT - NULLIF ( 88, - 84 * - 45 ) )
----
88

skipif mysql # not compatible
query I rowsort label-7043
SELECT - MAX ( DISTINCT - NULLIF ( 88, - 84 * - 45 ) )
----
88

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

query I rowsort
SELECT 33 + - 18 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7046
SELECT - MIN( + 67 ) * 8 AS col1
----
-536

skipif mysql # not compatible
query I rowsort label-7046
SELECT - MIN ( + 67 ) * 8 AS col1
----
-536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7047
SELECT DISTINCT - ( + + 13 ) * + COUNT( * ) + - COUNT( * ) * CAST( 88 AS SIGNED )
----
-101

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT - ( + + 13 ) * + COUNT ( * ) + - COUNT ( * ) * CAST ( 88 AS INTEGER )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT SUM( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-7048
SELECT SUM ( - 5 )
----
-5

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

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

query I rowsort
SELECT + 75 * + ( 31 )
----
2325

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

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

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

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

query I rowsort
SELECT - + 4
----
-4

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

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

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

skipif mysql # not compatible
query I rowsort label-7055
SELECT + COUNT ( * ) * 70 * + 51 AS col1
----
3570

query I rowsort
SELECT - 59 col0
----
-59

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

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

query I rowsort
SELECT ALL - 35 + - 39 AS col2
----
-74

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

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

query I rowsort
SELECT ALL - 29 col2
----
-29

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

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL COUNT ( * ) + - ( - + ( 4 ) ) * 84 AS col1
----
337

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

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

query I rowsort
SELECT - ( - 76 )
----
76

query I rowsort
SELECT ( 95 ) + - - 95 AS col2
----
190

query I rowsort
SELECT ALL 41 * - 47
----
-1927

onlyif mysql # DIV for integer division: 
query I rowsort label-7066
SELECT ALL + 94 DIV + 77 col0
----
1

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL + 94 / + 77 col0
----
1

query I rowsort
SELECT - 35 + + - 41 AS col1
----
-76

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT 76, ( + - 82 ) AS col1
----
76
-82

query I rowsort
SELECT 20 + - 84
----
-64

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7083
SELECT ALL 98 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL 98 * - CAST ( NULL AS REAL ) AS col0
----
NULL

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

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

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

query I rowsort
SELECT 77 + + 74
----
151

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL MIN ( 56 )
----
56

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

skipif mysql # not compatible
query II rowsort label-7093
SELECT ALL - COUNT ( * ) col1, 74
----
-1
74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7095
SELECT ALL + 17 DIV 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL + 17 / 39 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7096
SELECT 53 DIV + COUNT( * ) + - ( 24 )
----
29

skipif mysql # not compatible
query I rowsort label-7096
SELECT 53 / + COUNT ( * ) + - ( 24 )
----
29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7098
SELECT ( - 53 ) DIV - - 29
----
-1

skipif mysql # not compatible
query I rowsort label-7098
SELECT ( - 53 ) / - - 29
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + 71 + - + COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-7099
SELECT + 71 + - + COUNT ( * ) AS col1
----
70

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

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

query I rowsort
SELECT - + 34
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7102
SELECT 0 DIV - 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7102
SELECT 0 / - 98 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ( - 24 ) - - + SUM( 62 )
----
38

skipif mysql # not compatible
query I rowsort label-7103
SELECT ( - 24 ) - - + SUM ( 62 )
----
38

query I rowsort
SELECT - - 23 AS col2
----
23

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

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL + COUNT ( * ) + + - 11 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL + - 93 + - - MAX( DISTINCT - 67 ) AS col2
----
-160

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL + - 93 + - - MAX ( DISTINCT - 67 ) AS col2
----
-160

query I rowsort
SELECT ALL 82 * 40
----
3280

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

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

query I rowsort
SELECT + 42 col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7110
SELECT + ( 71 ) AS col0, MAX( + 42 ) AS col2
----
71
42

skipif mysql # not compatible
query II rowsort label-7110
SELECT + ( 71 ) AS col0, MAX ( + 42 ) AS col2
----
71
42

query I rowsort
SELECT - - 40 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT - 41 * + MIN( - 6 )
----
246

skipif mysql # not compatible
query I rowsort label-7112
SELECT - 41 * + MIN ( - 6 )
----
246

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT + MAX( - 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-7114
SELECT + MAX ( - 77 ) AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT ALL COUNT( + 38 ) + - 45
----
-44

skipif mysql # not compatible
query I rowsort label-7115
SELECT ALL COUNT ( + 38 ) + - 45
----
-44

query I rowsort
SELECT - 30 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL 75 * SUM( + 54 ) AS col2
----
4050

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL 75 * SUM ( + 54 ) AS col2
----
4050

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7121
SELECT ALL + 20 + - - COUNT( * ) * COUNT( * ) * 41 DIV - - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL + 20 + - - COUNT ( * ) * COUNT ( * ) * 41 / - - COUNT ( * )
----
61

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

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

query I rowsort
SELECT ALL - 88 + + 4
----
-84

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT ALL - NULLIF ( + + 9, - 60 / - ( - 66 ) ) + - - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL - NULLIF ( + + 9, - 60 / - ( - 66 ) ) + - - COUNT ( * )
----
-8

query I rowsort
SELECT DISTINCT 81 * + 4
----
324

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7133
SELECT - MAX ( + 1 )
----
-1

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL 52 - - - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL 52 - - - COUNT ( * )
----
51

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7143
SELECT DISTINCT COUNT( * ) * + 31 + + 9 DIV + 63 + + ( - 54 )
----
-23

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT COUNT ( * ) * + 31 + + 9 / + 63 + + ( - 54 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT + MIN( + 26 ) * COUNT( * ) col1
----
26

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT + MIN ( + 26 ) * COUNT ( * ) col1
----
26

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7148
SELECT - COUNT ( * ) / - COUNT ( * ) AS col0
----
1

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7151
SELECT MAX ( + 40 )
----
40

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7153
SELECT ALL - 99 DIV + 44
----
-2

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL - 99 / + 44
----
-2

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7156
SELECT 34 / - COUNT ( * )
----
-34

query I rowsort
SELECT ALL 36 * + + 63
----
2268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7158
SELECT DISTINCT + CAST( + - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + CAST ( + - 88 AS INTEGER )
----
-88

query I rowsort
SELECT ALL - - 99 * + + 67
----
6633

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT SUM( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-7160
SELECT SUM ( - 77 )
----
-77

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

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

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

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

query I rowsort
SELECT + 73 * 93 + - 88 col1
----
6701

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT SUM( ALL - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT SUM ( ALL - 96 ) AS col0
----
-96

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

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + 19 * - 41 * - - COUNT ( * ) AS col0
----
-779

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7170
SELECT ALL + COALESCE ( - + CAST( NULL AS SIGNED ), - 40 + + + COUNT( * ) )
----
-39

skipif mysql # not compatible
query I rowsort label-7170
SELECT ALL + COALESCE ( - + CAST ( NULL AS INTEGER ), - 40 + + + COUNT ( * ) )
----
-39

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

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

query I rowsort
SELECT - 34 AS col2
----
-34

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7176
SELECT + 92 / - - 75 * + CAST( NULL AS SIGNED ) AS col1, + 18 - - 46
----
NULL
64

skipif mysql # not compatible
query II rowsort label-7176
SELECT + 92 / - - 75 * + CAST ( NULL AS INTEGER ) AS col1, + 18 - - 46
----
NULL
64

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

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

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

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

query I rowsort
SELECT - 4 + 95
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT - MIN( - 78 ) + + 65 AS col0
----
143

skipif mysql # not compatible
query I rowsort label-7180
SELECT - MIN ( - 78 ) + + 65 AS col0
----
143

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

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

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

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

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

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

query I rowsort
SELECT 7 * - - 40 AS col1
----
280

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

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

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

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

query I rowsort
SELECT DISTINCT + 10 * - 33 AS col0
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + COUNT( + 79 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7189
SELECT + COUNT ( + 79 ) col1
----
1

query I rowsort
SELECT + 91 * 52
----
4732

query I rowsort
SELECT + + 77 * - + 70 AS col1
----
-5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7192
SELECT DISTINCT MIN( DISTINCT + NULLIF ( + + CAST( NULL AS SIGNED ), - 75 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT MIN ( DISTINCT + NULLIF ( + + CAST ( NULL AS INTEGER ), - 75 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT + - COUNT( DISTINCT - 37 ) * - + 80 - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-7193
SELECT + - COUNT ( DISTINCT - 37 ) * - + 80 - COUNT ( * )
----
79

query I rowsort
SELECT ( - - 22 )
----
22

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7197
SELECT + AVG ( - + 92 ) / + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT + AVG ( - + 92 ) / + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - 35 * + 85 + + 77 col2
----
-2898

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT ALL 74 * + + MIN( ALL - 23 ) AS col0
----
-1702

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL 74 * + + MIN ( ALL - 23 ) AS col0
----
-1702

query I rowsort
SELECT ALL 64 * + 21
----
1344

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7201
SELECT SUM( - 5 ) DIV - 54
----
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT SUM ( - 5 ) / - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL - MAX( DISTINCT - 27 ) - + - 56 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL - MAX ( DISTINCT - 27 ) - + - 56 AS col1
----
83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT DISTINCT - SUM( DISTINCT - 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT - SUM ( DISTINCT - 60 ) AS col0
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7206
SELECT ALL + + 3 * + CAST( NULL AS DECIMAL ) AS col2, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-7206
SELECT ALL + + 3 * + CAST ( NULL AS REAL ) AS col2, 8
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL + 28 + + COUNT( * ) col2
----
29

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL + 28 + + COUNT ( * ) col2
----
29

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

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

query I rowsort
SELECT 81 * - 82 col2
----
-6642

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

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

query II rowsort
SELECT ALL - 96 AS col2, 94 AS col2
----
-96
94

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

query I rowsort
SELECT ALL + ( 92 ) * - - 14 * + 23 AS col0
----
29624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7214
SELECT ALL 93 * + 56 + + 31 DIV + COUNT( * )
----
5239

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL 93 * + 56 + + 31 / + COUNT ( * )
----
5239

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

skipif mysql # not compatible
query II rowsort label-7215
SELECT DISTINCT - COUNT ( * ), + 21 col0
----
-1
21

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

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

query I rowsort
SELECT DISTINCT - + 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL 30 * COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL 30 * COUNT ( * ) col0
----
30

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

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

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

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

query I rowsort
SELECT ALL + 6 * - 27 AS col2
----
-162

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT + COUNT( + - 49 ) + 76
----
77

skipif mysql # not compatible
query I rowsort label-7226
SELECT + COUNT ( + - 49 ) + 76
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT - MIN( 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-7227
SELECT - MIN ( 34 )
----
-34

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT + 44 * ( - 60 ) + + COUNT( * ) col2
----
-2639

skipif mysql # not compatible
query I rowsort label-7234
SELECT + 44 * ( - 60 ) + + COUNT ( * ) col2
----
-2639

query I rowsort
SELECT 56 * 14
----
784

query I rowsort
SELECT ALL - 68 * + 50
----
-3400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT COUNT( * ) DIV COUNT( * ) + - + 14 col2
----
-13

skipif mysql # not compatible
query I rowsort label-7237
SELECT COUNT ( * ) / COUNT ( * ) + - + 14 col2
----
-13

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

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

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

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

query I rowsort
SELECT ALL - - 32
----
32

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT + 68 * - 99 * - - COUNT( * )
----
-6732

skipif mysql # not compatible
query I rowsort label-7243
SELECT + 68 * - 99 * - - COUNT ( * )
----
-6732

query I rowsort
SELECT DISTINCT + + 2 + 23 AS col2
----
25

query I rowsort
SELECT + 45 + + 34
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT - 11 * + 87 * + MAX( + - 21 )
----
20097

skipif mysql # not compatible
query I rowsort label-7247
SELECT - 11 * + 87 * + MAX ( + - 21 )
----
20097

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7249
SELECT ALL + + 83 DIV 93 AS col2, 78 AS col1
----
0
78

skipif mysql # not compatible
query II rowsort label-7249
SELECT ALL + + 83 / 93 AS col2, 78 AS col1
----
0
78

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT 95 * COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-7252
SELECT 95 * COUNT ( * ) AS col1
----
95

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

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

query I rowsort
SELECT - - 51 AS col0
----
51

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

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

query I rowsort
SELECT DISTINCT 74 + 47
----
121

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

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

query I rowsort
SELECT + 96 + - - 91
----
187

query I rowsort
SELECT - - ( 65 ) + - 96
----
-31

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

query II rowsort
SELECT 18, + ( 80 ) AS col1
----
18
80

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT 85 col1, - 98
----
85
-98

query II rowsort
SELECT + 54, 6 AS col2
----
54
6

query I rowsort
SELECT DISTINCT + 92 * - ( + + 54 )
----
-4968

query I rowsort
SELECT ( 85 ) * - 92
----
-7820

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

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

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

query I rowsort
SELECT - 19 - + - 51
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT 81 DIV + + 67 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7274
SELECT 81 / + + 67 AS col1
----
1

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

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

query I rowsort
SELECT 0 + - 96 AS col2
----
-96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT DISTINCT + NULLIF ( - 68, + COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT + NULLIF ( - 68, + COUNT ( * ) ) AS col1
----
-68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7280
SELECT ALL ( - COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL ( - COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) ) AS col0
----
0

query I rowsort
SELECT ALL 75 col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT DISTINCT NULLIF ( COUNT( * ), - 88 ) + 91 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT NULLIF ( COUNT ( * ), - 88 ) + 91 AS col2
----
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - 87 * + SUM( + 47 * + 85 ) + + 90 AS col2
----
-347475

skipif mysql # not compatible
query I rowsort label-7284
SELECT - 87 * + SUM ( + 47 * + 85 ) + + 90 AS col2
----
-347475

query I rowsort
SELECT + - 97 + + 11
----
-86

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT DISTINCT 16 DIV - 3 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT 16 / - 3 AS col0
----
-5

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

query II rowsort
SELECT DISTINCT - 62, + 95 AS col2
----
-62
95

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

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

query II rowsort
SELECT DISTINCT 65 AS col1, - 26 AS col2
----
65
-26

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

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

query I rowsort
SELECT ALL - ( + - 84 ) * - 3
----
-252

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

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

query I rowsort
SELECT DISTINCT + - 54 - - + 1
----
-53

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

query I rowsort
SELECT ALL + 60 * 15 col1
----
900

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

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

query I rowsort
SELECT DISTINCT 8 col1
----
8

query I rowsort
SELECT - 40 * + + 2 AS col0
----
-80

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

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

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

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

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

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

query I rowsort
SELECT - - 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7308
SELECT ALL SUM( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-7308
SELECT ALL SUM ( - 14 )
----
-14

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7311
SELECT ALL - - 9 + + NULLIF ( 28, CAST( NULL AS SIGNED ) ) * - - ( COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - - 9 + + NULLIF ( 28, CAST ( NULL AS INTEGER ) ) * - - ( COUNT ( * ) )
----
37

query I rowsort
SELECT - 41 + 64 AS col2
----
23

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

query I rowsort
SELECT DISTINCT - + 15
----
-15

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

query I rowsort
SELECT ALL - 60 + - - 78
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT ALL + 80 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL + 80 / 86
----
0

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT DISTINCT + ( + 75 ) DIV - 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT + ( + 75 ) / - 83 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT ALL CAST( MIN( 59 ) AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL CAST ( MIN ( 59 ) AS INTEGER )
----
59

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL - COALESCE ( 8, SUM( ALL + 68 ) * + COALESCE ( 14, + SUM( + 21 ), COUNT( * ) ) )
----
-8

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL - COALESCE ( 8, SUM ( ALL + 68 ) * + COALESCE ( 14, + SUM ( + 21 ), COUNT ( * ) ) )
----
-8

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT ALL 90 DIV + 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL 90 / + 48 AS col0
----
1

query II rowsort
SELECT + - 15 AS col2, + 17
----
-15
17

query II rowsort
SELECT + - 48 * + 28 + + 4 col0, 90
----
-1340
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT - SUM( DISTINCT - 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7332
SELECT - SUM ( DISTINCT - 86 ) AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7333
SELECT + - 94 * - 26 + - + CAST( - MIN( - 94 ) AS SIGNED ) - 96
----
2254

skipif mysql # not compatible
query I rowsort label-7333
SELECT + - 94 * - 26 + - + CAST ( - MIN ( - 94 ) AS INTEGER ) - 96
----
2254

query I rowsort
SELECT - + 46 * 58 AS col1
----
-2668

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

query I rowsort
SELECT ALL 37 * - - 90
----
3330

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7339
SELECT DISTINCT + CAST( - + 97 AS SIGNED ) AS col2, + COALESCE ( - 43, + + 57 )
----
-97
-43

skipif mysql # not compatible
query II rowsort label-7339
SELECT DISTINCT + CAST ( - + 97 AS INTEGER ) AS col2, + COALESCE ( - 43, + + 57 )
----
-97
-43

query II rowsort
SELECT DISTINCT 8, - 30 AS col0
----
8
-30

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

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

query II rowsort
SELECT - 98 AS col2, 79 AS col0
----
-98
79

query I rowsort
SELECT ALL 80 * - 27 AS col0
----
-2160

query I rowsort
SELECT + 46 col1
----
46

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

query I rowsort
SELECT ALL - 55 - - 85
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7347
SELECT 57 * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT 57 * - CAST ( NULL AS REAL ) AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - + 67 * - + 81 AS col0
----
5427

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT - COUNT( * ) * 31 * 56 AS col0
----
-1736

skipif mysql # not compatible
query I rowsort label-7353
SELECT - COUNT ( * ) * 31 * 56 AS col0
----
-1736

query II rowsort
SELECT + 98 AS col1, + 55
----
98
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7355
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 86 * + 60 + + - 17 col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7355
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 86 * + 60 + + - 17 col2, + COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT - 37 - + SUM( + 98 )
----
-135

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 37 - + SUM ( + 98 )
----
-135

query II rowsort
SELECT ALL - 27 AS col1, - 21
----
-27
-21

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

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

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

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

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

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

query I rowsort
SELECT ALL 61 * + 55 AS col1
----
3355

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT 17 DIV + 7 col0
----
2

skipif mysql # not compatible
query I rowsort label-7363
SELECT 17 / + 7 col0
----
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT - + 40 * + + COUNT( ALL 96 ) + + + 77 * COUNT( * ) * + + 79 AS col2
----
6043

skipif mysql # not compatible
query I rowsort label-7365
SELECT - + 40 * + + COUNT ( ALL 96 ) + + + 77 * COUNT ( * ) * + + 79 AS col2
----
6043

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL - + SUM( + ( + 6 ) ) - + + 63
----
-69

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL - + SUM ( + ( + 6 ) ) - + + 63
----
-69

query I rowsort
SELECT ALL NULLIF ( 35, - 78 )
----
35

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

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

query II rowsort
SELECT - 84, 97 AS col2
----
-84
97

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

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

query II rowsort
SELECT + 1 col0, + 84
----
1
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT DISTINCT - COUNT( * ) * + 73 * + - 74
----
5402

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT - COUNT ( * ) * + 73 * + - 74
----
5402

query I rowsort
SELECT ALL + 69 + + 89
----
158

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT ALL + ( + MAX( ALL + + 10 ) ) + - 90 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL + ( + MAX ( ALL + + 10 ) ) + - 90 AS col1
----
-80

query I rowsort
SELECT - 63 * - 17
----
1071

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

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL - 83 + COUNT ( * ) AS col0
----
-82

query I rowsort
SELECT ALL + 38 * 1 AS col0
----
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT + SUM( DISTINCT - 96 ) * 54
----
-5184

skipif mysql # not compatible
query I rowsort label-7382
SELECT + SUM ( DISTINCT - 96 ) * 54
----
-5184

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL COUNT( * ) + - COUNT( * ) + + 95 * - 9
----
-855

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + 95 * - 9
----
-855

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

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL COUNT ( * ) / + - 42 * + 30
----
0

query I rowsort
SELECT ALL + 44 * 39 AS col1
----
1716

query II rowsort
SELECT DISTINCT - - 87 AS col2, - 23
----
87
-23

query I rowsort
SELECT ALL + - 40 * - 19
----
760

query I rowsort
SELECT 91 * + 32
----
2912

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT ALL - 75 * 98 + + ( + NULLIF ( 23, - 46 + NULLIF ( COUNT( * ), + 2 ) * - 86 ) ) AS col1
----
-7327

skipif mysql # not compatible
query I rowsort label-7390
SELECT ALL - 75 * 98 + + ( + NULLIF ( 23, - 46 + NULLIF ( COUNT ( * ), + 2 ) * - 86 ) ) AS col1
----
-7327

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

skipif mysql # not compatible
query I rowsort label-7391
SELECT - CAST ( - - AVG ( ALL + + 49 ) AS INTEGER )
----
-49

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7396
SELECT + 8 + - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) * + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT + 8 + - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 97
----
NULL

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

query I rowsort
SELECT + + 37 col2
----
37

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7404
SELECT - COALESCE ( 54, 55 DIV + 40 )
----
-54

skipif mysql # not compatible
query I rowsort label-7404
SELECT - COALESCE ( 54, 55 / + 40 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT - MIN( ALL + 90 ) col1
----
-90

skipif mysql # not compatible
query I rowsort label-7405
SELECT - MIN ( ALL + 90 ) col1
----
-90

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL - COUNT( * ) + - + 59 + + 31
----
-29

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - COUNT ( * ) + - + 59 + + 31
----
-29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7410
SELECT 10 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-7410
SELECT 10 / + 84
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT + SUM( ALL ( - 13 ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT + SUM ( ALL ( - 13 ) ) AS col0
----
-13

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

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

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

query I rowsort
SELECT DISTINCT - 0 col2
----
0

query I rowsort
SELECT ALL - 46 col2
----
-46

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

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

query I rowsort
SELECT 36 + 58 col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT - COUNT( * ) * - + COUNT( * ) + + COUNT( DISTINCT - - 16 ) * - 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7420
SELECT - COUNT ( * ) * - + COUNT ( * ) + + COUNT ( DISTINCT - - 16 ) * - 29 AS col1
----
-28

query I rowsort
SELECT 26 * + - ( - + 44 )
----
1144

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

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

query II rowsort
SELECT DISTINCT + 73 * + 23 col0, - 4
----
1679
-4

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

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

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

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

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

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

query I rowsort
SELECT ALL - + 75
----
-75

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

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

query I rowsort
SELECT ALL - 4 + 93
----
89

query I rowsort
SELECT DISTINCT 21 * + - 75
----
-1575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT COUNT( * ) + - 35
----
-34

skipif mysql # not compatible
query I rowsort label-7432
SELECT COUNT ( * ) + - 35
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL SUM( DISTINCT - 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL SUM ( DISTINCT - 99 )
----
-99

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

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

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

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

query I rowsort
SELECT DISTINCT 72 * - 30 + - 23 AS col1
----
-2183

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

query I rowsort
SELECT - - 99 AS col0
----
99

query I rowsort
SELECT - + 36 * - 23
----
828

query I rowsort
SELECT - 79 * ( - - 35 )
----
-2765

query II rowsort
SELECT 14, + 57 AS col1
----
14
57

query I rowsort
SELECT - 90 col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT - 41 * COUNT( * ) + - 81 + - 92 AS col1
----
-214

skipif mysql # not compatible
query I rowsort label-7443
SELECT - 41 * COUNT ( * ) + - 81 + - 92 AS col1
----
-214

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT DISTINCT 90 + - - 81, - 60 * + + COUNT( * ) AS col0
----
171
-60

skipif mysql # not compatible
query II rowsort label-7445
SELECT DISTINCT 90 + - - 81, - 60 * + + COUNT ( * ) AS col0
----
171
-60

query I rowsort
SELECT DISTINCT - - 6
----
6

query II rowsort
SELECT - 76 col0, - 64
----
-76
-64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT ALL - 86 DIV + - 81
----
1

skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL - 86 / + - 81
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL - - 38 / + COUNT ( * ) AS col1
----
38

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

query I rowsort
SELECT - 9 + + 40 * + 99
----
3951

query I rowsort
SELECT ALL 2 + + 31 * + 80
----
2482

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 3 * - - 60 AS col0
----
-180

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

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

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

skipif mysql # not compatible
query I rowsort label-7465
SELECT - CAST ( NULL AS REAL ) - COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL CAST ( + 62 AS INTEGER ) col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + MIN( + + 78 ) + - - 6
----
84

skipif mysql # not compatible
query I rowsort label-7467
SELECT + MIN ( + + 78 ) + - - 6
----
84

query I rowsort
SELECT 70 col2
----
70

query I rowsort
SELECT - + 29 + + - 54 AS col0
----
-83

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

skipif mysql # not compatible
query I rowsort label-7470
SELECT + 51 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT 26 + + 98
----
124

query I rowsort
SELECT ALL 3 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT 33 + 66 * - - COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-7474
SELECT 33 + 66 * - - COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT - 29 + + COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-7475
SELECT - 29 + + COUNT ( * ) AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7476
SELECT ALL 85 - MAX( ALL 58 ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL 85 - MAX ( ALL 58 ) + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7477
SELECT MAX( ALL - 38 ) AS col0, 94 AS col0
----
-38
94

skipif mysql # not compatible
query II rowsort label-7477
SELECT MAX ( ALL - 38 ) AS col0, 94 AS col0
----
-38
94

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7480
SELECT - 14 col0, + ( - 7 ) + COUNT( * )
----
-14
-6

skipif mysql # not compatible
query II rowsort label-7480
SELECT - 14 col0, + ( - 7 ) + COUNT ( * )
----
-14
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT + MAX( - 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT + MAX ( - 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL + CASE WHEN ( NULL ) <> NULL THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL + CASE WHEN ( NULL ) <> NULL THEN COUNT ( * ) END
----
NULL

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

skipif mysql # not compatible
query II rowsort label-7483
SELECT - + 7 col0, COUNT ( * )
----
-7
1

query I rowsort
SELECT ALL + 79 - - + 86
----
165

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

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

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

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

query I rowsort
SELECT 35 * 28 AS col1
----
980

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT ALL - 92 DIV - + 89
----
1

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL - 92 / - + 89
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7490
SELECT ALL 9 DIV - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL 9 / - 86 AS col1
----
0

query I rowsort
SELECT 14 - - - 73 AS col0
----
-59

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

query I rowsort
SELECT DISTINCT - 62 col2
----
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT SUM( 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7495
SELECT SUM ( 62 ) AS col0
----
62

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

query I rowsort
SELECT ALL 85 + - 27 AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT 98 DIV + + 45
----
2

skipif mysql # not compatible
query I rowsort label-7498
SELECT 98 / + + 45
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL COUNT( * ) * 35 * 70 AS col2
----
2450

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL COUNT ( * ) * 35 * 70 AS col2
----
2450

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

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

query I rowsort
SELECT + - 59 col1
----
-59

query I rowsort
SELECT ALL + NULLIF ( - 23, + 91 )
----
-23

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

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

query I rowsort
SELECT ALL + 29 + - 53 AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT + ( + 98 ) - - + SUM( 16 )
----
114

skipif mysql # not compatible
query I rowsort label-7505
SELECT + ( + 98 ) - - + SUM ( 16 )
----
114

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT DISTINCT 49 * 75 + 47 DIV + 87 + 8
----
3683

skipif mysql # not compatible
query I rowsort label-7506
SELECT DISTINCT 49 * 75 + 47 / + 87 + 8
----
3683

query I rowsort
SELECT 84 + - + 58
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT ALL - 76 DIV + + 11
----
-6

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL - 76 / + + 11
----
-6

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 4 * + + 60 + 44
----
284

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT - MAX( DISTINCT 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-7517
SELECT - MAX ( DISTINCT 25 ) AS col0
----
-25

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

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

query I rowsort
SELECT DISTINCT + - 41
----
-41

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

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

query I rowsort
SELECT - 76 col1
----
-76

query I rowsort
SELECT ALL 1 + - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT 81 - COUNT( * ) col1
----
80

skipif mysql # not compatible
query I rowsort label-7523
SELECT 81 - COUNT ( * ) col1
----
80

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

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

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

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

query I rowsort
SELECT ALL - 32 col1
----
-32

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT SUM( DISTINCT - - 39 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7530
SELECT SUM ( DISTINCT - - 39 ) AS col1
----
39

query II rowsort
SELECT 75, 17 AS col1
----
75
17

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

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

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

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL + MAX ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 43 * + 87 col2
----
-3741

query I rowsort
SELECT - 60 * - + 75
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT + COUNT( * ) + - 10
----
-9

skipif mysql # not compatible
query I rowsort label-7536
SELECT + COUNT ( * ) + - 10
----
-9

query I rowsort
SELECT - + 89
----
-89

query I rowsort
SELECT DISTINCT - 48 AS col1
----
-48

query I rowsort
SELECT ALL - 0 * - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL COUNT( * ) + + 13
----
14

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL COUNT ( * ) + + 13
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT ALL 31 - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL 31 - COUNT ( * )
----
30

query I rowsort
SELECT 77 + - 33 AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-7543
SELECT 12 DIV + 24 col1
----
0

skipif mysql # not compatible
query I rowsort label-7543
SELECT 12 / + 24 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7544
SELECT DISTINCT + ( - NULLIF ( - CAST( NULL AS SIGNED ), 39 ) ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT + ( - NULLIF ( - CAST ( NULL AS INTEGER ), 39 ) ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7545
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7545
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 96 + - 15
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT - 94 * 0 + - COUNT( * ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7547
SELECT - 94 * 0 + - COUNT ( * ) * + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7548
SELECT DISTINCT AVG ( + + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT AVG ( + + CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT ALL - 37 - - 57
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT DISTINCT - COUNT( * ) * 39
----
-39

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT - COUNT ( * ) * 39
----
-39

query I rowsort
SELECT ALL + 4 * + - 66
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7552
SELECT - COUNT( * ) DIV - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7552
SELECT - COUNT ( * ) / - - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + COUNT( * ) + - 83 * - 73
----
6060

skipif mysql # not compatible
query I rowsort label-7553
SELECT + COUNT ( * ) + - 83 * - 73
----
6060

query I rowsort
SELECT ALL + 20 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT + CAST( 16 AS SIGNED ) * + 52 AS col0
----
832

skipif mysql # not compatible
query I rowsort label-7555
SELECT + CAST ( 16 AS INTEGER ) * + 52 AS col0
----
832

query I rowsort
SELECT DISTINCT + + 96 col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7557
SELECT ALL + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL + + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 73 * - - 94 AS col2
----
6862

query I rowsort
SELECT - 9 - 33
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT + + SUM( ALL + 58 )
----
58

skipif mysql # not compatible
query I rowsort label-7560
SELECT + + SUM ( ALL + 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ( 72 ) + - + MAX( 68 )
----
4

skipif mysql # not compatible
query I rowsort label-7561
SELECT ( 72 ) + - + MAX ( 68 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT COUNT( * ) + + - 26 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7562
SELECT COUNT ( * ) + + - 26 AS col2
----
-25

query I rowsort
SELECT + ( - 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7564
SELECT SUM( - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-7564
SELECT SUM ( - 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT - ( + 72 ) * ( + COUNT( * ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7565
SELECT - ( + 72 ) * ( + COUNT ( * ) ) AS col2
----
-72

query I rowsort
SELECT DISTINCT - 65 + + ( 10 )
----
-55

query II rowsort
SELECT ALL 81 AS col0, 14 AS col0
----
81
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT ALL 33 AS col2, COUNT( * )
----
33
1

skipif mysql # not compatible
query II rowsort label-7568
SELECT ALL 33 AS col2, COUNT ( * )
----
33
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7569
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - - 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT - COUNT( * ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-7571
SELECT - COUNT ( * ) * - 95
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7572
SELECT + CAST( - + ( 22 ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-7572
SELECT + CAST ( - + ( 22 ) AS INTEGER )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7573
SELECT DISTINCT COUNT( * ) * + 44 DIV - - CAST( 68 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT DISTINCT COUNT ( * ) * + 44 / - - CAST ( 68 AS INTEGER ) col1
----
0

query I rowsort
SELECT ALL - 89 col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7575
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT ALL + + CAST( - AVG ( + - 97 ) AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + + CAST ( - AVG ( + - 97 ) AS INTEGER ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL COUNT( * ) + + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL COUNT ( * ) + + - 17
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT ALL - CAST( NULL AS SIGNED ) - - + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - CAST ( NULL AS INTEGER ) - - + 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT ALL - SUM( 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7579
SELECT ALL - SUM ( 95 ) AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7580
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( - - ( + 43 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( - - ( + 43 ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL - SUM( - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL - SUM ( - 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT - 71 + COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7583
SELECT - 71 + COUNT ( * ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + MIN( + 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-7584
SELECT + MIN ( + 45 ) AS col1
----
45

query I rowsort
SELECT ALL - 84 col2
----
-84

query I rowsort
SELECT DISTINCT - - 84 + 41
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT 0 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT 0 * - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL + - MAX( ALL 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + - MAX ( ALL 94 )
----
-94

query I rowsort
SELECT - 95 * + - 50 + + 94 AS col1
----
4844

query I rowsort
SELECT ALL - 6 + 7 + - + ( - 93 ) AS col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT ALL 62 DIV + 20 + - - 48
----
51

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL 62 / + 20 + - - 48
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7592
SELECT ALL + ( - 82 ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + ( - 82 ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL + MAX( DISTINCT + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + MAX ( DISTINCT + 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT - + COUNT( * ) * + 86 * + + 70
----
-6020

skipif mysql # not compatible
query I rowsort label-7594
SELECT - + COUNT ( * ) * + 86 * + + 70
----
-6020

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT COUNT( * ) col1, ( + 32 ) AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-7595
SELECT COUNT ( * ) col1, ( + 32 ) AS col0
----
1
32

query I rowsort
SELECT DISTINCT - 57 + + 77 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT DISTINCT ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7597
SELECT DISTINCT ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT + - 3
----
-3

query I rowsort
SELECT ALL + - 0
----
0

query I rowsort
SELECT + - 3 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7601
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7602
SELECT - 49 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT - 49 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT DISTINCT CAST( - 34 AS SIGNED ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT CAST ( - 34 AS INTEGER ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7604
SELECT 84 + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-7604
SELECT 84 + COUNT ( * ) AS col1
----
85

query I rowsort
SELECT DISTINCT - ( + - 45 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT MIN( ALL - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-7606
SELECT MIN ( ALL - 68 ) AS col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT + 41 * - COUNT( * ) AS col0, + 32
----
-41
32

skipif mysql # not compatible
query II rowsort label-7608
SELECT + 41 * - COUNT ( * ) AS col0, + 32
----
-41
32

query I rowsort
SELECT ALL + + 61 + - 45 AS col2
----
16

query I rowsort
SELECT ALL + + ( ( + 47 ) ) AS col2
----
47

query I rowsort
SELECT DISTINCT + + 78 AS col1
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7612
SELECT - COUNT( * ) DIV + - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7612
SELECT - COUNT ( * ) / + - 93 AS col2
----
0

query I rowsort
SELECT ALL + ( 5 )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7614
SELECT COUNT( * ), CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7614
SELECT COUNT ( * ), CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT ALL ( CAST( 82 AS SIGNED ) ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL ( CAST ( 82 AS INTEGER ) ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7616
SELECT ALL + 44 + - + MIN( ALL + ( 88 ) ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL + 44 + - + MIN ( ALL + ( 88 ) ) + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( - 71 ) AS col0
----
-71

query I rowsort
SELECT ALL 44 * - 47 AS col1
----
-2068

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7619
SELECT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7619
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7620
SELECT COUNT( * ) DIV + + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7620
SELECT COUNT ( * ) / + + 66 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT + MIN( + 53 ) + 93 + - 79 * + + 51
----
-3883

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT + MIN ( + 53 ) + 93 + - 79 * + + 51
----
-3883

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL ( + SUM( ALL + + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL ( + SUM ( ALL + + 88 ) )
----
88

query I rowsort
SELECT 90 col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT ALL 19 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL 19 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 77 col1
----
77

query I rowsort
SELECT + 25 col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT - MIN( ALL - + ( 27 ) )
----
27

skipif mysql # not compatible
query I rowsort label-7627
SELECT - MIN ( ALL - + ( 27 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT - + MIN( DISTINCT 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-7628
SELECT - + MIN ( DISTINCT 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT - - SUM( - 41 ) + - CAST( - MIN( - CAST( NULL AS SIGNED ) ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT - - SUM ( - 41 ) + - CAST ( - MIN ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT DISTINCT 70 DIV ( + 73 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT 70 / ( + 73 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL 47 * - - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL 47 * - - COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT DISTINCT 62 * 24 * - COUNT( * ) AS col2
----
-1488

skipif mysql # not compatible
query I rowsort label-7632
SELECT DISTINCT 62 * 24 * - COUNT ( * ) AS col2
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT + MAX( - COALESCE ( + 32, ( 55 ) - 9 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-7633
SELECT + MAX ( - COALESCE ( + 32, ( 55 ) - 9 ) )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT + - MAX( + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-7634
SELECT + - MAX ( + 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT COUNT( + 12 ) - - + 19 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-7635
SELECT COUNT ( + 12 ) - - + 19 AS col2
----
20

query I rowsort
SELECT DISTINCT 77 + - + 71 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7637
SELECT - 78, + ( + COUNT( * ) ) AS col2
----
-78
1

skipif mysql # not compatible
query II rowsort label-7637
SELECT - 78, + ( + COUNT ( * ) ) AS col2
----
-78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - MAX( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-7639
SELECT - MAX ( 74 )
----
-74

query I rowsort
SELECT DISTINCT - - 98 AS col0
----
98

query I rowsort
SELECT ALL + - 28 * - 71 AS col0
----
1988

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT MAX( DISTINCT + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-7642
SELECT MAX ( DISTINCT + 8 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT DISTINCT ( - MAX( DISTINCT 77 ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT ( - MAX ( DISTINCT 77 ) ) AS col1
----
-77

query I rowsort
SELECT ALL ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL + COUNT( * ) * + 75
----
75

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + COUNT ( * ) * + 75
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT DISTINCT ( ( + CAST( 70 AS SIGNED ) ) )
----
70

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT ( ( + CAST ( 70 AS INTEGER ) ) )
----
70

query I rowsort
SELECT DISTINCT 98 col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7648
SELECT ALL - CAST( NULL AS SIGNED ) + 69 + 31 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7648
SELECT ALL - CAST ( NULL AS INTEGER ) + 69 + 31 AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7649
SELECT ALL - 8 / - CAST( NULL AS SIGNED ) + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - 8 / - CAST ( NULL AS INTEGER ) + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7650
SELECT + + COUNT( * ) AS col1, COUNT( * ) * - 72 + + 2 AS col1
----
1
-70

skipif mysql # not compatible
query II rowsort label-7650
SELECT + + COUNT ( * ) AS col1, COUNT ( * ) * - 72 + + 2 AS col1
----
1
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - + COUNT( * ) + - + COUNT( ALL - - 23 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-7651
SELECT - + COUNT ( * ) + - + COUNT ( ALL - - 23 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT ALL - + 21 * - COUNT( * ) + + COUNT( * ) - - 95
----
117

skipif mysql # not compatible
query I rowsort label-7652
SELECT ALL - + 21 * - COUNT ( * ) + + COUNT ( * ) - - 95
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT ALL + MIN( DISTINCT + + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL + MIN ( DISTINCT + + 15 ) AS col2
----
15

query I rowsort
SELECT DISTINCT + 45 AS col0
----
45

query II rowsort
SELECT DISTINCT + 51 AS col1, 44
----
51
44

query I rowsort
SELECT ALL ( 20 ) AS col0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7657
SELECT ALL COUNT( * ) AS col2, COUNT( + + 63 )
----
1
1

skipif mysql # not compatible
query II rowsort label-7657
SELECT ALL COUNT ( * ) AS col2, COUNT ( + + 63 )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT 8 + + COUNT( * ) + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-7658
SELECT 8 + + COUNT ( * ) + COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT COUNT( * ) * 74
----
74

skipif mysql # not compatible
query I rowsort label-7660
SELECT COUNT ( * ) * 74
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT COUNT( - - 80 )
----
1

skipif mysql # not compatible
query I rowsort label-7661
SELECT COUNT ( - - 80 )
----
1

query I rowsort
SELECT ALL 18 + 7
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7663
SELECT + 0 DIV + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT + 0 / + COUNT ( * )
----
0

query I rowsort
SELECT ALL 64 + 53 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL + 75 * ( - + COUNT( * ) ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + 75 * ( - + COUNT ( * ) ) AS col2
----
-75

query I rowsort
SELECT DISTINCT + ( - 38 )
----
-38

query I rowsort
SELECT ALL + ( - + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT - COALESCE ( - + CASE + + 77 WHEN + 4 - - 37 THEN 77 END, COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7668
SELECT - COALESCE ( - + CASE + + 77 WHEN + 4 - - 37 THEN 77 END, COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7669
SELECT + CAST( - 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-7669
SELECT + CAST ( - 34 AS INTEGER )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7670
SELECT DISTINCT - MAX( DISTINCT + CAST( + 43 AS SIGNED ) ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT - MAX ( DISTINCT + CAST ( + 43 AS INTEGER ) ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT ( - + NULLIF ( - 57, - COUNT( * ) ) ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT ( - + NULLIF ( - 57, - COUNT ( * ) ) ) AS col0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7672
SELECT + CAST( NULL AS SIGNED ) AS col1, - MIN( - 41 ) AS col2
----
NULL
41

skipif mysql # not compatible
query II rowsort label-7672
SELECT + CAST ( NULL AS INTEGER ) AS col1, - MIN ( - 41 ) AS col2
----
NULL
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT + 35 * - 8 * + 35 * + COUNT( * ) AS col0
----
-9800

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT + 35 * - 8 * + 35 * + COUNT ( * ) AS col0
----
-9800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7674
SELECT + SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7674
SELECT + SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT DISTINCT - 88 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT - 88 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT ALL MIN( ALL + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL MIN ( ALL + - 50 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT ALL + CAST( NULL AS SIGNED ) + + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + CAST ( NULL AS INTEGER ) + + 21 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7678
SELECT ALL - COUNT( * ), 35 AS col0
----
-1
35

skipif mysql # not compatible
query II rowsort label-7678
SELECT ALL - COUNT ( * ), 35 AS col0
----
-1
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7679
SELECT + COUNT( * ) AS col1, + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7679
SELECT + COUNT ( * ) AS col1, + COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7680
SELECT ALL - 86 DIV - COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL - 86 / - COUNT ( * ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7681
SELECT + - CAST( NULL AS SIGNED ) AS col2, 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-7681
SELECT + - CAST ( NULL AS INTEGER ) AS col2, 36
----
NULL
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT + 12 * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-7682
SELECT + 12 * COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT ( + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + 67 * + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-7684
SELECT + 67 * + COUNT ( * )
----
67

query I rowsort
SELECT ALL 6 * - + 62
----
-372

query I rowsort
SELECT 18 - - 8
----
26

query I rowsort
SELECT + 63 * - 51 * - 44
----
141372

query I rowsort
SELECT DISTINCT - 47 * + 59
----
-2773

query I rowsort
SELECT - 48 * + 72
----
-3456

onlyif mysql # DIV for integer division: 
query I rowsort label-7690
SELECT DISTINCT ( 36 ) DIV - 98 + + + 8
----
8

skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT ( 36 ) / - 98 + + + 8
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7691
SELECT ALL - COUNT( * ) DIV - 16 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL - COUNT ( * ) / - 16 AS col0
----
0

query II rowsort
SELECT + 65 AS col0, 51 AS col1
----
65
51

query I rowsort
SELECT DISTINCT + + 56 AS col0
----
56

query I rowsort
SELECT ALL - 26 * 49 AS col0
----
-1274

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT + - 21 + ( COUNT( DISTINCT - 65 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-7695
SELECT + - 21 + ( COUNT ( DISTINCT - 65 ) )
----
-20

query I rowsort
SELECT - 55 * ( - 91 ) AS col1
----
5005

query I rowsort
SELECT + + 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT 66 * - ( + COUNT( * ) ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT 66 * - ( + COUNT ( * ) ) col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT COUNT( ALL - 68 ) + - - 25
----
26

skipif mysql # not compatible
query I rowsort label-7699
SELECT COUNT ( ALL - 68 ) + - - 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ALL - MAX( - 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL - MAX ( - 99 ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT - - COUNT( * ) + - + 87 + + 99
----
13

skipif mysql # not compatible
query I rowsort label-7701
SELECT - - COUNT ( * ) + - + 87 + + 99
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL COUNT( * ) + - 14 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL COUNT ( * ) + - 14 AS col0
----
-13

query I rowsort
SELECT + 17 * 94
----
1598

query I rowsort
SELECT - 81 - + + ( + 25 )
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT + - COUNT( * ) * - 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7705
SELECT + - COUNT ( * ) * - 47 AS col1
----
47

query I rowsort
SELECT ( 24 )
----
24

query I rowsort
SELECT COALESCE ( - + 44, + 85 ) AS col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT + 87 DIV + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7708
SELECT + 87 / + COUNT ( * )
----
87

query I rowsort
SELECT - 58 + - - 21 AS col1
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-7710
SELECT 31 DIV - 20 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7710
SELECT 31 / - 20 AS col2
----
-1

query I rowsort
SELECT ALL - + 41 AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7712
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 29 AS col1, 17 + + 19 AS col0
----
-29
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL - COUNT( - - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - COUNT ( - - 57 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL + COUNT( * ) * + 29
----
29

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL + COUNT ( * ) * + 29
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7716
SELECT 18 + COUNT( * ) * ( - 37 ), + CAST( NULL AS SIGNED ) col1
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-7716
SELECT 18 + COUNT ( * ) * ( - 37 ), + CAST ( NULL AS INTEGER ) col1
----
-19
NULL

query I rowsort
SELECT ALL 70 AS col2
----
70

query I rowsort
SELECT - 54 + - + 40
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7719
SELECT + 94 + + CAST( + - 51 AS SIGNED ) col2
----
43

skipif mysql # not compatible
query I rowsort label-7719
SELECT + 94 + + CAST ( + - 51 AS INTEGER ) col2
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7720
SELECT - + CAST( - MIN( DISTINCT + - 0 ) AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7720
SELECT - + CAST ( - MIN ( DISTINCT + - 0 ) AS INTEGER ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT + + COUNT( * ) + - 28 * + 2
----
-55

skipif mysql # not compatible
query I rowsort label-7721
SELECT + + COUNT ( * ) + - 28 * + 2
----
-55

query I rowsort
SELECT DISTINCT + 86 col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7723
SELECT ALL - 55 * - - CAST( NULL AS SIGNED ), 52 col2
----
NULL
52

skipif mysql # not compatible
query II rowsort label-7723
SELECT ALL - 55 * - - CAST ( NULL AS INTEGER ), 52 col2
----
NULL
52

query I rowsort
SELECT - - 25 * - + NULLIF ( 91, + 5 ) * - 76
----
172900

query I rowsort
SELECT ALL - 10 * - + 91
----
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7726
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7726
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7727
SELECT DISTINCT + CAST( - - 36 AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT + CAST ( - - 36 AS INTEGER ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7728
SELECT ALL + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - - 98 AS col0
----
98

query I rowsort
SELECT ALL + ( - 61 )
----
-61

query I rowsort
SELECT 41 * 19 + - 93
----
686

onlyif mysql # aggregate syntax: 
query I rowsort label-7732
SELECT ALL - + 64 + + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL - + 64 + + COUNT ( * )
----
-63

query I rowsort
SELECT + 23 col1
----
23

query I rowsort
SELECT ALL + 32 * + - 27 col2
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ALL NULLIF ( - 87, - COUNT( * ) / - 13 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL NULLIF ( - 87, - COUNT ( * ) / - 13 ) AS col1
----
-87

query I rowsort
SELECT 0 + 9
----
9

query I rowsort
SELECT - 50 + + 80
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT - 42 + - SUM( ALL - 66 ) * + 98 AS col0
----
6426

skipif mysql # not compatible
query I rowsort label-7738
SELECT - 42 + - SUM ( ALL - 66 ) * + 98 AS col0
----
6426

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL COALESCE ( COUNT( * ), + - 86, - + COUNT( * ) * 34 )
----
1

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL COALESCE ( COUNT ( * ), + - 86, - + COUNT ( * ) * 34 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT ALL CAST( 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-7740
SELECT ALL CAST ( 66 AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT + 35 * - + COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-7741
SELECT + 35 * - + COUNT ( * )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7742
SELECT - + NULLIF ( 30, - + ( + ( + CAST( NULL AS SIGNED ) ) ) )
----
-30

skipif mysql # not compatible
query I rowsort label-7742
SELECT - + NULLIF ( 30, - + ( + ( + CAST ( NULL AS INTEGER ) ) ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT COUNT( * ) + + 88
----
89

skipif mysql # not compatible
query I rowsort label-7743
SELECT COUNT ( * ) + + 88
----
89

query I rowsort
SELECT 65 * + + 34 AS col2
----
2210

query I rowsort
SELECT 16 + + - 60
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT ALL 71 + + - MIN( + 25 )
----
46

skipif mysql # not compatible
query I rowsort label-7746
SELECT ALL 71 + + - MIN ( + 25 )
----
46

query I rowsort
SELECT 7 * + - 52
----
-364

query I rowsort
SELECT ALL - ( - 90 ) + + + 56
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - - NULLIF ( - COUNT( * ), + - 55 * COUNT( * ) / - 63 ) * + 7 - + + 81 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7749
SELECT - - NULLIF ( - COUNT ( * ), + - 55 * COUNT ( * ) / - 63 ) * + 7 - + + 81 AS col1
----
-88

query I rowsort
SELECT ALL + - 40 * - + 31 - + 80
----
1160

query I rowsort
SELECT DISTINCT + ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7752
SELECT COUNT( * ) AS col1, 94 AS col1
----
1
94

skipif mysql # not compatible
query II rowsort label-7752
SELECT COUNT ( * ) AS col1, 94 AS col1
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT DISTINCT - 21 + - + COUNT( DISTINCT + 67 )
----
-22

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - 21 + - + COUNT ( DISTINCT + 67 )
----
-22

query I rowsort
SELECT - 79 * - - 54
----
-4266

onlyif mysql # DIV for integer division: 
query I rowsort label-7755
SELECT DISTINCT - 23 DIV 7 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-7755
SELECT DISTINCT - 23 / 7 AS col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT CAST( NULL AS SIGNED ) * 91 * + 30 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT CAST ( NULL AS INTEGER ) * 91 * + 30 col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + 31 ) * + 72
----
-2232

query I rowsort
SELECT ALL - ( - - 9 )
----
-9

query I rowsort
SELECT DISTINCT + 29 * - - 37
----
1073

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT 34 DIV 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7760
SELECT 34 / 87 AS col2
----
0

query I rowsort
SELECT DISTINCT 68 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL MIN( DISTINCT 68 )
----
68

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL MIN ( DISTINCT 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT DISTINCT SUM( + 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT SUM ( + 72 ) AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7764
SELECT ALL 3 DIV 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL 3 / 71 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT DISTINCT SUM( DISTINCT + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT SUM ( DISTINCT + 96 ) AS col1
----
96

query I rowsort
SELECT - 31 + - 8 AS col0
----
-39

query I rowsort
SELECT ALL + 89 col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7768
SELECT + COUNT( * ) DIV - ( - 32 * - 60 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7768
SELECT + COUNT ( * ) / - ( - 32 * - 60 ) AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7769
SELECT DISTINCT 97 * CAST( NULL AS DECIMAL ) + - 64 / 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT 97 * CAST ( NULL AS REAL ) + - 64 / 47 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7770
SELECT ALL + CAST( + 93 AS SIGNED ) * - COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL + CAST ( + 93 AS INTEGER ) * - COUNT ( * ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT ALL + ( SUM( 7 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7771
SELECT ALL + ( SUM ( 7 ) ) AS col0
----
7

query I rowsort
SELECT + ( 59 )
----
59

query I rowsort
SELECT DISTINCT 30 * - 51 AS col2
----
-1530

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT DISTINCT + COUNT( * ) + - 76
----
-75

skipif mysql # not compatible
query I rowsort label-7774
SELECT DISTINCT + COUNT ( * ) + - 76
----
-75

query I rowsort
SELECT - 53 * + 90
----
-4770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT + CAST( 52 AS SIGNED ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-7776
SELECT + CAST ( 52 AS INTEGER ) AS col2
----
52

query I rowsort
SELECT ALL - + ( 2 ) AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT CAST( ( 97 ) AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-7778
SELECT CAST ( ( 97 ) AS INTEGER ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT DISTINCT 93 - + COUNT( * ) col0
----
92

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT 93 - + COUNT ( * ) col0
----
92

query I rowsort
SELECT ALL 69 - + + 29 AS col2
----
40

query I rowsort
SELECT DISTINCT ( - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - ( + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7782
SELECT - ( + COUNT ( * ) ) col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7783
SELECT - CAST( NULL AS DECIMAL ) AS col1, 17
----
NULL
17

skipif mysql # not compatible
query II rowsort label-7783
SELECT - CAST ( NULL AS REAL ) AS col1, 17
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT SUM( DISTINCT 38 ) + + COUNT( * ) * 88
----
126

skipif mysql # not compatible
query I rowsort label-7784
SELECT SUM ( DISTINCT 38 ) + + COUNT ( * ) * 88
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT ALL 88 * 33, - COUNT( * ) col0
----
2904
-1

skipif mysql # not compatible
query II rowsort label-7785
SELECT ALL 88 * 33, - COUNT ( * ) col0
----
2904
-1

query I rowsort
SELECT + + 92 * - 97 + - 11 + 80 - + 28 * 8 * - 29
----
-2359

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT - 94 * + - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7787
SELECT - 94 * + - COUNT ( * ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7789
SELECT - COUNT( * ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT - COUNT ( * ) / 28
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7790
SELECT DISTINCT COUNT( * ) DIV + ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT COUNT ( * ) / + ( + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL + - 92 AS col1
----
-92

query I rowsort
SELECT + - ( + 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT COUNT( DISTINCT + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-7793
SELECT COUNT ( DISTINCT + 18 )
----
1

query I rowsort
SELECT - ( + - 2 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7795
SELECT - 71 * + + MAX( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7795
SELECT - 71 * + + MAX ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT + 17 + - 68 * + 7 * 69 * COUNT( * ) col0
----
-32827

skipif mysql # not compatible
query I rowsort label-7796
SELECT + 17 + - 68 * + 7 * 69 * COUNT ( * ) col0
----
-32827

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT 7 + + COUNT( * ) - - 38 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-7797
SELECT 7 + + COUNT ( * ) - - 38 AS col0
----
46

query I rowsort
SELECT DISTINCT - - ( - 92 ) AS col1
----
-92

query I rowsort
SELECT 93 * - 51 - + - 43 AS col2
----
-4700

query I rowsort
SELECT DISTINCT - - 25 col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT CAST( NULL AS SIGNED ) / - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-7801
SELECT CAST ( NULL AS INTEGER ) / - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL 23 * + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL 23 * + COUNT ( * ) AS col0
----
23

query I rowsort
SELECT - 88 col2
----
-88

query I rowsort
SELECT DISTINCT 5 col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7805
SELECT ALL + CAST( - 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + CAST ( - 69 AS INTEGER )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL 82 + - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL 82 + - COUNT ( * ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - COUNT( + - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-7807
SELECT - COUNT ( + - 57 )
----
-1

query I rowsort
SELECT ALL + 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL - + MAX( + 16 ) * 28 * - COUNT( * ) AS col1
----
448

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL - + MAX ( + 16 ) * 28 * - COUNT ( * ) AS col1
----
448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7810
SELECT + COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT + COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT + ( - 81 ) * + COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-7811
SELECT + ( - 81 ) * + COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7812
SELECT ( - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7813
SELECT ALL - MIN( ALL - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7814
SELECT COUNT( * ) * COUNT( ALL - ( + - CAST( NULL AS DECIMAL ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7814
SELECT COUNT ( * ) * COUNT ( ALL - ( + - CAST ( NULL AS REAL ) ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT - 64 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT - MIN( + 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7816
SELECT - MIN ( + 1 ) AS col0
----
-1

query II rowsort
SELECT 57 AS col1, 43
----
57
43

onlyif mysql # aggregate syntax: 
query II rowsort label-7818
SELECT 92 AS col0, COUNT( * )
----
92
1

skipif mysql # not compatible
query II rowsort label-7818
SELECT 92 AS col0, COUNT ( * )
----
92
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT COUNT( * ) * 17 + - + ( + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-7819
SELECT COUNT ( * ) * 17 + - + ( + 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL - COUNT( - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL - COUNT ( - 11 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7821
SELECT - - CAST( NULL AS SIGNED ) * + + 91 + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT - - CAST ( NULL AS INTEGER ) * + + 91 + + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + 45 - + 76 AS col2
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7823
SELECT - CAST( + 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-7823
SELECT - CAST ( + 88 AS INTEGER ) AS col0
----
-88

query I rowsort
SELECT DISTINCT ( - 21 ) AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7825
SELECT CAST( NULL AS SIGNED ), 75 + - 67 + + 15 + 61 col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-7825
SELECT CAST ( NULL AS INTEGER ), 75 + - 67 + + 15 + 61 col2
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT ( COUNT( * ) ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-7826
SELECT ( COUNT ( * ) ) * 9
----
9

query I rowsort
SELECT - ( - 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL + COUNT( 20 )
----
1

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL + COUNT ( 20 )
----
1

query I rowsort
SELECT ALL + + 58 AS col0
----
58

query I rowsort
SELECT ALL + + 97 AS col0
----
97

query I rowsort
SELECT ( - 84 )
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7832
SELECT ALL + 73 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL + 73 / 45
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7833
SELECT DISTINCT + - 90 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT + - 90 / + 93
----
0

query I rowsort
SELECT + - 73 - - 51
----
-22

query I rowsort
SELECT ALL COALESCE ( + 81, + NULLIF ( ( + 84 ), + - 37 ) ) AS col1
----
81

query I rowsort
SELECT - 87 + - 49 col1
----
-136

query I rowsort
SELECT ALL - - 43
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT ALL CAST( NULL AS SIGNED ) - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL CAST ( NULL AS INTEGER ) - 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT - COUNT( * ) AS col1, + 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-7839
SELECT - COUNT ( * ) AS col1, + 98 AS col2
----
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT - 70 * - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7840
SELECT - 70 * - COUNT ( * ) AS col2
----
70

query I rowsort
SELECT ALL - + 50 AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7842
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - - 60 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - - 60 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT - COUNT( * ) + 21
----
20

skipif mysql # not compatible
query I rowsort label-7843
SELECT - COUNT ( * ) + 21
----
20

query I rowsort
SELECT DISTINCT - 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT ALL 75 * + COUNT( * ) + + 45
----
120

skipif mysql # not compatible
query I rowsort label-7845
SELECT ALL 75 * + COUNT ( * ) + + 45
----
120

query I rowsort
SELECT - - 79 AS col2
----
79

query I rowsort
SELECT DISTINCT + + 82 AS col2
----
82

query I rowsort
SELECT ALL + - 0 col0
----
0

query I rowsort
SELECT + - 28 AS col1
----
-28

query I rowsort
SELECT DISTINCT + 99 AS col2
----
99

query I rowsort
SELECT - 81 * 57 AS col1
----
-4617

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT ALL CAST( 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL CAST ( 34 AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ALL - COUNT( * ) + + ( + - COUNT( * ) ) * + 70 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7853
SELECT ALL - COUNT ( * ) + + ( + - COUNT ( * ) ) * + 70 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT + + 28 * - + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-7854
SELECT + + 28 * - + COUNT ( * )
----
-28

query I rowsort
SELECT DISTINCT - 24 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT DISTINCT - COUNT( * ) + - 60
----
-61

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT - COUNT ( * ) + - 60
----
-61

query I rowsort
SELECT ALL + ( 69 )
----
69

query I rowsort
SELECT DISTINCT - 53 + + 7
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT ALL - 2 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL - 2 / 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7860
SELECT ALL - 96 * 99 col0, - SUM( + + 31 ) col1
----
-9504
-31

skipif mysql # not compatible
query II rowsort label-7860
SELECT ALL - 96 * 99 col0, - SUM ( + + 31 ) col1
----
-9504
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT ALL COUNT( * ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL COUNT ( * ) + - - COUNT ( * )
----
2

query I rowsort
SELECT - - 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL MIN( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL MIN ( + 44 )
----
44

query I rowsort
SELECT ALL - 56 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT - MIN( - 57 ) col1
----
57

skipif mysql # not compatible
query I rowsort label-7865
SELECT - MIN ( - 57 ) col1
----
57

query I rowsort
SELECT + ( 45 )
----
45

query I rowsort
SELECT DISTINCT 26 * + 15
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT ALL + 80 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + 80 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT - 98 * - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-7869
SELECT - 98 * - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT DISTINCT + MIN( ALL 61 )
----
61

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + MIN ( ALL 61 )
----
61

query I rowsort
SELECT - 38 * - 56 AS col0
----
2128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7872
SELECT ALL + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7873
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT ALL + 85 + - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL + 85 + - COUNT ( * )
----
84

query I rowsort
SELECT ALL 40 + - - 66 AS col0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT DISTINCT - 95 * - + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7876
SELECT DISTINCT - 95 * - + COUNT ( * )
----
95

query I rowsort
SELECT ALL + + 12 + - - ( - - 73 )
----
85

query I rowsort
SELECT 88 + + 64 AS col0
----
152

query I rowsort
SELECT - + ( + 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT MAX( + - 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT MAX ( + - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT ALL 27 * SUM( DISTINCT 59 ) * + 13
----
20709

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL 27 * SUM ( DISTINCT 59 ) * + 13
----
20709

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT COUNT( * ) * + MIN( DISTINCT - - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-7882
SELECT COUNT ( * ) * + MIN ( DISTINCT - - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT + - MIN( - 61 ) col0
----
61

skipif mysql # not compatible
query I rowsort label-7883
SELECT + - MIN ( - 61 ) col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7884
SELECT ALL ( - COUNT( * ) ), - CAST( NULL AS SIGNED ) col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7884
SELECT ALL ( - COUNT ( * ) ), - CAST ( NULL AS INTEGER ) col0
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7885
SELECT + + COUNT( ALL - 58 ) AS col2, CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7885
SELECT + + COUNT ( ALL - 58 ) AS col2, CAST ( NULL AS REAL )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT + MIN( DISTINCT - - 71 ) + - - 49
----
120

skipif mysql # not compatible
query I rowsort label-7886
SELECT + MIN ( DISTINCT - - 71 ) + - - 49
----
120

query I rowsort
SELECT + 52 * + 58 AS col2
----
3016

query I rowsort
SELECT DISTINCT ( + + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL MIN( ALL - 52 ) col0
----
-52

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL MIN ( ALL - 52 ) col0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7890
SELECT DISTINCT - 46 DIV 38 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - 46 / 38 col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7891
SELECT - 92 + + CAST( + ( - CAST( + 15 AS DECIMAL ) ) AS SIGNED ) AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-7891
SELECT - 92 + + CAST ( + ( - CAST ( + 15 AS REAL ) ) AS INTEGER ) AS col1
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT ALL - CAST( NULL AS SIGNED ) * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL - CAST ( NULL AS INTEGER ) * + 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT ALL - + COUNT( + 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - + COUNT ( + 90 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT + 49 AS col0, COUNT( * ) + + 38 AS col2
----
49
39

skipif mysql # not compatible
query II rowsort label-7894
SELECT + 49 AS col0, COUNT ( * ) + + 38 AS col2
----
49
39

query I rowsort
SELECT ALL - + 22
----
-22

query I rowsort
SELECT DISTINCT 58 * - 78
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL - + MIN( ALL - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - + MIN ( ALL - 35 )
----
35

query I rowsort
SELECT ALL - - 40 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT + COUNT( * ) * + + NULLIF ( + - 33, + + COUNT( * ) ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + COUNT ( * ) * + + NULLIF ( + - 33, + + COUNT ( * ) ) AS col1
----
-33

query I rowsort
SELECT 1 + + + 8 + - - 70 AS col2
----
79

query I rowsort
SELECT + 45 * - 85 * - + 88 AS col1
----
336600

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT DISTINCT + 27 * COUNT( * ) + ( - 24 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT + 27 * COUNT ( * ) + ( - 24 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT MIN( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-7903
SELECT MIN ( ALL 71 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7904
SELECT ALL - COUNT( * ) DIV 2
----
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL - COUNT ( * ) / 2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT ALL - CAST( - 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - CAST ( - 18 AS INTEGER ) AS col0
----
18

query I rowsort
SELECT ALL + + 11
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7907
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT - ( - MAX( - 85 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - ( - MAX ( - 85 ) )
----
-85

query I rowsort
SELECT DISTINCT 25 col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL COUNT( * ) * 8
----
8

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL COUNT ( * ) * 8
----
8

query I rowsort
SELECT + - 24
----
-24

query I rowsort
SELECT ALL - 42 * 57
----
-2394

onlyif mysql # aggregate syntax: 
query II rowsort label-7913
SELECT DISTINCT COALESCE ( - 61, - COUNT( * ) ) AS col2, + COUNT( * ) AS col2
----
-61
1

skipif mysql # not compatible
query II rowsort label-7913
SELECT DISTINCT COALESCE ( - 61, - COUNT ( * ) ) AS col2, + COUNT ( * ) AS col2
----
-61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT + 91 + - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-7914
SELECT + 91 + - COUNT ( * ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT DISTINCT + + COUNT( * ) + + - SUM( - 58 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7915
SELECT DISTINCT + + COUNT ( * ) + + - SUM ( - 58 ) AS col2
----
59

query I rowsort
SELECT - 98 + 87 AS col0
----
-11

query I rowsort
SELECT - ( 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT + 2 * ( COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7918
SELECT + 2 * ( COUNT ( * ) ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7919
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT - + 31 AS col1
----
-31

query I rowsort
SELECT - + 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT COUNT( ALL - - 53 ) - + 40 * SUM( ALL - 67 ) AS col0
----
2681

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT COUNT ( ALL - - 53 ) - + 40 * SUM ( ALL - 67 ) AS col0
----
2681

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7923
SELECT CAST( - CAST( + ( + - 97 ) AS DECIMAL ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-7923
SELECT CAST ( - CAST ( + ( + - 97 ) AS REAL ) AS INTEGER )
----
97

query I rowsort
SELECT ALL + 54 col2
----
54

query I rowsort
SELECT ( - 79 ) AS col2
----
-79

query I rowsort
SELECT + + 28 * - 85
----
-2380

query I rowsort
SELECT ( 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT 76 * - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-7928
SELECT 76 * - COUNT ( * )
----
-76

query I rowsort
SELECT - + ( - - 59 ) AS col2
----
-59

query I rowsort
SELECT 83 - - + 7 * 20 col1
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7931
SELECT DISTINCT + COUNT( * ) + CAST( - + 83 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT + COUNT ( * ) + CAST ( - + 83 AS INTEGER )
----
-82

query II rowsort
SELECT 42 AS col2, 94
----
42
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7933
SELECT + 10 col1, - CAST( NULL AS SIGNED ) AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-7933
SELECT + 10 col1, - CAST ( NULL AS INTEGER ) AS col2
----
10
NULL

query I rowsort
SELECT ALL - - ( 19 ) AS col2
----
19

query I rowsort
SELECT 45 + - 60 * - - 26 AS col1
----
-1515

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT ALL + COUNT( * ) * + 73 * 88 AS col0
----
6424

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL + COUNT ( * ) * + 73 * 88 AS col0
----
6424

query I rowsort
SELECT + COALESCE ( 27, NULLIF ( + + 8, - + 28 ) )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT - - 71 + + ( + - NULLIF ( - CAST( NULL AS SIGNED ), 1 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT - - 71 + + ( + - NULLIF ( - CAST ( NULL AS INTEGER ), 1 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT - COUNT( ALL - 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-7939
SELECT - COUNT ( ALL - 73 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT DISTINCT 73 + - - COUNT( * ) + + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-7940
SELECT DISTINCT 73 + - - COUNT ( * ) + + COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - COUNT( + 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7941
SELECT - COUNT ( + 85 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7942
SELECT ALL COUNT( * ) * + - 91
----
-91

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL COUNT ( * ) * + - 91
----
-91

query II rowsort
SELECT ALL 38 * + + 35 * + 80 AS col0, + 65
----
106400
65

query I rowsort
SELECT DISTINCT + - 79
----
-79

query I rowsort
SELECT ALL ( - 88 ) AS col2
----
-88

query I rowsort
SELECT ALL 72 + 49
----
121

query I rowsort
SELECT + + 56 AS col1
----
56

query I rowsort
SELECT + 12 col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT ALL 63 + + + ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL 63 + + + ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT ( + + CAST( 3 AS SIGNED ) ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT ( + + CAST ( 3 AS INTEGER ) ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7951
SELECT ALL - COUNT( * ) DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL - COUNT ( * ) / 59
----
0

query I rowsort
SELECT + 10 * + 68
----
680

query I rowsort
SELECT 76 * 40 AS col2
----
3040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7954
SELECT - CAST( + 64 AS SIGNED ) * ( - MIN( ALL + 75 ) ) AS col2
----
4800

skipif mysql # not compatible
query I rowsort label-7954
SELECT - CAST ( + 64 AS INTEGER ) * ( - MIN ( ALL + 75 ) ) AS col2
----
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7955
SELECT - CAST( NULL AS SIGNED ) + - - MIN( DISTINCT 20 ) + COUNT( + + 15 ) * - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7955
SELECT - CAST ( NULL AS INTEGER ) + - - MIN ( DISTINCT 20 ) + COUNT ( + + 15 ) * - 43
----
NULL

query I rowsort
SELECT 18 + + + 98
----
116

query II rowsort
SELECT DISTINCT - 62 AS col2, 57
----
-62
57

query I rowsort
SELECT ALL + + 67 + 95 AS col2
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT - 15 - - COUNT( * ) - 27
----
-41

skipif mysql # not compatible
query I rowsort label-7959
SELECT - 15 - - COUNT ( * ) - 27
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL + MIN( DISTINCT + 0 ) * - 48
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + MIN ( DISTINCT + 0 ) * - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT MIN( - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-7961
SELECT MIN ( - 29 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7962
SELECT CAST( NULL AS SIGNED ) / + - CAST( - MIN( ALL + 15 ) AS DECIMAL ) - 74 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7962
SELECT CAST ( NULL AS INTEGER ) / + - CAST ( - MIN ( ALL + 15 ) AS REAL ) - 74 AS col0
----
NULL

query I rowsort
SELECT - 67 * + 63 + + 52
----
-4169

query I rowsort
SELECT ALL - 0 + - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT ALL + 80 * COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-7965
SELECT ALL + 80 * COUNT ( * ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT DISTINCT - ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7966
SELECT DISTINCT - ( + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL COUNT( * ) * + 7 * + - 71 AS col1
----
-497

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL COUNT ( * ) * + 7 * + - 71 AS col1
----
-497

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL 27 + + COUNT( * ) + + - 26
----
2

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL 27 + + COUNT ( * ) + + - 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT COUNT( * ) + + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT COUNT ( * ) + + 81 AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7970
SELECT ALL CAST( + 40 AS SIGNED ) + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL CAST ( + 40 AS INTEGER ) + + COUNT ( * )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + - MAX( DISTINCT - 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7971
SELECT + - MAX ( DISTINCT - 78 ) AS col0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT - 95 + CAST( 70 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-7972
SELECT - 95 + CAST ( 70 AS INTEGER ) AS col1
----
-25

query I rowsort
SELECT ALL - - 5 - 50
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT ALL MAX( ALL 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL MAX ( ALL 3 ) AS col2
----
3

query I rowsort
SELECT 92 * - - 70
----
6440

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7976
SELECT + CAST( NULL AS DECIMAL ) / 27 + + 63 / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT + CAST ( NULL AS REAL ) / 27 + + 63 / 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT + COUNT( * ) - - 75
----
76

skipif mysql # not compatible
query I rowsort label-7977
SELECT + COUNT ( * ) - - 75
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT + MAX( ALL - - 75 ) col2
----
75

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT + MAX ( ALL - - 75 ) col2
----
75

query I rowsort
SELECT DISTINCT + + 67 AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7980
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1, 20 col0
----
1
20

skipif mysql # not compatible
query II rowsort label-7980
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 20 col0
----
1
20

query I rowsort
SELECT DISTINCT + 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT COUNT( * ) * 42
----
42

skipif mysql # not compatible
query I rowsort label-7982
SELECT COUNT ( * ) * 42
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7983
SELECT ALL 15 col2, COUNT( * )
----
15
1

skipif mysql # not compatible
query II rowsort label-7983
SELECT ALL 15 col2, COUNT ( * )
----
15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT - MIN( DISTINCT 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7984
SELECT - MIN ( DISTINCT 45 ) AS col1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL 62 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL 62 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7986
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + - 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL ( - MAX( 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL ( - MAX ( 25 ) )
----
-25

query I rowsort
SELECT + 14 + - - ( + + 5 )
----
19

query I rowsort
SELECT DISTINCT ( + + 1 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT DISTINCT + MAX( ALL - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT + MAX ( ALL - 34 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT ALL CAST( - + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL CAST ( - + 22 AS INTEGER )
----
-22

query I rowsort
SELECT - 80 + - 48
----
-128

query I rowsort
SELECT - 27 - - 53 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - COUNT( * ) * + 16
----
-16

skipif mysql # not compatible
query I rowsort label-7995
SELECT - COUNT ( * ) * + 16
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7996
SELECT DISTINCT CAST( + 53 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT CAST ( + 53 AS INTEGER ) AS col1
----
53

query I rowsort
SELECT ALL 47 * 46 AS col1
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ( COUNT( * ) ) + - 38 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7998
SELECT ( COUNT ( * ) ) + - 38 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ( COUNT( * ) ) * + 44
----
44

skipif mysql # not compatible
query I rowsort label-7999
SELECT ( COUNT ( * ) ) * + 44
----
44

query I rowsort
SELECT ALL - 92 * 15 AS col1
----
-1380

query I rowsort
SELECT ALL 3 * 84 AS col2
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL + 20 + - COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL + 20 + - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT + 23 + COUNT( * ) * 96 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-8003
SELECT + 23 + COUNT ( * ) * 96 AS col1
----
119

query I rowsort
SELECT - 90 + 72 AS col1
----
-18

query I rowsort
SELECT 81 + 94 * 53 AS col1
----
5063

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT DISTINCT - - MAX( 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8006
SELECT DISTINCT - - MAX ( 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT + SUM( + + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-8007
SELECT + SUM ( + + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT 80 * SUM( - 15 ) AS col2
----
-1200

skipif mysql # not compatible
query I rowsort label-8008
SELECT 80 * SUM ( - 15 ) AS col2
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT DISTINCT - 75 * + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT - 75 * + COUNT ( * )
----
-75

query I rowsort
SELECT ( - + 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT - + 9 - ( + COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-8011
SELECT - + 9 - ( + COUNT ( * ) )
----
-10

query I rowsort
SELECT ALL + NULLIF ( - 65, 6 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL 86 * - - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL 86 * - - COUNT ( * )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT MAX( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 42 col0
----
42

query I rowsort
SELECT + 35 + - 70 col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT - 62 + + COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8017
SELECT - 62 + + COUNT ( * ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL COUNT( * ) + - 21
----
-20

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL COUNT ( * ) + - 21
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8019
SELECT DISTINCT COUNT( * ) / COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT 80 + - 8 * COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8020
SELECT 80 + - 8 * COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT 12 AS col2, COUNT( * )
----
12
1

skipif mysql # not compatible
query II rowsort label-8021
SELECT 12 AS col2, COUNT ( * )
----
12
1

query I rowsort
SELECT ALL - 47 col1
----
-47

query I rowsort
SELECT - - 53 AS col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT + COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8024
SELECT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8025
SELECT ALL 55 * - 47 * + + CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL 55 * - 47 * + + CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT + ( - ( - 12 ) ) col0
----
12

query I rowsort
SELECT DISTINCT + ( - + 78 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT ALL - + 63 DIV 62 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - + 63 / 62 col2
----
-1

query I rowsort
SELECT DISTINCT + - 31
----
-31

query I rowsort
SELECT 6 + 74 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT COUNT( * ) + - 15
----
-14

skipif mysql # not compatible
query I rowsort label-8031
SELECT COUNT ( * ) + - 15
----
-14

query I rowsort
SELECT ALL - 71 + - - 75
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT SUM( 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8033
SELECT SUM ( 47 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT COUNT( * ) - - 24 + - 65 * 46 AS col1
----
-2965

skipif mysql # not compatible
query I rowsort label-8034
SELECT COUNT ( * ) - - 24 + - 65 * 46 AS col1
----
-2965

query I rowsort
SELECT ALL - - 8 AS col2
----
8

query I rowsort
SELECT 74 * + 99
----
7326

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8037
SELECT ALL - 7 DIV + + CAST( + 52 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL - 7 / + + CAST ( + 52 AS INTEGER )
----
0

query I rowsort
SELECT + 8 - 96
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ALL - MIN( ALL 12 ) + 9 + COUNT( - 84 )
----
-2

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL - MIN ( ALL 12 ) + 9 + COUNT ( - 84 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT DISTINCT 8 DIV 25
----
0

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT 8 / 25
----
0

query I rowsort
SELECT ALL + + 76
----
76

query I rowsort
SELECT DISTINCT + 60 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ( COUNT( * ) ) * + ( 92 ) + - 75 + + + 18 + COUNT( * ) col0
----
36

skipif mysql # not compatible
query I rowsort label-8043
SELECT ( COUNT ( * ) ) * + ( 92 ) + - 75 + + + 18 + COUNT ( * ) col0
----
36

query I rowsort
SELECT DISTINCT NULLIF ( 37, + 81 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL 67 + + 9 * + - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL 67 + + 9 * + - COUNT ( * ) AS col1
----
58

query II rowsort
SELECT 68 AS col0, + 86 AS col1
----
68
86

query I rowsort
SELECT + 78 * - - ( 6 )
----
468

query I rowsort
SELECT - 69 * - + 65 AS col0
----
4485

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT + COUNT( * ) * + 9 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8049
SELECT + COUNT ( * ) * + 9 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8051
SELECT 63 DIV - - 61
----
1

skipif mysql # not compatible
query I rowsort label-8051
SELECT 63 / - - 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL + + MAX( DISTINCT + 59 ) + 35
----
94

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL + + MAX ( DISTINCT + 59 ) + 35
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT - - ( + - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8053
SELECT - - ( + - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8054
SELECT DISTINCT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8055
SELECT DISTINCT - COUNT( * ) DIV - 3 AS col2, 9
----
0
9

skipif mysql # not compatible
query II rowsort label-8055
SELECT DISTINCT - COUNT ( * ) / - 3 AS col2, 9
----
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT COUNT( DISTINCT + 4 )
----
1

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT COUNT ( DISTINCT + 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL 93 + + - SUM( + 48 )
----
45

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL 93 + + - SUM ( + 48 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8058
SELECT ALL - COUNT( * ) DIV - COUNT( * ) - + + 46
----
-45

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL - COUNT ( * ) / - COUNT ( * ) - + + 46
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT - + 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ALL - COUNT( * ) + - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL - COUNT ( * ) + - - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8062
SELECT DISTINCT COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8062
SELECT DISTINCT COUNT ( * ), COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT - COUNT( * ) - + COUNT( * ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-8063
SELECT - COUNT ( * ) - + COUNT ( * ) col2
----
-2

query I rowsort
SELECT DISTINCT ( - 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8065
SELECT + 99 DIV - ( COUNT( * ) ) * + COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8065
SELECT + 99 / - ( COUNT ( * ) ) * + COUNT ( * ) AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT DISTINCT 80 DIV - 22 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT 80 / - 22 AS col1
----
-3

query I rowsort
SELECT + 3 * + 52 * - 19 AS col0
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL - COUNT( * ) * + 65 * 42 + - 35 col0
----
-2765

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - COUNT ( * ) * + 65 * 42 + - 35 col0
----
-2765

onlyif mysql # aggregate syntax: 
query II rowsort label-8069
SELECT + MIN( ALL - 87 ), 49 + - + 8 AS col0
----
-87
41

skipif mysql # not compatible
query II rowsort label-8069
SELECT + MIN ( ALL - 87 ), 49 + - + 8 AS col0
----
-87
41

query I rowsort
SELECT + 60 - + - 97 AS col2
----
157

query I rowsort
SELECT ALL + 29 col0
----
29

query I rowsort
SELECT ALL ( - 58 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT DISTINCT - ( + 86 ) + - ( + - CAST( - - COUNT( * ) AS SIGNED ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT - ( + 86 ) + - ( + - CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT ALL + 9 + + COUNT( * ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8074
SELECT ALL + 9 + + COUNT ( * ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8075
SELECT ALL + COUNT( * ) * - COUNT( * ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * )
----
-1

query I rowsort
SELECT ALL ( + 16 ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT + - COUNT( * ) * + 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-8077
SELECT + - COUNT ( * ) * + 26 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT + 76 * MAX( 42 )
----
3192

skipif mysql # not compatible
query I rowsort label-8078
SELECT + 76 * MAX ( 42 )
----
3192

query I rowsort
SELECT ALL - ( - 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT + 74 * + COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8080
SELECT + 74 * + COUNT ( * ) AS col0
----
74

query I rowsort
SELECT ALL ( 49 ) - - 79 * - 6 AS col2
----
-425

query I rowsort
SELECT 64 * 52 AS col1
----
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL - + MIN( DISTINCT + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL - + MIN ( DISTINCT + 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT DISTINCT - SUM( ALL - 82 )
----
82

skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT - SUM ( ALL - 82 )
----
82

query I rowsort
SELECT DISTINCT - - 39 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT - 67 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8086
SELECT - 67 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8087
SELECT - 85 DIV + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-8087
SELECT - 85 / + - COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT - 71 AS col0, COUNT( * ) AS col1
----
-71
1

skipif mysql # not compatible
query II rowsort label-8088
SELECT - 71 AS col0, COUNT ( * ) AS col1
----
-71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + 78 * - COUNT( * ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-8089
SELECT + 78 * - COUNT ( * ) col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-8090
SELECT - COUNT( * ) col2, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8090
SELECT - COUNT ( * ) col2, + COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL - COUNT( + 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - COUNT ( + 25 ) AS col1
----
-1

query I rowsort
SELECT ALL + + 72 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT DISTINCT + SUM( - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT + SUM ( - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL 29 * - + COUNT( * ) + 16 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL 29 * - + COUNT ( * ) + 16 AS col2
----
-13

query I rowsort
SELECT - - 32 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL COUNT( * ) + + 41 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL COUNT ( * ) + + 41 AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8097
SELECT ALL + 78 DIV - + 90
----
0

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL + 78 / - + 90
----
0

query I rowsort
SELECT DISTINCT - 44 + 9 AS col1
----
-35

query I rowsort
SELECT DISTINCT + 18 col0
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8100
SELECT ALL + 59 AS col1, - 46 DIV + COUNT( * ) col1
----
59
-46

skipif mysql # not compatible
query II rowsort label-8100
SELECT ALL + 59 AS col1, - 46 / + COUNT ( * ) col1
----
59
-46

query I rowsort
SELECT ALL - + 87 + + - ( 42 ) + - 88 AS col2
----
-217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8103
SELECT - COUNT( * ), - CAST( NULL AS SIGNED ) * + - 72 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8103
SELECT - COUNT ( * ), - CAST ( NULL AS INTEGER ) * + - 72 AS col1
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8104
SELECT ALL + 79 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + 79 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 90 col2
----
90

query I rowsort
SELECT + + 98 col1
----
98

query I rowsort
SELECT + 56 col0
----
56

query I rowsort
SELECT ALL 90 + + 4 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT + COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8110
SELECT + + 37 DIV - MAX( 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8110
SELECT + + 37 / - MAX ( 19 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT MAX( 7 )
----
7

skipif mysql # not compatible
query I rowsort label-8111
SELECT MAX ( 7 )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT DISTINCT - 71 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-8112
SELECT DISTINCT - 71 / - 99
----
0

query I rowsort
SELECT ALL + 30 * 39 AS col1
----
1170

onlyif mysql # DIV for integer division: 
query I rowsort label-8114
SELECT ALL - 21 DIV 69 + + + 10 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL - 21 / 69 + + + 10 AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8115
SELECT ALL + CAST( + 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + CAST ( + 15 AS INTEGER )
----
15

query I rowsort
SELECT ( 27 )
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT + NULLIF ( - - CAST( NULL AS SIGNED ), + 19 ) / 30 * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8117
SELECT + NULLIF ( - - CAST ( NULL AS INTEGER ), + 19 ) / 30 * + 79
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8118
SELECT + CAST( NULL AS DECIMAL ) + + 81 - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-8118
SELECT + CAST ( NULL AS REAL ) + + 81 - - 41
----
NULL

query I rowsort
SELECT ALL - 60 col1
----
-60

query I rowsort
SELECT + 64 col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT COUNT( * ) * - 26
----
-26

skipif mysql # not compatible
query I rowsort label-8121
SELECT COUNT ( * ) * - 26
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8122
SELECT ALL + ( - + CAST( + 47 AS SIGNED ) ) + + 54 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8122
SELECT ALL + ( - + CAST ( + 47 AS INTEGER ) ) + + 54 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT CAST( NULL AS SIGNED ) * - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8123
SELECT CAST ( NULL AS INTEGER ) * - 43 AS col2
----
NULL

query I rowsort
SELECT ALL 26 + 68
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT ALL ( MAX( DISTINCT 37 ) ) DIV - + 1
----
-37

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL ( MAX ( DISTINCT 37 ) ) / - + 1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8126
SELECT ALL + + CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL + + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
1

query II rowsort
SELECT + 2 AS col0, - 98 AS col1
----
2
-98

query I rowsort
SELECT + ( + - 56 )
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT - - 34 * 24 DIV + 64 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8129
SELECT - - 34 * 24 / + 64 AS col0
----
12

query I rowsort
SELECT DISTINCT 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT - NULLIF ( 9, + + MIN( ALL 73 ) )
----
-9

skipif mysql # not compatible
query I rowsort label-8131
SELECT - NULLIF ( 9, + + MIN ( ALL 73 ) )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT - CAST( NULL AS SIGNED ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT - CAST ( NULL AS INTEGER ) + - 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8133
SELECT ALL - COUNT( * ) DIV COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - COUNT ( * ) / COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT + - ( - 82 ) + 62 AS col2
----
144

query I rowsort
SELECT + + 50 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + SUM( + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-8136
SELECT + SUM ( + 23 )
----
23

query I rowsort
SELECT ALL - 2 * - 39
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8138
SELECT ALL 91 * - SUM( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL 91 * - SUM ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 68 + - 90
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT + SUM( + + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-8140
SELECT + SUM ( + + 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8141
SELECT MAX( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT MAX ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT COUNT( * ) + + 46 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8142
SELECT COUNT ( * ) + + 46 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + - ( + COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8143
SELECT + - ( + COUNT ( * ) ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT - 10 + - ( + COUNT( * ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8144
SELECT - 10 + - ( + COUNT ( * ) ) AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8145
SELECT - COUNT( * ) DIV - 32 + 71 - + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-8145
SELECT - COUNT ( * ) / - 32 + 71 - + - COUNT ( * )
----
72

query I rowsort
SELECT 87 * - 76 * + - 35 AS col0
----
231420

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT COUNT( * ) * - - COUNT( + + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-8147
SELECT COUNT ( * ) * - - COUNT ( + + 0 )
----
1

query I rowsort
SELECT - ( - ( + 84 ) ) AS col1
----
84

query I rowsort
SELECT DISTINCT + - 23 AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT ALL + MIN( + + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + MIN ( + + 28 ) AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8151
SELECT - MIN( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - 9 + - 26 - - + COUNT( * ) * - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-8152
SELECT - 9 + - 26 - - + COUNT ( * ) * - COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT + COUNT( * ) * - + 84 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8153
SELECT + COUNT ( * ) * - + 84 AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8154
SELECT + CAST( NULL AS SIGNED ) * + - 42 * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8154
SELECT + CAST ( NULL AS INTEGER ) * + - 42 * 65 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT MIN( ALL + - 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8155
SELECT MIN ( ALL + - 82 ) AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT - COUNT( - + 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT - COUNT ( - + 1 ) AS col2
----
-1

query I rowsort
SELECT 38 * - 89 AS col0
----
-3382

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT COUNT( * ) * + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8158
SELECT COUNT ( * ) * + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - 17 * - - 42 + 63 + COUNT( * )
----
-650

skipif mysql # not compatible
query I rowsort label-8159
SELECT - 17 * - - 42 + 63 + COUNT ( * )
----
-650

onlyif mysql # aggregate syntax: 
query II rowsort label-8160
SELECT 52 * + 75 * + + COUNT( * ), 65 AS col2
----
3900
65

skipif mysql # not compatible
query II rowsort label-8160
SELECT 52 * + 75 * + + COUNT ( * ), 65 AS col2
----
3900
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT ALL - 92 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL - 92 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 1 AS col1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8163
SELECT - 55 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT - 55 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8164
SELECT + COUNT( * ) AS col2, COUNT( + + 6 ) * - + 16 + 84
----
1
68

skipif mysql # not compatible
query II rowsort label-8164
SELECT + COUNT ( * ) AS col2, COUNT ( + + 6 ) * - + 16 + 84
----
1
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT + + CAST( NULL AS SIGNED ) + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT + + CAST ( NULL AS INTEGER ) + 52
----
NULL

query II rowsort
SELECT ALL + 97 col0, + 35 AS col0
----
97
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT - COUNT( * ) + + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8167
SELECT - COUNT ( * ) + + 40 AS col2
----
39

query I rowsort
SELECT ( + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT + ( COUNT( * ) ) * 68 col2
----
68

skipif mysql # not compatible
query I rowsort label-8169
SELECT + ( COUNT ( * ) ) * 68 col2
----
68

query I rowsort
SELECT ALL + + 26 col1
----
26

query I rowsort
SELECT - + 83 AS col0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + + 38 / + - COUNT( * ) + - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + 38 / + - COUNT ( * ) + - 65 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8173
SELECT DISTINCT - 43 DIV + 13 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - 43 / + 13 AS col1
----
-3

query II rowsort
SELECT 97 AS col2, 42 * 74
----
97
3108

query I rowsort
SELECT DISTINCT ( - 92 )
----
-92

query I rowsort
SELECT - ( 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL - 0 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - 0 * COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT DISTINCT SUM( ALL - + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT SUM ( ALL - + 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8179
SELECT ALL CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 1 + + 96
----
97

query I rowsort
SELECT DISTINCT + 49 col2
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT ALL + ( - + 18 ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL + ( - + 18 ) / + 82
----
0

query I rowsort
SELECT + - 49 AS col0
----
-49

query I rowsort
SELECT ALL + ( 37 ) AS col2
----
37

query I rowsort
SELECT ALL + 43 * 48
----
2064

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT + COUNT( DISTINCT 70 )
----
1

skipif mysql # not compatible
query I rowsort label-8186
SELECT + COUNT ( DISTINCT 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT + COUNT( DISTINCT - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-8187
SELECT + COUNT ( DISTINCT - 99 )
----
1

query I rowsort
SELECT DISTINCT + + 77 AS col0
----
77

query I rowsort
SELECT + - 84 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT - COUNT( * ) + - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-8190
SELECT - COUNT ( * ) + - 25 AS col1
----
-26

query I rowsort
SELECT ALL + + 11 AS col0
----
11

query I rowsort
SELECT DISTINCT - 91 col2
----
-91

query I rowsort
SELECT ALL ( + 10 )
----
10

query I rowsort
SELECT + 43 * + 42
----
1806

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT CAST( COUNT( * ) AS SIGNED ) + 35 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8195
SELECT CAST ( COUNT ( * ) AS INTEGER ) + 35 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT DISTINCT + 97 + - - COUNT( DISTINCT + 50 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT + 97 + - - COUNT ( DISTINCT + 50 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT COUNT( * ) * 37
----
37

skipif mysql # not compatible
query I rowsort label-8197
SELECT COUNT ( * ) * 37
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8198
SELECT + ( + + CAST( + - COUNT( * ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8198
SELECT + ( + + CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT + + 47 col2
----
47

query I rowsort
SELECT 91 + + 24 AS col2
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8201
SELECT - CAST( NULL AS SIGNED ) + - - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT - CAST ( NULL AS INTEGER ) + - - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT - COUNT( - - 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8202
SELECT - COUNT ( - - 67 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8203
SELECT ALL - ( - ( + COUNT( * ) ) ) / + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL - ( - ( + COUNT ( * ) ) ) / + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 24 + 8
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8205
SELECT + 1 + 40 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 1 + 40 / 53
----
1

query I rowsort
SELECT DISTINCT + 14 AS col2
----
14

query I rowsort
SELECT ALL - ( + + 10 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT - MIN( ALL - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-8208
SELECT - MIN ( ALL - 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - ( - SUM( ALL + 6 ) ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8209
SELECT - ( - SUM ( ALL + 6 ) ) AS col2
----
6

query I rowsort
SELECT ALL NULLIF ( - - 24, - 79 ) AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8211
SELECT - CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8212
SELECT ALL 79 DIV - - 5 * + COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-8212
SELECT ALL 79 / - - 5 * + COUNT ( * )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8213
SELECT ( - 15 ) DIV COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-8213
SELECT ( - 15 ) / COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT - SUM( - 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT - SUM ( - 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT DISTINCT - - COUNT( * ) + + 81 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT - - COUNT ( * ) + + 81 AS col0
----
82

query I rowsort
SELECT - - COALESCE ( - 19, + 79 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT COUNT( * ) + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-8217
SELECT COUNT ( * ) + - 46
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8218
SELECT DISTINCT - COUNT( * ) AS col0, + CAST( + ( - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8218
SELECT DISTINCT - COUNT ( * ) AS col0, + CAST ( + ( - CAST ( NULL AS REAL ) ) AS INTEGER )
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8219
SELECT - CAST( 76 AS SIGNED ) * - 49 - + - COUNT( * )
----
3725

skipif mysql # not compatible
query I rowsort label-8219
SELECT - CAST ( 76 AS INTEGER ) * - 49 - + - COUNT ( * )
----
3725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT + 66 * - + CAST( 80 AS SIGNED ) col2
----
-5280

skipif mysql # not compatible
query I rowsort label-8220
SELECT + 66 * - + CAST ( 80 AS INTEGER ) col2
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT + MAX( + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8221
SELECT + MAX ( + 55 ) AS col2
----
55

query I rowsort
SELECT DISTINCT + + 24 AS col1
----
24

query I rowsort
SELECT ALL - 49 col0
----
-49

query I rowsort
SELECT DISTINCT + COALESCE ( + 62, + - 86 )
----
62

query I rowsort
SELECT DISTINCT ( - ( + 53 ) ) AS col1
----
-53

query I rowsort
SELECT DISTINCT ( + + 39 ) AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8227
SELECT DISTINCT - COUNT( * ) DIV + 97 + + + 77 * - ( - - 62 )
----
-4774

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT - COUNT ( * ) / + 97 + + + 77 * - ( - - 62 )
----
-4774

query I rowsort
SELECT ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT ALL + + SUM( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8229
SELECT ALL + + SUM ( - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT ALL + SUM( + 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-8230
SELECT ALL + SUM ( + 72 ) AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 60 * - 66 AS col0
----
-3960

query I rowsort
SELECT ALL - 95 * + 75 AS col0
----
-7125

query I rowsort
SELECT 99 + ( + 55 ) AS col2
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT ALL - 38 DIV - + ( - 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - 38 / - + ( - 34 )
----
-1

query I rowsort
SELECT 78 * 38 AS col2
----
2964

query I rowsort
SELECT 19 * + 50
----
950

query I rowsort
SELECT 9 + - 74 AS col0
----
-65

query I rowsort
SELECT ALL 45 col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT SUM( 16 ) col0
----
16

skipif mysql # not compatible
query I rowsort label-8240
SELECT SUM ( 16 ) col0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8241
SELECT ( 82 ) DIV 26 col1
----
3

skipif mysql # not compatible
query I rowsort label-8241
SELECT ( 82 ) / 26 col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT ALL CAST( NULL AS SIGNED ) * 49 + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL CAST ( NULL AS INTEGER ) * 49 + 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT + COUNT( * ) + COUNT( 94 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT + COUNT ( * ) + COUNT ( 94 ) AS col2
----
2

query I rowsort
SELECT + 42 + - 88 AS col0
----
-46

query I rowsort
SELECT + - 55 * - 64 col1
----
3520

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT ALL - - 96 DIV - 58 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL - - 96 / - 58 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT MAX( - + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-8247
SELECT MAX ( - + 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL + 99 * + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + 99 * + COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT - MIN( + 0 ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT - MIN ( + 0 ) * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT - COUNT( * ) + - 30 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-8250
SELECT - COUNT ( * ) + - 30 AS col2
----
-31

query I rowsort
SELECT + ( 25 )
----
25

query I rowsort
SELECT ALL ( - 41 ) + 76 AS col0
----
35

query I rowsort
SELECT + - 45 AS col2
----
-45

query I rowsort
SELECT 89 + - 23
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT DISTINCT - MIN( 22 ) * + 14 + 69 AS col0
----
-239

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT - MIN ( 22 ) * + 14 + 69 AS col0
----
-239

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT 16 DIV + - ( - + 91 ) * + 5 col1
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT 16 / + - ( - + 91 ) * + 5 col1
----
0

query I rowsort
SELECT DISTINCT - + 59 col0
----
-59

query I rowsort
SELECT DISTINCT - ( 27 )
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8259
SELECT 54 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8259
SELECT 54 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT 44 * COUNT( * ) * + 95 AS col1
----
4180

skipif mysql # not compatible
query I rowsort label-8260
SELECT 44 * COUNT ( * ) * + 95 AS col1
----
4180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT CAST( - - 57 AS SIGNED ) - AVG ( ALL CAST( NULL AS SIGNED ) ) + - 34 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT CAST ( - - 57 AS INTEGER ) - AVG ( ALL CAST ( NULL AS INTEGER ) ) + - 34 col1
----
NULL

query I rowsort
SELECT ALL 82 + + + 42 AS col2
----
124

query I rowsort
SELECT DISTINCT - + 2 * - 62
----
124

query I rowsort
SELECT ALL + + 92 AS col2
----
92

query I rowsort
SELECT - 2 + + ( + 38 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-8266
SELECT DISTINCT + 86, - COUNT( * ) AS col0
----
86
-1

skipif mysql # not compatible
query II rowsort label-8266
SELECT DISTINCT + 86, - COUNT ( * ) AS col0
----
86
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT + - COUNT( * ) - - - 6 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8267
SELECT + - COUNT ( * ) - - - 6 AS col0
----
-7

query I rowsort
SELECT - + 46 col1
----
-46

query I rowsort
SELECT - 72 + - 60 AS col2
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-8270
SELECT + 43 * COUNT( * ) AS col0, + 7 AS col2
----
43
7

skipif mysql # not compatible
query II rowsort label-8270
SELECT + 43 * COUNT ( * ) AS col0, + 7 AS col2
----
43
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT DISTINCT + 21, - COUNT( * ) col1
----
21
-1

skipif mysql # not compatible
query II rowsort label-8271
SELECT DISTINCT + 21, - COUNT ( * ) col1
----
21
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT 85 * + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8272
SELECT 85 * + COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8273
SELECT ALL COUNT( * ), + 57 AS col1
----
1
57

skipif mysql # not compatible
query II rowsort label-8273
SELECT ALL COUNT ( * ), + 57 AS col1
----
1
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8274
SELECT ALL - COUNT( * ) AS col1, - 36
----
-1
-36

skipif mysql # not compatible
query II rowsort label-8274
SELECT ALL - COUNT ( * ) AS col1, - 36
----
-1
-36

query II rowsort
SELECT ALL - 25 AS col2, 37
----
-25
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT 15 * + COUNT( * ) + + 25 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8276
SELECT 15 * + COUNT ( * ) + + 25 AS col1
----
40

query I rowsort
SELECT 99 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT ALL - COUNT( - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-8278
SELECT ALL - COUNT ( - 1 )
----
-1

query I rowsort
SELECT ALL - - 29 col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT - + ( - COUNT( * ) ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - + ( - COUNT ( * ) ) * COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT DISTINCT + - 49 + + CAST( + + 83 AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT + - 49 + + CAST ( + + 83 AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 47 + + 18 - 62 AS col0
----
3

query I rowsort
SELECT + 72 * + 64
----
4608

query II rowsort
SELECT ALL + 43 AS col1, + 25
----
43
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT MIN( - - 48 ) col0
----
48

skipif mysql # not compatible
query I rowsort label-8285
SELECT MIN ( - - 48 ) col0
----
48

query II rowsort
SELECT ALL + 49, + 0 AS col2
----
49
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8287
SELECT MIN( DISTINCT - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-8287
SELECT MIN ( DISTINCT - 94 )
----
-94

query II rowsort
SELECT 20 AS col2, - 43
----
20
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-8289
SELECT + COUNT( * ) + - - MIN( + 26 ), 28 AS col2
----
27
28

skipif mysql # not compatible
query II rowsort label-8289
SELECT + COUNT ( * ) + - - MIN ( + 26 ), 28 AS col2
----
27
28

query I rowsort
SELECT - 13 * - + 84 * - + 36 AS col1
----
-39312

query I rowsort
SELECT ALL + 61 * 73 AS col2
----
4453

query I rowsort
SELECT + + 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8293
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8294
SELECT CAST( + 92 AS SIGNED ) * + 45 + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT CAST ( + 92 AS INTEGER ) * + 45 + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( 9, + 91 ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8296
SELECT CAST( NULL AS SIGNED ) / + 78 * MIN( DISTINCT - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT CAST ( NULL AS INTEGER ) / + 78 * MIN ( DISTINCT - 54 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT + + ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8297
SELECT + + ( + COUNT ( * ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT DISTINCT ( CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT ( CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8299
SELECT CAST( NULL AS DECIMAL ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8299
SELECT CAST ( NULL AS REAL ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT COUNT( * ) AS col1, - 22
----
1
-22

skipif mysql # not compatible
query II rowsort label-8300
SELECT COUNT ( * ) AS col1, - 22
----
1
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8301
SELECT COUNT( * ) AS col2, - 82 AS col0
----
1
-82

skipif mysql # not compatible
query II rowsort label-8301
SELECT COUNT ( * ) AS col2, - 82 AS col0
----
1
-82

query I rowsort
SELECT DISTINCT - - 40
----
40

query I rowsort
SELECT 50 + - 19 * + 62
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL + + 39 - 92 * 71 * COUNT( * ) AS col2
----
-6493

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL + + 39 - 92 * 71 * COUNT ( * ) AS col2
----
-6493

query I rowsort
SELECT ALL + 88 * 50 AS col0
----
4400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8306
SELECT ALL - COUNT( * ) + + + COUNT( DISTINCT - ( COALESCE ( + CAST( NULL AS SIGNED ), - + 65 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL - COUNT ( * ) + + + COUNT ( DISTINCT - ( COALESCE ( + CAST ( NULL AS INTEGER ), - + 65 ) ) ) AS col0
----
0

query II rowsort
SELECT ( + 95 ) AS col2, 21
----
95
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT + 33 * 89 - + COUNT( * ) AS col0
----
2936

skipif mysql # not compatible
query I rowsort label-8308
SELECT + 33 * 89 - + COUNT ( * ) AS col0
----
2936

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT ALL - + COUNT( * ) * 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL - + COUNT ( * ) * 47 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT + MAX( DISTINCT + + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-8310
SELECT + MAX ( DISTINCT + + 66 ) AS col1
----
66

query I rowsort
SELECT + ( - + 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT - 73 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8312
SELECT - 73 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8313
SELECT + - 39 / - COUNT( * ) * + 76 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT + - 39 / - COUNT ( * ) * + 76 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + ( + - 39 )
----
-39

query I rowsort
SELECT - - ( - 14 ) - ( 16 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL - 42 * + COUNT( * ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - 42 * + COUNT ( * ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT ALL CAST( 48 AS SIGNED ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL CAST ( 48 AS INTEGER ) AS col2
----
48

query II rowsort
SELECT 31 AS col2, - 6 AS col0
----
31
-6

query I rowsort
SELECT + - 12 AS col1
----
-12

query I rowsort
SELECT + - 61 AS col1
----
-61

query I rowsort
SELECT DISTINCT 90 * 43 col2
----
3870

query I rowsort
SELECT ALL 18 + + 46
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL + ( + - ( - 98 ) ) * - - 70 * - - COUNT( * ) col0
----
6860

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL + ( + - ( - 98 ) ) * - - 70 * - - COUNT ( * ) col0
----
6860

query I rowsort
SELECT ALL 36 + + 66
----
102

query I rowsort
SELECT DISTINCT - 69 col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8326
SELECT DISTINCT COUNT( * ) DIV - - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT COUNT ( * ) / - - 46 AS col1
----
0

query I rowsort
SELECT DISTINCT 54 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT SUM( ALL + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8328
SELECT SUM ( ALL + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT - - COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8329
SELECT - - COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT - COUNT( * ) * + 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8330
SELECT - COUNT ( * ) * + 86 AS col1
----
-86

query I rowsort
SELECT - + 34 + 52
----
18

query I rowsort
SELECT - 71 * 52
----
-3692

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL + MAX( - + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL + MAX ( - + 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT - COALESCE ( - 19, + COUNT( * ) )
----
19

skipif mysql # not compatible
query I rowsort label-8334
SELECT - COALESCE ( - 19, + COUNT ( * ) )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT ALL - 75 * - 10 + - COUNT( * )
----
749

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - 75 * - 10 + - COUNT ( * )
----
749

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8336
SELECT - + SUM( ALL + CAST( + + 26 AS SIGNED ) )
----
-26

skipif mysql # not compatible
query I rowsort label-8336
SELECT - + SUM ( ALL + CAST ( + + 26 AS INTEGER ) )
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT CAST( - 8 AS SIGNED ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8337
SELECT CAST ( - 8 AS INTEGER ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT DISTINCT COUNT( * ) * MIN( + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT COUNT ( * ) * MIN ( + 21 )
----
21

query I rowsort
SELECT ALL + ( - 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL - COUNT( + 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL - COUNT ( + 35 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8341
SELECT - + CAST( + COUNT( * ) AS SIGNED ) AS col1, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-8341
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, COUNT ( * )
----
-1
1

query I rowsort
SELECT ALL 60 * 50 + ( + 11 )
----
3011

query I rowsort
SELECT - - 30 col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT COUNT( * ) - - ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT COUNT ( * ) - - ( COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8345
SELECT ALL - NULLIF ( + CAST( NULL AS SIGNED ), - 41 + - + 89 ), MIN( - - 77 ) AS col0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-8345
SELECT ALL - NULLIF ( + CAST ( NULL AS INTEGER ), - 41 + - + 89 ), MIN ( - - 77 ) AS col0
----
NULL
77

query I rowsort
SELECT ALL - 93 * 96
----
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT - - MAX( + - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8347
SELECT - - MAX ( + - 86 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8348
SELECT + 27 * - + 65 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT + 27 * - + 65 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT COUNT( * ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-8349
SELECT COUNT ( * ) * 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT + COALESCE ( + 25, + COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-8350
SELECT + COALESCE ( + 25, + COUNT ( * ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT + COUNT( * ) * MIN( DISTINCT + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-8351
SELECT + COUNT ( * ) * MIN ( DISTINCT + 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8352
SELECT - COUNT( * ) + + 62 * - CAST( + + 41 AS SIGNED ) * - + 63 AS col0
----
160145

skipif mysql # not compatible
query I rowsort label-8352
SELECT - COUNT ( * ) + + 62 * - CAST ( + + 41 AS INTEGER ) * - + 63 AS col0
----
160145

query I rowsort
SELECT - - ( + 57 ) + - 46 AS col0
----
11

query I rowsort
SELECT ALL + 49 + + + 14 AS col0
----
63

query I rowsort
SELECT DISTINCT 70 * - ( - NULLIF ( + 96, - 72 * - 0 ) )
----
6720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8356
SELECT + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8356
SELECT + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8357
SELECT DISTINCT - COUNT( * ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-8357
SELECT DISTINCT - COUNT ( * ) / - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT 67 * - COUNT( * ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-8358
SELECT 67 * - COUNT ( * ) col1
----
-67

query I rowsort
SELECT - 61 col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT 6 + + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT 6 + + - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT MAX( + 49 ) + + + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-8361
SELECT MAX ( + 49 ) + + + COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT - 94 * - 58 + - COUNT( DISTINCT - 87 ) AS col0
----
5451

skipif mysql # not compatible
query I rowsort label-8362
SELECT - 94 * - 58 + - COUNT ( DISTINCT - 87 ) AS col0
----
5451

query I rowsort
SELECT ALL - - 59 col0
----
59

query I rowsort
SELECT DISTINCT - + 37
----
-37

query I rowsort
SELECT - - 17 - + COALESCE ( - 22, - 58 )
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8366
SELECT + - 60 AS col0, + CAST( NULL AS SIGNED ) AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-8366
SELECT + - 60 AS col0, + CAST ( NULL AS INTEGER ) AS col0
----
-60
NULL

query I rowsort
SELECT ALL ( 88 ) AS col2
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8368
SELECT - - SUM( - + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT - - SUM ( - + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT 5 DIV - 8 + 40
----
40

skipif mysql # not compatible
query I rowsort label-8369
SELECT 5 / - 8 + 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT DISTINCT + + COUNT( * ) * - - 92 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8370
SELECT DISTINCT + + COUNT ( * ) * - - 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT 60 - 65 * + - SUM( DISTINCT 96 )
----
6300

skipif mysql # not compatible
query I rowsort label-8371
SELECT 60 - 65 * + - SUM ( DISTINCT 96 )
----
6300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL + ( - 4 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + ( - 4 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL - SUM( + + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - SUM ( + + 57 ) AS col2
----
-57

query I rowsort
SELECT 74 + + 99 AS col2
----
173

query I rowsort
SELECT ALL - 31 col0
----
-31

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8376
SELECT 4 AS col2, CAST( NULL AS DECIMAL )
----
4
NULL

skipif mysql # not compatible
query II rowsort label-8376
SELECT 4 AS col2, CAST ( NULL AS REAL )
----
4
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8377
SELECT ALL 0 AS col2, COUNT( * ) DIV + - 77
----
0
0

skipif mysql # not compatible
query II rowsort label-8377
SELECT ALL 0 AS col2, COUNT ( * ) / + - 77
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8378
SELECT + - 58, CAST( NULL AS SIGNED ) AS col1
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-8378
SELECT + - 58, CAST ( NULL AS INTEGER ) AS col1
----
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT COUNT( + - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-8379
SELECT COUNT ( + - 49 )
----
1

query I rowsort
SELECT - - 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT + COUNT( DISTINCT - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-8381
SELECT + COUNT ( DISTINCT - 11 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8382
SELECT CAST( NULL AS SIGNED ) AS col2, 50 AS col2
----
NULL
50

skipif mysql # not compatible
query II rowsort label-8382
SELECT CAST ( NULL AS INTEGER ) AS col2, 50 AS col2
----
NULL
50

query II rowsort
SELECT - + 3 AS col1, + 77 AS col1
----
-3
77

query I rowsort
SELECT ALL 73 + - - 4 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ( + COUNT( * ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8385
SELECT ( + COUNT ( * ) ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8386
SELECT DISTINCT COUNT( * ) DIV + 39 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT COUNT ( * ) / + 39 * - COUNT ( * )
----
0

query I rowsort
SELECT 21 * - 55 AS col2
----
-1155

query I rowsort
SELECT ALL 5 * 58 AS col2
----
290

query I rowsort
SELECT + - 61 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8390
SELECT + COUNT( * ), - 44 AS col2
----
1
-44

skipif mysql # not compatible
query II rowsort label-8390
SELECT + COUNT ( * ), - 44 AS col2
----
1
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - MAX( ALL - 19 ) col0
----
19

skipif mysql # not compatible
query I rowsort label-8391
SELECT - MAX ( ALL - 19 ) col0
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8392
SELECT ALL + CAST( NULL AS DECIMAL ) + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + CAST ( NULL AS REAL ) + + 31 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8393
SELECT ALL - 92 * + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL - 92 * + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 11 * + ( - - 87 )
----
957

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT + COALESCE ( - COUNT( * ), 92 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + COALESCE ( - COUNT ( * ), 92 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ALL MAX( DISTINCT 41 )
----
41

skipif mysql # not compatible
query I rowsort label-8396
SELECT ALL MAX ( DISTINCT 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT + COUNT( * ) + - 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT + COUNT ( * ) + - 10 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL - MIN( ALL 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL - MIN ( ALL 39 ) AS col1
----
-39

query I rowsort
SELECT ALL - + 90
----
-90

query I rowsort
SELECT 4 * - - 60 AS col2
----
240

query I rowsort
SELECT ALL 76 + - 18 AS col0
----
58

query II rowsort
SELECT DISTINCT 83 col1, + 94
----
83
94

query I rowsort
SELECT ALL - 30 + + 30 AS col0
----
0

query I rowsort
SELECT ALL 40 + + 24 AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8405
SELECT 33 DIV - - 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8405
SELECT 33 / - - 26 AS col2
----
1

query I rowsort
SELECT ALL - - 88 col0
----
88

query I rowsort
SELECT + + 89 AS col0
----
89

query I rowsort
SELECT 81 + - 99 col2
----
-18

query I rowsort
SELECT ALL + 15 * + 57
----
855

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + 70 * - - 83 * + 1 * - - COUNT( * )
----
5810

skipif mysql # not compatible
query I rowsort label-8410
SELECT + 70 * - - 83 * + 1 * - - COUNT ( * )
----
5810

query I rowsort
SELECT + 34 * + - 15
----
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + MAX( ALL 42 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-8412
SELECT + MAX ( ALL 42 ) AS col0
----
42

query I rowsort
SELECT DISTINCT ( + 32 ) col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT - COUNT( * ) + - 84 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8414
SELECT - COUNT ( * ) + - 84 AS col2
----
-85

query I rowsort
SELECT ALL - NULLIF ( + 8, 6 )
----
-8

query II rowsort
SELECT 16 AS col1, - 87 AS col1
----
16
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT ALL COUNT( DISTINCT + 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL COUNT ( DISTINCT + 53 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT COUNT( * ) * - 33 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8418
SELECT COUNT ( * ) * - 33 AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT 55 + + ( COUNT( * ) )
----
56

skipif mysql # not compatible
query I rowsort label-8419
SELECT 55 + + ( COUNT ( * ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - MIN( + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8420
SELECT - MIN ( + 12 )
----
-12

query I rowsort
SELECT DISTINCT + 12 AS col0
----
12

query I rowsort
SELECT ALL - 88 + + 92 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL + - ( - ( COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + - ( - ( COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT - 85 * - 81 + + COUNT( * )
----
6886

skipif mysql # not compatible
query I rowsort label-8424
SELECT - 85 * - 81 + + COUNT ( * )
----
6886

query I rowsort
SELECT + - 2 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT MAX( DISTINCT 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8426
SELECT MAX ( DISTINCT 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT + + 22 - - ( + COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-8427
SELECT + + 22 - - ( + COUNT ( * ) ) AS col0
----
23

query I rowsort
SELECT DISTINCT - 33 + + 56 AS col2
----
23

query II rowsort
SELECT 76 AS col1, 31 AS col2
----
76
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT ALL + COUNT( * ) * - + 40
----
-40

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL + COUNT ( * ) * - + 40
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT - COUNT( * ) * + 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8431
SELECT - COUNT ( * ) * + 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL COUNT( * ) * 78
----
78

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL COUNT ( * ) * 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL - 96 + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL - 96 + - COUNT ( * )
----
-97

query I rowsort
SELECT ALL + + 49 + 55
----
104

query I rowsort
SELECT - + 8 col2
----
-8

query I rowsort
SELECT DISTINCT ( - 12 ) AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT CAST( NULL AS SIGNED ) * + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT CAST ( NULL AS INTEGER ) * + 43 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8438
SELECT DISTINCT 52 DIV ( CAST( + + 56 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8438
SELECT DISTINCT 52 / ( CAST ( + + 56 AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8439
SELECT DISTINCT - COUNT( * ), - 33 AS col0
----
-1
-33

skipif mysql # not compatible
query II rowsort label-8439
SELECT DISTINCT - COUNT ( * ), - 33 AS col0
----
-1
-33

query I rowsort
SELECT DISTINCT + 37 + + + ( + 24 ) + + 68
----
129

query II rowsort
SELECT 6 AS col2, 8 AS col1
----
6
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT SUM( DISTINCT + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-8442
SELECT SUM ( DISTINCT + 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT 54 DIV + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-8443
SELECT 54 / + COUNT ( * )
----
54

query II rowsort
SELECT ALL 67 AS col0, 39
----
67
39

query I rowsort
SELECT - 53 - 39 col2
----
-92

query I rowsort
SELECT ( 50 )
----
50

query I rowsort
SELECT + ( 31 ) col2
----
31

query I rowsort
SELECT ( + 76 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT - 9 col2, + COUNT( * )
----
-9
1

skipif mysql # not compatible
query II rowsort label-8449
SELECT - 9 col2, + COUNT ( * )
----
-9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT COUNT( * ) * + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-8450
SELECT COUNT ( * ) * + - 78
----
-78

query I rowsort
SELECT ALL 1 * - + 1 * + - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT - MIN( + + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-8452
SELECT - MIN ( + + 49 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8453
SELECT DISTINCT 42 DIV - 22 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT 42 / - 22 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8454
SELECT ALL + MIN( ALL CAST( NULL AS SIGNED ) ) + - COUNT( 74 ) + + - CAST( - COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL + MIN ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( 74 ) + + - CAST ( - COUNT ( * ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL - - SUM( ALL - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL - - SUM ( ALL - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT + + ( - + ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8456
SELECT + + ( - + ( - COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT + ( + - 98 ) + - COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-8457
SELECT + ( + - 98 ) + - COUNT ( * ) AS col2
----
-99

query I rowsort
SELECT DISTINCT NULLIF ( + - 97, - 40 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT + 10 * + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8459
SELECT + 10 * + COUNT ( * )
----
10

query I rowsort
SELECT DISTINCT 22 * - 67 col2
----
-1474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT + CAST( 46 AS SIGNED ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8461
SELECT + CAST ( 46 AS INTEGER ) AS col0
----
46

query I rowsort
SELECT ALL + - 85
----
-85

query I rowsort
SELECT ALL + 12 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT + 26 * + + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT + 26 * + + COUNT ( * )
----
26

query I rowsort
SELECT 27 * 17
----
459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8466
SELECT ALL 38 + - + COUNT( * ) DIV + ( + + 58 ) * COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL 38 + - + COUNT ( * ) / + ( + + 58 ) * COUNT ( * )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8467
SELECT ALL - CAST( NULL AS SIGNED ) + - NULLIF ( - CAST( NULL AS SIGNED ), + - 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL - CAST ( NULL AS INTEGER ) + - NULLIF ( - CAST ( NULL AS INTEGER ), + - 78 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8468
SELECT COUNT( DISTINCT 83 ), - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8468
SELECT COUNT ( DISTINCT 83 ), - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT - ( + - ( + + MIN( CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8469
SELECT - ( + - ( + + MIN ( CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL - 3 + - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - 3 + - - COUNT ( * )
----
-2

query I rowsort
SELECT + - 23 AS col2
----
-23

query I rowsort
SELECT + + COALESCE ( + 93, - 72 )
----
93

query I rowsort
SELECT 57 * + 83
----
4731

query I rowsort
SELECT ALL + 77 * + 85
----
6545

query I rowsort
SELECT 76 col0
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-8476
SELECT - - COUNT( * ) AS col0, 71 + ( + 78 )
----
1
149

skipif mysql # not compatible
query II rowsort label-8476
SELECT - - COUNT ( * ) AS col0, 71 + ( + 78 )
----
1
149

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT SUM( + + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8477
SELECT SUM ( + + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT SUM( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8478
SELECT SUM ( + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT + 25 * - COUNT( * ) + + 45 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-8479
SELECT + 25 * - COUNT ( * ) + + 45 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + COUNT( * ) - - 11 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8480
SELECT + COUNT ( * ) - - 11 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8482
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT MIN( ALL 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8483
SELECT MIN ( ALL 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT - MIN( 60 ) + - 33 * COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - MIN ( 60 ) + - 33 * COUNT ( * ) AS col0
----
-93

query I rowsort
SELECT ALL - 47 col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8486
SELECT ALL - CAST( NULL AS DECIMAL ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL - CAST ( NULL AS REAL ) / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8487
SELECT - 74 DIV COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-8487
SELECT - 74 / COUNT ( * )
----
-74

query I rowsort
SELECT 54 + - 54 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8489
SELECT 36 DIV 33
----
1

skipif mysql # not compatible
query I rowsort label-8489
SELECT 36 / 33
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT - 48 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT - 48 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT MAX( + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-8491
SELECT MAX ( + 77 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8492
SELECT ( - - COUNT( * ) ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT ( - - COUNT ( * ) ) / - 64
----
0

query I rowsort
SELECT ALL - - ( - 79 )
----
-79

query I rowsort
SELECT DISTINCT + + 73 col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - - COUNT( * ) + - 69
----
-68

skipif mysql # not compatible
query I rowsort label-8495
SELECT - - COUNT ( * ) + - 69
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8496
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + 40 + + - 30 AS col1
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8498
SELECT - 22 * 44 DIV + - 51 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8498
SELECT - 22 * 44 / + - 51 AS col2
----
18

query I rowsort
SELECT + ( - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT ALL + 32 AS col1, - COUNT( * ) AS col2
----
32
-1

skipif mysql # not compatible
query II rowsort label-8500
SELECT ALL + 32 AS col1, - COUNT ( * ) AS col2
----
32
-1

query I rowsort
SELECT DISTINCT + + 12 col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8502
SELECT - + CAST( NULL AS SIGNED ) + ( COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT - + CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT - CAST( + - 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-8503
SELECT - CAST ( + - 88 AS INTEGER )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - 98 * + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-8504
SELECT - 98 * + COUNT ( * )
----
-98

query I rowsort
SELECT ALL 51 + - 97 + + + 96
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT - - SUM( 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8506
SELECT - - SUM ( 42 )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8507
SELECT DISTINCT 29 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT 29 / - 40
----
0

query II rowsort
SELECT ALL 18, + 56 col0
----
18
56

query I rowsort
SELECT DISTINCT - - 23 - - - 32 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT DISTINCT - CAST( - + 71 AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - CAST ( - + 71 AS INTEGER )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT ALL 63 * - - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8511
SELECT ALL 63 * - - COUNT ( * ) AS col0
----
63

query I rowsort
SELECT - 98 + 16
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT DISTINCT MAX( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT MAX ( DISTINCT + 66 )
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT + 25 DIV - + 29 - 47 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8514
SELECT + 25 / - + 29 - 47 AS col2
----
-47

query I rowsort
SELECT ALL + 62 * 42 - + + 21
----
2583

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT + COUNT( ALL 25 )
----
1

skipif mysql # not compatible
query I rowsort label-8516
SELECT + COUNT ( ALL 25 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8517
SELECT + 36 col0, COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-8517
SELECT + 36 col0, COUNT ( * )
----
36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL + 58 * - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL + 58 * - COUNT ( * )
----
-58

query I rowsort
SELECT DISTINCT + 76 * 36 AS col0
----
2736

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL 95 - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL 95 - COUNT ( * ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8521
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8521
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + ( - + 78 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8523
SELECT ALL - CAST( + - 6 AS SIGNED ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8523
SELECT ALL - CAST ( + - 6 AS INTEGER ) AS col2
----
6

query I rowsort
SELECT + + 16 AS col1
----
16

query I rowsort
SELECT ALL - 9 * + 73 AS col1
----
-657

query I rowsort
SELECT 6 * - ( - 79 )
----
474

query I rowsort
SELECT DISTINCT ( 28 ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT COUNT( * ) + 50 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-8528
SELECT COUNT ( * ) + 50 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT - SUM( DISTINCT 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT - SUM ( DISTINCT 12 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT COUNT( * ) * - 30
----
-30

skipif mysql # not compatible
query I rowsort label-8530
SELECT COUNT ( * ) * - 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT - COUNT( * ) + - + 50
----
-51

skipif mysql # not compatible
query I rowsort label-8531
SELECT - COUNT ( * ) + - + 50
----
-51

query II rowsort
SELECT DISTINCT + 42 AS col1, + 52
----
42
52

query I rowsort
SELECT ALL + 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT SUM( ALL + + ( + 15 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8534
SELECT SUM ( ALL + + ( + 15 ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT COUNT( ALL + + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-8535
SELECT COUNT ( ALL + + 61 )
----
1

query I rowsort
SELECT ALL - 15 col1
----
-15

query I rowsort
SELECT DISTINCT - 2 * - 6 AS col0
----
12

query I rowsort
SELECT ALL + - 7 + 17 AS col0
----
10

query I rowsort
SELECT + 85 * 43 AS col2
----
3655

query II rowsort
SELECT - 86 col1, + 58 AS col1
----
-86
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8541
SELECT + + CAST( NULL AS SIGNED ) - 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT + + CAST ( NULL AS INTEGER ) - 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8542
SELECT ALL + - 15 DIV - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL + - 15 / - COUNT ( * ) AS col0
----
15

query I rowsort
SELECT ALL - ( + 80 ) * 87
----
-6960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8544
SELECT - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT - COUNT( + 70 )
----
-1

skipif mysql # not compatible
query I rowsort label-8545
SELECT - COUNT ( + 70 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT SUM( DISTINCT - - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-8546
SELECT SUM ( DISTINCT - - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT DISTINCT 3 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-8547
SELECT DISTINCT 3 * - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT + COUNT( * ) * - 28 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT + COUNT ( * ) * - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-8549
SELECT DISTINCT - COUNT( * ), 27 AS col0
----
-1
27

skipif mysql # not compatible
query II rowsort label-8549
SELECT DISTINCT - COUNT ( * ), 27 AS col0
----
-1
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL COUNT( * ) * 50 * - 1
----
-50

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL COUNT ( * ) * 50 * - 1
----
-50

query I rowsort
SELECT 44 col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT ALL + MAX( DISTINCT + 17 ) col2
----
17

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL + MAX ( DISTINCT + 17 ) col2
----
17

query I rowsort
SELECT DISTINCT + ( + - 36 )
----
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8554
SELECT - CAST( NULL AS DECIMAL ) * - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT - CAST ( NULL AS REAL ) * - 8 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 57 * + + 18
----
1026

query II rowsort
SELECT ALL - + 8 AS col1, 66
----
-8
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT - ( - + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8557
SELECT - ( - + COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8558
SELECT ALL - 78 AS col1, CAST( NULL AS SIGNED ) AS col0
----
-78
NULL

skipif mysql # not compatible
query II rowsort label-8558
SELECT ALL - 78 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
-78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL 10 + - - COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL 10 + - - COUNT ( * ) AS col2
----
11

query I rowsort
SELECT + - 13 col0
----
-13

query I rowsort
SELECT ALL 42 + 98 AS col0
----
140

query I rowsort
SELECT 83 * + 23 AS col0
----
1909

query I rowsort
SELECT + + ( - + ( + - 60 ) ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - - 17 * - MIN( DISTINCT - 98 ) AS col2
----
1666

skipif mysql # not compatible
query I rowsort label-8564
SELECT - - 17 * - MIN ( DISTINCT - 98 ) AS col2
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT + NULLIF ( - 14, - COUNT( * ) )
----
-14

skipif mysql # not compatible
query I rowsort label-8565
SELECT + NULLIF ( - 14, - COUNT ( * ) )
----
-14

query I rowsort
SELECT + 80 - ( - 94 )
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT DISTINCT - ( CASE 20 WHEN - + ( - - 48 ) THEN NULL ELSE 11 END ) * - COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8567
SELECT DISTINCT - ( CASE 20 WHEN - + ( - - 48 ) THEN NULL ELSE 11 END ) * - COUNT ( * ) AS col2
----
11

query II rowsort
SELECT ALL 63, 13 AS col1
----
63
13

query I rowsort
SELECT + 46 + + - 5
----
41

query I rowsort
SELECT ( - 10 )
----
-10

query I rowsort
SELECT DISTINCT 65 + + ( 70 ) AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8572
SELECT - - ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8572
SELECT - - ( - - COUNT ( * ) )
----
1

query I rowsort
SELECT 89 - - - 34
----
55

query I rowsort
SELECT 40 * + 61
----
2440

query I rowsort
SELECT ALL 9 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT COUNT( * ) * 19 + + 90
----
109

skipif mysql # not compatible
query I rowsort label-8576
SELECT COUNT ( * ) * 19 + + 90
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT + COUNT( * ) + 51
----
52

skipif mysql # not compatible
query I rowsort label-8577
SELECT + COUNT ( * ) + 51
----
52

query I rowsort
SELECT + COALESCE ( - 25, + 71 )
----
-25

query I rowsort
SELECT + + 62 * - - 26 AS col0
----
1612

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT DISTINCT + 88 DIV + - 95
----
0

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT + 88 / + - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT - - 96 * + - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-8581
SELECT - - 96 * + - COUNT ( * )
----
-96

query I rowsort
SELECT ALL ( + - 18 )
----
-18

query I rowsort
SELECT DISTINCT - ( 62 ) AS col0
----
-62

query I rowsort
SELECT DISTINCT - ( - 5 ) col0
----
5

query I rowsort
SELECT - - 19 AS col1
----
19

query I rowsort
SELECT DISTINCT - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT - MIN( + 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8587
SELECT - MIN ( + 30 ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL COUNT ( * ) * + + COUNT ( * )
----
1

query I rowsort
SELECT + 3 * - 85 * ( + + 17 )
----
-4335

query I rowsort
SELECT DISTINCT + 41 col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-8591
SELECT COUNT( * ), 57 AS col0
----
1
57

skipif mysql # not compatible
query II rowsort label-8591
SELECT COUNT ( * ), 57 AS col0
----
1
57

query I rowsort
SELECT ALL ( - 74 ) col2
----
-74

query I rowsort
SELECT DISTINCT ( + ( - 93 ) )
----
-93

query I rowsort
SELECT - ( 96 ) AS col0
----
-96

query I rowsort
SELECT DISTINCT ( - 43 )
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8596
SELECT ALL + CAST( 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-8596
SELECT ALL + CAST ( 55 AS INTEGER )
----
55

query II rowsort
SELECT ALL - + 94, 52 AS col2
----
-94
52

query I rowsort
SELECT + - 12 AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8599
SELECT + + NULLIF ( 76, - - CAST( NULL AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-8599
SELECT + + NULLIF ( 76, - - CAST ( NULL AS INTEGER ) )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8600
SELECT 49, CAST( NULL AS SIGNED ) AS col2
----
49
NULL

skipif mysql # not compatible
query II rowsort label-8600
SELECT 49, CAST ( NULL AS INTEGER ) AS col2
----
49
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8601
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT + 10 * - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-8602
SELECT + 10 * - COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT MIN( DISTINCT - 67 ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-8603
SELECT MIN ( DISTINCT - 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL 21 * + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL 21 * + COUNT ( * ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT MIN( ALL 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8605
SELECT MIN ( ALL 97 ) AS col0
----
97

query I rowsort
SELECT ALL + ( 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT COUNT( * ) - - - 46 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT COUNT ( * ) - - - 46 AS col1
----
-45

query I rowsort
SELECT DISTINCT COALESCE ( - + 15, - 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT - + COUNT( * ) + + - 4
----
-5

skipif mysql # not compatible
query I rowsort label-8609
SELECT - + COUNT ( * ) + + - 4
----
-5

query I rowsort
SELECT ( + - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8611
SELECT ( + COUNT( ALL - + 98 ) ) col0, + 79 AS col0
----
1
79

skipif mysql # not compatible
query II rowsort label-8611
SELECT ( + COUNT ( ALL - + 98 ) ) col0, + 79 AS col0
----
1
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8612
SELECT + COUNT( DISTINCT - CAST( + + 56 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8612
SELECT + COUNT ( DISTINCT - CAST ( + + 56 AS INTEGER ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT - CAST( 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-8613
SELECT - CAST ( 83 AS INTEGER )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ( 5 ) + - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8614
SELECT ( 5 ) + - COUNT ( * ) AS col1
----
4

query II rowsort
SELECT DISTINCT - 44 AS col0, - 53
----
-44
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT DISTINCT COUNT( * ) * 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8616
SELECT DISTINCT COUNT ( * ) * 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT + ( + + 78 ) + + COUNT( * ) * + 41 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-8617
SELECT + ( + + 78 ) + + COUNT ( * ) * + 41 AS col0
----
119

query I rowsort
SELECT 19 + - 65 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT + COUNT( + 61 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8619
SELECT + COUNT ( + 61 ) AS col1
----
1

query I rowsort
SELECT ALL + 44 * + 10 - + 83
----
357

onlyif mysql # DIV for integer division: 
query I rowsort label-8621
SELECT ALL - 65 DIV - 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - 65 / - 16 AS col2
----
4

query I rowsort
SELECT DISTINCT + + 49 AS col0
----
49

query I rowsort
SELECT + - 65 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - - ( + COUNT( * ) ) * - 13
----
-13

skipif mysql # not compatible
query I rowsort label-8624
SELECT - - ( + COUNT ( * ) ) * - 13
----
-13

query I rowsort
SELECT ALL ( + 52 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 14 * ( 84 )
----
-1176

onlyif mysql # aggregate syntax: 
query II rowsort label-8628
SELECT ALL + COUNT( * ), + COUNT( * ) + 51 + 26 AS col1
----
1
78

skipif mysql # not compatible
query II rowsort label-8628
SELECT ALL + COUNT ( * ), + COUNT ( * ) + 51 + 26 AS col1
----
1
78

query I rowsort
SELECT ( - + 84 )
----
-84

query I rowsort
SELECT DISTINCT + 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT SUM( - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-8631
SELECT SUM ( - 77 ) AS col2
----
-77

query I rowsort
SELECT - + 45 + + 98 AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8633
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) AS col0, 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-8633
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) AS col0, 56
----
NULL
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8634
SELECT ALL - - CAST( + 58 AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL - - CAST ( + 58 AS INTEGER )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT + SUM( DISTINCT - - 54 )
----
54

skipif mysql # not compatible
query I rowsort label-8635
SELECT + SUM ( DISTINCT - - 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT + - MIN( ALL - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-8636
SELECT + - MIN ( ALL - 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT COUNT( * ) * + - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8637
SELECT COUNT ( * ) * + - 23 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT DISTINCT COUNT( * ) + + - NULLIF ( 57, - 49 )
----
-56

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT COUNT ( * ) + + - NULLIF ( 57, - 49 )
----
-56

query II rowsort
SELECT 27, 92 AS col1
----
27
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT - MAX( - - ( + - 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-8640
SELECT - MAX ( - - ( + - 38 ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - 92 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8641
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - 92 AS col0
----
-91

query I rowsort
SELECT + 8 * + 62
----
496

query I rowsort
SELECT DISTINCT + 46 * + 47 AS col1
----
2162

query I rowsort
SELECT ALL + - 93 AS col2
----
-93

query I rowsort
SELECT + - 34
----
-34

query II rowsort
SELECT DISTINCT + - 77 col0, 96
----
-77
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8647
SELECT DISTINCT + + COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8647
SELECT DISTINCT + + COUNT ( * ), COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT DISTINCT + ( COUNT( * ) ) * + - 61 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8648
SELECT DISTINCT + ( COUNT ( * ) ) * + - 61 AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL CAST( - MIN( - + 30 ) AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL CAST ( - MIN ( - + 30 ) AS INTEGER )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT DISTINCT COUNT( * ) + 68 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT COUNT ( * ) + 68 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT DISTINCT - COUNT( * ) - + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT - COUNT ( * ) - + - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + - 26 AS col1
----
-26

query I rowsort
SELECT DISTINCT + + 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL - MIN( + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - MIN ( + 47 )
----
-47

query I rowsort
SELECT - ( + ( 36 ) )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8656
SELECT ALL - COUNT( * ) DIV + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - COUNT ( * ) / + + COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT + + ( - 29 ) AS col1
----
-29

query I rowsort
SELECT 96 * 17
----
1632

query II rowsort
SELECT 49, 26 AS col2
----
49
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8660
SELECT DISTINCT ( + 18 ) + - 7 DIV + COUNT( * ) DIV + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT ( + 18 ) + - 7 / + COUNT ( * ) / + COUNT ( * )
----
11

query I rowsort
SELECT ALL 57 * + 17 AS col0
----
969

query I rowsort
SELECT ALL 74 + - 5
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8663
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) + - + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT + MIN( DISTINCT + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-8664
SELECT + MIN ( DISTINCT + 81 )
----
81

query I rowsort
SELECT - 90 * + - 86 AS col0
----
7740

query I rowsort
SELECT DISTINCT - 5 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - - SUM( ALL + ( - 56 ) ) col0
----
-56

skipif mysql # not compatible
query I rowsort label-8667
SELECT - - SUM ( ALL + ( - 56 ) ) col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL + - COUNT( * ) * - 28 * - + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL + - COUNT ( * ) * - 28 * - + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ( + + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8669
SELECT ( + + COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT ALL + COUNT( + 14 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + COUNT ( + 14 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT DISTINCT + MAX( 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-8671
SELECT DISTINCT + MAX ( 85 ) AS col0
----
85

query I rowsort
SELECT 92 - + - ( - - 10 )
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT DISTINCT - 0 AS col1, 93 + 25
----
0
118

query I rowsort
SELECT ALL ( - 93 ) * - 10
----
930

query I rowsort
SELECT DISTINCT - ( + + 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT - COUNT( ALL 46 ) - + 38 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-8677
SELECT - COUNT ( ALL 46 ) - + 38 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT DISTINCT - COUNT( * ) * + 42 * - + 92
----
3864

skipif mysql # not compatible
query I rowsort label-8678
SELECT DISTINCT - COUNT ( * ) * + 42 * - + 92
----
3864

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT SUM( DISTINCT 55 )
----
55

skipif mysql # not compatible
query I rowsort label-8679
SELECT SUM ( DISTINCT 55 )
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8680
SELECT 40 DIV - - 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8680
SELECT 40 / - - 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT MIN( ALL + - 70 ) * 82
----
-5740

skipif mysql # not compatible
query I rowsort label-8681
SELECT MIN ( ALL + - 70 ) * 82
----
-5740

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL COALESCE ( - + MAX( - 87 ), COUNT( * ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL COALESCE ( - + MAX ( - 87 ), COUNT ( * ) ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL - MIN( + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL - MIN ( + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL 98 * - 32 * COUNT( * )
----
-3136

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL 98 * - 32 * COUNT ( * )
----
-3136

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT - 80 * - 0 col2, + ( - COUNT( * ) ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-8685
SELECT - 80 * - 0 col2, + ( - COUNT ( * ) ) AS col0
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8686
SELECT ( + + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ( - ( - 89 ) ) AS col1
----
89

query I rowsort
SELECT + ( + 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT + - 95 + + - 83 * - - COUNT( * )
----
-178

skipif mysql # not compatible
query I rowsort label-8689
SELECT + - 95 + + - 83 * - - COUNT ( * )
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT DISTINCT - NULLIF ( - COUNT( ALL 23 ), - 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - NULLIF ( - COUNT ( ALL 23 ), - 63 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT - - COUNT( 83 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT - - COUNT ( 83 ) col2
----
1

query I rowsort
SELECT 10 * - 93 + + 45
----
-885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT + COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8693
SELECT + COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL 18 + + - COUNT( * ) + - 68
----
-51

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL 18 + + - COUNT ( * ) + - 68
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT + COUNT( - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-8695
SELECT + COUNT ( - 81 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8696
SELECT CAST( NULL AS SIGNED ) + 15, - 52 AS col1
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-8696
SELECT CAST ( NULL AS INTEGER ) + 15, - 52 AS col1
----
NULL
-52

query I rowsort
SELECT 55 + 22 AS col1
----
77

query I rowsort
SELECT ALL + 72 + 66
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8699
SELECT + CAST( + 11 AS SIGNED ) * + + 16 * - - MIN( + 48 ) AS col1
----
8448

skipif mysql # not compatible
query I rowsort label-8699
SELECT + CAST ( + 11 AS INTEGER ) * + + 16 * - - MIN ( + 48 ) AS col1
----
8448

query I rowsort
SELECT + 20 * 21
----
420

query I rowsort
SELECT DISTINCT 3 col0
----
3

query I rowsort
SELECT 20 col0
----
20

query I rowsort
SELECT DISTINCT ( - 62 ) AS col1
----
-62

query I rowsort
SELECT - 62 * - 7 AS col2
----
434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) / - AVG ( 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) / - AVG ( 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ALL ( SUM( + 77 ) ) * + 36 * - + 12
----
-33264

skipif mysql # not compatible
query I rowsort label-8706
SELECT ALL ( SUM ( + 77 ) ) * + 36 * - + 12
----
-33264

onlyif mysql # DIV for integer division: 
query I rowsort label-8707
SELECT ALL 56 DIV - - 41
----
1

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL 56 / - - 41
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8708
SELECT 1 * - COUNT( * ) DIV + 30 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8708
SELECT 1 * - COUNT ( * ) / + 30 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT 38 * MIN( + 46 ) AS col1
----
1748

skipif mysql # not compatible
query I rowsort label-8709
SELECT 38 * MIN ( + 46 ) AS col1
----
1748

query I rowsort
SELECT DISTINCT - + 53 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT DISTINCT 15 * - + COUNT( * ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT 15 * - + COUNT ( * ) AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8712
SELECT ALL - COUNT( * ) + + CAST( NULL AS SIGNED ) - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL - COUNT ( * ) + + CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT 25 + + COUNT( ALL 11 )
----
26

skipif mysql # not compatible
query I rowsort label-8713
SELECT 25 + + COUNT ( ALL 11 )
----
26

query I rowsort
SELECT - 29 + + 97 col1
----
68

query I rowsort
SELECT DISTINCT + 92 col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - COUNT( - 22 ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8716
SELECT - COUNT ( - 22 ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT MAX( - 26 ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-8717
SELECT MAX ( - 26 ) col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT MAX( + 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-8718
SELECT MAX ( + 94 ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT COUNT( - 62 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8719
SELECT COUNT ( - 62 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8720
SELECT + - CAST( - 70 AS SIGNED ) * COUNT( * ) col1
----
70

skipif mysql # not compatible
query I rowsort label-8720
SELECT + - CAST ( - 70 AS INTEGER ) * COUNT ( * ) col1
----
70

query I rowsort
SELECT ALL ( + 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT + 66 * CAST( 68 AS SIGNED )
----
4488

skipif mysql # not compatible
query I rowsort label-8722
SELECT + 66 * CAST ( 68 AS INTEGER )
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL - COUNT( * ) * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL - COUNT ( * ) * - + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT + NULLIF ( - COUNT( * ), + 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-8725
SELECT + NULLIF ( - COUNT ( * ), + 66 )
----
-1

query I rowsort
SELECT + 8 * - 56
----
-448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8727
SELECT - NULLIF ( SUM( DISTINCT 62 ), CAST( NULL AS SIGNED ) )
----
-62

skipif mysql # not compatible
query I rowsort label-8727
SELECT - NULLIF ( SUM ( DISTINCT 62 ), CAST ( NULL AS INTEGER ) )
----
-62

query I rowsort
SELECT DISTINCT - + 84 * + + 91
----
-7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8729
SELECT - CAST( NULL AS SIGNED ) - - + 31 / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT - CAST ( NULL AS INTEGER ) - - + 31 / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT COUNT( * ) * - 42 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT COUNT ( * ) * - 42 AS col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-8731
SELECT ALL + ( 51 ) + - 25 DIV + 1
----
26

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL + ( 51 ) + - 25 / + 1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL - MAX( + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - MAX ( + 27 )
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-8733
SELECT 54 DIV + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8733
SELECT 54 / + 91 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT + - 61 * - MAX( - + 95 )
----
-5795

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT + - 61 * - MAX ( - + 95 )
----
-5795

query I rowsort
SELECT - - 46 AS col2
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-8736
SELECT - 68 AS col0, 84 DIV - 71 AS col1
----
-68
-1

skipif mysql # not compatible
query II rowsort label-8736
SELECT - 68 AS col0, 84 / - 71 AS col1
----
-68
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8737
SELECT 2 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8737
SELECT 2 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 14 + - + 75 - + 90 AS col2
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT MIN( - 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-8739
SELECT MIN ( - 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT ALL + COUNT( * ) - - 51
----
52

skipif mysql # not compatible
query I rowsort label-8740
SELECT ALL + COUNT ( * ) - - 51
----
52

query I rowsort
SELECT DISTINCT ( - 53 )
----
-53

query I rowsort
SELECT ( - + 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + - ( + + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8743
SELECT + - ( + + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT - + 8 AS col2
----
-8

query I rowsort
SELECT DISTINCT ( - 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT ALL - 47 * - - COUNT( * ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8746
SELECT ALL - 47 * - - COUNT ( * ) AS col0
----
-47

query I rowsort
SELECT DISTINCT - + 56 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT + SUM( DISTINCT 45 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-8748
SELECT + SUM ( DISTINCT 45 ) col0
----
45

query I rowsort
SELECT 21 - + 15
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT 10 + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8750
SELECT 10 + COUNT ( * )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8751
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT MIN( DISTINCT 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT MIN ( DISTINCT 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT - MIN( - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8753
SELECT - MIN ( - 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT + COUNT( DISTINCT + 59 ) * 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + COUNT ( DISTINCT + 59 ) * 33 AS col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT - 20 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-8755
SELECT - 20 / + 88
----
0

query I rowsort
SELECT - COALESCE ( - 83, + 98 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL 84 + COUNT( * ) + + MAX( DISTINCT - ( - 58 ) )
----
143

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL 84 + COUNT ( * ) + + MAX ( DISTINCT - ( - 58 ) )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT - 30 + - - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8758
SELECT - 30 + - - COUNT ( * )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT + CAST( + 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-8759
SELECT + CAST ( + 85 AS INTEGER ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT + MAX( ALL + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-8760
SELECT + MAX ( ALL + + 82 )
----
82

query II rowsort
SELECT ALL - 83, + 65 AS col0
----
-83
65

query I rowsort
SELECT ALL 98 * + 75
----
7350

query I rowsort
SELECT DISTINCT - 76 + + 36 - ( ( - 85 ) ) AS col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8764
SELECT 47 DIV + COUNT( ALL - 84 )
----
47

skipif mysql # not compatible
query I rowsort label-8764
SELECT 47 / + COUNT ( ALL - 84 )
----
47

query II rowsort
SELECT 9, 68 AS col1
----
9
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL - MAX( ALL 96 ) - + + 13 AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - MAX ( ALL 96 ) - + + 13 AS col0
----
-109

query II rowsort
SELECT DISTINCT - 94 col0, 23
----
-94
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8768
SELECT + 74 * 48 + - ( + COUNT( * ) ) AS col1
----
3551

skipif mysql # not compatible
query I rowsort label-8768
SELECT + 74 * 48 + - ( + COUNT ( * ) ) AS col1
----
3551

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT SUM( DISTINCT 25 )
----
25

skipif mysql # not compatible
query I rowsort label-8769
SELECT SUM ( DISTINCT 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8771
SELECT - + 16 DIV COALESCE ( CAST( NULL AS SIGNED ), + 89, 13 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT - + 16 / COALESCE ( CAST ( NULL AS INTEGER ), + 89, 13 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ( + - COUNT( * ) ) * + 83
----
-83

skipif mysql # not compatible
query I rowsort label-8772
SELECT ( + - COUNT ( * ) ) * + 83
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8773
SELECT ALL + 89 * - COUNT( * ) DIV COUNT( - 0 ), + MIN( ALL + 90 ) AS col2
----
-89
90

skipif mysql # not compatible
query II rowsort label-8773
SELECT ALL + 89 * - COUNT ( * ) / COUNT ( - 0 ), + MIN ( ALL + 90 ) AS col2
----
-89
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8774
SELECT ALL + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col1, 9 col1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-8774
SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col1, 9 col1
----
NULL
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8775
SELECT 98 DIV + 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8775
SELECT 98 / + 76 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT COUNT( * ) + MAX( ALL + 6 )
----
7

skipif mysql # not compatible
query I rowsort label-8776
SELECT COUNT ( * ) + MAX ( ALL + 6 )
----
7

query I rowsort
SELECT + - 21 AS col0
----
-21

query I rowsort
SELECT + - 10 AS col1
----
-10

query I rowsort
SELECT DISTINCT - ( + + 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT - COUNT( + 93 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT - COUNT ( + 93 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT ( COUNT( * ) ) * 69
----
69

skipif mysql # not compatible
query I rowsort label-8781
SELECT ( COUNT ( * ) ) * 69
----
69

query I rowsort
SELECT ( + - 88 ) * - 26 AS col2
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT ALL - COUNT( ALL + 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL - COUNT ( ALL + 36 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT COUNT( DISTINCT - 47 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT COUNT ( DISTINCT - 47 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT + - 7 * 64 * + - COUNT( * ) + COUNT( * )
----
449

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT + - 7 * 64 * + - COUNT ( * ) + COUNT ( * )
----
449

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT + COUNT( * ) col2, - ( + 45 )
----
1
-45

skipif mysql # not compatible
query II rowsort label-8786
SELECT + COUNT ( * ) col2, - ( + 45 )
----
1
-45

query I rowsort
SELECT ( - + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT DISTINCT + + MIN( + - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-8788
SELECT DISTINCT + + MIN ( + - 66 )
----
-66

query I rowsort
SELECT ALL - 25 * + - 32 AS col0
----
800

query I rowsort
SELECT ALL - 40 + - 60 AS col0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8791
SELECT ALL + 59 DIV - 60 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL + 59 / - 60 + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + - 93 col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL + SUM( - + 94 ) + COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL + SUM ( - + 94 ) + COUNT ( * ) AS col2
----
-93

query I rowsort
SELECT DISTINCT 40 col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8795
SELECT 21 AS col2, COUNT( * ) AS col2
----
21
1

skipif mysql # not compatible
query II rowsort label-8795
SELECT 21 AS col2, COUNT ( * ) AS col2
----
21
1

query I rowsort
SELECT + - ( 78 ) AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT COUNT( * ) * 26 col0
----
26

skipif mysql # not compatible
query I rowsort label-8797
SELECT COUNT ( * ) * 26 col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT ALL - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL - + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8799
SELECT DISTINCT - - COUNT( * ), 25 AS col1
----
1
25

skipif mysql # not compatible
query II rowsort label-8799
SELECT DISTINCT - - COUNT ( * ), 25 AS col1
----
1
25

query I rowsort
SELECT DISTINCT + + 16 + + 68 - + 0
----
84

query I rowsort
SELECT DISTINCT 1 - - 99 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL - COUNT( * ) - + 0 + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL - COUNT ( * ) - + 0 + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8803
SELECT + - 49 DIV - 68 * + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8803
SELECT + - 49 / - 68 * + + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL ( - 51 ) col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT - 6 * - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8805
SELECT - 6 * - COUNT ( * )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT + COUNT( * ) * 80
----
80

skipif mysql # not compatible
query I rowsort label-8806
SELECT + COUNT ( * ) * 80
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8807
SELECT - COUNT( ALL + ( - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT - COUNT ( ALL + ( - CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT ALL + + 64 AS col0
----
64

query I rowsort
SELECT + + ( + 19 ) AS col0
----
19

query II rowsort
SELECT + - 22 AS col1, 62 AS col2
----
-22
62

query I rowsort
SELECT ( + 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL + COUNT( - 55 )
----
1

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL + COUNT ( - 55 )
----
1

query I rowsort
SELECT ALL + 88 * 82 col0
----
7216

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ( 10 ) * + COUNT( * ) * 21 AS col1
----
210

skipif mysql # not compatible
query I rowsort label-8814
SELECT ( 10 ) * + COUNT ( * ) * 21 AS col1
----
210

query I rowsort
SELECT 7 + + 8 AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL - COUNT( + 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - COUNT ( + 7 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT 59 * + ( + 96 ) + + COUNT( * )
----
5665

skipif mysql # not compatible
query I rowsort label-8817
SELECT 59 * + ( + 96 ) + + COUNT ( * )
----
5665

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT + MIN( ALL - 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-8818
SELECT + MIN ( ALL - 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL MIN( + 29 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL MIN ( + 29 ) AS col1
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8820
SELECT - 50 * - + CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8820
SELECT - 50 * - + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT ( + SUM( ALL + 33 ) )
----
33

skipif mysql # not compatible
query I rowsort label-8821
SELECT ( + SUM ( ALL + 33 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT DISTINCT + SUM( DISTINCT 63 )
----
63

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT + SUM ( DISTINCT 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT + COUNT( * ) + + 22 * + 1 col2
----
23

skipif mysql # not compatible
query I rowsort label-8823
SELECT + COUNT ( * ) + + 22 * + 1 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT + MIN( DISTINCT 6 )
----
6

skipif mysql # not compatible
query I rowsort label-8824
SELECT + MIN ( DISTINCT 6 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT ALL CAST( - + 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL CAST ( - + 5 AS INTEGER )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8826
SELECT ALL - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8827
SELECT 36 + COUNT( * ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8827
SELECT 36 + COUNT ( * ) AS col1
----
37

query I rowsort
SELECT DISTINCT 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT - COUNT( * ) - 34
----
-35

skipif mysql # not compatible
query I rowsort label-8829
SELECT - COUNT ( * ) - 34
----
-35

query I rowsort
SELECT 85 + + 34
----
119

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT DISTINCT - 75 * - 51 AS col2, COUNT( * )
----
3825
1

skipif mysql # not compatible
query II rowsort label-8831
SELECT DISTINCT - 75 * - 51 AS col2, COUNT ( * )
----
3825
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT 35 * + + CAST( - + 2 AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8832
SELECT 35 * + + CAST ( - + 2 AS INTEGER ) AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT MIN( + 10 ) * + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-8833
SELECT MIN ( + 10 ) * + COUNT ( * )
----
10

query I rowsort
SELECT + 56 * 78 + + 44 AS col1
----
4412

onlyif mysql # aggregate syntax: 
query II rowsort label-8835
SELECT - 58 AS col1, + COUNT( * ) AS col1
----
-58
1

skipif mysql # not compatible
query II rowsort label-8835
SELECT - 58 AS col1, + COUNT ( * ) AS col1
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT DISTINCT 66 * MAX( 61 ) AS col2
----
4026

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT 66 * MAX ( 61 ) AS col2
----
4026

query I rowsort
SELECT DISTINCT + - 33
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL SUM( + - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL SUM ( + - 68 )
----
-68

query I rowsort
SELECT ALL + 69 + - 9
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8840
SELECT + COUNT( ALL + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT + COUNT ( ALL + + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT ALL + COUNT( * ) * - + 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL + COUNT ( * ) * - + 19 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT COUNT( * ) + + 99 * + 29 AS col0
----
2872

skipif mysql # not compatible
query I rowsort label-8842
SELECT COUNT ( * ) + + 99 * + 29 AS col0
----
2872

query I rowsort
SELECT 98 * - - 15
----
1470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8844
SELECT ALL - 22 * - COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - 22 * - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL + COUNT( 14 )
----
1

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + COUNT ( 14 )
----
1

query I rowsort
SELECT ALL + + 29 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8847
SELECT - - COUNT( * ) DIV + 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8847
SELECT - - COUNT ( * ) / + 32 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT - COUNT( + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-8848
SELECT - COUNT ( + 24 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8849
SELECT ALL 87 AS col2, 53 + - CAST( NULL AS SIGNED )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-8849
SELECT ALL 87 AS col2, 53 + - CAST ( NULL AS INTEGER )
----
87
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8850
SELECT ALL COUNT( * ) * 2 / + CAST( NULL AS SIGNED ) + - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL COUNT ( * ) * 2 / + CAST ( NULL AS INTEGER ) + - 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8851
SELECT COUNT( * ) col0, 59 AS col2
----
1
59

skipif mysql # not compatible
query II rowsort label-8851
SELECT COUNT ( * ) col0, 59 AS col2
----
1
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT + 61 * - 24 AS col1, + 90 AS col1
----
-1464
90

query I rowsort
SELECT ALL + ( 13 ) col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT 24 * - MIN( - 41 ) AS col1
----
984

skipif mysql # not compatible
query I rowsort label-8855
SELECT 24 * - MIN ( - 41 ) AS col1
----
984

query I rowsort
SELECT DISTINCT + 95 + 83
----
178

onlyif mysql # aggregate syntax: 
query II rowsort label-8857
SELECT 14 + + COUNT( * ) * + + 54 AS col1, 97 AS col0
----
68
97

skipif mysql # not compatible
query II rowsort label-8857
SELECT 14 + + COUNT ( * ) * + + 54 AS col1, 97 AS col0
----
68
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8858
SELECT ALL + MAX( DISTINCT CAST( - + 56 AS SIGNED ) ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + MAX ( DISTINCT CAST ( - + 56 AS INTEGER ) ) AS col0
----
-56

query I rowsort
SELECT DISTINCT - 32 AS col2
----
-32

query I rowsort
SELECT ALL - 62 AS col1
----
-62

query II rowsort
SELECT + ( + 39 ) AS col1, + 62
----
39
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8862
SELECT + 93 AS col2, ( - COUNT( * ) )
----
93
-1

skipif mysql # not compatible
query II rowsort label-8862
SELECT + 93 AS col2, ( - COUNT ( * ) )
----
93
-1

query I rowsort
SELECT DISTINCT - + 78 * + ( + 60 )
----
-4680

query I rowsort
SELECT ALL 1 col1
----
1

query II rowsort
SELECT ALL 12, - 3 AS col1
----
12
-3

query I rowsort
SELECT + 88 * 72 AS col0
----
6336

query I rowsort
SELECT + ( - 49 )
----
-49

query I rowsort
SELECT + - 67 - - + 32 AS col0
----
-35

query I rowsort
SELECT ALL ( - 12 ) AS col2
----
-12

query I rowsort
SELECT 24 * + - NULLIF ( - 9, - 35 )
----
216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8871
SELECT - CAST( COUNT( * ) AS SIGNED ) + - 27 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8871
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - 27 AS col2
----
-28

query I rowsort
SELECT - ( + - 67 ) AS col1
----
67

query I rowsort
SELECT ALL - 86 + + + 23 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT ALL ( 76 ) * 40 - - ( - + MAX( + 33 ) ) AS col2
----
3007

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL ( 76 ) * 40 - - ( - + MAX ( + 33 ) ) AS col2
----
3007

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ( ( - + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8875
SELECT ( ( - + COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8876
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - 4 * + - 1
----
4

query I rowsort
SELECT DISTINCT + 49 * + + 51
----
2499

onlyif mysql # aggregate syntax: 
query II rowsort label-8879
SELECT DISTINCT + COUNT( * ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-8879
SELECT DISTINCT + COUNT ( * ), COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8880
SELECT DISTINCT + 16 * - - SUM( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + 16 * - - SUM ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query II rowsort
SELECT ALL + 92 AS col2, - 16 + + 18 AS col0
----
92
2

query I rowsort
SELECT - + 28 + - 88
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8883
SELECT + SUM( DISTINCT - - 34 ) + + - COUNT( * ) DIV + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-8883
SELECT + SUM ( DISTINCT - - 34 ) + + - COUNT ( * ) / + + COUNT ( * )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + 76 - + 0 + - COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8884
SELECT + 76 - + 0 + - COUNT ( * ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT DISTINCT + COUNT( DISTINCT + - 95 ) * ( - - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + COUNT ( DISTINCT + - 95 ) * ( - - 57 )
----
57

query I rowsort
SELECT ALL - - 60 AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8887
SELECT + CAST( NULL AS SIGNED ) * + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT + CAST ( NULL AS INTEGER ) * + - 87
----
NULL

query I rowsort
SELECT - - 19 col1
----
19

query I rowsort
SELECT ALL 61 + + 13 AS col0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT CAST( - 38 AS SIGNED ) - - + 91 + 96
----
149

skipif mysql # not compatible
query I rowsort label-8890
SELECT CAST ( - 38 AS INTEGER ) - - + 91 + 96
----
149

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8891
SELECT CAST( NULL AS DECIMAL ) * + 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT CAST ( NULL AS REAL ) * + 31 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 99 - - 26
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT - MAX( 84 ) * COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8893
SELECT - MAX ( 84 ) * COUNT ( * ) AS col0
----
-84

query I rowsort
SELECT ALL - - 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT 98 + + COUNT( * ) col0
----
99

skipif mysql # not compatible
query I rowsort label-8895
SELECT 98 + + COUNT ( * ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT COUNT( * ) + + - COUNT( * ) * + + COUNT( * ) * ( - - 94 ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-8896
SELECT COUNT ( * ) + + - COUNT ( * ) * + + COUNT ( * ) * ( - - 94 ) col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL MAX( ALL - NULLIF ( ( 89 ), + ( + 98 ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL MAX ( ALL - NULLIF ( ( 89 ), + ( + 98 ) ) )
----
-89

query I rowsort
SELECT ALL + + 33 AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL + SUM( 7 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + SUM ( 7 ) AS col2
----
7

query I rowsort
SELECT - - 64 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8901
SELECT DISTINCT 66 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT 66 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT DISTINCT COUNT( * ) * 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT COUNT ( * ) * 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT DISTINCT + MAX( + + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-8904
SELECT DISTINCT + MAX ( + + 17 )
----
17

query I rowsort
SELECT DISTINCT + ( - + 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT - COUNT( * ) * - 71
----
71

skipif mysql # not compatible
query I rowsort label-8906
SELECT - COUNT ( * ) * - 71
----
71

query I rowsort
SELECT - - 17 AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8908
SELECT + COUNT( * ) AS col1, 58
----
1
58

skipif mysql # not compatible
query II rowsort label-8908
SELECT + COUNT ( * ) AS col1, 58
----
1
58

query I rowsort
SELECT 17 + - 4
----
13

query I rowsort
SELECT DISTINCT - 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT COUNT( * ) + - 48
----
-47

skipif mysql # not compatible
query I rowsort label-8911
SELECT COUNT ( * ) + - 48
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT ALL - CAST( - + ( - 12 ) AS SIGNED ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL - CAST ( - + ( - 12 ) AS INTEGER ) AS col0
----
-12

query I rowsort
SELECT ALL - 52 col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT - - MIN( DISTINCT + 46 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-8914
SELECT - - MIN ( DISTINCT + 46 ) AS col0
----
46

query I rowsort
SELECT - - 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL - + SUM( + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL - + SUM ( + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT MAX( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-8917
SELECT MAX ( - 40 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT CAST( + - ( + 79 ) AS SIGNED ) * + 15
----
-1185

skipif mysql # not compatible
query I rowsort label-8918
SELECT CAST ( + - ( + 79 ) AS INTEGER ) * + 15
----
-1185

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + MIN( ALL ( 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-8919
SELECT + MIN ( ALL ( 61 ) )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8920
SELECT ALL 50 * + - 98 * - SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL 50 * + - 98 * - SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL - 21 AS col2, + 26 col2
----
-21
26

query I rowsort
SELECT + - 80 + - + 35 AS col0
----
-115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT - 17 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT - 17 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 0 - - + 30
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8925
SELECT ALL 89 * - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + + 85 - - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL 89 * - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + + 85 - - 30
----
NULL

query I rowsort
SELECT ( - + 14 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT - COUNT( * ) - + + 37 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8927
SELECT - COUNT ( * ) - + + 37 AS col2
----
-38

query II rowsort
SELECT 68 * - 35 col0, - 25 - - ( - + 26 )
----
-2380
-51

query I rowsort
SELECT + + 83 AS col1
----
83

query I rowsort
SELECT DISTINCT - + 62
----
-62

query I rowsort
SELECT ALL - + 89 AS col1
----
-89

query II rowsort
SELECT DISTINCT - - 28, + 95 AS col1
----
28
95

query I rowsort
SELECT + 47 * 65
----
3055

query I rowsort
SELECT DISTINCT + 53 col1
----
53

query I rowsort
SELECT ALL + - 28 AS col0
----
-28

query I rowsort
SELECT DISTINCT + + ( - 23 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8937
SELECT DISTINCT CAST( 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-8937
SELECT DISTINCT CAST ( 92 AS INTEGER )
----
92

query I rowsort
SELECT ALL 81 * 35 AS col1
----
2835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8939
SELECT + CAST( 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-8939
SELECT + CAST ( 4 AS INTEGER )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8940
SELECT ALL - 91 DIV - 31 + - 33
----
-31

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL - 91 / - 31 + - 33
----
-31

query I rowsort
SELECT ( 7 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT - 75 * - COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT - 75 * - COUNT ( * ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT ( COUNT( * ) ) - 33 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-8943
SELECT ( COUNT ( * ) ) - 33 AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8944
SELECT COUNT( * ) DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-8944
SELECT COUNT ( * ) / - 50
----
0

query I rowsort
SELECT DISTINCT + 14 * - 83 AS col2
----
-1162

query I rowsort
SELECT + ( + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT DISTINCT COUNT( * ) * + 62
----
62

skipif mysql # not compatible
query I rowsort label-8947
SELECT DISTINCT COUNT ( * ) * + 62
----
62

query I rowsort
SELECT - ( 32 ) * 71
----
-2272

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT DISTINCT + ( SUM( - + 25 ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT + ( SUM ( - + 25 ) ) AS col1
----
-25

query I rowsort
SELECT + NULLIF ( - + 38, - 10 ) AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8951
SELECT DISTINCT COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT ALL 88 - 59 AS col2
----
29

query I rowsort
SELECT 15 + + - ( - - 1 ) AS col1
----
14

query I rowsort
SELECT + 76 * + + 62 AS col0
----
4712

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT + COUNT( * ) + - ( + 46 )
----
-45

skipif mysql # not compatible
query I rowsort label-8955
SELECT + COUNT ( * ) + - ( + 46 )
----
-45

query I rowsort
SELECT - - 32 col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8957
SELECT COUNT( DISTINCT + 62 ) DIV COUNT( * ) + 75 * + ( + 34 ) AS col1
----
2551

skipif mysql # not compatible
query I rowsort label-8957
SELECT COUNT ( DISTINCT + 62 ) / COUNT ( * ) + 75 * + ( + 34 ) AS col1
----
2551

query I rowsort
SELECT ( + 63 ) AS col2
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT + 43 DIV + + 20 col1
----
2

skipif mysql # not compatible
query I rowsort label-8959
SELECT + 43 / + + 20 col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8960
SELECT + 76 AS col2, COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-8960
SELECT + 76 AS col2, COUNT ( * )
----
76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT SUM( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-8961
SELECT SUM ( - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT MIN( - - 17 ) col1
----
17

skipif mysql # not compatible
query I rowsort label-8962
SELECT MIN ( - - 17 ) col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL + 61 * MIN( + ( 64 ) )
----
3904

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + 61 * MIN ( + ( 64 ) )
----
3904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8964
SELECT - + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8964
SELECT - + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT ALL + - CAST( NULL AS SIGNED ) + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 36
----
NULL

query I rowsort
SELECT DISTINCT + 95 * + 98
----
9310

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + COUNT( + + 96 ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + COUNT ( + + 96 ) * + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT + MAX( ALL - 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-8968
SELECT + MAX ( ALL - 75 )
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-8969
SELECT + COUNT( * ) * + + 95 AS col0, 48
----
95
48

skipif mysql # not compatible
query II rowsort label-8969
SELECT + COUNT ( * ) * + + 95 AS col0, 48
----
95
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8970
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + + + 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) + + + 91 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8971
SELECT ALL - COUNT( * ) DIV - + 22 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - COUNT ( * ) / - + 22 AS col0
----
0

query I rowsort
SELECT - 60 + 24 AS col1
----
-36

query I rowsort
SELECT DISTINCT ( 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - COUNT( * ) + 94 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-8974
SELECT - COUNT ( * ) + 94 AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - COUNT( ALL - 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - COUNT ( ALL - 15 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ALL - ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL - ( + - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL 26 * + 32 AS col0
----
832

query I rowsort
SELECT DISTINCT - 49 + + 80
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT + 91 + - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT + 91 + - COUNT ( * ) AS col0
----
90

query I rowsort
SELECT + 89 * + - 60
----
-5340

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + + 94 * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-8981
SELECT + + 94 * COUNT ( * )
----
94

query I rowsort
SELECT - 30 * + 59 AS col0
----
-1770

query I rowsort
SELECT + 4 + + + 54
----
58

query I rowsort
SELECT + 32 col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-8985
SELECT COUNT( * ), 12 AS col1
----
1
12

skipif mysql # not compatible
query II rowsort label-8985
SELECT COUNT ( * ), 12 AS col1
----
1
12

query I rowsort
SELECT 90 - - 93 AS col2
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT + COUNT( - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-8987
SELECT + COUNT ( - 85 )
----
1

query II rowsort
SELECT 65 AS col1, + 21
----
65
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT ALL MIN( + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL MIN ( + 68 ) AS col1
----
68

query II rowsort
SELECT DISTINCT 33 AS col1, 79
----
33
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - COUNT( * ) * 21 * 77
----
-1617

skipif mysql # not compatible
query I rowsort label-8991
SELECT - COUNT ( * ) * 21 * 77
----
-1617

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8992
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8993
SELECT COUNT( * ) * + + COALESCE ( - + 51, - 19 ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT COUNT ( * ) * + + COALESCE ( - + 51, - 19 ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT + 55 + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8994
SELECT + 55 + + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8995
SELECT + + 11 DIV COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-8995
SELECT + + 11 / COUNT ( * ) AS col1
----
11

query I rowsort
SELECT DISTINCT + 97 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT NULLIF ( + 24, + SUM( - 24 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8997
SELECT NULLIF ( + 24, + SUM ( - 24 ) ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT SUM( + 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8998
SELECT SUM ( + 2 ) AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT DISTINCT 74 + 44 DIV COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT 74 + 44 / COUNT ( * )
----
118

query I rowsort
SELECT ALL - ( 80 ) + + - 95 + - 20
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT + COUNT( * ) * - 98 col1
----
-98

skipif mysql # not compatible
query I rowsort label-9001
SELECT + COUNT ( * ) * - 98 col1
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9002
SELECT ALL + 11 DIV + - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL + 11 / + - COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT - 36 col2
----
-36

query I rowsort
SELECT + 13 + - 62
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL COUNT( - - 6 ) - + 50 col1
----
-49

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL COUNT ( - - 6 ) - + 50 col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT + ( - - 15 ) * MAX( + 36 )
----
540

skipif mysql # not compatible
query I rowsort label-9006
SELECT + ( - - 15 ) * MAX ( + 36 )
----
540

onlyif mysql # aggregate syntax: 
query II rowsort label-9007
SELECT + 52 * + + COUNT( * ) + + 47 AS col0, 18 * - 0
----
99
0

skipif mysql # not compatible
query II rowsort label-9007
SELECT + 52 * + + COUNT ( * ) + + 47 AS col0, 18 * - 0
----
99
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9008
SELECT - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 14
----
14

query I rowsort
SELECT - - 52 AS col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9011
SELECT + COUNT( DISTINCT - 32 ), 36 AS col2
----
1
36

skipif mysql # not compatible
query II rowsort label-9011
SELECT + COUNT ( DISTINCT - 32 ), 36 AS col2
----
1
36

query I rowsort
SELECT DISTINCT + - CASE - 4 WHEN - 58 THEN - 5 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL - + 61 * + 86 + - - COUNT( * ) + - 88
----
-5333

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL - + 61 * + 86 + - - COUNT ( * ) + - 88
----
-5333

query I rowsort
SELECT ALL ( - 90 ) AS col1
----
-90

query I rowsort
SELECT ALL ( 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT MAX( + + 94 ) - + 78 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-9016
SELECT MAX ( + + 94 ) - + 78 AS col2
----
16

query I rowsort
SELECT DISTINCT - + 58
----
-58

query I rowsort
SELECT DISTINCT 52 + - 13 AS col0
----
39

query II rowsort
SELECT + 2 AS col0, + 70 AS col2
----
2
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT + 90 * - 50 + + COUNT( * ) * - + COUNT( * )
----
-4501

skipif mysql # not compatible
query I rowsort label-9020
SELECT + 90 * - 50 + + COUNT ( * ) * - + COUNT ( * )
----
-4501

query I rowsort
SELECT ALL - - 30
----
30

query I rowsort
SELECT + ( + 60 ) + - + 57 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT DISTINCT + COUNT( * ) + 64 col1
----
65

skipif mysql # not compatible
query I rowsort label-9023
SELECT DISTINCT + COUNT ( * ) + 64 col1
----
65

query I rowsort
SELECT + 39 + + - ( + 69 )
----
-30

query II rowsort
SELECT 50, 69 AS col2
----
50
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT + SUM( ALL + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-9026
SELECT + SUM ( ALL + 7 )
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-9027
SELECT - 60 DIV + + 38, 60 AS col0
----
-1
60

skipif mysql # not compatible
query II rowsort label-9027
SELECT - 60 / + + 38, 60 AS col0
----
-1
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9028
SELECT ALL - COUNT( * ) DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9028
SELECT ALL - COUNT ( * ) / 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - SUM( + 80 ) + + 42
----
-38

skipif mysql # not compatible
query I rowsort label-9029
SELECT - SUM ( + 80 ) + + 42
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9030
SELECT + + CAST( 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9030
SELECT + + CAST ( 56 AS INTEGER ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + COUNT( * ) * 3 + + - 3
----
0

skipif mysql # not compatible
query I rowsort label-9031
SELECT + COUNT ( * ) * 3 + + - 3
----
0

query I rowsort
SELECT DISTINCT + + 53
----
53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9033
SELECT - ( - + MIN( ALL CAST( NULL AS DECIMAL ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT - ( - + MIN ( ALL CAST ( NULL AS REAL ) ) ) col2
----
NULL

query I rowsort
SELECT 83 + - + 71
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL COUNT( * ) * + 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL COUNT ( * ) * + 19 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT COUNT( * ) * - 3 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9036
SELECT COUNT ( * ) * - 3 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT - + 93 * COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT - + 93 * COUNT ( * ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT + 47 + 79 + + MAX( DISTINCT - 25 )
----
101

skipif mysql # not compatible
query I rowsort label-9038
SELECT + 47 + 79 + + MAX ( DISTINCT - 25 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL COUNT( * ) * + 15 * + 15
----
225

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL COUNT ( * ) * + 15 * + 15
----
225

query I rowsort
SELECT ALL ( + 33 ) AS col2
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9041
SELECT ALL - + CAST( NULL AS DECIMAL ) / - 44 * + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - + CAST ( NULL AS REAL ) / - 44 * + 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT ALL + MIN( - 91 ) AS col0, + 66 AS col1
----
-91
66

skipif mysql # not compatible
query II rowsort label-9042
SELECT ALL + MIN ( - 91 ) AS col0, + 66 AS col1
----
-91
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9043
SELECT DISTINCT CAST( + 39 AS SIGNED ) AS col0, - 91
----
39
-91

skipif mysql # not compatible
query II rowsort label-9043
SELECT DISTINCT CAST ( + 39 AS INTEGER ) AS col0, - 91
----
39
-91

query I rowsort
SELECT ALL 22 col1
----
22

query I rowsort
SELECT ( + 12 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9046
SELECT DISTINCT 64 + - 99, CAST( 13 AS SIGNED ) AS col1
----
-35
13

skipif mysql # not compatible
query II rowsort label-9046
SELECT DISTINCT 64 + - 99, CAST ( 13 AS INTEGER ) AS col1
----
-35
13

query I rowsort
SELECT ALL + ( - 88 )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9048
SELECT ALL - COUNT( * ) * - ( + COUNT( * ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL - COUNT ( * ) * - ( + COUNT ( * ) ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT MAX( 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9049
SELECT MAX ( 90 ) AS col0
----
90

query I rowsort
SELECT DISTINCT - 85 col0
----
-85

query I rowsort
SELECT DISTINCT - 95 + + 16
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT ALL + COUNT( * ) * 77 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + COUNT ( * ) * 77 AS col2
----
77

query I rowsort
SELECT - 58 - 10
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT + MIN( + - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-9054
SELECT + MIN ( + - 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9055
SELECT ALL + CAST( - MIN( DISTINCT - + 28 ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL + CAST ( - MIN ( DISTINCT - + 28 ) AS INTEGER )
----
28

query I rowsort
SELECT ALL + - 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT DISTINCT + COALESCE ( - COUNT( * ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT + COALESCE ( - COUNT ( * ), COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL - COUNT( * ) * - - 94
----
-94

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - COUNT ( * ) * - - 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT DISTINCT + - ( 62 ) * - - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT + - ( 62 ) * - - COUNT ( * )
----
-62

query I rowsort
SELECT - 71 + 55 AS col0
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9061
SELECT DISTINCT - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 18 col1
----
-18

query II rowsort
SELECT ALL 96, 47 AS col2
----
96
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT ALL + CAST( 97 AS SIGNED ) + - ( - 46 )
----
143

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL + CAST ( 97 AS INTEGER ) + - ( - 46 )
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - COUNT( DISTINCT - 57 )
----
-1

skipif mysql # not compatible
query I rowsort label-9065
SELECT - COUNT ( DISTINCT - 57 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9066
SELECT + CAST( NULL AS SIGNED ) + 78 * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT + CAST ( NULL AS INTEGER ) + 78 * - - COUNT ( * )
----
NULL

query II rowsort
SELECT - 34 + + 33 AS col1, + 40 AS col0
----
-1
40

query I rowsort
SELECT + 82 * 83
----
6806

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT DISTINCT 57 * + COUNT( * ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT 57 * + COUNT ( * ) AS col1
----
57

query I rowsort
SELECT ALL + + ( - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9071
SELECT COUNT( * ), NULLIF ( - + 59, 55 + + COUNT( * ) + + COUNT( * ) ) AS col0
----
1
-59

skipif mysql # not compatible
query II rowsort label-9071
SELECT COUNT ( * ), NULLIF ( - + 59, 55 + + COUNT ( * ) + + COUNT ( * ) ) AS col0
----
1
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + COUNT( * ) + - + 74 * - SUM( ALL 8 ) AS col1
----
593

skipif mysql # not compatible
query I rowsort label-9072
SELECT + COUNT ( * ) + - + 74 * - SUM ( ALL 8 ) AS col1
----
593

query I rowsort
SELECT ALL + 56 * 15
----
840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9074
SELECT - COUNT( * ) DIV 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9074
SELECT - COUNT ( * ) / 36 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL ( + 14 ) + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL ( + 14 ) + - COUNT ( * )
----
13

query I rowsort
SELECT DISTINCT - + ( + - 30 )
----
30

query I rowsort
SELECT DISTINCT 34 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT + COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT MAX( ALL + 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9079
SELECT MAX ( ALL + 84 )
----
84

query I rowsort
SELECT + + 71 - - 52
----
123

query I rowsort
SELECT - - 22 AS col1
----
22

query I rowsort
SELECT ( + ( - 93 ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT + + 84 + + MIN( 63 ) * - + 56 AS col2
----
-3444

skipif mysql # not compatible
query I rowsort label-9083
SELECT + + 84 + + MIN ( 63 ) * - + 56 AS col2
----
-3444

query I rowsort
SELECT ALL + ( + + 43 ) col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT + COUNT( * ) - 25
----
-24

skipif mysql # not compatible
query I rowsort label-9085
SELECT + COUNT ( * ) - 25
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT ALL - CAST( + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL - CAST ( + 34 AS INTEGER ) AS col2
----
-34

query I rowsort
SELECT DISTINCT - ( - + 56 )
----
56

query I rowsort
SELECT DISTINCT + 58 + - 87
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT - COUNT( * ) - + + 44 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-9089
SELECT - COUNT ( * ) - + + 44 AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL - COUNT( ALL + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL - COUNT ( ALL + 59 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9092
SELECT ALL - MIN( DISTINCT 82 ) AS col1, 93
----
-82
93

skipif mysql # not compatible
query II rowsort label-9092
SELECT ALL - MIN ( DISTINCT 82 ) AS col1, 93
----
-82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ALL + SUM( ALL - - 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL + SUM ( ALL - - 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT + SUM( DISTINCT + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT + SUM ( DISTINCT + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT DISTINCT - 67 + - COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT - 67 + - COUNT ( * ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT ALL 64 * COUNT( * ) col2
----
64

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL 64 * COUNT ( * ) col2
----
64

query I rowsort
SELECT DISTINCT - 44 AS col1
----
-44

query I rowsort
SELECT ALL - 36 col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9099
SELECT + CAST( NULL AS SIGNED ) col0, + 17 * + + SUM( ALL - - 73 )
----
NULL
1241

skipif mysql # not compatible
query II rowsort label-9099
SELECT + CAST ( NULL AS INTEGER ) col0, + 17 * + + SUM ( ALL - - 73 )
----
NULL
1241

query I rowsort
SELECT ALL - + 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT DISTINCT - COUNT( * ) * + 16
----
-16

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT - COUNT ( * ) * + 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT - MAX( - 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-9102
SELECT - MAX ( - 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9103
SELECT COUNT( * ) DIV + + MAX( - + 2 )
----
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT COUNT ( * ) / + + MAX ( - + 2 )
----
0

query I rowsort
SELECT DISTINCT ( - - 24 ) + + - 81
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT + + COUNT( * ) * + COUNT( * ) + + - COUNT( * ) * 48 * - 19 AS col2
----
913

skipif mysql # not compatible
query I rowsort label-9105
SELECT + + COUNT ( * ) * + COUNT ( * ) + + - COUNT ( * ) * 48 * - 19 AS col2
----
913

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT + 90 DIV - 61 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9106
SELECT + 90 / - 61 AS col2
----
-1

query I rowsort
SELECT DISTINCT + 7 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT + MAX( DISTINCT - 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9108
SELECT + MAX ( DISTINCT - 61 ) AS col1
----
-61

query I rowsort
SELECT ALL ( + ( 86 ) )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9110
SELECT + COUNT( * ) + + 96 DIV 65 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9110
SELECT + COUNT ( * ) + + 96 / 65 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT + 9 * - COUNT( * ) - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT + 9 * - COUNT ( * ) - COUNT ( * ) AS col0
----
-10

query I rowsort
SELECT ALL ( - 79 )
----
-79

query I rowsort
SELECT - ( - 24 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL - ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL - ( COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT ( - 39 ) + 28 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT ALL - - ( + SUM( ALL - 21 ) ) + - + ( + - 22 )
----
1

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - - ( + SUM ( ALL - 21 ) ) + - + ( + - 22 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT + ( + - COUNT( * ) ) * - 36 + + 43 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9117
SELECT + ( + - COUNT ( * ) ) * - 36 + + 43 AS col1
----
79

query I rowsort
SELECT DISTINCT + - 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT - COUNT( * ) + NULLIF ( + + COUNT( * ), + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT - COUNT ( * ) + NULLIF ( + + COUNT ( * ), + 55 )
----
0

query I rowsort
SELECT + ( + 45 ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9121
SELECT + CAST( + ( - 49 ) AS SIGNED ) * - - 23, + 92 AS col0
----
-1127
92

skipif mysql # not compatible
query II rowsort label-9121
SELECT + CAST ( + ( - 49 ) AS INTEGER ) * - - 23, + 92 AS col0
----
-1127
92

query I rowsort
SELECT DISTINCT ( 28 ) AS col0
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9123
SELECT + - 91 + - 64 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9123
SELECT + - 91 + - 64 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT - COUNT( * ) + - 88 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9124
SELECT - COUNT ( * ) + - 88 AS col0
----
-89

query II rowsort
SELECT ALL 83 AS col1, - 51
----
83
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL - ( + - MAX( - + 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL - ( + - MAX ( - + 25 ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9127
SELECT + COUNT ( * ) * + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT 8 + - ( - + 76 ) col1
----
84

query I rowsort
SELECT DISTINCT - 67 col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT ALL 5 / MIN( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9130
SELECT ALL 5 / MIN ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL - 83 + - COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL - 83 + - COUNT ( * )
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9132
SELECT ALL 51 * COALESCE ( - COUNT( * ), + + CAST( + + COUNT( * ) AS SIGNED ) ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL 51 * COALESCE ( - COUNT ( * ), + + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0
----
-51

query I rowsort
SELECT ALL - ( - - 5 ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9134
SELECT ( + CAST( COUNT( * ) AS SIGNED ) ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-9134
SELECT ( + CAST ( COUNT ( * ) AS INTEGER ) ) + 71
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT ALL - 76 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL - 76 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 28 * + 79
----
2212

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT - 65 + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-9137
SELECT - 65 + COUNT ( * )
----
-64

query I rowsort
SELECT ALL - 14 + + 19
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT - MIN( ALL ( 3 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9139
SELECT - MIN ( ALL ( 3 ) ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + 45 * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9140
SELECT + 45 * COUNT ( * )
----
45

query I rowsort
SELECT + ( + 43 ) + 52 AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9142
SELECT + COUNT( * ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT + COUNT ( * ) * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 37 * 65 AS col2
----
-2405

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9144
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT - 23 * - 43 * + COUNT( * )
----
989

skipif mysql # not compatible
query I rowsort label-9145
SELECT - 23 * - 43 * + COUNT ( * )
----
989

query I rowsort
SELECT ALL + 83 + 58 + + 38
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT ALL NULLIF ( CAST( + 42 AS SIGNED ), - CAST( NULL AS SIGNED ) )
----
42

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL NULLIF ( CAST ( + 42 AS INTEGER ), - CAST ( NULL AS INTEGER ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT - COUNT( * ) + - CAST( - 93 AS SIGNED ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9148
SELECT - COUNT ( * ) + - CAST ( - 93 AS INTEGER ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT ALL CAST( - 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL CAST ( - 37 AS INTEGER ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT + 97 * MIN( + + 23 ) AS col0
----
2231

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT + 97 * MIN ( + + 23 ) AS col0
----
2231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9151
SELECT ALL - 16 * - 96 DIV + COUNT( * ) AS col2
----
1536

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - 16 * - 96 / + COUNT ( * ) AS col2
----
1536

query I rowsort
SELECT ALL 37 col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL + COUNT( * ) + + COUNT( * ) + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + COUNT ( * )
----
3

query I rowsort
SELECT DISTINCT - - 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT COUNT( * ) + 85
----
86

skipif mysql # not compatible
query I rowsort label-9155
SELECT COUNT ( * ) + 85
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + + COUNT( * ) * - 79 + COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-9156
SELECT + + COUNT ( * ) * - 79 + COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT ALL - - 30 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9158
SELECT - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9159
SELECT ALL - COUNT( * ) DIV - - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL - COUNT ( * ) / - - 49 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT + + MIN( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-9160
SELECT + + MIN ( - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9161
SELECT CAST( NULL AS SIGNED ) * - 30 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9161
SELECT CAST ( NULL AS INTEGER ) * - 30 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + + 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT - COUNT( * ) * - 73
----
73

skipif mysql # not compatible
query I rowsort label-9163
SELECT - COUNT ( * ) * - 73
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9164
SELECT ALL 39 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL 39 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 41 col1
----
41

query I rowsort
SELECT - NULLIF ( - + ( + + 66 ), - ( - 20 ) )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT ALL - CAST( 52 AS SIGNED ) + - - 29
----
-23

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL - CAST ( 52 AS INTEGER ) + - - 29
----
-23

query I rowsort
SELECT + COALESCE ( 77, - 43 ) AS col0
----
77

query I rowsort
SELECT DISTINCT 73 * 38 col1
----
2774

query II rowsort
SELECT ALL + - 48 AS col0, 37 AS col2
----
-48
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9171
SELECT DISTINCT + 38 DIV 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT + 38 / 29 AS col0
----
1

query I rowsort
SELECT ( - + 71 ) AS col1
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT - CAST( NULL AS SIGNED ) - - CAST( + 12 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT - CAST ( NULL AS INTEGER ) - - CAST ( + 12 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9174
SELECT COUNT( * ) AS col0, + MAX( ALL + 52 )
----
1
52

skipif mysql # not compatible
query II rowsort label-9174
SELECT COUNT ( * ) AS col0, + MAX ( ALL + 52 )
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT ALL - COUNT( * ) * - - 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL - COUNT ( * ) * - - 73 AS col0
----
-73

query I rowsort
SELECT - ( - - 71 ) AS col1
----
-71

query I rowsort
SELECT + - ( 74 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9178
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL 7 * - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL 7 * - COUNT ( * )
----
-7

query I rowsort
SELECT - ( - ( + 25 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT + MAX( - - 37 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-9181
SELECT + MAX ( - - 37 ) col0
----
37

query I rowsort
SELECT ( + 85 ) + 23
----
108

query I rowsort
SELECT ALL 16 + + - 21 AS col2
----
-5

query I rowsort
SELECT ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9185
SELECT + 52 AS col1, COUNT( * ) AS col1
----
52
1

skipif mysql # not compatible
query II rowsort label-9185
SELECT + 52 AS col1, COUNT ( * ) AS col1
----
52
1

query I rowsort
SELECT ( + 21 ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT COALESCE ( - COUNT( ALL - - 48 ), + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9187
SELECT COALESCE ( - COUNT ( ALL - - 48 ), + + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT - 72 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT - 72 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + 51 AS col2
----
-51

query I rowsort
SELECT DISTINCT - 35 * 98 AS col1
----
-3430

query I rowsort
SELECT ALL 56 * + - 34
----
-1904

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9192
SELECT + COUNT( * ) DIV - + 54
----
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT + COUNT ( * ) / - + 54
----
0

query II rowsort
SELECT ( + 99 ) AS col0, 64
----
99
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9194
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9195
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT DISTINCT ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9196
SELECT 92 * + COUNT( * ) * + 12 + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9196
SELECT 92 * + COUNT ( * ) * + 12 + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 33 + + 81 AS col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT 73 + MAX( 93 ) AS col1
----
166

skipif mysql # not compatible
query I rowsort label-9198
SELECT 73 + MAX ( 93 ) AS col1
----
166

query I rowsort
SELECT DISTINCT - 60 - - 41 col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9200
SELECT ALL + COUNT( * ) - + + CAST( - 2 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL + COUNT ( * ) - + + CAST ( - 2 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT DISTINCT - - COUNT( * ) * - - 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-9201
SELECT DISTINCT - - COUNT ( * ) * - - 3 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT DISTINCT + 53 * - + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT + 53 * - + COUNT ( * )
----
-53

query I rowsort
SELECT 0 + + 71
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9204
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) + ( ( + + ( - ( - 23 ) ) ) )
----
1
22

skipif mysql # not compatible
query II rowsort label-9204
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) + ( ( + + ( - ( - 23 ) ) ) )
----
1
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9205
SELECT CAST( MAX( ALL - 92 ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-9205
SELECT CAST ( MAX ( ALL - 92 ) AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT COUNT( DISTINCT + + 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9206
SELECT COUNT ( DISTINCT + + 90 ) AS col0
----
1

query I rowsort
SELECT - ( + 47 )
----
-47

query I rowsort
SELECT ALL ( + 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL MIN( ALL - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL MIN ( ALL - 1 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT + 45 * - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9210
SELECT + 45 * - COUNT ( * ) AS col2
----
-45

query I rowsort
SELECT DISTINCT + - 20
----
-20

query I rowsort
SELECT DISTINCT + + 87 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - COUNT( * ) * - + 21 * - COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-9213
SELECT - COUNT ( * ) * - + 21 * - COUNT ( * ) AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT ALL COUNT( * ) / CAST( NULL AS SIGNED ) + + + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) + + + 23 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9215
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9215
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9216
SELECT + MAX( ALL + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9216
SELECT + MAX ( ALL + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT 92 * - COUNT( * ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9217
SELECT 92 * - COUNT ( * ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT + COUNT( ALL 97 ) + - 98 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + COUNT ( ALL 97 ) + - 98 AS col2
----
-97

query I rowsort
SELECT DISTINCT + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT + COUNT( * ) * - 88
----
-88

skipif mysql # not compatible
query I rowsort label-9220
SELECT + COUNT ( * ) * - 88
----
-88

query II rowsort
SELECT ALL 20 AS col1, 80 col2
----
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT MIN( ALL - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-9222
SELECT MIN ( ALL - 10 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9223
SELECT DISTINCT + + AVG ( 6 ) - - - COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + + AVG ( 6 ) - - - COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9224
SELECT ALL - CAST( NULL AS SIGNED ) * 31 + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9224
SELECT ALL - CAST ( NULL AS INTEGER ) * 31 + 6
----
NULL

query I rowsort
SELECT ( + - 4 ) AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT - 69 DIV 28 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9226
SELECT - 69 / 28 AS col0
----
-2

query I rowsort
SELECT - 79 * 79
----
-6241

query I rowsort
SELECT + ( - 24 )
----
-24

query I rowsort
SELECT - - 7 AS col0
----
7

query I rowsort
SELECT ALL 1 * - + 14 AS col1
----
-14

query I rowsort
SELECT - - 74 AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL MIN( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL MIN ( + 67 )
----
67

query I rowsort
SELECT + - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + COUNT( - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-9234
SELECT + COUNT ( - 73 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9235
SELECT - 84 AS col2, - CAST( - 25 AS SIGNED ) * 72
----
-84
1800

skipif mysql # not compatible
query II rowsort label-9235
SELECT - 84 AS col2, - CAST ( - 25 AS INTEGER ) * 72
----
-84
1800

query I rowsort
SELECT DISTINCT 4 + - - 39
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL COUNT( * ) * - - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL COUNT ( * ) * - - COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9238
SELECT - 53 AS col1, - CAST( NULL AS SIGNED )
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-9238
SELECT - 53 AS col1, - CAST ( NULL AS INTEGER )
----
-53
NULL

query I rowsort
SELECT ALL 92 + - 31
----
61

query I rowsort
SELECT DISTINCT 12 col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9241
SELECT ALL + + CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL + + CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT DISTINCT - 88 + MIN( ALL 12 ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-9242
SELECT DISTINCT - 88 + MIN ( ALL 12 ) col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL + COUNT( * ) * - + 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL + COUNT ( * ) * - + 33 AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9244
SELECT DISTINCT CAST( - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT CAST ( - 10 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9245
SELECT + + 58 + COUNT( * ) AS col2, 31 col2
----
59
31

skipif mysql # not compatible
query II rowsort label-9245
SELECT + + 58 + COUNT ( * ) AS col2, 31 col2
----
59
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT DISTINCT COUNT( * ) - - - 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT COUNT ( * ) - - - 71 AS col2
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT 20 DIV 70 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9247
SELECT 20 / 70 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9248
SELECT 55 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9248
SELECT 55 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT + COUNT( * ) * - 97
----
-97

skipif mysql # not compatible
query I rowsort label-9249
SELECT + COUNT ( * ) * - 97
----
-97

query I rowsort
SELECT ALL + - 95 + - 51
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT DISTINCT - + MAX( ALL - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT - + MAX ( ALL - 64 )
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9252
SELECT ALL COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9252
SELECT ALL COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 66 AS col2
----
66

query I rowsort
SELECT ALL 18 col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9255
SELECT - + COUNT( * ) DIV + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9255
SELECT - + COUNT ( * ) / + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9256
SELECT ALL CAST( NULL AS SIGNED ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL CAST ( NULL AS INTEGER ) + + 6
----
NULL

query I rowsort
SELECT - + 28 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9258
SELECT - + COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT - + COUNT ( * ) * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ( - 64 )
----
-64

query I rowsort
SELECT - ( + - 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT + COALESCE ( + COUNT( * ), - + 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9261
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - + 93 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL + COUNT( * ) * 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + COUNT ( * ) * 12 AS col0
----
12

query I rowsort
SELECT DISTINCT - 97 col0
----
-97

query I rowsort
SELECT ALL + 31 + 77 AS col1
----
108

query I rowsort
SELECT - - 91 AS col2
----
91

query I rowsort
SELECT + 62 + - 22 - + - 19 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT MIN( DISTINCT - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-9267
SELECT MIN ( DISTINCT - 50 ) AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9268
SELECT CAST( NULL AS SIGNED ) + + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT CAST ( NULL AS INTEGER ) + + 43 AS col1
----
NULL

query I rowsort
SELECT - 37 col0
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9270
SELECT - 21, CAST( NULL AS DECIMAL ) AS col2
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-9270
SELECT - 21, CAST ( NULL AS REAL ) AS col2
----
-21
NULL

query I rowsort
SELECT - 27 + + 99
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT DISTINCT + CAST( - 58 AS SIGNED )
----
-58

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT + CAST ( - 58 AS INTEGER )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + MAX( 63 ) + + SUM( + - 74 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-9273
SELECT + MAX ( 63 ) + + SUM ( + - 74 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ( + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9274
SELECT ( + COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9275
SELECT + 74, + ( COUNT( * ) ) AS col1
----
74
1

skipif mysql # not compatible
query II rowsort label-9275
SELECT + 74, + ( COUNT ( * ) ) AS col1
----
74
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9276
SELECT - 22 DIV 6
----
-3

skipif mysql # not compatible
query I rowsort label-9276
SELECT - 22 / 6
----
-3

query I rowsort
SELECT ALL + ( + 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9278
SELECT CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 69 * - 55
----
-3795

query I rowsort
SELECT 63 * - 63
----
-3969

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL - COUNT( * ) + + 56
----
55

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - COUNT ( * ) + + 56
----
55

query I rowsort
SELECT + ( ( - 9 ) ) col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT - 64 - - COUNT( * ) - 41 col1
----
-104

skipif mysql # not compatible
query I rowsort label-9283
SELECT - 64 - - COUNT ( * ) - 41 col1
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + 86 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + 86 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT - 24 + + ( + COUNT( * ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-9285
SELECT - 24 + + ( + COUNT ( * ) ) col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - SUM( ALL 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9286
SELECT - SUM ( ALL 70 )
----
-70

query I rowsort
SELECT - 39 * 57
----
-2223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), 37 ) + + 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9288
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), 37 ) + + 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9289
SELECT COUNT( + 9 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9289
SELECT COUNT ( + 9 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9290
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0, - 79 col0
----
NULL
-79

skipif mysql # not compatible
query II rowsort label-9290
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0, - 79 col0
----
NULL
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL + - MIN( ALL 19 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + - MIN ( ALL 19 ) col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9292
SELECT + COUNT( * ) DIV + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9292
SELECT + COUNT ( * ) / + ( + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL COUNT( * ) * + 66 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL COUNT ( * ) * + 66 AS col0
----
66

query I rowsort
SELECT ALL - - 83
----
83

query I rowsort
SELECT + - 4 AS col1
----
-4

query I rowsort
SELECT ALL - + 50 col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - 48 + - COUNT( * ) + - + 32 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9297
SELECT - 48 + - COUNT ( * ) + - + 32 AS col0
----
-81

query I rowsort
SELECT DISTINCT - - 89 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT COUNT( DISTINCT + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-9299
SELECT COUNT ( DISTINCT + 12 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9300
SELECT 66 AS col2, CAST( 78 AS SIGNED )
----
66
78

skipif mysql # not compatible
query II rowsort label-9300
SELECT 66 AS col2, CAST ( 78 AS INTEGER )
----
66
78

query II rowsort
SELECT 74, 32 * - 2 AS col2
----
74
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL SUM( DISTINCT - - ( + 11 ) )
----
11

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL SUM ( DISTINCT - - ( + 11 ) )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT ALL - + 81 DIV 97 col1
----
0

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL - + 81 / 97 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9304
SELECT COUNT( * ), + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-9304
SELECT COUNT ( * ), + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - 57 * + 81
----
-4617

query I rowsort
SELECT ALL + ( 75 ) AS col1
----
75

query I rowsort
SELECT ALL - 51 * + + 30
----
-1530

query I rowsort
SELECT ALL + ( + 23 ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT + - 50 + ( + COUNT( * ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9310
SELECT + - 50 + ( + COUNT ( * ) ) AS col2
----
-49

query I rowsort
SELECT ALL - + 61 AS col0
----
-61

query I rowsort
SELECT DISTINCT 44 * + 45 AS col2
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT + COUNT( DISTINCT - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9313
SELECT + COUNT ( DISTINCT - 85 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 63 * - 79 col2
----
-4977

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT MAX( + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-9315
SELECT MAX ( + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT ALL + + 90 - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL + + 90 - COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9317
SELECT ALL - COUNT( * ) * + ( + CAST( NULL AS SIGNED ) ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL - COUNT ( * ) * + ( + CAST ( NULL AS INTEGER ) ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT ALL - 33 DIV + ( + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - 33 / + ( + 40 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT - CAST( NULL AS SIGNED ) + + - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9319
SELECT - CAST ( NULL AS INTEGER ) + + - 16 AS col2
----
NULL

query I rowsort
SELECT - 26 - + 4 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT - 67 + COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-9321
SELECT - 67 + COUNT ( * ) AS col0
----
-66

query I rowsort
SELECT ALL - - 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT MAX( + + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT MAX ( + + 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL COUNT( * ) + - COUNT( * ) + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL COUNT ( * ) + - COUNT ( * ) + - 21
----
-21

query I rowsort
SELECT DISTINCT 98 + 26
----
124

query I rowsort
SELECT DISTINCT - + 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT 8 - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-9327
SELECT 8 - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL COUNT( * ) * - 57 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL COUNT ( * ) * - 57 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9329
SELECT ALL CAST( - 80 AS SIGNED ) + + - 40 AS col0
----
-120

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL CAST ( - 80 AS INTEGER ) + + - 40 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT COUNT( * ) + 29 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-9330
SELECT COUNT ( * ) + 29 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT - COUNT( * ) - - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-9331
SELECT - COUNT ( * ) - - - COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT + + ( + 41 ) AS col2
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9333
SELECT ALL - - 81 * + ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - - 81 * + ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9334
SELECT + COUNT( * ) AS col2, SUM( - - 58 ) AS col1
----
1
58

skipif mysql # not compatible
query II rowsort label-9334
SELECT + COUNT ( * ) AS col2, SUM ( - - 58 ) AS col1
----
1
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9335
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT CAST ( NULL AS REAL ) + - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT + 55 * - MAX( DISTINCT + 17 )
----
-935

skipif mysql # not compatible
query I rowsort label-9336
SELECT + 55 * - MAX ( DISTINCT + 17 )
----
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT ALL + - SUM( + 10 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL + - SUM ( + 10 ) AS col2
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT + 82 DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-9338
SELECT + 82 / - - 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT ALL + SUM( - + ( + 40 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + SUM ( - + ( + 40 ) )
----
-40

query I rowsort
SELECT + 52 col1
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9341
SELECT ALL ( + COUNT( * ) ), + 73 AS col0
----
1
73

skipif mysql # not compatible
query II rowsort label-9341
SELECT ALL ( + COUNT ( * ) ), + 73 AS col0
----
1
73

query I rowsort
SELECT ALL - 66 col1
----
-66

query I rowsort
SELECT - 14 - - 11
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT COUNT( - 17 ) + + - 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-9344
SELECT COUNT ( - 17 ) + + - 65 AS col2
----
-64

query I rowsort
SELECT ALL - + 79 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT COUNT( * ) * 27
----
27

skipif mysql # not compatible
query I rowsort label-9346
SELECT COUNT ( * ) * 27
----
27

query I rowsort
SELECT - ( - 16 ) col1
----
16

query I rowsort
SELECT DISTINCT - + 32 + + 88 AS col1
----
56

query I rowsort
SELECT - + 94 AS col1
----
-94

query I rowsort
SELECT ALL - 9 col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL 47 * - 55 + + COUNT( * ) AS col0
----
-2584

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL 47 * - 55 + + COUNT ( * ) AS col0
----
-2584

query I rowsort
SELECT DISTINCT - 69 col2
----
-69

query I rowsort
SELECT ALL 27 * + 18
----
486

query I rowsort
SELECT ALL + 82 * - - 99
----
8118

query I rowsort
SELECT ALL 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT ALL 45 + + SUM( DISTINCT 96 ) AS col0
----
141

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL 45 + + SUM ( DISTINCT 96 ) AS col0
----
141

query I rowsort
SELECT - ( ( + 88 ) ) AS col2
----
-88

query I rowsort
SELECT ALL + + 45 AS col0
----
45

query I rowsort
SELECT ( - ( - 57 ) ) col2
----
57

query I rowsort
SELECT - ( 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9361
SELECT ALL COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL COUNT ( * ) / + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT ALL - COUNT( * ) * - 94 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL - COUNT ( * ) * - 94 AS col1
----
94

query I rowsort
SELECT 25 * 41 AS col0
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT DISTINCT SUM( ALL - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT SUM ( ALL - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT - 49 + + COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT - 49 + + COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT MIN( DISTINCT - - 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9367
SELECT MIN ( DISTINCT - - 58 ) AS col0
----
58

query I rowsort
SELECT ALL - 33 * - 9
----
297

query I rowsort
SELECT ALL - - ( + + 38 )
----
38

query I rowsort
SELECT ALL - + 23 - - + 77 AS col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT + CAST( NULL AS SIGNED ) * - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT + CAST ( NULL AS INTEGER ) * - 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT DISTINCT - + 93 * + - COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9372
SELECT DISTINCT - + 93 * + - COUNT ( * ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL + COUNT( * ) + - 17
----
-16

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + COUNT ( * ) + - 17
----
-16

query I rowsort
SELECT ALL - 60 * - 64 AS col2
----
3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT - ( + CAST( NULL AS SIGNED ) ) * - - 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT - ( + CAST ( NULL AS INTEGER ) ) * - - 23 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT MAX( + 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9376
SELECT MAX ( + 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9377
SELECT ALL COUNT( * ) * 88 AS col0, 46 col0
----
88
46

skipif mysql # not compatible
query II rowsort label-9377
SELECT ALL COUNT ( * ) * 88 AS col0, 46 col0
----
88
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9378
SELECT ALL 46 + + + 54 DIV + 35
----
47

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL 46 + + + 54 / + 35
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT - + MIN( + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-9379
SELECT - + MIN ( + 88 )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-9380
SELECT 90 DIV + - 85
----
-1

skipif mysql # not compatible
query I rowsort label-9380
SELECT 90 / + - 85
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT 96 + + SUM( ALL - 22 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-9381
SELECT 96 + + SUM ( ALL - 22 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT 21 + COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-9382
SELECT 21 + COUNT ( * ) AS col1
----
22

query I rowsort
SELECT DISTINCT - - ( 40 )
----
40

query I rowsort
SELECT ALL - + 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT - COUNT( - 26 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9385
SELECT - COUNT ( - 26 ) AS col2
----
-1

query II rowsort
SELECT ALL 33 AS col2, + 92
----
33
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ALL + ( + - MAX( DISTINCT 30 ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9387
SELECT ALL + ( + - MAX ( DISTINCT 30 ) ) AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ALL + 38 + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL + 38 + - COUNT ( * )
----
37

query II rowsort
SELECT DISTINCT + 84 + - 38, - 34 AS col1
----
46
-34

query I rowsort
SELECT ALL + 3 col0
----
3

query I rowsort
SELECT ALL + + 79
----
79

query I rowsort
SELECT 39 + 44
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL SUM( DISTINCT 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL SUM ( DISTINCT 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT - 44 * COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-9395
SELECT - 44 * COUNT ( * ) AS col0
----
-44

query I rowsort
SELECT ALL ( 90 ) + + - 37
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL SUM( ALL - 84 ) * - 60 AS col0
----
5040

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL SUM ( ALL - 84 ) * - 60 AS col0
----
5040

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT + COUNT( * ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-9398
SELECT + COUNT ( * ) * - 86
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9399
SELECT DISTINCT + COUNT( * ) AS col0, - COUNT( ALL 92 ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-9399
SELECT DISTINCT + COUNT ( * ) AS col0, - COUNT ( ALL 92 ) AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT + COUNT( DISTINCT ( 86 ) ) + + + MIN( DISTINCT - 13 )
----
-12

skipif mysql # not compatible
query I rowsort label-9400
SELECT + COUNT ( DISTINCT ( 86 ) ) + + + MIN ( DISTINCT - 13 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9401
SELECT - + 88 DIV SUM( 6 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-9401
SELECT - + 88 / SUM ( 6 ) AS col1
----
-14

query I rowsort
SELECT ( 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT COUNT( * ) * + - ( + + COUNT( * ) ) + - 85 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9403
SELECT COUNT ( * ) * + - ( + + COUNT ( * ) ) + - 85 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT + MAX( ALL - 56 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-9404
SELECT + MAX ( ALL - 56 ) AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT + - 66 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT + - 66 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL - COUNT( * ) * + + MIN( DISTINCT - 80 )
----
80

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - COUNT ( * ) * + + MIN ( DISTINCT - 80 )
----
80

query I rowsort
SELECT + - 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT - COUNT( * ) * - - 63
----
-63

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - COUNT ( * ) * - - 63
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9409
SELECT DISTINCT 9 DIV 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT 9 / 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL COUNT( * ) - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT 24 + + 5 AS col1
----
29

query I rowsort
SELECT 31 * + 57
----
1767

query II rowsort
SELECT ALL - 69 col0, 8 + 23
----
-69
31

query I rowsort
SELECT DISTINCT 2 * 26
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT - COUNT( ALL + 53 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT - COUNT ( ALL + 53 ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT + 96 DIV + + 16 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9416
SELECT + 96 / + + 16 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT DISTINCT + CAST( SUM( - 45 ) AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT + CAST ( SUM ( - 45 ) AS INTEGER ) AS col1
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9418
SELECT + COUNT( * ) DIV 94, - 15 AS col1
----
0
-15

skipif mysql # not compatible
query II rowsort label-9418
SELECT + COUNT ( * ) / 94, - 15 AS col1
----
0
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9419
SELECT + 40 DIV - 48 - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9419
SELECT + 40 / - 48 - - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT DISTINCT + + 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL ( MIN( ALL - 46 ) ) AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL ( MIN ( ALL - 46 ) ) AS col0
----
-46

query I rowsort
SELECT DISTINCT - 22 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT ALL COUNT( ( 55 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL COUNT ( ( 55 ) )
----
1

query I rowsort
SELECT - - 51 + 81
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT DISTINCT ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT ( + + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9426
SELECT ALL 99, + COUNT( * ) col1
----
99
1

skipif mysql # not compatible
query II rowsort label-9426
SELECT ALL 99, + COUNT ( * ) col1
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL - 62 + + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL - 62 + + COUNT ( * ) AS col2
----
-61

query I rowsort
SELECT 59 * - 10
----
-590

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT - 54 * + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT - 54 * + COUNT ( * )
----
-54

onlyif mysql # DIV for integer division: 
query II rowsort label-9430
SELECT + + 97 AS col0, 97 DIV + + ( - 1 ) + + 38
----
97
-59

skipif mysql # not compatible
query II rowsort label-9430
SELECT + + 97 AS col0, 97 / + + ( - 1 ) + + 38
----
97
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT + COUNT( * ) AS col0, 48 AS col2
----
1
48

skipif mysql # not compatible
query II rowsort label-9431
SELECT + COUNT ( * ) AS col0, 48 AS col2
----
1
48

query I rowsort
SELECT DISTINCT 73 + + + 58 - - 75 * 81 * 3 AS col2
----
18356

query I rowsort
SELECT 30 + 3 + + 50 AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT COUNT( * ) + 8 + - 46
----
-37

skipif mysql # not compatible
query I rowsort label-9434
SELECT COUNT ( * ) + 8 + - 46
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9435
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 67 + - AVG ( - + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9435
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 67 + - AVG ( - + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT ALL + 68 - + - COUNT( * ) col1
----
69

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL + 68 - + - COUNT ( * ) col1
----
69

query I rowsort
SELECT DISTINCT + - 96 AS col2
----
-96

query I rowsort
SELECT DISTINCT + + 42 AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9439
SELECT ALL + 71 DIV + + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + 71 / + + 99 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL - 99 + + COUNT( * ) + + - 66
----
-164

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL - 99 + + COUNT ( * ) + + - 66
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - MIN( DISTINCT - ( 85 ) ) col2
----
85

skipif mysql # not compatible
query I rowsort label-9441
SELECT - MIN ( DISTINCT - ( 85 ) ) col2
----
85

query I rowsort
SELECT + 60 * 4
----
240

query I rowsort
SELECT - ( - 23 )
----
23

query I rowsort
SELECT - ( + - 97 ) AS col0
----
97

query I rowsort
SELECT + - 19 * 23 AS col1
----
-437

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT ALL + - CAST( - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + - CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT + - 60 AS col0
----
-60

query I rowsort
SELECT - 73 * 90 AS col1
----
-6570

query I rowsort
SELECT - 83 * 41 * 52
----
-176956

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT ALL ( - - ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL ( - - ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL 43 + - 55 AS col1
----
-12

query I rowsort
SELECT ALL + 9 * + 91
----
819

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT COUNT( * ) + - 51
----
-50

skipif mysql # not compatible
query I rowsort label-9453
SELECT COUNT ( * ) + - 51
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT - MAX( + 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9454
SELECT - MAX ( + 31 ) AS col1
----
-31

query I rowsort
SELECT ALL - 33 + 99 AS col0
----
66

query I rowsort
SELECT 74 * 44 AS col2
----
3256

query I rowsort
SELECT - + 67 col1
----
-67

query I rowsort
SELECT ALL - - 87 AS col1
----
87

query I rowsort
SELECT + COALESCE ( + ( + + 0 ), 75 ) col1
----
0

query I rowsort
SELECT + - 92 col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9461
SELECT ALL - ( - SUM( + CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL - ( - SUM ( + CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9462
SELECT + MIN( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT + MIN ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9463
SELECT 68 AS col2, - 70 DIV - 77 AS col1
----
68
0

skipif mysql # not compatible
query II rowsort label-9463
SELECT 68 AS col2, - 70 / - 77 AS col1
----
68
0

query I rowsort
SELECT - + 46 AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - + COUNT( * ) * - - 38
----
-38

skipif mysql # not compatible
query I rowsort label-9465
SELECT - + COUNT ( * ) * - - 38
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT ALL + 65 - 96 - + 10 DIV + - 72 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL + 65 - 96 - + 10 / + - 72 AS col0
----
-31

query I rowsort
SELECT DISTINCT + 58 AS col2
----
58

query I rowsort
SELECT + 65 * + 45 * + 50
----
146250

query I rowsort
SELECT + 92 + - 11 AS col1
----
81

query I rowsort
SELECT DISTINCT - 5 * + 83
----
-415

query I rowsort
SELECT DISTINCT - ( 0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT ALL - + COUNT( ALL ( - + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL - + COUNT ( ALL ( - + CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9473
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 70 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL + COUNT( * ) - + 26 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL + COUNT ( * ) - + 26 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT DISTINCT - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT - - COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - 72 * - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9477
SELECT - 72 * - COUNT ( * )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT - + CAST( - 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-9478
SELECT - + CAST ( - 35 AS INTEGER )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT - MIN( ALL + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-9479
SELECT - MIN ( ALL + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT + COUNT( * ) AS col2, + 53
----
1
53

skipif mysql # not compatible
query II rowsort label-9480
SELECT + COUNT ( * ) AS col2, + 53
----
1
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9481
SELECT + CAST( + + 58 AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9481
SELECT + CAST ( + + 58 AS INTEGER ) AS col0
----
58

query I rowsort
SELECT ALL + + ( + 28 ) AS col0
----
28

query I rowsort
SELECT + 58 + + ( + + 21 )
----
79

query I rowsort
SELECT - 31 * + 6
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT + - SUM( DISTINCT + 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-9485
SELECT + - SUM ( DISTINCT + 13 )
----
-13

query II rowsort
SELECT ALL + + 37 AS col0, + 96
----
37
96

query I rowsort
SELECT + - ( + + 39 )
----
-39

query II rowsort
SELECT + 57, 38 AS col1
----
57
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT 28 + + - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-9489
SELECT 28 + + - COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT 93 * + 29 + + + ( + COUNT( + 64 ) )
----
2698

skipif mysql # not compatible
query I rowsort label-9490
SELECT 93 * + 29 + + + ( + COUNT ( + 64 ) )
----
2698

query I rowsort
SELECT + - 36
----
-36

query I rowsort
SELECT DISTINCT 79 - + - 66
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9493
SELECT ALL COUNT( * ) DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL COUNT ( * ) / + 84
----
0

query I rowsort
SELECT ALL - - 8 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT + + SUM( - + 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9495
SELECT + + SUM ( - + 17 ) AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT - 68 DIV + 18
----
-3

skipif mysql # not compatible
query I rowsort label-9496
SELECT - 68 / + 18
----
-3

query I rowsort
SELECT ALL + ( + 70 ) AS col0
----
70

query I rowsort
SELECT + 37 * + 57
----
2109

query I rowsort
SELECT + 0 + + - 40
----
-40

query I rowsort
SELECT DISTINCT + 63 col0
----
63

query I rowsort
SELECT + - 61
----
-61

query I rowsort
SELECT DISTINCT + + ( - - 44 ) AS col1
----
44

query I rowsort
SELECT ALL + ( + 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT - MAX( ALL + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-9504
SELECT - MAX ( ALL + 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT ALL ( - MAX( 11 ) ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL ( - MAX ( 11 ) ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT ALL - COUNT( * ) + - + 4 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL - COUNT ( * ) + - + 4 AS col0
----
-5

query I rowsort
SELECT ALL ( - 10 ) AS col0
----
-10

query I rowsort
SELECT - + 29 AS col1
----
-29

query II rowsort
SELECT DISTINCT 96, 75 AS col1
----
96
75

query I rowsort
SELECT + - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT + MAX( + + ( 68 ) ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9511
SELECT + MAX ( + + ( 68 ) ) AS col1
----
68

query I rowsort
SELECT ALL - 95 col1
----
-95

query I rowsort
SELECT DISTINCT + + 73 AS col2
----
73

query I rowsort
SELECT ( 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9515
SELECT ( - + COUNT ( * ) ) AS col2
----
-1

query II rowsort
SELECT - 0, + 84 col0
----
0
84

query I rowsort
SELECT + + ( + ( - ( - 20 ) ) ) - + 50 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT + ( + + 20 ) + ( - - COUNT( * ) ) + - 38
----
-17

skipif mysql # not compatible
query I rowsort label-9518
SELECT + ( + + 20 ) + ( - - COUNT ( * ) ) + - 38
----
-17

query I rowsort
SELECT DISTINCT + 14 col2
----
14

query I rowsort
SELECT DISTINCT + 85 AS col2
----
85

query I rowsort
SELECT - ( - + 32 ) AS col1
----
32

query I rowsort
SELECT DISTINCT ( + - 28 )
----
-28

query I rowsort
SELECT DISTINCT 36 * - 96
----
-3456

query I rowsort
SELECT 37 * + 91 AS col1
----
3367

query I rowsort
SELECT ALL - ( - 5 )
----
5

query I rowsort
SELECT DISTINCT - 10 AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9527
SELECT ALL - CAST( - 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL - CAST ( - 6 AS INTEGER )
----
6

query I rowsort
SELECT ALL ( - 25 ) AS col1
----
-25

query I rowsort
SELECT - - 28 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT - COUNT( * ) + COUNT( 6 ) + + 57
----
57

skipif mysql # not compatible
query I rowsort label-9530
SELECT - COUNT ( * ) + COUNT ( 6 ) + + 57
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT - - COUNT( * ), 10 AS col0
----
1
10

skipif mysql # not compatible
query II rowsort label-9531
SELECT - - COUNT ( * ), 10 AS col0
----
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT CASE - + 90 WHEN COUNT( * ) THEN NULL ELSE - ( + COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9532
SELECT CASE - + 90 WHEN COUNT ( * ) THEN NULL ELSE - ( + COUNT ( * ) ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + 23 + + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-9533
SELECT + 23 + + + COUNT ( * )
----
24

query I rowsort
SELECT + ( - + 79 )
----
-79

query II rowsort
SELECT + 57 col1, 41
----
57
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9536
SELECT DISTINCT + 23 AS col2, CAST( - - 81 AS SIGNED ) AS col2
----
23
81

skipif mysql # not compatible
query II rowsort label-9536
SELECT DISTINCT + 23 AS col2, CAST ( - - 81 AS INTEGER ) AS col2
----
23
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT + + CAST( 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-9537
SELECT + + CAST ( 27 AS INTEGER )
----
27

query I rowsort
SELECT 41 col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT ALL ( + MIN( + + 56 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9539
SELECT ALL ( + MIN ( + + 56 ) ) AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9540
SELECT DISTINCT COUNT( * ) + - + CAST( NULL AS SIGNED ) AS col0, + 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-9540
SELECT DISTINCT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) AS col0, + 33
----
NULL
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9541
SELECT 85 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9541
SELECT 85 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 10 + + - 96 AS col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT + MAX( + - 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-9543
SELECT + MAX ( + - 81 ) AS col1
----
-81

query II rowsort
SELECT DISTINCT - 85 AS col2, + 81
----
-85
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT DISTINCT + 45 * - COUNT( - - 70 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT + 45 * - COUNT ( - - 70 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL + COUNT( * ) * + 33 col1
----
33

skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + COUNT ( * ) * + 33 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT - SUM( 94 ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-9547
SELECT - SUM ( 94 ) AS col2
----
-94

query I rowsort
SELECT + 41 * - - 11
----
451

query I rowsort
SELECT ALL - 76 * - 57 AS col2
----
4332

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT + 52 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-9550
SELECT + 52 * + COUNT ( * )
----
52

query I rowsort
SELECT DISTINCT + - ( - 25 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT + - CAST( - 82 AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9552
SELECT + - CAST ( - 82 AS INTEGER ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT - COUNT( * ) * - 54
----
54

skipif mysql # not compatible
query I rowsort label-9553
SELECT - COUNT ( * ) * - 54
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9554
SELECT MIN( - + ( - + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT MIN ( - + ( - + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9555
SELECT ALL - COUNT( * ) DIV + ( COALESCE ( + 94, COUNT( * ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL - COUNT ( * ) / + ( COALESCE ( + 94, COUNT ( * ) ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT ALL - 30 AS col0, + COUNT( * ) AS col0
----
-30
1

skipif mysql # not compatible
query II rowsort label-9556
SELECT ALL - 30 AS col0, + COUNT ( * ) AS col0
----
-30
1

query I rowsort
SELECT 89 * - + 69 + 4 AS col2
----
-6137

query I rowsort
SELECT DISTINCT - + 65 AS col1
----
-65

query I rowsort
SELECT ALL - - 83 AS col2
----
83

query I rowsort
SELECT - ( + + 12 ) AS col2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT ALL + 69 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL + 69 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT ALL + MAX( + - 55 ) * - COUNT( * ) * 92 col2
----
5060

skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + MAX ( + - 55 ) * - COUNT ( * ) * 92 col2
----
5060

query II rowsort
SELECT ALL + 55 + + 36, 6 AS col0
----
91
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9564
SELECT DISTINCT 7 DIV 34 col0
----
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT 7 / 34 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT ALL COUNT( * ) * 37 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL COUNT ( * ) * 37 AS col1
----
37

query I rowsort
SELECT ALL + 47 + - - 57 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL + COUNT( * ) + + 61 + 94 AS col1
----
156

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + COUNT ( * ) + + 61 + 94 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT - - 51 + 33 * + COUNT( * ) col1
----
84

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT - - 51 + 33 * + COUNT ( * ) col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT COALESCE ( - COUNT( * ), + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9569
SELECT COALESCE ( - COUNT ( * ), + - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT ALL - 50 * - 76 + + 54
----
3854

query I rowsort
SELECT ALL ( + 15 ) AS col0
----
15

query I rowsort
SELECT DISTINCT ( + 66 ) AS col0
----
66

query I rowsort
SELECT DISTINCT ( 23 )
----
23

query I rowsort
SELECT ALL + ( + 95 ) AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT 83 / 39 + - 78 * + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT 83 / 39 + - 78 * + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9576
SELECT DISTINCT - 79 / + COUNT( * ) * + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT - 79 / + COUNT ( * ) * + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9577
SELECT AVG ( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT AVG ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 73
----
NULL

query I rowsort
SELECT + - 42 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT + NULLIF ( COUNT( * ), - 89 )
----
1

skipif mysql # not compatible
query I rowsort label-9580
SELECT + NULLIF ( COUNT ( * ), - 89 )
----
1

query I rowsort
SELECT - ( - 49 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT ALL - 52 + - + COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-9582
SELECT ALL - 52 + - + COUNT ( * ) AS col1
----
-53

query I rowsort
SELECT 15 - + 15
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT - MAX( - - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT - MAX ( - - 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT - 15 + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9585
SELECT - 15 + + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT - COUNT( - - 68 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9586
SELECT - COUNT ( - - 68 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9587
SELECT COUNT( * ) DIV + ( + 67 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9587
SELECT COUNT ( * ) / + ( + 67 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT COUNT( * ) * - 14 * 16 AS col2
----
-224

skipif mysql # not compatible
query I rowsort label-9588
SELECT COUNT ( * ) * - 14 * 16 AS col2
----
-224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT + NULLIF ( - + 85, + CAST( NULL AS SIGNED ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9589
SELECT + NULLIF ( - + 85, + CAST ( NULL AS INTEGER ) ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT + + COUNT( * ) * 78
----
78

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT + + COUNT ( * ) * 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT - + ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9591
SELECT - + ( COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT ALL - 96 + - 17
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9593
SELECT DISTINCT - ( - COUNT( * ) ) / + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT - ( - COUNT ( * ) ) / + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL ( - 96 )
----
-96

query I rowsort
SELECT - - 40 * - ( - + 59 )
----
2360

query I rowsort
SELECT DISTINCT + + 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT 37 * - COUNT( * ) + + - COUNT( * ) + - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-9597
SELECT 37 * - COUNT ( * ) + + - COUNT ( * ) + - COUNT ( * )
----
-39

query I rowsort
SELECT - 41 + + + 38 + + - 44 AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9599
SELECT + 46 DIV + COUNT( ALL - 19 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-9599
SELECT + 46 / + COUNT ( ALL - 19 ) AS col1
----
46

query I rowsort
SELECT DISTINCT + 30 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT ALL + NULLIF ( - ( 9 ), - + COALESCE ( + 51, - 2 / - 11 + + COUNT( 94 ), - 79 * + ( - 95 ) ) ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL + NULLIF ( - ( 9 ), - + COALESCE ( + 51, - 2 / - 11 + + COUNT ( 94 ), - 79 * + ( - 95 ) ) ) AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9602
SELECT + 81 DIV - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT + 81 / - 86 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9603
SELECT CAST( NULL AS SIGNED ) * - 30 + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT CAST ( NULL AS INTEGER ) * - 30 + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT + 45 DIV + ( - - 42 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9604
SELECT + 45 / + ( - - 42 ) AS col1
----
1

query I rowsort
SELECT ALL ( + + 40 ) AS col0
----
40

query I rowsort
SELECT DISTINCT + 7 + + 32 AS col1
----
39

query I rowsort
SELECT ALL 74 * 49 * + - 52 * 38 AS col1
----
-7164976

query I rowsort
SELECT ALL ( + 73 ) + 16 * 32 + 36
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT + 39 + - - COUNT( * ) + 81 * + - 82 + + + 26 AS col2
----
-6576

skipif mysql # not compatible
query I rowsort label-9609
SELECT + 39 + - - COUNT ( * ) + 81 * + - 82 + + + 26 AS col2
----
-6576

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL COUNT( * ) + + 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL COUNT ( * ) + + 28 AS col0
----
29

query I rowsort
SELECT DISTINCT 4 * 61
----
244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9612
SELECT - 9 DIV - MAX( DISTINCT - - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-9612
SELECT - 9 / - MAX ( DISTINCT - - 98 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT - COUNT( * ) * - 73
----
73

skipif mysql # not compatible
query I rowsort label-9613
SELECT - COUNT ( * ) * - 73
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9614
SELECT ALL 39 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL 39 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( + ( - 58 ), - - 9 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL COUNT( DISTINCT - 23 ) + - - 78 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL COUNT ( DISTINCT - 23 ) + - - 78 AS col1
----
79

query I rowsort
SELECT - NULLIF ( - + ( + + 66 ), - ( - 20 ) )
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT ALL - CAST( 52 AS SIGNED ) + - - 29
----
-23

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL - CAST ( 52 AS INTEGER ) + - - 29
----
-23

query II rowsort
SELECT - + 22 AS col2, 44 AS col1
----
-22
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9620
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, - CAST( 43 AS SIGNED ) * + - CAST( - 54 AS SIGNED ) + 59 * 47 AS col1
----
NULL
451

skipif mysql # not compatible
query II rowsort label-9620
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, - CAST ( 43 AS INTEGER ) * + - CAST ( - 54 AS INTEGER ) + 59 * 47 AS col1
----
NULL
451

query I rowsort
SELECT DISTINCT ( + + 11 ) + + 6 AS col1
----
17

query II rowsort
SELECT 40, + 64 * - 0 * 1 AS col0
----
40
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT DISTINCT - 48 + 20 + 63 * 69 * - COUNT( * ) * - 34 + 24
----
147794

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT - 48 + 20 + 63 * 69 * - COUNT ( * ) * - 34 + 24
----
147794

onlyif mysql # aggregate syntax: 
query I rowsort label-9624
SELECT + 32 * - 67 + + - NULLIF ( 18, + 7 * + 5 + - 46 ) + COUNT( * ) AS col1
----
-2161

skipif mysql # not compatible
query I rowsort label-9624
SELECT + 32 * - 67 + + - NULLIF ( 18, + 7 * + 5 + - 46 ) + COUNT ( * ) AS col1
----
-2161

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT + NULLIF ( + 48, - 23 ) - + ( COUNT( * ) ) * COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9625
SELECT + NULLIF ( + 48, - 23 ) - + ( COUNT ( * ) ) * COUNT ( * ) AS col1
----
47

query I rowsort
SELECT + COALESCE ( 77, - 43 ) AS col0
----
77

query I rowsort
SELECT + - CASE + + 77 WHEN 61 THEN + - 99 * - 4 + CASE - 43 WHEN - 0 / - 29 THEN - 28 + - 0 * 25 END END + + 73
----
NULL

query I rowsort
SELECT - + 30 * + 83 * + + 56 AS col0
----
-139440

query I rowsort
SELECT DISTINCT - - 21 * - + 42 * + 99
----
-87318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9630
SELECT DISTINCT 46 * - 22 * - ( - 32 ) + + + CASE 92 WHEN + 74 THEN 23 DIV - 61 ELSE ( - COUNT( * ) ) END
----
-32385

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT 46 * - 22 * - ( - 32 ) + + + CASE 92 WHEN + 74 THEN 23 / - 61 ELSE ( - COUNT ( * ) ) END
----
-32385

query I rowsort
SELECT + + 69 * + - 53
----
-3657

onlyif mysql # aggregate syntax: 
query II rowsort label-9632
SELECT ALL + - 34 AS col0, + 31 + MAX( ALL - 79 ) AS col2
----
-34
-48

skipif mysql # not compatible
query II rowsort label-9632
SELECT ALL + - 34 AS col0, + 31 + MAX ( ALL - 79 ) AS col2
----
-34
-48

query I rowsort
SELECT DISTINCT 73 * 38 col1
----
2774

query II rowsort
SELECT ALL + - 48 AS col0, 37 AS col2
----
-48
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9635
SELECT - ( - CAST( - - 59 AS SIGNED ) ) + + 34 * - 86 * COALESCE ( + 2, 51 ) col1
----
-5789

skipif mysql # not compatible
query I rowsort label-9635
SELECT - ( - CAST ( - - 59 AS INTEGER ) ) + + 34 * - 86 * COALESCE ( + 2, 51 ) col1
----
-5789

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL + - CASE - 74 WHEN + + 58 + + 83 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL + - CASE - 74 WHEN + + 58 + + 83 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT + 61 DIV + 14 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9637
SELECT + 61 / + 14 AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT DISTINCT - 47 DIV + + 67 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT - 47 / + + 67 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT DISTINCT + 38 DIV 29 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT + 38 / 29 AS col0
----
1

query I rowsort
SELECT ( - + 71 ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL + NULLIF ( + 71, + + COUNT( * ) * 57 * + + 51 + - - 14 )
----
71

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL + NULLIF ( + 71, + + COUNT ( * ) * 57 * + + 51 + - - 14 )
----
71

query I rowsort
SELECT ALL + 52 col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9643
SELECT - 69 * + NULLIF ( - COUNT( - + 49 ), MAX( ALL 52 ) * - CAST( NULL AS SIGNED ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-9643
SELECT - 69 * + NULLIF ( - COUNT ( - + 49 ), MAX ( ALL 52 ) * - CAST ( NULL AS INTEGER ) ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL ( + SUM( ALL + - 55 ) ) * - 87 + + 7 + + + 19 + ( COUNT( ALL - 20 ) - + 18 * + 38 )
----
4128

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL ( + SUM ( ALL + - 55 ) ) * - 87 + + 7 + + + 19 + ( COUNT ( ALL - 20 ) - + 18 * + 38 )
----
4128

query I rowsort
SELECT DISTINCT - ( - ( + 60 ) ) * - 99 * - - 91 + - 0 AS col1
----
-540540

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL + 57 * + SUM( + 15 ) + + 16 + - 72 AS col1
----
799

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL + 57 * + SUM ( + 15 ) + + 16 + - 72 AS col1
----
799

query II rowsort
SELECT + 66, ( 47 ) * 66 AS col0
----
66
3102

query I rowsort
SELECT ALL 44 * + 78 + - 4
----
3428

query I rowsort
SELECT ALL - 7 * - 39 + 42
----
315

query I rowsort
SELECT - 39 * - + 64
----
2496

query I rowsort
SELECT - 51 - 22 + - 16
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT NULLIF ( 32, 88 * CAST( NULL AS SIGNED ) ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-9652
SELECT NULLIF ( 32, 88 * CAST ( NULL AS INTEGER ) ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT - COUNT( * ) * + + 53 * 69
----
-3657

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT - COUNT ( * ) * + + 53 * 69
----
-3657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT - CAST( NULL AS SIGNED ) - - CAST( + 12 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT - CAST ( NULL AS INTEGER ) - - CAST ( + 12 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9655
SELECT ALL CAST( ( ( - CASE 79 WHEN - 20 * 40 THEN 83 / 93 END ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL CAST ( ( ( - CASE 79 WHEN - 20 * 40 THEN 83 / 93 END ) ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 3 * + - 95
----
285

query I rowsort
SELECT + 9 * + + 25
----
225

onlyif mysql # aggregate syntax: 
query II rowsort label-9658
SELECT COUNT( * ) AS col0, + MAX( ALL + 52 )
----
1
52

skipif mysql # not compatible
query II rowsort label-9658
SELECT COUNT ( * ) AS col0, + MAX ( ALL + 52 )
----
1
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9659
SELECT ALL 89 AS col0, + CAST( 4 AS SIGNED ) + - CAST( NULL AS SIGNED )
----
89
NULL

skipif mysql # not compatible
query II rowsort label-9659
SELECT ALL 89 AS col0, + CAST ( 4 AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
89
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT ALL CASE ( - + 2 ) WHEN - 94 + + 35 THEN NULL ELSE + 68 + ( - 85 ) DIV 80 END * NULLIF ( + 67, + ( 9 ) ) col1
----
4489

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL CASE ( - + 2 ) WHEN - 94 + + 35 THEN NULL ELSE + 68 + ( - 85 ) / 80 END * NULLIF ( + 67, + ( 9 ) ) col1
----
4489

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9661
SELECT DISTINCT - 52 - - COUNT( * ) + - 55 DIV - 49 AS col1, 80 * - - 1 * - 83 AS col0
----
-50
-6640

skipif mysql # not compatible
query II rowsort label-9661
SELECT DISTINCT - 52 - - COUNT ( * ) + - 55 / - 49 AS col1, 80 * - - 1 * - 83 AS col0
----
-50
-6640

query II rowsort
SELECT ALL + 81, - 35 * 65 * + 76 AS col2
----
81
-172900

onlyif mysql # aggregate syntax: 
query II rowsort label-9663
SELECT ALL + - 6 - 91, + MIN( DISTINCT - ( + 76 ) ) AS col1
----
-97
-76

skipif mysql # not compatible
query II rowsort label-9663
SELECT ALL + - 6 - 91, + MIN ( DISTINCT - ( + 76 ) ) AS col1
----
-97
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9664
SELECT + ( + 17 ) * + ( + - COUNT( ALL - - CAST( + - 44 AS SIGNED ) ) ) * - 17
----
289

skipif mysql # not compatible
query I rowsort label-9664
SELECT + ( + 17 ) * + ( + - COUNT ( ALL - - CAST ( + - 44 AS INTEGER ) ) ) * - 17
----
289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT 14 * - 90 + 90 - + + 3 + + CAST( NULL AS SIGNED ) * - 61 * - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT 14 * - 90 + 90 - + + 3 + + CAST ( NULL AS INTEGER ) * - 61 * - 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT ALL - COUNT( * ) * - - 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-9666
SELECT ALL - COUNT ( * ) * - - 73 AS col0
----
-73

query I rowsort
SELECT + 29 + 41 AS col1
----
70

query I rowsort
SELECT ALL + 70 * + 93 AS col0
----
6510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT CAST( 60 AS SIGNED ) + + 24
----
84

skipif mysql # not compatible
query I rowsort label-9669
SELECT CAST ( 60 AS INTEGER ) + + 24
----
84

query I rowsort
SELECT + 13 - 17 - + 6
----
-10

query I rowsort
SELECT 93 * - 79 AS col0
----
-7347

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9672
SELECT - 22 + + - SUM( DISTINCT + + 68 ) + + COALESCE ( - 75, - + COALESCE ( 83, - 88 ) * SUM( ALL 33 + - 59 ) - 62 * 14, 8 * 75, - SUM( ALL - CAST( NULL AS SIGNED ) ) * - ( 25 ) ) * - 62
----
4560

skipif mysql # not compatible
query I rowsort label-9672
SELECT - 22 + + - SUM ( DISTINCT + + 68 ) + + COALESCE ( - 75, - + COALESCE ( 83, - 88 ) * SUM ( ALL 33 + - 59 ) - 62 * 14, 8 * 75, - SUM ( ALL - CAST ( NULL AS INTEGER ) ) * - ( 25 ) ) * - 62
----
4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9673
SELECT ALL - + 2 * + - COALESCE ( + + 34, + 44 * - + CAST( - - MAX( DISTINCT 3 ) AS SIGNED ) DIV 44 - + 92 ) * - 30 + ( - 57 )
----
-2097

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - + 2 * + - COALESCE ( + + 34, + 44 * - + CAST ( - - MAX ( DISTINCT 3 ) AS INTEGER ) / 44 - + 92 ) * - 30 + ( - 57 )
----
-2097

query I rowsort
SELECT ALL ( 12 )
----
12

query I rowsort
SELECT + CASE - 97 WHEN - 49 THEN - - 49 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT ALL - - CAST( + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL - - CAST ( + 77 AS INTEGER )
----
77

query I rowsort
SELECT 62 * 12
----
744

query I rowsort
SELECT - 6 + 31 AS col1
----
25

query I rowsort
SELECT - ( - - 71 ) AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9680
SELECT - CASE + 24 WHEN - 28 * + + CAST( NULL AS SIGNED ) + + 22 + 28 * 43 - ( + NULLIF ( - 19, 45 ) + - ( + COUNT( ALL + 70 ) ) ) THEN - 10 * - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT - CASE + 24 WHEN - 28 * + + CAST ( NULL AS INTEGER ) + + 22 + 28 * 43 - ( + NULLIF ( - 19, 45 ) + - ( + COUNT ( ALL + 70 ) ) ) THEN - 10 * - 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL - ( COUNT( ALL + 95 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - ( COUNT ( ALL + 95 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT + 29 * - COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9682
SELECT + 29 * - COUNT ( * ) AS col2
----
-29

query II rowsort
SELECT 42 * - 0 AS col1, 39 AS col1
----
0
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT + + SUM( DISTINCT + + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-9684
SELECT + + SUM ( DISTINCT + + 53 )
----
53

query I rowsort
SELECT + - ( 74 )
----
-74

query I rowsort
SELECT DISTINCT 34 + + 77 AS col1
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-9687
SELECT DISTINCT - COUNT( 39 ) AS col0, - 89 * + COUNT( * ) AS col0
----
-1
-89

skipif mysql # not compatible
query II rowsort label-9687
SELECT DISTINCT - COUNT ( 39 ) AS col0, - 89 * + COUNT ( * ) AS col0
----
-1
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL - MIN( - + ( 54 ) ) + + 53 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL - MIN ( - + ( 54 ) ) + + 53 AS col1
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT 4 - - CAST( - + 26 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-9689
SELECT 4 - - CAST ( - + 26 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL 69 + - + COUNT( * ) * - COUNT( * ) * - 0 * 36 + - 35
----
34

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL 69 + - + COUNT ( * ) * - COUNT ( * ) * - 0 * 36 + - 35
----
34

query II rowsort
SELECT ALL 28 * 94 * - 12 AS col1, + 22
----
-31584
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9692
SELECT 13 DIV 91 * - - 98 * CASE - - COUNT( * ) WHEN - + 7 + - 74 THEN NULL WHEN 89 THEN - ( 11 ) ELSE 47 * + 32 END col2
----
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT 13 / 91 * - - 98 * CASE - - COUNT ( * ) WHEN - + 7 + - 74 THEN NULL WHEN 89 THEN - ( 11 ) ELSE 47 * + 32 END col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9693
SELECT DISTINCT - SUM( 40 ) col2, 7 DIV + 24 AS col0
----
-40
0

skipif mysql # not compatible
query II rowsort label-9693
SELECT DISTINCT - SUM ( 40 ) col2, 7 / + 24 AS col0
----
-40
0

query I rowsort
SELECT 94 + - 61 - + 34 + + 19 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT 89 * 98 - COUNT( * ) AS col0
----
8721

skipif mysql # not compatible
query I rowsort label-9695
SELECT 89 * 98 - COUNT ( * ) AS col0
----
8721

query II rowsort
SELECT 39 - 1, 34 AS col1
----
38
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT ALL + 90 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + 90 / 69
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT 99 * + 70 + 57 + + 78 * + - 77 + - COUNT( * ) AS col1
----
980

skipif mysql # not compatible
query I rowsort label-9698
SELECT 99 * + 70 + 57 + + 78 * + - 77 + - COUNT ( * ) AS col1
----
980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT ALL - CAST( NULL AS SIGNED ) + - + 92 * + ( - 86 ) * - 68 + - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 92 * + ( - 86 ) * - 68 + - + 21
----
NULL

query I rowsort
SELECT DISTINCT 21 - + + 79 * + 37 - + 94
----
-2996

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL - 99 * - COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - 99 * - COUNT ( * ) AS col1
----
99

query I rowsort
SELECT 38 + + - 98
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT + 14 * + 20 * - COUNT( * ) AS col1
----
-280

skipif mysql # not compatible
query I rowsort label-9703
SELECT + 14 * + 20 * - COUNT ( * ) AS col1
----
-280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9704
SELECT 29 * + - NULLIF ( - + 95, - 36 * - 49 + - - NULLIF ( + + 0, - ( - 42 ) ) + - CASE NULLIF ( + CAST( NULL AS SIGNED ), - COUNT( * ) ) WHEN 3 THEN + 36 + - COUNT( * ) WHEN ( ( - 75 ) ) THEN NULL WHEN + MIN( ALL - ( + 35 ) ) THEN NULL ELSE NULL END * 78 ) + + 95
----
2850

skipif mysql # not compatible
query I rowsort label-9704
SELECT 29 * + - NULLIF ( - + 95, - 36 * - 49 + - - NULLIF ( + + 0, - ( - 42 ) ) + - CASE NULLIF ( + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) WHEN 3 THEN + 36 + - COUNT ( * ) WHEN ( ( - 75 ) ) THEN NULL WHEN + MIN ( ALL - ( + 35 ) ) THEN NULL ELSE NULL END * 78 ) + + 95
----
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT ALL - MIN( DISTINCT 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL - MIN ( DISTINCT 64 )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL 7 * - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL 7 * - COUNT ( * )
----
-7

query I rowsort
SELECT - ( - ( + 25 ) )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT 77 * + - 15 * + 40 + - 14 * - + ( COUNT( * ) ) AS col1
----
-46186

skipif mysql # not compatible
query I rowsort label-9709
SELECT 77 * + - 15 * + 40 + - 14 * - + ( COUNT ( * ) ) AS col1
----
-46186

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT - COUNT( * ) + 76 * 16 col2
----
1215

skipif mysql # not compatible
query I rowsort label-9710
SELECT - COUNT ( * ) + 76 * 16 col2
----
1215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT - 52 + - CAST( NULL AS SIGNED ) * + + CASE - + 24 WHEN - 21 / + + 39 THEN - + CASE - 12 WHEN + 52 THEN NULL WHEN - CAST( + 4 AS SIGNED ) * - 36 THEN - 61 END WHEN ( 63 ) + - 18 / 92 THEN NULL ELSE 22 * 85 END + + COUNT( 99 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT - 52 + - CAST ( NULL AS INTEGER ) * + + CASE - + 24 WHEN - 21 / + + 39 THEN - + CASE - 12 WHEN + 52 THEN NULL WHEN - CAST ( + 4 AS INTEGER ) * - 36 THEN - 61 END WHEN ( 63 ) + - 18 / 92 THEN NULL ELSE 22 * 85 END + + COUNT ( 99 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9712
SELECT - - CASE + + 78 WHEN + 94 + - - 20 + + + 19 THEN - + COUNT( * ) WHEN - + 85 THEN + CAST( NULL AS DECIMAL ) END / - COUNT( * ) + 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT - - CASE + + 78 WHEN + 94 + - - 20 + + + 19 THEN - + COUNT ( * ) WHEN - + 85 THEN + CAST ( NULL AS REAL ) END / - COUNT ( * ) + 5 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9713
SELECT ALL 96 * + CAST( - - 19 AS SIGNED ) * + 44 AS col0
----
80256

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL 96 * + CAST ( - - 19 AS INTEGER ) * + 44 AS col0
----
80256

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT ALL COUNT( - 56 ) * CASE - - COUNT( * ) WHEN - - 72 THEN + - 5 WHEN + 66 THEN - 89 / 95 ELSE NULL END + ( 77 + + 39 ) / 70
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT ALL COUNT ( - 56 ) * CASE - - COUNT ( * ) WHEN - - 72 THEN + - 5 WHEN + 66 THEN - 89 / 95 ELSE NULL END + ( 77 + + 39 ) / 70
----
NULL

query I rowsort
SELECT ALL + ( 67 ) * + 12 + + 86
----
890

query I rowsort
SELECT DISTINCT 93 * 5 + + 16 AS col1
----
481

query I rowsort
SELECT 7 - + 55
----
-48

query II rowsort
SELECT DISTINCT - 46 AS col0, + 92
----
-46
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT + MAX( - - 37 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-9719
SELECT + MAX ( - - 37 ) col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9720
SELECT MAX( ALL 95 ) * - 12 - 1 * - CAST( 83 AS SIGNED )
----
-1057

skipif mysql # not compatible
query I rowsort label-9720
SELECT MAX ( ALL 95 ) * - 12 - 1 * - CAST ( 83 AS INTEGER )
----
-1057

query I rowsort
SELECT ( + 85 ) + 23
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT 94 * + 60 * - COALESCE ( - + COUNT( - CAST( NULL AS SIGNED ) ), + - 38 ) * + 36 + 69 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-9722
SELECT 94 * + 60 * - COALESCE ( - + COUNT ( - CAST ( NULL AS INTEGER ) ), + - 38 ) * + 36 + 69 AS col1
----
69

query I rowsort
SELECT ALL 16 + + - 21 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT ALL CASE + + 55 WHEN - COUNT( * ) THEN NULL WHEN 26 THEN - + CAST( NULL AS SIGNED ) * + 73 * - 8 + 33 ELSE NULL END * ( + ( 94 ) * - 48 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL CASE + + 55 WHEN - COUNT ( * ) THEN NULL WHEN 26 THEN - + CAST ( NULL AS INTEGER ) * + 73 * - 8 + 33 ELSE NULL END * ( + ( 94 ) * - 48 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9725
SELECT ALL + 48 AS col0, 85 + - - 16 * MAX( ALL 12 ) AS col1
----
48
277

skipif mysql # not compatible
query II rowsort label-9725
SELECT ALL + 48 AS col0, 85 + - - 16 * MAX ( ALL 12 ) AS col1
----
48
277

query I rowsort
SELECT + 98 * + - 51 AS col1
----
-4998

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9727
SELECT ALL + 93 AS col2, + 60 * + MAX( CAST( - + 64 AS SIGNED ) ) + 69 AS col2, 77 col0
----
93
-3771
77

skipif mysql # not compatible
query III rowsort label-9727
SELECT ALL + 93 AS col2, + 60 * + MAX ( CAST ( - + 64 AS INTEGER ) ) + 69 AS col2, 77 col0
----
93
-3771
77

query I rowsort
SELECT + NULLIF ( 31, 48 * - 71 )
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9729
SELECT ALL + 64 col2, - COUNT( * ) * 63 + + 34 * + + 39
----
64
1263

skipif mysql # not compatible
query II rowsort label-9729
SELECT ALL + 64 col2, - COUNT ( * ) * 63 + + 34 * + + 39
----
64
1263

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL + NULLIF ( - SUM( + - 71 ), - 7 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL + NULLIF ( - SUM ( + - 71 ), - 7 ) AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9731
SELECT ALL + COALESCE ( - 38, + COUNT( * ) DIV + - 50 * + 96 * - 57 )
----
-38

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL + COALESCE ( - 38, + COUNT ( * ) / + - 50 * + 96 * - 57 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9732
SELECT DISTINCT CAST( 90 AS SIGNED ) * - 1 AS col1, - 92 * + 7 * 81 + COUNT( - 80 ) + - 40 * 55 / - CASE 29 + - COUNT( * ) WHEN + 43 / - 56 THEN 1 END
----
-90
NULL

skipif mysql # not compatible
query II rowsort label-9732
SELECT DISTINCT CAST ( 90 AS INTEGER ) * - 1 AS col1, - 92 * + 7 * 81 + COUNT ( - 80 ) + - 40 * 55 / - CASE 29 + - COUNT ( * ) WHEN + 43 / - 56 THEN 1 END
----
-90
NULL

query I rowsort
SELECT + 38 - 67 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + 97 * SUM( ALL - + 15 ) AS col0
----
-1455

skipif mysql # not compatible
query I rowsort label-9734
SELECT + 97 * SUM ( ALL - + 15 ) AS col0
----
-1455

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT + COUNT( + - 15 ) - ( - + NULLIF ( - 61, - 55 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-9735
SELECT + COUNT ( + - 15 ) - ( - + NULLIF ( - 61, - 55 ) )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT ALL COALESCE ( 43, - 87 * + + CAST( NULL AS SIGNED ) + 41 + + 57 - - 87 - 57 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL COALESCE ( 43, - 87 * + + CAST ( NULL AS INTEGER ) + 41 + + 57 - - 87 - 57 ) AS col2
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9737
SELECT + - 6 * - COUNT( - 32 ), MIN( 53 ) + COALESCE ( - 90, 36 - 14, 89 + ( COUNT( * ) - + 75 * 73 ) ) DIV 50 AS col0
----
6
52

skipif mysql # not compatible
query II rowsort label-9737
SELECT + - 6 * - COUNT ( - 32 ), MIN ( 53 ) + COALESCE ( - 90, 36 - 14, 89 + ( COUNT ( * ) - + 75 * 73 ) ) / 50 AS col0
----
6
52

query I rowsort
SELECT + ( 72 ) AS col0
----
72

query I rowsort
SELECT ALL + ( + + 0 ) * 60 + 48 AS col1
----
48

query I rowsort
SELECT - - 56 - + 93 - - 17 AS col0
----
-20

query II rowsort
SELECT ALL 84, - 56 AS col1
----
84
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT - + MIN( ALL - + 68 ) - 52
----
16

skipif mysql # not compatible
query I rowsort label-9742
SELECT - + MIN ( ALL - + 68 ) - 52
----
16

query II rowsort
SELECT ALL 17 AS col1, - 41 AS col2
----
17
-41

query II rowsort
SELECT - + 0 AS col0, + 7
----
0
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT - 59 + + - MAX( 73 )
----
-132

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT - 59 + + - MAX ( 73 )
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT - 28 + + CASE + 83 WHEN 61 * - + COUNT( * ) THEN 35 * + + 95 + - - 76 * 78 WHEN 21 THEN NULL WHEN 93 * + 51 THEN NULL ELSE - MIN( ALL + 9 ) * 46 END
----
-442

skipif mysql # not compatible
query I rowsort label-9746
SELECT - 28 + + CASE + 83 WHEN 61 * - + COUNT ( * ) THEN 35 * + + 95 + - - 76 * 78 WHEN 21 THEN NULL WHEN 93 * + 51 THEN NULL ELSE - MIN ( ALL + 9 ) * 46 END
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT - SUM( 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-9747
SELECT - SUM ( 45 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9748
SELECT - COUNT( * ) - - NULLIF ( + 17, - - 28 ) AS col0, 13 * - 51 - + 57 DIV - - COUNT( * ) * - 1 + 59
----
16
-547

skipif mysql # not compatible
query II rowsort label-9748
SELECT - COUNT ( * ) - - NULLIF ( + 17, - - 28 ) AS col0, 13 * - 51 - + 57 / - - COUNT ( * ) * - 1 + 59
----
16
-547

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9749
SELECT DISTINCT - CAST( - 7 AS SIGNED ) + + - 48, - 15 AS col0
----
-41
-15

skipif mysql # not compatible
query II rowsort label-9749
SELECT DISTINCT - CAST ( - 7 AS INTEGER ) + + - 48, - 15 AS col0
----
-41
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-9750
SELECT + 52 AS col1, COUNT( * ) AS col1
----
52
1

skipif mysql # not compatible
query II rowsort label-9750
SELECT + 52 AS col1, COUNT ( * ) AS col1
----
52
1

query I rowsort
SELECT ALL - + 46 + - + 55 AS col1
----
-101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9752
SELECT ALL - CAST( NULL AS DECIMAL ) / 43 * + ( + + 76 ) + + + 7 + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - CAST ( NULL AS REAL ) / 43 * + ( + + 76 ) + + + 7 + 78 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9753
SELECT - 64 DIV - 86 * 52
----
0

skipif mysql # not compatible
query I rowsort label-9753
SELECT - 64 / - 86 * 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT 7 DIV + + 37 + + + NULLIF ( 24, + 40 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9754
SELECT 7 / + + 37 + + + NULLIF ( 24, + 40 ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9755
SELECT DISTINCT - COUNT( * ) DIV + + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9755
SELECT DISTINCT - COUNT ( * ) / + + 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL COUNT( * ) * - 39 + - 72 AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL COUNT ( * ) * - 39 + - 72 AS col2
----
-111

query I rowsort
SELECT ( + 21 ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT DISTINCT - 89 * + COUNT( * ) * + 18 AS col1
----
-1602

skipif mysql # not compatible
query I rowsort label-9758
SELECT DISTINCT - 89 * + COUNT ( * ) * + 18 AS col1
----
-1602

query I rowsort
SELECT + 10 * + - ( - 30 ) AS col1
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT DISTINCT NULLIF ( 22, + 79 ) * COUNT( * ) + - 88 - - + 69
----
3

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT NULLIF ( 22, + 79 ) * COUNT ( * ) + - 88 - - + 69
----
3

query I rowsort
SELECT COALESCE ( + - 17, + 75 + + + 10 )
----
-17

query I rowsort
SELECT ALL + 93 col0
----
93

query I rowsort
SELECT + 74 - + 51 AS col0
----
23

query I rowsort
SELECT + 50 + - - 69 AS col1
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT COALESCE ( - COUNT( ALL - - 48 ), + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9765
SELECT COALESCE ( - COUNT ( ALL - - 48 ), + + COUNT ( * ) )
----
-1

query I rowsort
SELECT + CASE + 15 WHEN + - 90 THEN + - 73 WHEN + 42 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT - 38 + + - MIN( ALL - + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-9767
SELECT - 38 + + - MIN ( ALL - + 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT + NULLIF ( + ( 98 ), + + CASE + 86 WHEN 15 * - 73 * + 93 - - COUNT( * ) * + 84 + ( + 55 ) / + 37 THEN NULL ELSE 58 + 8 END + + 1 ) * + 95 AS col0
----
9310

skipif mysql # not compatible
query I rowsort label-9768
SELECT + NULLIF ( + ( 98 ), + + CASE + 86 WHEN 15 * - 73 * + 93 - - COUNT ( * ) * + 84 + ( + 55 ) / + 37 THEN NULL ELSE 58 + 8 END + + 1 ) * + 95 AS col0
----
9310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9769
SELECT CASE 18 WHEN + ( CAST( + 74 AS SIGNED ) ) * + 56 THEN - - SUM( DISTINCT 30 ) * 92 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9769
SELECT CASE 18 WHEN + ( CAST ( + 74 AS INTEGER ) ) * + 56 THEN - - SUM ( DISTINCT 30 ) * 92 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT - 14 + COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-9770
SELECT - 14 + COUNT ( * )
----
-13

query I rowsort
SELECT 64 * - + 11 - - 93 AS col2
----
-611

query I rowsort
SELECT + ( + + 80 ) * 76 AS col0
----
6080

query I rowsort
SELECT + ( - + 35 ) - 59
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT + - 35 * + + ( + + COUNT( * ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9774
SELECT + - 35 * + + ( + + COUNT ( * ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9775
SELECT 77 * SUM( DISTINCT 91 ) + + 48, 84 AS col2
----
7055
84

skipif mysql # not compatible
query II rowsort label-9775
SELECT 77 * SUM ( DISTINCT 91 ) + + 48, 84 AS col2
----
7055
84

query II rowsort
SELECT + + 2 * + 76 * - ( + 74 ) AS col1, + 34 * - - 0 * + 0
----
-11248
0

query I rowsort
SELECT ALL 2 * + - CASE 77 WHEN + 50 + - - 30 + 54 + - 16 THEN + + 77 * 66 ELSE NULL END
----
NULL

query II rowsort
SELECT + 59 + + 59 AS col0, 28
----
118
28

query I rowsort
SELECT ALL 29 + - 44
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT - 72 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9780
SELECT - 72 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT ( 59 ) + - COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT ( 59 ) + - COUNT ( * ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT ALL CASE - + COALESCE ( ( + - 9 ), + - 2 + + 29 + - COUNT( * ) + - 43 * + + 56 * + COUNT( * ) ) WHEN + 98 THEN + 64 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL CASE - + COALESCE ( ( + - 9 ), + - 2 + + 29 + - COUNT ( * ) + - 43 * + + 56 * + COUNT ( * ) ) WHEN + 98 THEN + 64 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9783
SELECT + - 75 * + 24 AS col2, - COUNT( * )
----
-1800
-1

skipif mysql # not compatible
query II rowsort label-9783
SELECT + - 75 * + 24 AS col2, - COUNT ( * )
----
-1800
-1

query I rowsort
SELECT ALL + 95 + 62 AS col0
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT DISTINCT 13 / CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT DISTINCT 13 / CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT ALL + 73 + + - 61 AS col1, 4 AS col0
----
12
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL - COUNT( * ) + 24 * + CASE + COUNT( * ) WHEN + 23 THEN 11 * + COUNT( * ) ELSE NULL END - 22 * + - CAST( NULL AS SIGNED ) + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL - COUNT ( * ) + 24 * + CASE + COUNT ( * ) WHEN + 23 THEN 11 * + COUNT ( * ) ELSE NULL END - 22 * + - CAST ( NULL AS INTEGER ) + 94
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9788
SELECT DISTINCT MIN( - 51 ), - 14 + - - COUNT( * ) + + - 77 AS col2
----
-51
-90

skipif mysql # not compatible
query II rowsort label-9788
SELECT DISTINCT MIN ( - 51 ), - 14 + - - COUNT ( * ) + + - 77 AS col2
----
-51
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-9789
SELECT - 75 * COUNT( * ), - 49 AS col0
----
-75
-49

skipif mysql # not compatible
query II rowsort label-9789
SELECT - 75 * COUNT ( * ), - 49 AS col0
----
-75
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT ALL - 75 - + COALESCE ( - 29, + MAX( ALL 8 ) * - NULLIF ( - 39, + - AVG ( - 34 ) * - 92 ) + 35 + 55 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9790
SELECT ALL - 75 - + COALESCE ( - 29, + MAX ( ALL 8 ) * - NULLIF ( - 39, + - AVG ( - 34 ) * - 92 ) + 35 + 55 ) AS col1
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9791
SELECT + NULLIF ( + CAST( + 30 AS SIGNED ), + 70 ) + - 41
----
-11

skipif mysql # not compatible
query I rowsort label-9791
SELECT + NULLIF ( + CAST ( + 30 AS INTEGER ), + 70 ) + - 41
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT + 87 - COUNT( * ) + NULLIF ( - - 41, - COUNT( * ) ) * 19 AS col2
----
865

skipif mysql # not compatible
query I rowsort label-9792
SELECT + 87 - COUNT ( * ) + NULLIF ( - - 41, - COUNT ( * ) ) * 19 AS col2
----
865

query I rowsort
SELECT - 93 * - 34 AS col0
----
3162

query II rowsort
SELECT ALL - ( - 43 ) * 74 AS col1, - ( + + 2 ) * + 52
----
3182
-104

query III rowsort
SELECT 38 AS col2, + 81 + - 2 AS col1, + 40 AS col0
----
38
79
40

query I rowsort
SELECT ALL - CASE + 10 WHEN - 84 - + - 72 + 99 THEN - + 51 WHEN 82 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9797
SELECT DISTINCT - 58 DIV - 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT - 58 / - 77 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9798
SELECT 48 + CAST( - + ( 81 ) AS SIGNED ) + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT 48 + CAST ( - + ( 81 ) AS INTEGER ) + - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9799
SELECT ALL - 68 DIV - + 60 col2
----
1

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL - 68 / - + 60 col2
----
1

query I rowsort
SELECT DISTINCT - ( 11 ) col2
----
-11

query I rowsort
SELECT + 89 * - + 65 + - 13 AS col2
----
-5798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT DISTINCT - CAST( + 25 AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT - CAST ( + 25 AS INTEGER ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL - 41 * - + 12 * COUNT( * ) * + 85 * - 17 * ( - 97 )
----
68961180

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL - 41 * - + 12 * COUNT ( * ) * + 85 * - 17 * ( - 97 )
----
68961180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT 38 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT 38 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 78 * + ( + 77 ) AS col2
----
6006

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9806
SELECT 33 AS col1, COALESCE ( - - 95, + 98 * + + COUNT( * ) + - - 22 + 76, - + 90 ) DIV - 42
----
33
-2

skipif mysql # not compatible
query II rowsort label-9806
SELECT 33 AS col1, COALESCE ( - - 95, + 98 * + + COUNT ( * ) + - - 22 + 76, - + 90 ) / - 42
----
33
-2

query I rowsort
SELECT DISTINCT - + 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT + MAX( ALL 70 ) + + - 27
----
43

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT + MAX ( ALL 70 ) + + - 27
----
43

query II rowsort
SELECT 63, 86 AS col2
----
63
86

query I rowsort
SELECT ALL + + 80 + + ( - + 63 ) + 57
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9811
SELECT + MIN( DISTINCT + - 60 ) - + 32 + + + 62 + - CASE + 58 WHEN + 43 THEN 44 ELSE COUNT( 51 ) * - 82 END DIV 67
----
-29

skipif mysql # not compatible
query I rowsort label-9811
SELECT + MIN ( DISTINCT + - 60 ) - + 32 + + + 62 + - CASE + 58 WHEN + 43 THEN 44 ELSE COUNT ( 51 ) * - 82 END / 67
----
-29

query I rowsort
SELECT + 57 * - 77 + + + 95
----
-4294

query I rowsort
SELECT - ( ( + 4 ) ) col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9814
SELECT ALL + COUNT( * ) + - MIN( 1 ) AS col1, 41 DIV + 7 - + + 26 AS col2
----
0
-21

skipif mysql # not compatible
query II rowsort label-9814
SELECT ALL + COUNT ( * ) + - MIN ( 1 ) AS col1, 41 / + 7 - + + 26 AS col2
----
0
-21

query I rowsort
SELECT ( 29 ) + 74 AS col2
----
103

query I rowsort
SELECT DISTINCT - 35 * 98 AS col1
----
-3430

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL 76 + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL 76 + COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9818
SELECT + CAST( - 54 AS SIGNED ) * + ( + + 33 ) AS col0
----
-1782

skipif mysql # not compatible
query I rowsort label-9818
SELECT + CAST ( - 54 AS INTEGER ) * + ( + + 33 ) AS col0
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT COUNT( 37 ) + + - NULLIF ( + 4, - + 81 * - - COUNT( * ) ) + + + 74 * 5 * - + 41
----
-15173

skipif mysql # not compatible
query I rowsort label-9819
SELECT COUNT ( 37 ) + + - NULLIF ( + 4, - + 81 * - - COUNT ( * ) ) + + + 74 * 5 * - + 41
----
-15173

query I rowsort
SELECT 32 * - - ( + - 89 ) AS col1
----
-2848

query I rowsort
SELECT 39 + - 77 AS col0
----
-38

query I rowsort
SELECT 42 - - + 2
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-9823
SELECT COALESCE ( 32, - - 25 ) DIV + 26
----
1

skipif mysql # not compatible
query I rowsort label-9823
SELECT COALESCE ( 32, - - 25 ) / + 26
----
1

query II rowsort
SELECT 91 AS col2, - 6
----
91
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT SUM( - 1 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9825
SELECT SUM ( - 1 ) AS col1
----
-1

query I rowsort
SELECT 22 * - 39
----
-858

query I rowsort
SELECT 57 * 52
----
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT 36 * 16 * - 8 + CAST( 91 AS SIGNED ) AS col0
----
-4517

skipif mysql # not compatible
query I rowsort label-9828
SELECT 36 * 16 * - 8 + CAST ( 91 AS INTEGER ) AS col0
----
-4517

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT + MAX( DISTINCT + 91 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-9829
SELECT + MAX ( DISTINCT + 91 ) col0
----
91

query II rowsort
SELECT 24 col1, - 45
----
24
-45

query I rowsort
SELECT ALL 56 * + - 34
----
-1904

query I rowsort
SELECT ALL - 37 + - 38
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9833
SELECT COALESCE ( + 81, + CASE CAST( + 92 AS SIGNED ) WHEN + 77 DIV + - 2 + 46 + - ( 7 ) + - MIN( ALL + 81 ) DIV - 46 THEN + 40 WHEN AVG ( - 82 ) * 85 THEN NULL ELSE NULL END ) DIV 91 - 40 * - 11 AS col2
----
440

skipif mysql # not compatible
query I rowsort label-9833
SELECT COALESCE ( + 81, + CASE CAST ( + 92 AS INTEGER ) WHEN + 77 / + - 2 + 46 + - ( 7 ) + - MIN ( ALL + 81 ) / - 46 THEN + 40 WHEN AVG ( - 82 ) * 85 THEN NULL ELSE NULL END ) / 91 - 40 * - 11 AS col2
----
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9834
SELECT ALL CAST( NULL AS SIGNED ) + AVG ( - - 29 ) + - CASE 49 WHEN - 67 + + COUNT( * ) + - 81 THEN NULL WHEN 6 THEN 4 / - 4 ELSE 33 / - COUNT( * ) END * + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL CAST ( NULL AS INTEGER ) + AVG ( - - 29 ) + - CASE 49 WHEN - 67 + + COUNT ( * ) + - 81 THEN NULL WHEN 6 THEN 4 / - 4 ELSE 33 / - COUNT ( * ) END * + 82 AS col2
----
NULL

query I rowsort
SELECT 63 - - 69 col2
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9836
SELECT ALL - - COUNT( * ) + + 14 DIV + + 84 * - 82
----
1

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL - - COUNT ( * ) + + 14 / + + 84 * - 82
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT + 36 * COUNT( * ) + SUM( DISTINCT + ( + 29 ) )
----
65

skipif mysql # not compatible
query I rowsort label-9837
SELECT + 36 * COUNT ( * ) + SUM ( DISTINCT + ( + 29 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL - - COALESCE ( + - 63, + + MAX( DISTINCT + - 44 ) + + 81 * COUNT( * ), - 10 ) + - 56
----
-119

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - - COALESCE ( + - 63, + + MAX ( DISTINCT + - 44 ) + + 81 * COUNT ( * ), - 10 ) + - 56
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT COUNT( * ) + + NULLIF ( + 17, + ( + 94 ) ) * + - 90 AS col0
----
-1529

skipif mysql # not compatible
query I rowsort label-9839
SELECT COUNT ( * ) + + NULLIF ( + 17, + ( + 94 ) ) * + - 90 AS col0
----
-1529

query II rowsort
SELECT + 46 AS col0, + 5
----
46
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9841
SELECT DISTINCT + + CASE COUNT( * ) WHEN - + 0 THEN NULL WHEN + 30 THEN NULL WHEN + 86 + + 57 THEN CAST( NULL AS SIGNED ) END / NULLIF ( + 21, 94 + - COUNT( * ) * 2 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9841
SELECT DISTINCT + + CASE COUNT ( * ) WHEN - + 0 THEN NULL WHEN + 30 THEN NULL WHEN + 86 + + 57 THEN CAST ( NULL AS INTEGER ) END / NULLIF ( + 21, 94 + - COUNT ( * ) * 2 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT 46 + + SUM( + 27 ) + - ( + 33 )
----
40

skipif mysql # not compatible
query I rowsort label-9842
SELECT 46 + + SUM ( + 27 ) + - ( + 33 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL + 48 + + 98 + + MIN( DISTINCT + 63 ) * + 64 AS col0
----
4178

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + 48 + + 98 + + MIN ( DISTINCT + 63 ) * + 64 AS col0
----
4178

query I rowsort
SELECT 77 * - 9
----
-693

query II rowsort
SELECT ALL 9, 88 * - + 19 AS col0
----
9
-1672

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT 69 + 67 * COALESCE ( 92, + COUNT( 88 ) * 23 * 3 + + - 98 * - 0, + 88, 66 ) AS col1
----
6233

skipif mysql # not compatible
query I rowsort label-9846
SELECT 69 + 67 * COALESCE ( 92, + COUNT ( 88 ) * 23 * 3 + + - 98 * - 0, + 88, 66 ) AS col1
----
6233

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL + 87 - + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL + 87 - + COUNT ( * ) AS col0
----
86

query I rowsort
SELECT COALESCE ( 59, - 14, - - 79 + + - 7 + - COALESCE ( - - 41, - 17 ) ) + 35 * - - 62 AS col0
----
2229

query I rowsort
SELECT + 96 * + 75 * - - 46 + + 25 * - - 66 * + - 97
----
171150

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT MIN( - + ( - 29 ) ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT MIN ( - + ( - 29 ) ) AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9851
SELECT DISTINCT COALESCE ( 97, + ( 64 ), - - SUM( + 81 ) DIV - 24 ) * - - 65 col0
----
6305

skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT COALESCE ( 97, + ( 64 ), - - SUM ( + 81 ) / - 24 ) * - - 65 col0
----
6305

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT DISTINCT + 85 DIV 3
----
28

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT + 85 / 3
----
28

query I rowsort
SELECT + 51 + - - 25 + - 85 + 17 * + 60 - ( 28 ) * + 83 + - CASE + 53 WHEN + 91 THEN - - 85 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT + COUNT( * ) DIV - + 54
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT + COUNT ( * ) / - + 54
----
0

query II rowsort
SELECT ( + 99 ) AS col0, 64
----
99
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9856
SELECT CAST( NULL AS SIGNED ) / 72 + - 58 * + - NULLIF ( + 71, + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT CAST ( NULL AS INTEGER ) / 72 + - 58 * + - NULLIF ( + 71, + 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT DISTINCT 62 * + + 46 * 16 + - COUNT( * ) AS col2
----
45631

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT 62 * + + 46 * 16 + - COUNT ( * ) AS col2
----
45631

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + COALESCE ( + + MAX( - - 87 ), + + COUNT( * ) + MAX( DISTINCT - + 94 ) )
----
87

skipif mysql # not compatible
query I rowsort label-9858
SELECT + COALESCE ( + + MAX ( - - 87 ), + + COUNT ( * ) + MAX ( DISTINCT - + 94 ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT ALL + NULLIF ( - - 54, + AVG ( 22 ) * - - CASE - 61 WHEN 44 + + COUNT( * ) + - 47 THEN - 24 WHEN + 76 THEN NULL END ) * + 12 + ( 94 ) AS col0
----
742

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL + NULLIF ( - - 54, + AVG ( 22 ) * - - CASE - 61 WHEN 44 + + COUNT ( * ) + - 47 THEN - 24 WHEN + 76 THEN NULL END ) * + 12 + ( 94 ) AS col0
----
742

onlyif mysql # aggregate syntax: 
query II rowsort label-9860
SELECT DISTINCT - 63 * + 7 + + SUM( 60 ) - + - 5 AS col2, SUM( ALL 14 ) * - - 84
----
-376
1176

skipif mysql # not compatible
query II rowsort label-9860
SELECT DISTINCT - 63 * + 7 + + SUM ( 60 ) - + - 5 AS col2, SUM ( ALL 14 ) * - - 84
----
-376
1176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9861
SELECT ALL 81 * 15 + + - MIN( ALL - 19 ) - - 43 DIV - COUNT( * ) AS col1
----
1191

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL 81 * 15 + + - MIN ( ALL - 19 ) - - 43 / - COUNT ( * ) AS col1
----
1191

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT + ( + 5 ) + + - MIN( + 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-9862
SELECT + ( + 5 ) + + - MIN ( + 6 )
----
-1

query I rowsort
SELECT - + 23 * + ( - + 38 )
----
874

query I rowsort
SELECT + COALESCE ( - 1, 71 + + 47 ) AS col2
----
-1

query II rowsort
SELECT + 96 * + - 40 + + 39 AS col2, + 4
----
-3801
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9866
SELECT + SUM( DISTINCT + - 47 ), + 90 * + 33 AS col0
----
-47
2970

skipif mysql # not compatible
query II rowsort label-9866
SELECT + SUM ( DISTINCT + - 47 ), + 90 * + 33 AS col0
----
-47
2970

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT ALL - 32 * + - 31 * 88 * 31 + 52 + - - 45 * - + 63 * + - COUNT( * ) AS col0
----
2709063

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - 32 * + - 31 * 88 * 31 + 52 + - - 45 * - + 63 * + - COUNT ( * ) AS col0
----
2709063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9868
SELECT + NULLIF ( + COUNT( * ), - + AVG ( - 24 ) * + + CAST( NULL AS SIGNED ) + - - 10 + + MIN( DISTINCT - 72 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9868
SELECT + NULLIF ( + COUNT ( * ), - + AVG ( - 24 ) * + + CAST ( NULL AS INTEGER ) + - - 10 + + MIN ( DISTINCT - 72 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9869
SELECT ALL + CASE + + 40 WHEN + CAST( + COUNT( * ) AS SIGNED ) THEN NULL ELSE 42 END DIV 80 + - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL + CASE + + 40 WHEN + CAST ( + COUNT ( * ) AS INTEGER ) THEN NULL ELSE 42 END / 80 + - ( - - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + CASE 51 WHEN - - 8 * 48 THEN - - 12 * - - 3 / + 86 + + 26 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT + - MIN( - 59 ) * + + 30 AS col1
----
1770

skipif mysql # not compatible
query I rowsort label-9871
SELECT + - MIN ( - 59 ) * + + 30 AS col1
----
1770

query I rowsort
SELECT - 50 * - 35 AS col0
----
1750

onlyif mysql # DIV for integer division: 
query I rowsort label-9873
SELECT ALL + + 8 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL + + 8 / - 25
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT - 64 * - - 63 * - CAST( NULL AS SIGNED ) * - - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT - 64 * - - 63 * - CAST ( NULL AS INTEGER ) * - - 96
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9875
SELECT - NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT - NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9876
SELECT ALL + + COUNT( * ) * 84 AS col0, COUNT( * ) col1
----
84
1

skipif mysql # not compatible
query II rowsort label-9876
SELECT ALL + + COUNT ( * ) * 84 AS col0, COUNT ( * ) col1
----
84
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9877
SELECT - + 70 / CAST( NULL AS SIGNED ) AS col1, + 96 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-9877
SELECT - + 70 / CAST ( NULL AS INTEGER ) AS col1, + 96 AS col0
----
NULL
96

query I rowsort
SELECT - 58 * - 12 AS col1
----
696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9879
SELECT ALL 46 DIV COUNT( * ) * 4 col0
----
184

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL 46 / COUNT ( * ) * 4 col0
----
184

query I rowsort
SELECT - 10 - 69 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9881
SELECT ALL + 81 * + CAST( + 78 AS SIGNED ) AS col0, - 44
----
6318
-44

skipif mysql # not compatible
query II rowsort label-9881
SELECT ALL + 81 * + CAST ( + 78 AS INTEGER ) AS col0, - 44
----
6318
-44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9882
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT - 87 + + - 66 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT - 87 + + - 66 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9884
SELECT - 11, - 76 * COUNT( * ) AS col0
----
-11
-76

skipif mysql # not compatible
query II rowsort label-9884
SELECT - 11, - 76 * COUNT ( * ) AS col0
----
-11
-76

query I rowsort
SELECT ALL - 9 + + + 25
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9886
SELECT ALL + ( + - 45 ) + ( - CAST( NULL AS SIGNED ) ) * 19 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + ( + - 45 ) + ( - CAST ( NULL AS INTEGER ) ) * 19 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT - 74 + - + CAST( + - NULLIF ( - 46, - 96 ) AS SIGNED )
----
-120

skipif mysql # not compatible
query I rowsort label-9887
SELECT - 74 + - + CAST ( + - NULLIF ( - 46, - 96 ) AS INTEGER )
----
-120

query I rowsort
SELECT - 92 * - 65 col0
----
5980

query I rowsort
SELECT DISTINCT 3 + 49 col2
----
52

query II rowsort
SELECT 49 AS col2, + 29
----
49
29

query I rowsort
SELECT ALL 56 + - 80
----
-24

query I rowsort
SELECT DISTINCT + ( - + 38 ) + + + ( - - 38 ) AS col2
----
0

query I rowsort
SELECT ALL 2 * 60 * - - 52 AS col2
----
6240

query II rowsort
SELECT DISTINCT + 15 AS col0, 16
----
15
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - NULLIF ( + 60, - - 26 * - 11 * - - ( + + 87 ) + NULLIF ( - 69, NULLIF ( - + 60, - MIN( ALL 71 ) ) + - 51 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-9895
SELECT - NULLIF ( + 60, - - 26 * - 11 * - - ( + + 87 ) + NULLIF ( - 69, NULLIF ( - + 60, - MIN ( ALL 71 ) ) + - 51 ) )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9896
SELECT 92 * + COUNT( * ) * + 12 + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT 92 * + COUNT ( * ) * + 12 + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + ( - - 30 )
----
30

query II rowsort
SELECT DISTINCT + 1, 67 + 93 AS col0
----
1
160

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT ALL 29 * 51 DIV - NULLIF ( + 54, + + 29 ) + 33 * - 54
----
-1809

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL 29 * 51 / - NULLIF ( + 54, + + 29 ) + 33 * - 54
----
-1809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9900
SELECT + CASE + 40 WHEN - 32 + - AVG ( - + ( 61 ) ) * + - 10 THEN NULL WHEN 11 THEN + - COUNT( * ) / - + 39 WHEN 37 + + + MAX( ALL + 44 ) THEN NULL WHEN - 15 THEN NULL END + - 5 * SUM( ALL + CAST( NULL AS SIGNED ) * 20 + + 25 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT + CASE + 40 WHEN - 32 + - AVG ( - + ( 61 ) ) * + - 10 THEN NULL WHEN 11 THEN + - COUNT ( * ) / - + 39 WHEN 37 + + + MAX ( ALL + 44 ) THEN NULL WHEN - 15 THEN NULL END + - 5 * SUM ( ALL + CAST ( NULL AS INTEGER ) * 20 + + 25 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL + 56 * + CASE NULLIF ( + 91, + 24 ) WHEN 45 THEN - - 72 + + - 38 WHEN + 65 * + SUM( - + 44 ) + 99 - - 91 + 86 THEN NULL WHEN NULLIF ( 8, 98 ) THEN NULL ELSE NULL END + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + 56 * + CASE NULLIF ( + 91, + 24 ) WHEN 45 THEN - - 72 + + - 38 WHEN + 65 * + SUM ( - + 44 ) + 99 - - 91 + 86 THEN NULL WHEN NULLIF ( 8, 98 ) THEN NULL ELSE NULL END + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9902
SELECT - 89 * + 24 + - 96 DIV - 84 + + - 6
----
-2141

skipif mysql # not compatible
query I rowsort label-9902
SELECT - 89 * + 24 + - 96 / - 84 + + - 6
----
-2141

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + CASE 24 WHEN 63 THEN + 0 * + COUNT( * ) + 50 / 54 + 87 WHEN - - 42 - - - 36 THEN + - 97 END * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT + CASE 24 WHEN 63 THEN + 0 * + COUNT ( * ) + 50 / 54 + 87 WHEN - - 42 - - - 36 THEN + - 97 END * + 32
----
NULL

query II rowsort
SELECT + 71, + 3 + 73 AS col1
----
71
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + 2 * + - 43 + + CASE + - 71 WHEN - ( - COUNT( ALL 25 ) ) + - - COUNT( * ) THEN NULL WHEN 83 - + - 57 THEN - 23 * - 10 END * - 2 + 34 + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT + 2 * + - 43 + + CASE + - 71 WHEN - ( - COUNT ( ALL 25 ) ) + - - COUNT ( * ) THEN NULL WHEN 83 - + - 57 THEN - 23 * - 10 END * - 2 + 34 + - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + - 65 + + 26 * + 61 * + 0 + MAX( DISTINCT + - 35 ) AS col2
----
-100

skipif mysql # not compatible
query I rowsort label-9906
SELECT + - 65 + + 26 * + 61 * + 0 + MAX ( DISTINCT + - 35 ) AS col2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + COALESCE ( + ( + + 99 ), - 41 * 88 + 31 * - COUNT( * ) ) col0
----
99

skipif mysql # not compatible
query I rowsort label-9907
SELECT + COALESCE ( + ( + + 99 ), - 41 * 88 + 31 * - COUNT ( * ) ) col0
----
99

query I rowsort
SELECT 99 * + ( - 38 ) * - + 68 * 52 AS col2
----
13302432

query I rowsort
SELECT ALL 9 * - - 8 AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9910
SELECT COUNT( * ) * - 47 + - - 96 + - CASE - MAX( 67 ) WHEN - COUNT( * ) * CAST( - 68 AS SIGNED ) * + COUNT( * ) * + + 29 + - COUNT( * ) THEN - 63 * ( 62 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT COUNT ( * ) * - 47 + - - 96 + - CASE - MAX ( 67 ) WHEN - COUNT ( * ) * CAST ( - 68 AS INTEGER ) * + COUNT ( * ) * + + 29 + - COUNT ( * ) THEN - 63 * ( 62 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 35 * - 11 + + + 46 + - 10
----
-349

query I rowsort
SELECT 32 + 95 AS col1
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT CAST( NULL AS SIGNED ) * 69 * + 4 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT CAST ( NULL AS INTEGER ) * 69 * + 4 col1
----
NULL

query I rowsort
SELECT 42 + 98 col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-9915
SELECT DISTINCT - COUNT( * ) + - - 62 + - - 63 * - - 71 * + 72 AS col2
----
322117

skipif mysql # not compatible
query I rowsort label-9915
SELECT DISTINCT - COUNT ( * ) + - - 62 + - - 63 * - - 71 * + 72 AS col2
----
322117

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT ALL - ( + ( CASE - - COALESCE ( COUNT( * ), - 0 + - COUNT( * ) ) WHEN - 12 THEN - 0 WHEN - 41 THEN 83 ELSE + ( + 52 ) + - 9 END ) ) + 3 * + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL - ( + ( CASE - - COALESCE ( COUNT ( * ), - 0 + - COUNT ( * ) ) WHEN - 12 THEN - 0 WHEN - 41 THEN 83 ELSE + ( + 52 ) + - 9 END ) ) + 3 * + COUNT ( * )
----
-40

query II rowsort
SELECT 32 * + 8, 54 * + + 12 col1
----
256
648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9918
SELECT 38 + - ( - CAST( NULL AS SIGNED ) ) / 37 AS col0, COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-9918
SELECT 38 + - ( - CAST ( NULL AS INTEGER ) ) / 37 AS col0, COUNT ( * ) col2
----
NULL
1

query I rowsort
SELECT ALL 33 + + 81 AS col1
----
114

query II rowsort
SELECT 57 * 54 AS col2, - 36
----
3078
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT 63 + MIN( DISTINCT - 71 )
----
-8

skipif mysql # not compatible
query I rowsort label-9921
SELECT 63 + MIN ( DISTINCT - 71 )
----
-8

query I rowsort
SELECT DISTINCT - ( + 9 ) + - 86
----
-95

query II rowsort
SELECT ALL + 51 * ( + ( 41 ) ), 38 AS col1
----
2091
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT 73 + MAX( 93 ) AS col1
----
166

skipif mysql # not compatible
query I rowsort label-9924
SELECT 73 + MAX ( 93 ) AS col1
----
166

query I rowsort
SELECT DISTINCT - 60 - - 41 col0
----
-19

query I rowsort
SELECT 66 - + 51 AS col0
----
15

query I rowsort
SELECT ALL + 52 * + 8 * - 57
----
-23712

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT SUM( 88 ) * + 44 * - + SUM( + 33 ) - + - 29 - + 92 - - MIN( ALL + + 0 ) * 60 * - 46 + + 94 AS col2
----
-127745

skipif mysql # not compatible
query I rowsort label-9928
SELECT SUM ( 88 ) * + 44 * - + SUM ( + 33 ) - + - 29 - + 92 - - MIN ( ALL + + 0 ) * 60 * - 46 + + 94 AS col2
----
-127745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT ALL + COUNT( * ) - + + CAST( - 2 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-9929
SELECT ALL + COUNT ( * ) - + + CAST ( - 2 AS INTEGER )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL - + CASE 87 WHEN - 97 THEN 74 WHEN + 20 + + 46 * + + COUNT( * ) THEN NULL ELSE NULL END * - 88
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL - + CASE 87 WHEN - 97 THEN 74 WHEN + 20 + + 46 * + + COUNT ( * ) THEN NULL ELSE NULL END * - 88
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9931
SELECT 62 DIV - 50 AS col1, + 45
----
-1
45

skipif mysql # not compatible
query II rowsort label-9931
SELECT 62 / - 50 AS col1, + 45
----
-1
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT ALL - SUM( 71 ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-9932
SELECT ALL - SUM ( 71 ) col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9933
SELECT COUNT( * ) DIV - + 53 - + + 81 + + 68
----
-13

skipif mysql # not compatible
query I rowsort label-9933
SELECT COUNT ( * ) / - + 53 - + + 81 + + 68
----
-13

query I rowsort
SELECT + - 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - - COUNT( * ) * - - 3 col1
----
3

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - - COUNT ( * ) * - - 3 col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9936
SELECT ALL - 75 DIV + - 23 * + - COUNT( * ) - - COUNT( * ) AS col1, ( + + 0 ) + - 23 - - 37 AS col2
----
-2
14

skipif mysql # not compatible
query II rowsort label-9936
SELECT ALL - 75 / + - 23 * + - COUNT ( * ) - - COUNT ( * ) AS col1, ( + + 0 ) + - 23 - - 37 AS col2
----
-2
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9937
SELECT + 90 * + - ( - ( + - 81 ) ) * + CAST( NULL AS SIGNED ) * - 86 * + COALESCE ( - - 25, + 14, COUNT( * ) ) * + 24 + - + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9937
SELECT + 90 * + - ( - ( + - 81 ) ) * + CAST ( NULL AS INTEGER ) * - 86 * + COALESCE ( - - 25, + 14, COUNT ( * ) ) * + 24 + - + 49 AS col1
----
NULL

query I rowsort
SELECT NULLIF ( + 59, - - 52 ) AS col1
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-9939
SELECT ALL 87 DIV + 9 AS col2, 6 + - - 96 + + 60 AS col1
----
9
162

skipif mysql # not compatible
query II rowsort label-9939
SELECT ALL 87 / + 9 AS col2, 6 + - - 96 + + 60 AS col1
----
9
162

onlyif mysql # aggregate syntax: 
query II rowsort label-9940
SELECT - 56 + + - 15, ( + + COUNT( * ) ) - 97 AS col0
----
-71
-96

skipif mysql # not compatible
query II rowsort label-9940
SELECT - 56 + + - 15, ( + + COUNT ( * ) ) - 97 AS col0
----
-71
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT COUNT( * ) * 15 AS col2
----
15

skipif mysql # not compatible
query I rowsort label-9941
SELECT COUNT ( * ) * 15 AS col2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT ( 26 ) - 41 * + + 60 + 26 DIV 29
----
-2434

skipif mysql # not compatible
query I rowsort label-9942
SELECT ( 26 ) - 41 * + + 60 + 26 / 29
----
-2434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT - SUM( 98 ) * 87 * + - NULLIF ( COALESCE ( + 57, 41 - - 24, - 92 ), + 80 + 22 ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) + 41 + + COUNT( * ) / 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT - SUM ( 98 ) * 87 * + - NULLIF ( COALESCE ( + 57, 41 - - 24, - 92 ), + 80 + 22 ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 41 + + COUNT ( * ) / 40
----
NULL

query II rowsort
SELECT - 53 AS col2, ( 90 ) AS col2
----
-53
90

query I rowsort
SELECT ALL 57 + 95
----
152

query I rowsort
SELECT DISTINCT 80 + - + 93
----
-13

query I rowsort
SELECT DISTINCT 92 + - + 15 AS col0
----
77

query I rowsort
SELECT ALL - 91 + + + 80
----
-11

query I rowsort
SELECT 67 - 33
----
34

query II rowsort
SELECT DISTINCT 71, - 89 AS col0
----
71
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-9951
SELECT ALL 79 - 30 * - 84 * + - 3 * 50 AS col0, COUNT( * ) * 90
----
-377921
90

skipif mysql # not compatible
query II rowsort label-9951
SELECT ALL 79 - 30 * - 84 * + - 3 * 50 AS col0, COUNT ( * ) * 90
----
-377921
90

query I rowsort
SELECT 56 * + 82 AS col2
----
4592

query I rowsort
SELECT 92 * - 71
----
-6532

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT - SUM( DISTINCT + 72 )
----
-72

skipif mysql # not compatible
query I rowsort label-9954
SELECT - SUM ( DISTINCT + 72 )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9955
SELECT ALL 43 - + 17 DIV 29 * 73
----
43

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL 43 - + 17 / 29 * 73
----
43

query I rowsort
SELECT ALL - 64 * + 13 * - 64 AS col1
----
53248

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT DISTINCT + 53 * - + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-9957
SELECT DISTINCT + 53 * - + COUNT ( * )
----
-53

query I rowsort
SELECT - 71 + + 53 - + 45 col1
----
-63

query I rowsort
SELECT ALL + 20 * - 42
----
-840

query I rowsort
SELECT 0 + + 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT + COUNT( * ) * 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-9961
SELECT + COUNT ( * ) * 95 AS col0
----
95

query I rowsort
SELECT - 33 + - - 3 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT CASE + ( - + COUNT( * ) ) WHEN - + 72 + - 79 THEN NULL WHEN + - COUNT( * ) THEN + ( + COUNT( * ) ) WHEN - COUNT( * ) THEN 67 + COUNT( * ) + - 85 END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9963
SELECT CASE + ( - + COUNT ( * ) ) WHEN - + 72 + - 79 THEN NULL WHEN + - COUNT ( * ) THEN + ( + COUNT ( * ) ) WHEN - COUNT ( * ) THEN 67 + COUNT ( * ) + - 85 END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT + 18 * - 43 + - SUM( DISTINCT 2 )
----
-776

skipif mysql # not compatible
query I rowsort label-9964
SELECT + 18 * - 43 + - SUM ( DISTINCT 2 )
----
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT COALESCE ( - 66, + ( + COUNT( ALL - - ( + 9 ) ) ) * - 52 )
----
-66

skipif mysql # not compatible
query I rowsort label-9965
SELECT COALESCE ( - 66, + ( + COUNT ( ALL - - ( + 9 ) ) ) * - 52 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9966
SELECT DISTINCT + COUNT( * ) AS col1, - COUNT( * ) + ( ( + + ( - ( - 23 ) ) ) )
----
1
22

skipif mysql # not compatible
query II rowsort label-9966
SELECT DISTINCT + COUNT ( * ) AS col1, - COUNT ( * ) + ( ( + + ( - ( - 23 ) ) ) )
----
1
22

query I rowsort
SELECT ALL + - 91 AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9968
SELECT MAX( ALL - + 79 ) DIV - 75 + + - CAST( + + 6 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-9968
SELECT MAX ( ALL - + 79 ) / - 75 + + - CAST ( + + 6 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT + NULLIF ( 25, + COUNT( * ) / + - 3 * 62 * + - 80 / + 36 )
----
25

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT + NULLIF ( 25, + COUNT ( * ) / + - 3 * 62 * + - 80 / + 36 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9970
SELECT - 74 + 89 + 56 * + - MIN( ALL - 9 ) * 13 + CAST( - 84 AS SIGNED ) AS col1
----
6483

skipif mysql # not compatible
query I rowsort label-9970
SELECT - 74 + 89 + 56 * + - MIN ( ALL - 9 ) * 13 + CAST ( - 84 AS INTEGER ) AS col1
----
6483

query II rowsort
SELECT 29, 39 AS col0
----
29
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9972
SELECT CAST( MAX( ALL - 92 ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-9972
SELECT CAST ( MAX ( ALL - 92 ) AS INTEGER )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + 55 * + 12 + - COUNT( * )
----
659

skipif mysql # not compatible
query I rowsort label-9973
SELECT + 55 * + 12 + - COUNT ( * )
----
659

query I rowsort
SELECT - 99 + + + 3 col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT COUNT( DISTINCT + + 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9975
SELECT COUNT ( DISTINCT + + 90 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9976
SELECT COUNT( * ) AS col0, CASE 1 WHEN - 31 THEN + COUNT( * ) ELSE NULL END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9976
SELECT COUNT ( * ) AS col0, CASE 1 WHEN - 31 THEN + COUNT ( * ) ELSE NULL END AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9977
SELECT DISTINCT + 73 AS col2, COUNT( * ) * + - 94
----
73
-94

skipif mysql # not compatible
query II rowsort label-9977
SELECT DISTINCT + 73 AS col2, COUNT ( * ) * + - 94
----
73
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL 39 + 49 + - + COUNT( * ) * 45 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL 39 + 49 + - + COUNT ( * ) * 45 AS col2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT + COUNT( * ) + 16, MIN( 49 ) AS col2
----
17
49

skipif mysql # not compatible
query II rowsort label-9979
SELECT + COUNT ( * ) + 16, MIN ( 49 ) AS col2
----
17
49

query I rowsort
SELECT - 33 * + 46 AS col0
----
-1518

query II rowsort
SELECT + 98 + + 57 + 56 * + 89 col1, 19 AS col1
----
5139
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT + NULLIF ( 36, - 6 ) + - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9982
SELECT + NULLIF ( 36, - 6 ) + - COUNT ( * ) AS col2
----
35

query I rowsort
SELECT + 67 * 62 * - 24
----
-99696

query I rowsort
SELECT ALL ( + 1 ) AS col2
----
1

query II rowsort
SELECT ALL 83, 48 AS col1
----
83
48

query I rowsort
SELECT DISTINCT 2 * - 30
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL MIN( ALL - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL MIN ( ALL - 1 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 79 - - 55
----
134

query I rowsort
SELECT ALL - 24 * + 53 AS col1
----
-1272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT - CAST( - COUNT( ALL - 98 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-9990
SELECT - CAST ( - COUNT ( ALL - 98 ) AS INTEGER )
----
1

query I rowsort
SELECT + 65 + 92
----
157

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT + - 69 DIV + NULLIF ( + 30, + - 30 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9992
SELECT + - 69 / + NULLIF ( + 30, + - 30 ) AS col1
----
-2

query II rowsort
SELECT + 89 AS col0, 69
----
89
69

query II rowsort
SELECT - - 5 col0, - 77 * NULLIF ( 34, - - 19 + - 52 * - - 78 * - 12 ) AS col0
----
5
-2618

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + 45 * - COUNT( * ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 45 * - COUNT ( * ) AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9996
SELECT DISTINCT - 81 DIV + - 14 - 45 + + NULLIF ( - - 44, + - MAX( - 10 ) ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT - 81 / + - 14 - 45 + + NULLIF ( - - 44, + - MAX ( - 10 ) ) AS col0
----
4

query I rowsort
SELECT + - COALESCE ( + - 45, 65 * + - 22 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT - - COALESCE ( - + 94, - 82 + + - 22 + - 11 ) * - CASE + - 93 WHEN + - COALESCE ( + 79, - - 97 * - + 38 * 39, + 2 + - + MAX( DISTINCT - ( + NULLIF ( + 81, + 57 ) ) ) ) THEN - COUNT( * ) WHEN + 2 THEN + 96 WHEN - 21 * 80 THEN NULL END / - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-9998
SELECT - - COALESCE ( - + 94, - 82 + + - 22 + - 11 ) * - CASE + - 93 WHEN + - COALESCE ( + 79, - - 97 * - + 38 * 39, + 2 + - + MAX ( DISTINCT - ( + NULLIF ( + 81, + 57 ) ) ) ) THEN - COUNT ( * ) WHEN + 2 THEN + 96 WHEN - 21 * 80 THEN NULL END / - 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9999
SELECT DISTINCT + - CASE 20 WHEN 1 THEN NULL WHEN ( NULLIF ( + 65, - 27 * + 65 * 11 ) ) THEN NULL ELSE + COUNT( * ) END DIV + 10 + - + 36 + ( - ( - 16 ) ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT + - CASE 20 WHEN 1 THEN NULL WHEN ( NULLIF ( + 65, - 27 * + 65 * 11 ) ) THEN NULL ELSE + COUNT ( * ) END / + 10 + - + 36 + ( - ( - 16 ) ) AS col0
----
-20

