sqllogictest
Artifact Content
Not logged in

Artifact c17571bf6b0b3c7565fd02ecdd95011422406596:


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)

query I rowsort
SELECT ALL ( + - 18 ) * - + 91 AS col2
----
1638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1
SELECT 59 - + 22 - - + CAST( + 46 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-1
SELECT 59 - + 22 - - + CAST ( + 46 AS INTEGER )
----
83

query I rowsort
SELECT 26 * - 90 AS col1
----
-2340

query I rowsort
SELECT ALL - + 65 * + 57 * + + 63
----
-233415

onlyif mysql # aggregate syntax: 
query II rowsort label-4
SELECT 50 AS col0, - COUNT( * ) * - 68 * - + 75
----
50
-5100

skipif mysql # not compatible
query II rowsort label-4
SELECT 50 AS col0, - COUNT ( * ) * - 68 * - + 75
----
50
-5100

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

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

query I rowsort
SELECT ALL 78 col1
----
78

query I rowsort
SELECT 19 * - 45
----
-855

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

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

query I rowsort
SELECT ALL - 86 * - + 68 AS col2
----
5848

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

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

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT COUNT ( * ) / - 87
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT + 10 DIV + + MIN( - 93 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-12
SELECT + 10 / + + MIN ( - 93 ) AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-14
SELECT ALL SUM( DISTINCT + - 41 ) + + - 45 DIV - COUNT( + 29 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-14
SELECT ALL SUM ( DISTINCT + - 41 ) + + - 45 / - COUNT ( + 29 ) AS col1
----
4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT DISTINCT 88 * + - COUNT( * ) * + - 80 AS col0
----
7040

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT 88 * + - COUNT ( * ) * + - 80 AS col0
----
7040

query I rowsort
SELECT ALL + 24 * 4 + ( + 60 )
----
156

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

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL SUM ( ALL + + 51 ) * COUNT ( * ) AS col0
----
51

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

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

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

query I rowsort
SELECT - 11 AS col1
----
-11

query I rowsort
SELECT + + 5
----
5

query I rowsort
SELECT ALL 47 * + + 23
----
1081

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

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

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

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

query I rowsort
SELECT - 22 col1
----
-22

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

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

query I rowsort
SELECT 20 + - + ( 8 ) col1
----
12

query I rowsort
SELECT 10 + - 99
----
-89

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT SUM( ALL 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-34
SELECT SUM ( ALL 53 ) AS col0
----
53

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

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

query I rowsort
SELECT DISTINCT ( - 99 ) * - - 1 col1
----
-99

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

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

query I rowsort
SELECT ( 33 )
----
33

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

query I rowsort
SELECT - 86 * - ( - 10 ) AS col1
----
-860

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 77 * + ( 72 ) AS col1
----
5544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT DISTINCT + 15 + - 22 DIV COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-50
SELECT DISTINCT + 15 + - 22 / COUNT ( * )
----
-7

query I rowsort
SELECT ALL - 24 col0
----
-24

query I rowsort
SELECT + 14 col2
----
14

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

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

query I rowsort
SELECT ALL 30 - - + 44 AS col2
----
74

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

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

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

query I rowsort
SELECT DISTINCT + 40
----
40

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - COALESCE ( + - 42, - 74 ) AS col0
----
42

query I rowsort
SELECT + 69 * + 72
----
4968

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

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

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

skipif mysql # not compatible
query II rowsort label-66
SELECT - COUNT ( * ) col0, + 11
----
-1
11

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

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

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

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

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

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

query II rowsort
SELECT + + 33 col0, 80 col0
----
33
80

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

skipif mysql # not compatible
query I rowsort label-71
SELECT SUM ( DISTINCT 92 )
----
92

query I rowsort
SELECT DISTINCT 68 col0
----
68

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

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

skipif mysql # not compatible
query I rowsort label-74
SELECT + - ( - 85 ) * + + COUNT ( * ) + - - 79 - - 79 AS col2
----
243

query I rowsort
SELECT DISTINCT + + 41
----
41

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT DISTINCT + COUNT( - + 92 ) * + COUNT( * ) - + - 2
----
3

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT + COUNT ( - + 92 ) * + COUNT ( * ) - + - 2
----
3

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

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

query II rowsort
SELECT ALL 70 AS col1, ( 43 ) AS col0
----
70
43

query I rowsort
SELECT + 70 col1
----
70

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

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

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

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

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

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

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

query I rowsort
SELECT 7 - - ( - ( - 43 ) ) AS col0
----
50

query I rowsort
SELECT 14 * - 41 col2
----
-574

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 32 * 80 AS col2
----
-2560

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

query I rowsort
SELECT + 3 col0
----
3

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

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

query I rowsort
SELECT ALL 37 col0
----
37

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

query I rowsort
SELECT ALL - 51 - - - 61
----
-112

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT 19 * - COUNT( * ) - - ( - + 52 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-111
SELECT 19 * - COUNT ( * ) - - ( - + 52 ) AS col2
----
-71

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

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

query I rowsort
SELECT ALL ( 56 ) + - + 95 - + 92 * - 23 AS col2
----
2077

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT DISTINCT + NULLIF ( + + COALESCE ( + - COUNT( * ), - COUNT( * ) ), + + 59 ) + + MIN( ALL + 17 )
----
16

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT + NULLIF ( + + COALESCE ( + - COUNT ( * ), - COUNT ( * ) ), + + 59 ) + + MIN ( ALL + 17 )
----
16

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

query I rowsort
SELECT ALL + + 54 * + 79 col0
----
4266

query I rowsort
SELECT + + 87
----
87

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-121
SELECT COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-121
SELECT COUNT ( DISTINCT CAST ( NULL AS REAL ) ) AS col1
----
0

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

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

query I rowsort
SELECT ALL - 14 + - ( ( + ( + 9 ) ) ) * + 57
----
-527

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT 58 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-129
SELECT 58 / 97
----
0

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 50 + + 56
----
6

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

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

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

query I rowsort
SELECT - 45 * + 60
----
-2700

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT ALL + 16 AS col1, + MIN( ALL + 48 )
----
16
48

skipif mysql # not compatible
query II rowsort label-138
SELECT ALL + 16 AS col1, + MIN ( ALL + 48 )
----
16
48

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

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

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

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

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

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

query I rowsort
SELECT ALL - 25 * + - 38 AS col0
----
950

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - SUM ( DISTINCT - - 94 )
----
-94

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

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

query I rowsort
SELECT ALL + - 21 - 45 * - - 52 AS col1
----
-2361

query I rowsort
SELECT - 40 AS col1
----
-40

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-157
SELECT DISTINCT 2 AS col1, - COALESCE ( - 35, CAST( NULL AS SIGNED ) )
----
2
35

skipif mysql # not compatible
query II rowsort label-157
SELECT DISTINCT 2 AS col1, - COALESCE ( - 35, CAST ( NULL AS INTEGER ) )
----
2
35

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT DISTINCT SUM( DISTINCT + - 1 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT SUM ( DISTINCT + - 1 ) col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-164
SELECT - 69 * CAST ( NULL AS REAL ) AS col0
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-167
SELECT 53 DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-167
SELECT 53 / - 28
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-168
SELECT CAST( - - 75 AS SIGNED ) * - 5 + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT CAST ( - - 75 AS INTEGER ) * - 5 + + CAST ( NULL AS REAL ) AS col1
----
NULL

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

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

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

query I rowsort
SELECT 71 - + 72
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT DISTINCT 3 * SUM( ALL + + 48 ) AS col2
----
144

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT 3 * SUM ( ALL + + 48 ) AS col2
----
144

query I rowsort
SELECT 7 col1
----
7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT ALL + 5 + + COUNT( * ) col1, + 71 AS col2
----
6
71

skipif mysql # not compatible
query II rowsort label-175
SELECT ALL + 5 + + COUNT ( * ) col1, + 71 AS col2
----
6
71

query I rowsort
SELECT ALL + 94 + + + 6 AS col0
----
100

query I rowsort
SELECT ALL - - 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT + 27 + - COUNT( * ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-178
SELECT + 27 + - COUNT ( * ) AS col1
----
26

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

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

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

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

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

query II rowsort
SELECT 45 col0, + 12 col0
----
45
12

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 55 col1
----
55

query I rowsort
SELECT + + 22
----
22

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

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL - SUM ( ALL - 1 )
----
1

query I rowsort
SELECT ALL - - 57
----
57

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

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

query I rowsort
SELECT ALL 99 col1
----
99

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

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

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

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

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

query I rowsort
SELECT - - 46
----
46

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

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

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

skipif mysql # not compatible
query I rowsort label-202
SELECT - - MAX ( 43 )
----
43

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

onlyif mysql # aggregate syntax: 
query II rowsort label-204
SELECT ALL + COUNT( * ), + 85 * ( + 42 ) AS col0
----
1
3570

skipif mysql # not compatible
query II rowsort label-204
SELECT ALL + COUNT ( * ), + 85 * ( + 42 ) AS col0
----
1
3570

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT ALL - MAX( + 75 ) * 53 col1
----
-3975

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL - MAX ( + 75 ) * 53 col1
----
-3975

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

skipif mysql # not compatible
query I rowsort label-208
SELECT + MAX ( - 52 )
----
-52

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

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

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT MIN ( - 12 )
----
-12

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 3 * ( + 5 )
----
15

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-223
SELECT ALL COUNT( DISTINCT 97 ) + CAST( 61 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-223
SELECT ALL COUNT ( DISTINCT 97 ) + CAST ( 61 AS INTEGER )
----
62

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

query I rowsort
SELECT - - 62 AS col2
----
62

query I rowsort
SELECT - 39 + - - 10
----
-29

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

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT ALL 3 * + COUNT( * ) + 14
----
17

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL 3 * + COUNT ( * ) + 14
----
17

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

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

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

query II rowsort
SELECT DISTINCT 27, - 74 AS col1
----
27
-74

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT MAX ( ALL + CAST ( - 82 AS INTEGER ) )
----
-82

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

query I rowsort
SELECT DISTINCT 39 * - 59 col1
----
-2301

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 32
----
32

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-245
SELECT + 11 col1, CAST( + 25 AS SIGNED ) + COUNT( * )
----
11
26

skipif mysql # not compatible
query II rowsort label-245
SELECT + 11 col1, CAST ( + 25 AS INTEGER ) + COUNT ( * )
----
11
26

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

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

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

skipif mysql # not compatible
query I rowsort label-247
SELECT - MIN ( + 23 )
----
-23

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

skipif mysql # not compatible
query I rowsort label-248
SELECT - MIN ( - 8 )
----
8

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 15 + 57
----
72

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT DISTINCT SUM( ALL - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT SUM ( ALL - 53 )
----
-53

query II rowsort
SELECT ALL + 99 AS col2, ( + 42 ) * 30 AS col0
----
99
1260

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

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

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

query I rowsort
SELECT - 51 col1
----
-51

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

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

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

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

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

query II rowsort
SELECT + 17, - 7 AS col0
----
17
-7

query I rowsort
SELECT DISTINCT - 75
----
-75

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

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

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

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

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

query I rowsort
SELECT + ( + 61 ) * + - 36
----
-2196

query I rowsort
SELECT - 80 col2
----
-80

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

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

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

query I rowsort
SELECT - + 28
----
-28

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

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

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

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

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

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

query I rowsort
SELECT + 46 * - 30 * - 24 * 68
----
2252160

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ALL 63 * COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-283
SELECT ALL 63 * COUNT ( * ) AS col0
----
63

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

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

query I rowsort
SELECT ALL - 35 + + 49 AS col0
----
14

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

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

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

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

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

query II rowsort
SELECT + 34 AS col1, 0 - - - 56 AS col0
----
34
-56

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

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

query I rowsort
SELECT ALL 7 * - + 13
----
-91

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

query I rowsort
SELECT - - 29 AS col1
----
29

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

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

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

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

query I rowsort
SELECT - 24 col2
----
-24

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

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

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

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

query I rowsort
SELECT + + 65 + 15
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL + 80 + MIN( ALL 49 )
----
129

skipif mysql # not compatible
query I rowsort label-301
SELECT ALL + 80 + MIN ( ALL 49 )
----
129

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT DISTINCT - SUM( DISTINCT 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-304
SELECT DISTINCT - SUM ( DISTINCT 73 ) AS col1
----
-73

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

onlyif mysql # aggregate syntax: 
query II rowsort label-306
SELECT ALL - + 53 AS col0, + COUNT( ALL + 99 )
----
-53
1

skipif mysql # not compatible
query II rowsort label-306
SELECT ALL - + 53 AS col0, + COUNT ( ALL + 99 )
----
-53
1

query I rowsort
SELECT - 66 AS col0
----
-66

query I rowsort
SELECT - 77 AS col1
----
-77

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

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

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

skipif mysql # not compatible
query I rowsort label-310
SELECT - MAX ( - + 61 )
----
61

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-313
SELECT 39 AS col0, 69 * + COUNT( * )
----
39
69

skipif mysql # not compatible
query II rowsort label-313
SELECT 39 AS col0, 69 * + COUNT ( * )
----
39
69

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

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

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

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

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

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

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

query I rowsort
SELECT - - 48 AS col0
----
48

query I rowsort
SELECT - 0 + 91
----
91

query I rowsort
SELECT ALL + 39 * + 1 AS col0
----
39

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

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

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

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

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

query I rowsort
SELECT ( - - 55 ) + - + 10
----
45

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

query I rowsort
SELECT ALL 97 + 51
----
148

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

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

query I rowsort
SELECT DISTINCT - 95
----
-95

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

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

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

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

query I rowsort
SELECT + 58 * 17 AS col2
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT + SUM( DISTINCT NULLIF ( - 83, 17 ) ) * - 41
----
3403

skipif mysql # not compatible
query I rowsort label-333
SELECT + SUM ( DISTINCT NULLIF ( - 83, 17 ) ) * - 41
----
3403

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

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

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

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

query I rowsort
SELECT ( - 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT + MAX( + 56 ) col1
----
56

skipif mysql # not compatible
query I rowsort label-337
SELECT + MAX ( + 56 ) col1
----
56

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT + 66, - 66 + + 82 AS col1
----
66
16

query I rowsort
SELECT 56 - + 14
----
42

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

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * AVG ( 50 ) col0
----
NULL

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-353
SELECT 7 * COUNT( * ) + + 85 + + COUNT( * ) DIV + + 9
----
92

skipif mysql # not compatible
query I rowsort label-353
SELECT 7 * COUNT ( * ) + + 85 + + COUNT ( * ) / + + 9
----
92

query I rowsort
SELECT + + 65
----
65

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-358
SELECT ALL - 47 AS col2, 7 + - 73 + CAST( NULL AS DECIMAL ) AS col1
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-358
SELECT ALL - 47 AS col2, 7 + - 73 + CAST ( NULL AS REAL ) AS col1
----
-47
NULL

query I rowsort
SELECT DISTINCT - ( ( - - 35 ) ) AS col1
----
-35

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + + 68 * + 88
----
5984

onlyif mysql # aggregate syntax: 
query II rowsort label-368
SELECT MIN( DISTINCT 94 ) AS col2, - 90
----
94
-90

skipif mysql # not compatible
query II rowsort label-368
SELECT MIN ( DISTINCT 94 ) AS col2, - 90
----
94
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-369
SELECT DISTINCT 97 + 38, COUNT( * ) + - - COUNT( * ) AS col0
----
135
2

skipif mysql # not compatible
query II rowsort label-369
SELECT DISTINCT 97 + 38, COUNT ( * ) + - - COUNT ( * ) AS col0
----
135
2

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

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

query I rowsort
SELECT - - 88 AS col2
----
88

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

query I rowsort
SELECT + 9 + - 6 AS col0
----
3

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

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

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

skipif mysql # not compatible
query II rowsort label-375
SELECT DISTINCT + COUNT ( * ) * + 49 * + - ( COUNT ( * ) ) * + + COUNT ( * ), 93 col2
----
-49
93

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 34 * + 4 AS col1
----
-136

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-394
SELECT - 5 col1, COUNT( * ) * + 41 - 84
----
-5
-43

skipif mysql # not compatible
query II rowsort label-394
SELECT - 5 col1, COUNT ( * ) * + 41 - 84
----
-5
-43

query I rowsort
SELECT ALL - 58 * - + 59 AS col2
----
3422

query I rowsort
SELECT ALL + 94 * + + 11 AS col1
----
1034

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

query I rowsort
SELECT - + 10 col1
----
-10

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

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

query I rowsort
SELECT ALL 43 + + 25 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-401
SELECT ALL ( + + CAST( COUNT( * ) AS SIGNED ) ) * - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL ( + + CAST ( COUNT ( * ) AS INTEGER ) ) * - 15 AS col0
----
-15

query I rowsort
SELECT DISTINCT - - 54
----
54

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT DISTINCT COUNT( * ) + 51 + - 99 col2
----
-47

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT COUNT ( * ) + 51 + - 99 col2
----
-47

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

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

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

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

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

query I rowsort
SELECT ALL + + NULLIF ( + 99, + - 94 ) AS col0
----
99

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

query I rowsort
SELECT - 35 * - NULLIF ( + 73, - 37 )
----
2555

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT - - ( + COUNT( * ) ) + + + 93 col1
----
94

skipif mysql # not compatible
query I rowsort label-413
SELECT - - ( + COUNT ( * ) ) + + + 93 col1
----
94

query I rowsort
SELECT ALL + - 57
----
-57

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 40 * 91 * + 73
----
265720

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT - CAST( - + ( COALESCE ( + 43, COUNT( * ) * - - COUNT( * ) ) ) AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-434
SELECT - CAST ( - + ( COALESCE ( + 43, COUNT ( * ) * - - COUNT ( * ) ) ) AS INTEGER ) AS col2
----
43

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

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

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

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

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

query I rowsort
SELECT + 68 + 77 - + + 32 AS col0
----
113

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

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

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

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

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

query I rowsort
SELECT ALL 87 - + ( + 31 )
----
56

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-445
SELECT 33 + ( 53 ) * + 86 + + + CAST( + COUNT( * ) AS SIGNED ) + - ( + + CAST( + 31 AS SIGNED ) ) * + COUNT( * ) + + - 12
----
4549

skipif mysql # not compatible
query I rowsort label-445
SELECT 33 + ( 53 ) * + 86 + + + CAST ( + COUNT ( * ) AS INTEGER ) + - ( + + CAST ( + 31 AS INTEGER ) ) * + COUNT ( * ) + + - 12
----
4549

query I rowsort
SELECT DISTINCT + 92
----
92

query I rowsort
SELECT + - 33
----
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT - 22 * MAX( + 77 ) + COUNT( * ) AS col0
----
-1693

skipif mysql # not compatible
query I rowsort label-449
SELECT - 22 * MAX ( + 77 ) + COUNT ( * ) AS col0
----
-1693

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL + 60 - MAX( ALL 84 ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL + 60 - MAX ( ALL 84 ) AS col0
----
-24

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

query II rowsort
SELECT - 59 + ( + + 32 ), + ( + 55 ) col2
----
-27
55

query I rowsort
SELECT - 73 + 50
----
-23

query I rowsort
SELECT - 34 + - 57 AS col1
----
-91

query I rowsort
SELECT - CASE - - 82 WHEN + 82 THEN 26 END AS col1
----
-26

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

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

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

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

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

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

query I rowsort
SELECT ALL 18 * + 83 AS col2
----
1494

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

query I rowsort
SELECT + 67 col2
----
67

query I rowsort
SELECT + - 23 * + + 55
----
-1265

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

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

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

query I rowsort
SELECT ALL - 23 col0
----
-23

query I rowsort
SELECT ALL 38 + - 70
----
-32

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

query I rowsort
SELECT DISTINCT 2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT DISTINCT - 23 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-471
SELECT DISTINCT - 23 / - 83 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-473
SELECT DISTINCT - MIN( ALL 6 ) + - - 9 - - AVG ( DISTINCT 10 ) / + ( - + COUNT( * ) ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - MIN ( ALL 6 ) + - - 9 - - AVG ( DISTINCT 10 ) / + ( - + COUNT ( * ) ) + + CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL - + 31
----
-31

query II rowsort
SELECT DISTINCT + 61 col0, 1
----
61
1

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

skipif mysql # not compatible
query I rowsort label-477
SELECT - SUM ( DISTINCT 2 )
----
-2

query I rowsort
SELECT 53 * 97 AS col1
----
5141

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

query I rowsort
SELECT ALL 27 col0
----
27

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

query I rowsort
SELECT ALL 82 * + 10
----
820

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

query I rowsort
SELECT + 93 col0
----
93

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

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

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

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

query I rowsort
SELECT - 25 col1
----
-25

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL - - COUNT( * ) * - + COUNT( * ) - + 29
----
-30

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL - - COUNT ( * ) * - + COUNT ( * ) - + 29
----
-30

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

query I rowsort
SELECT 86 col1
----
86

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

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

query I rowsort
SELECT 71 * - 92 AS col1
----
-6532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-496
SELECT DISTINCT - - MIN( + 99 ) DIV + - 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT - - MIN ( + 99 ) / + - 62 AS col2
----
-1

query I rowsort
SELECT + ( + - 96 ) + - + 38
----
-134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-498
SELECT DISTINCT + 63 + - COUNT( * ) DIV - COUNT( * ) + + 52 + - ( - - 94 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT + 63 + - COUNT ( * ) / - COUNT ( * ) + + 52 + - ( - - 94 ) AS col2
----
22

query I rowsort
SELECT ALL 88 col2
----
88

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

query I rowsort
SELECT ALL 96 * - 36
----
-3456

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-504
SELECT DISTINCT ( CAST( + 25 AS SIGNED ) ) - - 38
----
63

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT ( CAST ( + 25 AS INTEGER ) ) - - 38
----
63

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

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

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

skipif mysql # not compatible
query I rowsort label-506
SELECT SUM ( + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT COALESCE ( COUNT( * ), - 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-507
SELECT COALESCE ( COUNT ( * ), - 25 ) AS col1
----
1

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

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

query I rowsort
SELECT ALL + 82 * + 71
----
5822

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

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

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

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

query I rowsort
SELECT ALL - 33 col0
----
-33

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

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

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

query II rowsort
SELECT ALL 90 AS col2, 84
----
90
84

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-518
SELECT ALL - + ( COUNT( * ) ) * + 46 * + 8 * + 44 AS col0
----
-16192

skipif mysql # not compatible
query I rowsort label-518
SELECT ALL - + ( COUNT ( * ) ) * + 46 * + 8 * + 44 AS col0
----
-16192

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

skipif mysql # not compatible
query I rowsort label-519
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) - - - 99 AS col2
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-521
SELECT DISTINCT - MIN ( 91 )
----
-91

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

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

query I rowsort
SELECT - + 12 * - - 13
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT - 68 * - + 72 + - - COUNT( * ) + 23 + - + COUNT( * ) AS col0
----
4919

skipif mysql # not compatible
query I rowsort label-524
SELECT - 68 * - + 72 + - - COUNT ( * ) + 23 + - + COUNT ( * ) AS col0
----
4919

query I rowsort
SELECT + 89 + + 67
----
156

query I rowsort
SELECT ALL - 95 - - 10 + - 25
----
-110

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 21 + + + 65
----
86

query I rowsort
SELECT DISTINCT + - 18 * + 76 AS col2
----
-1368

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT ALL CASE - 36 WHEN 44 THEN NULL WHEN - AVG ( DISTINCT + 10 ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL CASE - 36 WHEN 44 THEN NULL WHEN - AVG ( DISTINCT + 10 ) THEN + COUNT ( * ) END AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-543
SELECT NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) - - - 36 * 57 ) / COUNT( * ) / - + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) - - - 36 * 57 ) / COUNT ( * ) / - + 28 AS col1
----
NULL

query I rowsort
SELECT 6 + + 53 AS col0
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT 67 + SUM( + - 6 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-546
SELECT 67 + SUM ( + - 6 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-547
SELECT + COUNT( * ) AS col0, - MAX( - 17 ) + - 9 AS col2
----
1
8

skipif mysql # not compatible
query II rowsort label-547
SELECT + COUNT ( * ) AS col0, - MAX ( - 17 ) + - 9 AS col2
----
1
8

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

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

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

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

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

query I rowsort
SELECT + + 19
----
19

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-553
SELECT ALL 72 * CAST( NULL AS SIGNED ) * + MIN( ALL 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL 72 * CAST ( NULL AS INTEGER ) * + MIN ( ALL 15 )
----
NULL

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

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

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

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

query I rowsort
SELECT - 7 AS col0
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-558
SELECT + 58 + COUNT( DISTINCT + 83 ) - + + 9 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-558
SELECT + 58 + COUNT ( DISTINCT + 83 ) - + + 9 AS col0
----
50

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 16 AS col2
----
-16

query I rowsort
SELECT 1 * + 10 AS col1
----
10

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 63 + + - ( + 85 ) * 93
----
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT COUNT( * ) - - 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-573
SELECT COUNT ( * ) - - 52 AS col2
----
53

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

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

query I rowsort
SELECT ALL 34 col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT ALL - COUNT( ALL 9 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - COUNT ( ALL 9 ) AS col2
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-579
SELECT + CAST( NULL AS SIGNED ) / 65 - - + 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT + CAST ( NULL AS INTEGER ) / 65 - - + 45 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT + COUNT( + 92 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-580
SELECT + COUNT ( + 92 ) col2
----
1

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

query I rowsort
SELECT + + 11 - - 19 AS col0
----
30

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

query I rowsort
SELECT ALL + 75 * - + 13 * + 11 - ( - ( + 84 ) ) col1
----
-10641

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT DISTINCT - SUM( DISTINCT 9 ) + COUNT( * ) - - ( - + 26 ) * + COUNT( * ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT - SUM ( DISTINCT 9 ) + COUNT ( * ) - - ( - + 26 ) * + COUNT ( * ) col0
----
-34

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 10 * - + 0
----
0

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

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

query I rowsort
SELECT 76 AS col0
----
76

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

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

query I rowsort
SELECT 30 col2
----
30

query I rowsort
SELECT ALL 36 * - 59
----
-2124

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

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

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

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

query I rowsort
SELECT ALL + 67 * - - 42 AS col1
----
2814

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT ALL + 70 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL + 70 / 63
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-615
SELECT + CAST( 64 AS SIGNED ) DIV 8 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-615
SELECT + CAST ( 64 AS INTEGER ) / 8 AS col2
----
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT 14 * - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-617
SELECT 14 * - COUNT ( * ) AS col1
----
-14

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

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

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

query I rowsort
SELECT ( - 64 ) * 75 AS col2
----
-4800

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

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

query I rowsort
SELECT - 76 + + 79
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-624
SELECT 72 * CAST( - 47 AS SIGNED ) AS col0
----
-3384

skipif mysql # not compatible
query I rowsort label-624
SELECT 72 * CAST ( - 47 AS INTEGER ) AS col0
----
-3384

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

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

query II rowsort
SELECT ALL 16 AS col2, + 48
----
16
48

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

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

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

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

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

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

query I rowsort
SELECT - - 89 AS col0
----
89

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

query II rowsort
SELECT ALL + 39 AS col2, + ( + 39 ) AS col1
----
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT ALL + 82 * ( + SUM( DISTINCT 63 ) ) AS col0
----
5166

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL + 82 * ( + SUM ( DISTINCT 63 ) ) AS col0
----
5166

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

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

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL + CAST ( 64 AS INTEGER ) AS col0
----
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT ALL + - 96 + + MIN( - 0 )
----
-96

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL + - 96 + + MIN ( - 0 )
----
-96

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-644
SELECT ALL - 93, + MIN( DISTINCT 72 ) AS col0
----
-93
72

skipif mysql # not compatible
query II rowsort label-644
SELECT ALL - 93, + MIN ( DISTINCT 72 ) AS col0
----
-93
72

query I rowsort
SELECT 44 - + 44
----
0

query I rowsort
SELECT + - 80
----
-80

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

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

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

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

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

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

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

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

query I rowsort
SELECT CASE - 17 WHEN - - 13 THEN + 56 ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-652
SELECT + 69 / - COUNT ( * ) col2
----
-69

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

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

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

query I rowsort
SELECT + 52 * - - 55 col0
----
2860

query I rowsort
SELECT - 83 * + - 88 AS col0
----
7304

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

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

query I rowsort
SELECT + + 48 * + 28 AS col1
----
1344

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

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

query I rowsort
SELECT DISTINCT - 99 col1
----
-99

query I rowsort
SELECT - - 50 AS col1
----
50

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-665
SELECT 29 * - - COUNT ( * )
----
29

query I rowsort
SELECT + + 81 col2
----
81

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

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL + 86 / - COUNT ( * ) AS col1
----
-86

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 96 * + 13 AS col0
----
1248

query I rowsort
SELECT 48 AS col1
----
48

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

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

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

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

query I rowsort
SELECT COALESCE ( + - 98, + 41 )
----
-98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT - - COUNT( DISTINCT - - 55 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT - - COUNT ( DISTINCT - - 55 ) col1
----
1

query I rowsort
SELECT ALL + 74 * 94
----
6956

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

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

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

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

query I rowsort
SELECT + - 44 * - + 58 + - 67 AS col0
----
2485

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

skipif mysql # not compatible
query I rowsort label-687
SELECT SUM ( ALL - - 34 )
----
34

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

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

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

query I rowsort
SELECT + 86 col1
----
86

query I rowsort
SELECT DISTINCT 11 * - + ( 33 ) AS col0
----
-363

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

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

query I rowsort
SELECT ALL - 71 + 83
----
12

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

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

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

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

query I rowsort
SELECT - - 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL 86 + COUNT( 28 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL 86 + COUNT ( 28 ) AS col1
----
87

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

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

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

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), + 62 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-703
SELECT DISTINCT - 82 DIV - NULLIF ( + - ( 99 ), - - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT - 82 / - NULLIF ( + - ( 99 ), - - 39 )
----
0

query II rowsort
SELECT - + 17 AS col1, 27
----
-17
27

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

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

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

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

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

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

query I rowsort
SELECT + 8 col2
----
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-712
SELECT ALL - 86 DIV - - 55
----
-1

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - 86 / - - 55
----
-1

query I rowsort
SELECT ALL - 37 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT 8 * SUM( 65 ) AS col0
----
520

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT 8 * SUM ( 65 ) AS col0
----
520

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

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

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

query I rowsort
SELECT - 12 - + 94
----
-106

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

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

query I rowsort
SELECT DISTINCT + + 3
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-720
SELECT + + 32 DIV - 1
----
-32

skipif mysql # not compatible
query I rowsort label-720
SELECT + + 32 / - 1
----
-32

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-724
SELECT + MIN( ALL + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-724
SELECT + MIN ( ALL + 51 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-725
SELECT - COUNT( * ) + CASE 57 WHEN - + 41 THEN + 61 WHEN + - 86 THEN NULL ELSE + 26 END AS col2
----
25

skipif mysql # not compatible
query I rowsort label-725
SELECT - COUNT ( * ) + CASE 57 WHEN - + 41 THEN + 61 WHEN + - 86 THEN NULL ELSE + 26 END AS col2
----
25

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

query I rowsort
SELECT + - 14
----
-14

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 70 * + 59
----
-4130

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

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

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

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

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL + - 14 * - COUNT ( * ) - - COUNT ( * ) AS col0
----
15

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

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

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

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

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

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

query I rowsort
SELECT - - 79
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT ALL MIN( 27 ) - + + 66 * - + 57
----
3789

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL MIN ( 27 ) - + + 66 * - + 57
----
3789

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

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

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

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

query I rowsort
SELECT - - 17 col1
----
17

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-754
SELECT + 75, + 67 + + COUNT( * ) AS col1
----
75
68

skipif mysql # not compatible
query II rowsort label-754
SELECT + 75, + 67 + + COUNT ( * ) AS col1
----
75
68

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

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

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

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

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

query I rowsort
SELECT - + 11
----
-11

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

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL + CAST ( + 71 AS INTEGER ) AS col0
----
71

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

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

query I rowsort
SELECT + 64 * + 10 + 7
----
647

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT ALL - 75 * COUNT( * ) + + - 54 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - 75 * COUNT ( * ) + + - 54 AS col0
----
-129

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

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

query I rowsort
SELECT 9 col1
----
9

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-776
SELECT DISTINCT COUNT( + + 68 ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-776
SELECT DISTINCT COUNT ( + + 68 ) / + 93
----
0

query I rowsort
SELECT + 34 + 7 AS col0
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT ALL ( - + MIN( ALL + 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL ( - + MIN ( ALL + 98 ) ) AS col2
----
-98

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

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

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

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

query I rowsort
SELECT 30 * + 65 AS col2
----
1950

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 17 + - 80
----
-63

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

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

query I rowsort
SELECT ALL 81 + - + 28 * - - 53 + - 89
----
-1492

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-799
SELECT - 23 + + + 76 DIV - 99 col1, 51 + + 93
----
-23
144

skipif mysql # not compatible
query II rowsort label-799
SELECT - 23 + + + 76 / - 99 col1, 51 + + 93
----
-23
144

query II rowsort
SELECT 39 col1, 27
----
39
27

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

query II rowsort
SELECT - 40 AS col1, + 42 AS col2
----
-40
42

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

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

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

query I rowsort
SELECT + - 7 * + 68 AS col1
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT NULLIF ( - COUNT( * ), 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-806
SELECT NULLIF ( - COUNT ( * ), 72 )
----
-1

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT + 10 DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-809
SELECT + 10 / + 18
----
0

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

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

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

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

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

query I rowsort
SELECT ALL - 21 + - + 61
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - + MIN( 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-814
SELECT - + MIN ( 76 ) AS col0
----
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT DISTINCT - SUM( - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - SUM ( - 90 ) AS col1
----
90

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

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

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

skipif mysql # not compatible
query I rowsort label-818
SELECT 89 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 85 col2
----
-85

query I rowsort
SELECT ALL 56 col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT ALL - 25 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL - 25 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 99 + + 30 AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-823
SELECT ALL + CAST( + - 97 AS SIGNED ) AS col1, 64 * + - 40
----
-97
-2560

skipif mysql # not compatible
query II rowsort label-823
SELECT ALL + CAST ( + - 97 AS INTEGER ) AS col1, 64 * + - 40
----
-97
-2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL - 19 * + MIN( + ( - 66 ) ) + + 85
----
1339

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL - 19 * + MIN ( + ( - 66 ) ) + + 85
----
1339

query I rowsort
SELECT - + 95 col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-827
SELECT ALL + COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL + COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-828
SELECT DISTINCT + 75 AS col0, + COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-828
SELECT DISTINCT + 75 AS col0, + COUNT ( * )
----
75
1

query I rowsort
SELECT ALL + 76 * - + 26 AS col0
----
-1976

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-830
SELECT CAST( NULL AS SIGNED ) AS col1, 25 DIV - - 8 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-830
SELECT CAST ( NULL AS INTEGER ) AS col1, 25 / - - 8 AS col0
----
NULL
3

query I rowsort
SELECT ( 19 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-832
SELECT DISTINCT - + 20 AS col0, 36 + ( - COUNT( * ) )
----
-20
35

skipif mysql # not compatible
query II rowsort label-832
SELECT DISTINCT - + 20 AS col0, 36 + ( - COUNT ( * ) )
----
-20
35

query I rowsort
SELECT - 61 - + 89 AS col2
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT ALL COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + + 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ( - COUNT( * ) ) * 94
----
-94

skipif mysql # not compatible
query I rowsort label-836
SELECT ( - COUNT ( * ) ) * 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT 18 + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-837
SELECT 18 + COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT DISTINCT ( 20 ) + + ( - 34 ) - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT ( 20 ) + + ( - 34 ) - + COUNT ( * )
----
-15

query I rowsort
SELECT 87 AS col1
----
87

query I rowsort
SELECT + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT - MIN( - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-841
SELECT - MIN ( - 31 )
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-842
SELECT ALL + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-843
SELECT + 88 * - + 64 + - CAST( NULL AS SIGNED ) + - MAX( + 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-843
SELECT + 88 * - + 64 + - CAST ( NULL AS INTEGER ) + - MAX ( + 67 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - 67 + + - ( + 63 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT - MIN( ALL - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-845
SELECT - MIN ( ALL - 59 )
----
59

query I rowsort
SELECT DISTINCT ( 4 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-847
SELECT CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-847
SELECT CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT + 42 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-849
SELECT ALL 51 * + - CAST( NULL AS SIGNED ) + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL 51 * + - CAST ( NULL AS INTEGER ) + + 19
----
NULL

query I rowsort
SELECT + + 48 + + 62 col0
----
110

query I rowsort
SELECT DISTINCT + - 96 AS col0
----
-96

query I rowsort
SELECT + 70 + - 81 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT COUNT( * ) - 80
----
-79

skipif mysql # not compatible
query I rowsort label-853
SELECT COUNT ( * ) - 80
----
-79

query I rowsort
SELECT + - 28
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT DISTINCT - MAX( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT - MAX ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT COUNT( * ) * + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-856
SELECT COUNT ( * ) * + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - 61 col2
----
-61

query I rowsort
SELECT 87 + - 5
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-859
SELECT CAST( - - 6 AS SIGNED ) DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-859
SELECT CAST ( - - 6 AS INTEGER ) / - + 87
----
0

query I rowsort
SELECT 67 col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT 23 * CAST( NULL AS SIGNED ) + + COUNT( * ) - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT 23 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT - COUNT( * ) * - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-862
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT - 62 AS col1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-864
SELECT ALL ( 57 ) DIV - COUNT( ALL 65 ) + 61 DIV + 66 * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL ( 57 ) / - COUNT ( ALL 65 ) + 61 / + 66 * COUNT ( * )
----
-57

query I rowsort
SELECT + + 60
----
60

query I rowsort
SELECT + ( - 51 )
----
-51

query I rowsort
SELECT ALL + - 47 AS col2
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-868
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-868
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-869
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-869
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT - 68 + - - 73
----
5

query I rowsort
SELECT ALL - + 40
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-872
SELECT ALL + CAST( NULL AS SIGNED ) / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + CAST ( NULL AS INTEGER ) / - + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 88, + 78 * - 21 col0
----
-88
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT DISTINCT - + COUNT( * ) * + 31 col0
----
-31

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - + COUNT ( * ) * + 31 col0
----
-31

query II rowsort
SELECT 37, 56 * + - 56 * - - 17 AS col2
----
37
-53312

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT - COUNT( * ) * MAX( DISTINCT + + ( - 76 ) ) * + - 98
----
-7448

skipif mysql # not compatible
query I rowsort label-876
SELECT - COUNT ( * ) * MAX ( DISTINCT + + ( - 76 ) ) * + - 98
----
-7448

query I rowsort
SELECT - 54 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT + COUNT( * ) - - 22
----
23

skipif mysql # not compatible
query I rowsort label-878
SELECT + COUNT ( * ) - - 22
----
23

query I rowsort
SELECT + 10 col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-880
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) / + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) / + 96 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 19 AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-882
SELECT + COUNT( * ) AS col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-882
SELECT + COUNT ( * ) AS col1, - COUNT ( * )
----
1
-1

query I rowsort
SELECT DISTINCT - ( - 9 )
----
9

query II rowsort
SELECT DISTINCT + 4 AS col1, + 14 AS col2
----
4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-885
SELECT + COUNT( ALL - - 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-885
SELECT + COUNT ( ALL - - 34 ) AS col2
----
1

query I rowsort
SELECT - - 93
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT - 33 + - - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT - 33 + - - COUNT ( * )
----
-32

query II rowsort
SELECT 19 AS col0, 73
----
19
73

query I rowsort
SELECT ALL - 57 AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT ALL - COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT 52 * - COUNT( * ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-891
SELECT 52 * - COUNT ( * ) col1
----
-52

query I rowsort
SELECT ALL 41 * 18
----
738

query I rowsort
SELECT ALL 87 * 66 AS col1
----
5742

query I rowsort
SELECT DISTINCT 22 - 51 AS col2
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-895
SELECT 12 + SUM( 40 ) DIV 59
----
12

skipif mysql # not compatible
query I rowsort label-895
SELECT 12 + SUM ( 40 ) / 59
----
12

query I rowsort
SELECT - 72 AS col2
----
-72

query I rowsort
SELECT ALL 74 col0
----
74

query I rowsort
SELECT DISTINCT 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT 86 * MIN( DISTINCT 68 ) AS col2
----
5848

skipif mysql # not compatible
query I rowsort label-899
SELECT 86 * MIN ( DISTINCT 68 ) AS col2
----
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT COUNT( * ) * 78
----
78

skipif mysql # not compatible
query I rowsort label-900
SELECT COUNT ( * ) * 78
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-901
SELECT DISTINCT 32 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-901
SELECT DISTINCT 32 / 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-902
SELECT CASE + 68 WHEN - 76 THEN - COUNT( * ) * CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-902
SELECT CASE + 68 WHEN - 76 THEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - - 5 * 78 AS col1
----
390

query I rowsort
SELECT - + 78 - 30 AS col1
----
-108

query I rowsort
SELECT - 81 + - 56 AS col2
----
-137

query I rowsort
SELECT ALL + + 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT + + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-907
SELECT + + ( - COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT + - 75
----
-75

query I rowsort
SELECT ALL + - 8
----
-8

query I rowsort
SELECT ALL + ( + + 74 ) col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT + + ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT + + ( - + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT ALL MAX( ALL - 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL MAX ( ALL - 5 ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT + 67 + - ( + + COUNT( * ) ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT + 67 + - ( + + COUNT ( * ) ) AS col1
----
66

query I rowsort
SELECT 30 + - - ( - 16 )
----
14

query I rowsort
SELECT ALL + 33 * - 24 AS col1
----
-792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-917
SELECT ALL - 3, CAST( ( 26 ) AS SIGNED ) AS col2
----
-3
26

skipif mysql # not compatible
query II rowsort label-917
SELECT ALL - 3, CAST ( ( 26 ) AS INTEGER ) AS col2
----
-3
26

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT 62 + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-918
SELECT 62 + COUNT ( * )
----
63

query I rowsort
SELECT DISTINCT 85 AS col0
----
85

query I rowsort
SELECT DISTINCT 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL + COUNT( - - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL + COUNT ( - - 33 )
----
1

query I rowsort
SELECT + + 82 AS col2
----
82

query I rowsort
SELECT DISTINCT - 0
----
0

query I rowsort
SELECT + + 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT DISTINCT NULLIF ( - 84, 5 ) + 8 * - COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT NULLIF ( - 84, 5 ) + 8 * - COUNT ( * ) AS col2
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-926
SELECT - MAX( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-926
SELECT - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 68 + - 82
----
-14

query I rowsort
SELECT + 96 * + 42
----
4032

query I rowsort
SELECT DISTINCT 97 AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-930
SELECT ALL + MIN( DISTINCT + - CAST( 52 AS SIGNED ) )
----
-52

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL + MIN ( DISTINCT + - CAST ( 52 AS INTEGER ) )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT - CAST( - 34 AS SIGNED ) col1
----
34

skipif mysql # not compatible
query I rowsort label-931
SELECT - CAST ( - 34 AS INTEGER ) col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-932
SELECT + + CAST( NULL AS SIGNED ) * - ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-932
SELECT + + CAST ( NULL AS INTEGER ) * - ( - + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT COALESCE ( COUNT( * ), - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-933
SELECT COALESCE ( COUNT ( * ), - 52 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-934
SELECT DISTINCT + CAST( - 30 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT + CAST ( - 30 AS INTEGER ) AS col1
----
-30

query I rowsort
SELECT - 27 + - - 95
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT ALL CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 8 + 80
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-938
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-939
SELECT DISTINCT - COUNT( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT - COUNT ( + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-940
SELECT ALL + 22 DIV - COUNT( ALL + + 97 )
----
-22

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL + 22 / - COUNT ( ALL + + 97 )
----
-22

query I rowsort
SELECT ALL - 85 col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-942
SELECT + CAST( + SUM( 23 ) AS SIGNED ) - + - 63
----
86

skipif mysql # not compatible
query I rowsort label-942
SELECT + CAST ( + SUM ( 23 ) AS INTEGER ) - + - 63
----
86

query I rowsort
SELECT ALL - 93 AS col2
----
-93

query I rowsort
SELECT - + 8
----
-8

query I rowsort
SELECT ALL - 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT COUNT( * ) + + MAX( DISTINCT + 11 )
----
12

skipif mysql # not compatible
query I rowsort label-946
SELECT COUNT ( * ) + + MAX ( DISTINCT + 11 )
----
12

query II rowsort
SELECT 62 AS col0, + 24
----
62
24

query I rowsort
SELECT DISTINCT - 83 AS col0
----
-83

query I rowsort
SELECT 40 + - - 94 AS col0
----
134

query I rowsort
SELECT 95 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT ALL ( 33 ) * + + ( COUNT( * ) ) col2
----
33

skipif mysql # not compatible
query I rowsort label-951
SELECT ALL ( 33 ) * + + ( COUNT ( * ) ) col2
----
33

query I rowsort
SELECT - - 28
----
28

query I rowsort
SELECT ALL - 61 AS col0
----
-61

query I rowsort
SELECT - - 20 AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-955
SELECT DISTINCT COUNT( * ) DIV + - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT COUNT ( * ) / + - 32 AS col1
----
0

query I rowsort
SELECT + + 40 AS col0
----
40

query I rowsort
SELECT - - 22
----
22

query I rowsort
SELECT 36 * 81 + 62
----
2978

query I rowsort
SELECT - 91 + 68
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL COUNT( * ) * + - 58
----
-58

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL COUNT ( * ) * + - 58
----
-58

query II rowsort
SELECT 83 AS col0, - 34
----
83
-34

query I rowsort
SELECT ALL - ( 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT ALL - - 10 + + MIN( ALL - 91 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL - - 10 + + MIN ( ALL - 91 ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT + COUNT( * ) * - - 72
----
72

skipif mysql # not compatible
query I rowsort label-964
SELECT + COUNT ( * ) * - - 72
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT 51 DIV - 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-965
SELECT 51 / - 41 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-966
SELECT ALL + 17 DIV + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + 17 / + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT - MIN( ALL - 48 ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-967
SELECT - MIN ( ALL - 48 ) AS col2
----
48

query I rowsort
SELECT DISTINCT + - 46 * + 77
----
-3542

query I rowsort
SELECT ALL + + 41
----
41

query I rowsort
SELECT - 33 * 70
----
-2310

query I rowsort
SELECT ALL + - 7 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT + - COUNT( DISTINCT + - 12 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT + - COUNT ( DISTINCT + - 12 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-973
SELECT - ( + - 83 ) DIV - - COUNT( * ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-973
SELECT - ( + - 83 ) / - - COUNT ( * ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-974
SELECT 49, COUNT( * ) * - 19 AS col2
----
49
-19

skipif mysql # not compatible
query II rowsort label-974
SELECT 49, COUNT ( * ) * - 19 AS col2
----
49
-19

query I rowsort
SELECT ALL ( - 67 )
----
-67

query II rowsort
SELECT 36 AS col1, 36 AS col1
----
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT - COUNT( * ) + - - 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-977
SELECT - COUNT ( * ) + - - 19 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT DISTINCT + COUNT( * ) + - + 78
----
-77

skipif mysql # not compatible
query I rowsort label-978
SELECT DISTINCT + COUNT ( * ) + - + 78
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT - SUM( ALL 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-979
SELECT - SUM ( ALL 93 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-980
SELECT ALL ( - - CAST( - 72 AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-980
SELECT ALL ( - - CAST ( - 72 AS INTEGER ) )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT + CAST( NULL AS SIGNED ) * - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT + CAST ( NULL AS INTEGER ) * - 39 AS col2
----
NULL

query I rowsort
SELECT - 38 * + 60
----
-2280

query II rowsort
SELECT ALL + - 91, - 68 AS col2
----
-91
-68

query I rowsort
SELECT ALL - 4 * - + 82 + 11 col0
----
339

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - MIN( + 66 ) - - 41
----
-25

skipif mysql # not compatible
query I rowsort label-985
SELECT - MIN ( + 66 ) - - 41
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-986
SELECT ALL - 6 DIV 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL - 6 / 27 AS col0
----
0

query I rowsort
SELECT - + 47
----
-47

query I rowsort
SELECT + - 11 AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-989
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT MIN( DISTINCT - + 17 ) + + MIN( DISTINCT + + 49 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-990
SELECT MIN ( DISTINCT - + 17 ) + + MIN ( DISTINCT + + 49 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT COUNT( * ) * + 54
----
54

skipif mysql # not compatible
query I rowsort label-991
SELECT COUNT ( * ) * + 54
----
54

query I rowsort
SELECT ALL 84 AS col2
----
84

query I rowsort
SELECT ALL - + 19
----
-19

query I rowsort
SELECT + + 41
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-995
SELECT COUNT( DISTINCT 47 ) col1, + 9 AS col1
----
1
9

skipif mysql # not compatible
query II rowsort label-995
SELECT COUNT ( DISTINCT 47 ) col1, + 9 AS col1
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL COUNT( * ) * + 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL COUNT ( * ) * + 41 AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT + 73 * + 52 DIV - 1
----
-3796

skipif mysql # not compatible
query I rowsort label-997
SELECT + 73 * + 52 / - 1
----
-3796

query I rowsort
SELECT + 90 - + 54
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-999
SELECT ALL + COUNT( * ) + - + COUNT( * ) AS col1, 70
----
0
70

skipif mysql # not compatible
query II rowsort label-999
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col1, 70
----
0
70

query I rowsort
SELECT - - 10 AS col1
----
10

query I rowsort
SELECT + 43 col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1002
SELECT ALL + 87 DIV + 58 DIV - - COUNT( * ), + 78 AS col0
----
1
78

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL + 87 / + 58 / - - COUNT ( * ), + 78 AS col0
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + 52 * + COUNT( * ) + - + 25
----
27

skipif mysql # not compatible
query I rowsort label-1003
SELECT + 52 * + COUNT ( * ) + - + 25
----
27

query I rowsort
SELECT + 54 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT ALL COUNT( * ) * + ( - 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL COUNT ( * ) * + ( - 89 ) AS col2
----
-89

query I rowsort
SELECT - 28 AS col0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1007
SELECT DISTINCT MIN( ALL - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT MIN ( ALL - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + COUNT( - - 61 ) + + - 85 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-1008
SELECT + COUNT ( - - 61 ) + + - 85 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-1009
SELECT ( + COUNT( * ) ) AS col2, - 89
----
1
-89

skipif mysql # not compatible
query II rowsort label-1009
SELECT ( + COUNT ( * ) ) AS col2, - 89
----
1
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT + 64 * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-1010
SELECT + 64 * - COUNT ( * )
----
-64

query II rowsort
SELECT ALL + 20 AS col0, - 73
----
20
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1012
SELECT CAST( - 45 AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1012
SELECT CAST ( - 45 AS INTEGER ) AS col2
----
-45

query I rowsort
SELECT DISTINCT - 23 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT ALL - COUNT( * ) + 66
----
65

skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL - COUNT ( * ) + 66
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT - COUNT( * ) + + + 83 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT - COUNT ( * ) + + + 83 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT - SUM( - ( 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-1016
SELECT - SUM ( - ( 4 ) )
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1017
SELECT ALL - COUNT( * ) DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - COUNT ( * ) / 84 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1018
SELECT + 82, 96 + - 13 + COUNT( * ) AS col1
----
82
84

skipif mysql # not compatible
query II rowsort label-1018
SELECT + 82, 96 + - 13 + COUNT ( * ) AS col1
----
82
84

onlyif mysql # aggregate syntax: 
query II rowsort label-1019
SELECT ALL - COUNT( * ) AS col2, + 78 AS col0
----
-1
78

skipif mysql # not compatible
query II rowsort label-1019
SELECT ALL - COUNT ( * ) AS col2, + 78 AS col0
----
-1
78

query I rowsort
SELECT ALL - 63 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1021
SELECT DISTINCT - MAX( ALL + + ( - 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-1021
SELECT DISTINCT - MAX ( ALL + + ( - 58 ) )
----
58

query I rowsort
SELECT ALL 65 AS col1
----
65

query I rowsort
SELECT - - 44 col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1024
SELECT ALL - SUM( + + CAST( NULL AS SIGNED ) ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL - SUM ( + + CAST ( NULL AS INTEGER ) ) * + 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL - SUM( - + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - SUM ( - + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT ALL 81 + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-1026
SELECT ALL 81 + COUNT ( * )
----
82

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1027
SELECT ALL CAST( NULL AS SIGNED ) * + + 13 + + + 79, CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1027
SELECT ALL CAST ( NULL AS INTEGER ) * + + 13 + + + 79, CAST ( NULL AS REAL ) AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1028
SELECT + 73 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1028
SELECT + 73 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT MAX( + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-1030
SELECT MAX ( + 41 ) AS col1
----
41

query I rowsort
SELECT DISTINCT + - 68 AS col1
----
-68

query I rowsort
SELECT ALL 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT ALL - 95 * + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL - 95 * + COUNT ( * )
----
-95

query I rowsort
SELECT - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL MAX( ALL - - 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL MAX ( ALL - - 63 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1036
SELECT ALL + 70 AS col0, NULLIF ( - 39, COUNT( * ) )
----
70
-39

skipif mysql # not compatible
query II rowsort label-1036
SELECT ALL + 70 AS col0, NULLIF ( - 39, COUNT ( * ) )
----
70
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL + - ( - ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL + - ( - ( - + COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1038
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1039
SELECT + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT - + 44 col1
----
-44

query I rowsort
SELECT ( + ( + 47 ) ) + + 20 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT COUNT( * ) + - 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1042
SELECT COUNT ( * ) + - 36 AS col1
----
-35

query I rowsort
SELECT 18 + + 22
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1044
SELECT 25 * - ( COUNT( * ) ), COUNT( * ) AS col2
----
-25
1

skipif mysql # not compatible
query II rowsort label-1044
SELECT 25 * - ( COUNT ( * ) ), COUNT ( * ) AS col2
----
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT MAX( + + 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-1045
SELECT MAX ( + + 57 ) col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1046
SELECT + CAST( - NULLIF ( - COUNT( * ), - 87 + 26 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1046
SELECT + CAST ( - NULLIF ( - COUNT ( * ), - 87 + 26 ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT DISTINCT + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT - COUNT( * ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-1048
SELECT - COUNT ( * ) * 84
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1049
SELECT ALL - + CAST( NULL AS SIGNED ) + 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL - + CAST ( NULL AS INTEGER ) + 52 col2
----
NULL

query I rowsort
SELECT - 56 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-1051
SELECT + 2 + + COUNT( * ) AS col1, + 1
----
3
1

skipif mysql # not compatible
query II rowsort label-1051
SELECT + 2 + + COUNT ( * ) AS col1, + 1
----
3
1

query I rowsort
SELECT + + 76 AS col0
----
76

query I rowsort
SELECT ALL + + 71 AS col2
----
71

query I rowsort
SELECT + - 58 AS col1
----
-58

query I rowsort
SELECT DISTINCT + ( - 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ALL + 44 * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL + 44 * + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ALL - ( COUNT( * ) ) + - + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1057
SELECT ALL - ( COUNT ( * ) ) + - + COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT COUNT( * ) + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-1058
SELECT COUNT ( * ) + + COUNT ( * ) col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1059
SELECT ALL - + MAX( DISTINCT - CAST( + + 6 AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - + MAX ( DISTINCT - CAST ( + + 6 AS INTEGER ) )
----
6

query I rowsort
SELECT + - 94 col0
----
-94

query I rowsort
SELECT ALL - ( + 23 ) AS col0
----
-23

query I rowsort
SELECT DISTINCT - + 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT COUNT( * ) + COUNT( * ) * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1063
SELECT COUNT ( * ) + COUNT ( * ) * + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT ALL - MIN( - - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL - MIN ( - - 98 )
----
-98

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1065
SELECT DISTINCT 77, - 33 / - + CAST( NULL AS DECIMAL ) * ( + 38 ) AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-1065
SELECT DISTINCT 77, - 33 / - + CAST ( NULL AS REAL ) * ( + 38 ) AS col0
----
77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT DISTINCT ( - 54 ) DIV - 57 + + ( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT ( - 54 ) / - 57 + + ( 15 )
----
15

query I rowsort
SELECT ALL - - 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT - MAX( - 10 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-1068
SELECT - MAX ( - 10 ) col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT + COUNT( * ) + + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1069
SELECT + COUNT ( * ) + + 20 AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1070
SELECT ALL CAST( NULL AS SIGNED ) - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT ALL CAST ( NULL AS INTEGER ) - + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 98 AS col0
----
-98

query II rowsort
SELECT + 20 + - 42 AS col2, 79
----
-22
79

query I rowsort
SELECT ALL + 43 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT + MIN( + - 7 ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-1074
SELECT + MIN ( + - 7 ) col0
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1075
SELECT - COUNT( * ) AS col1, 79 AS col0
----
-1
79

skipif mysql # not compatible
query II rowsort label-1075
SELECT - COUNT ( * ) AS col1, 79 AS col0
----
-1
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT ALL CAST( + 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL CAST ( + 86 AS INTEGER ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT ALL + COALESCE ( + MIN( + 61 ), + 93 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + COALESCE ( + MIN ( + 61 ), + 93 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT + - COUNT( + 60 ) - - 70
----
69

skipif mysql # not compatible
query I rowsort label-1078
SELECT + - COUNT ( + 60 ) - - 70
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1079
SELECT DISTINCT COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT DISTINCT 7 * - + COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT 7 * - + COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT ALL 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT - COUNT( * ) + - - 79 * COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-1082
SELECT - COUNT ( * ) + - - 79 * COUNT ( * )
----
78

query II rowsort
SELECT + ( + 31 ) AS col1, - 94 AS col1
----
31
-94

query I rowsort
SELECT + 51 col1
----
51

query I rowsort
SELECT DISTINCT - 15
----
-15

query I rowsort
SELECT DISTINCT - 5 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT DISTINCT + 77 * COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT + 77 * COUNT ( * ) AS col1
----
77

query I rowsort
SELECT + 24 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT + SUM( ALL - ( 98 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1089
SELECT + SUM ( ALL - ( 98 ) ) AS col0
----
-98

query I rowsort
SELECT ALL ( 53 )
----
53

query I rowsort
SELECT DISTINCT - 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL + + COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + + COUNT ( * ) + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT - 25 * ( + + 77 ) AS col1
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT - 57 * + 77 * - - ( - COUNT( * ) ) AS col1
----
4389

skipif mysql # not compatible
query I rowsort label-1094
SELECT - 57 * + 77 * - - ( - COUNT ( * ) ) AS col1
----
4389

query II rowsort
SELECT - 80, + 84 col2
----
-80
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - + 93 * - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1096
SELECT - + 93 * - COUNT ( * ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1097
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1097
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 52 col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT - COUNT( * ) * + ( + - 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-1099
SELECT - COUNT ( * ) * + ( + - 91 ) AS col2
----
91

query I rowsort
SELECT - 37 + + ( + 42 ) AS col2
----
5

query I rowsort
SELECT DISTINCT + - 4
----
-4

query I rowsort
SELECT DISTINCT + - 70 AS col2
----
-70

query I rowsort
SELECT + + 17 AS col1
----
17

query I rowsort
SELECT DISTINCT 14 AS col0
----
14

query I rowsort
SELECT ALL + 7 AS col2
----
7

query I rowsort
SELECT 82 * + COALESCE ( - 24, + 40 ) col2
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT DISTINCT 60 + - MAX( - 83 )
----
143

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT 60 + - MAX ( - 83 )
----
143

query I rowsort
SELECT ALL - + 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT 40 * - + 9 - - 96 + - - COUNT( * ) AS col1
----
-263

skipif mysql # not compatible
query I rowsort label-1109
SELECT 40 * - + 9 - - 96 + - - COUNT ( * ) AS col1
----
-263

query I rowsort
SELECT ( + 6 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1111
SELECT ALL - CAST( 76 AS SIGNED ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - CAST ( 76 AS INTEGER ) col1
----
-76

query I rowsort
SELECT + - 78 AS col2
----
-78

query I rowsort
SELECT DISTINCT 34 AS col0
----
34

query I rowsort
SELECT ALL 91 * 24
----
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1115
SELECT CAST( 99 AS SIGNED ) + + 98 col1
----
197

skipif mysql # not compatible
query I rowsort label-1115
SELECT CAST ( 99 AS INTEGER ) + + 98 col1
----
197

query I rowsort
SELECT 56 * + 58
----
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL 55 + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL 55 + - COUNT ( * )
----
54

query I rowsort
SELECT DISTINCT 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT ( COUNT( * ) ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-1119
SELECT ( COUNT ( * ) ) + + 55
----
56

query I rowsort
SELECT ALL + - 50 AS col1
----
-50

query I rowsort
SELECT ALL + 13 col2
----
13

query I rowsort
SELECT ALL 15 + - + 73
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT - COUNT( * ) - + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1123
SELECT - COUNT ( * ) - + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL + 47 + + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL + 47 + + + COUNT ( * )
----
48

query I rowsort
SELECT DISTINCT 80 * 51
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT DISTINCT + + COUNT( ALL 38 )
----
1

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT + + COUNT ( ALL 38 )
----
1

query I rowsort
SELECT - ( 37 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1128
SELECT + 27 + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1128
SELECT + 27 + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT MIN( ALL - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-1129
SELECT MIN ( ALL - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT - SUM( DISTINCT - - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1130
SELECT - SUM ( DISTINCT - - 11 ) AS col0
----
-11

query I rowsort
SELECT + + ( + 66 ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1132
SELECT - COALESCE ( + + 20, - + 25, 80 * + CAST( NULL AS SIGNED ) * + + 64 )
----
-20

skipif mysql # not compatible
query I rowsort label-1132
SELECT - COALESCE ( + + 20, - + 25, 80 * + CAST ( NULL AS INTEGER ) * + + 64 )
----
-20

query I rowsort
SELECT - + 22 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1134
SELECT 81 AS col2, + COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-1134
SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2
----
81
NULL

query I rowsort
SELECT 67 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT - MAX( - 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-1136
SELECT - MAX ( - 59 ) AS col1
----
59

query I rowsort
SELECT ALL - ( - - 34 ) * - ( + 39 )
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT - COUNT( ALL 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-1138
SELECT - COUNT ( ALL 36 )
----
-1

query I rowsort
SELECT - - 93 col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT - MIN( CAST( NULL AS SIGNED ) ) * + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1140
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) * + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT COALESCE ( + 12, COUNT( * ) DIV 19, - 38 + + 16 )
----
12

skipif mysql # not compatible
query I rowsort label-1141
SELECT COALESCE ( + 12, COUNT ( * ) / 19, - 38 + + 16 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT DISTINCT + 66 * + - ( COUNT( * ) )
----
-66

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT + 66 * + - ( COUNT ( * ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT MAX( - 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-1143
SELECT MAX ( - 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT + COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1144
SELECT + COUNT ( * ) * - COUNT ( * )
----
-1

query I rowsort
SELECT ALL 46 AS col0
----
46

query I rowsort
SELECT ALL - 34 * + 92 AS col1
----
-3128

query I rowsort
SELECT - COALESCE ( 1, - 16 ) + 92
----
91

query I rowsort
SELECT ALL 73 * + - 93
----
-6789

query I rowsort
SELECT + ( + - COALESCE ( + 79, + 32 + - 73 ) ) + 18
----
-61

query I rowsort
SELECT DISTINCT - 87 + 44
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT ALL CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER )
----
-1

query I rowsort
SELECT + 16 + - 89 AS col2
----
-73

query I rowsort
SELECT DISTINCT 32 + 79 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT ALL - MIN( ALL + + 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL - MIN ( ALL + + 66 ) AS col2
----
-66

query I rowsort
SELECT DISTINCT - 67 AS col1
----
-67

query I rowsort
SELECT 31 col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1157
SELECT CAST( 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-1157
SELECT CAST ( 41 AS INTEGER )
----
41

query I rowsort
SELECT + - 51 AS col0
----
-51

query I rowsort
SELECT ALL + - 61 col1
----
-61

query I rowsort
SELECT + - 7 col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT 9 * + + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT 9 * + + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1162
SELECT + MAX( - 41 ), ( + 62 ) AS col1
----
-41
62

skipif mysql # not compatible
query II rowsort label-1162
SELECT + MAX ( - 41 ), ( + 62 ) AS col1
----
-41
62

query I rowsort
SELECT DISTINCT 61 + - 91 AS col1
----
-30

query I rowsort
SELECT ALL + 68 * - - ( + + 32 )
----
2176

query I rowsort
SELECT + + 14 AS col2
----
14

query I rowsort
SELECT DISTINCT + + 12 AS col1
----
12

query II rowsort
SELECT ALL - 93, - 78 AS col0
----
-93
-78

query I rowsort
SELECT - 41 col2
----
-41

query I rowsort
SELECT ALL + - 78
----
-78

query I rowsort
SELECT ALL + ( + + 68 ) AS col2
----
68

query I rowsort
SELECT - 40 * - ( - - 45 )
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT ALL + ( + MIN( DISTINCT - + 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL + ( + MIN ( DISTINCT - + 11 ) )
----
-11

query I rowsort
SELECT ALL + 70 col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1174
SELECT ALL CAST( + - 92 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL CAST ( + - 92 AS INTEGER ) AS col0
----
-92

query I rowsort
SELECT ALL + 87 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1176
SELECT DISTINCT ( CAST( + 61 AS SIGNED ) ) * + COUNT( * ) + - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT ( CAST ( + 61 AS INTEGER ) ) * + COUNT ( * ) + - COUNT ( * ) AS col1
----
60

query I rowsort
SELECT ALL - + 45 col1
----
-45

query I rowsort
SELECT + - 69 AS col1
----
-69

query I rowsort
SELECT 25 * 20 AS col2
----
500

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1180
SELECT CAST( NULL AS DECIMAL ) + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1180
SELECT CAST ( NULL AS REAL ) + - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT 79 - - MIN( ALL - + 79 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1181
SELECT 79 - - MIN ( ALL - + 79 ) col1
----
0

query I rowsort
SELECT - 56 col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT ALL - COUNT( * ) + + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT + 92 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 92 * + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT DISTINCT - SUM( DISTINCT 56 ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT - SUM ( DISTINCT 56 ) col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT ALL - CAST( NULL AS SIGNED ) + + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL - 4 - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - 4 - - COUNT ( * )
----
-3

query I rowsort
SELECT + 38 col2
----
38

query I rowsort
SELECT 66 col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT + SUM( DISTINCT - + ( + 49 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-1190
SELECT + SUM ( DISTINCT - + ( + 49 ) ) AS col1
----
-49

query I rowsort
SELECT ALL + 87 * - 69 * 57 AS col0
----
-342171

query I rowsort
SELECT 11 + + - 27
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1193
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT - COUNT( * ) * + 23
----
-23

skipif mysql # not compatible
query I rowsort label-1194
SELECT - COUNT ( * ) * + 23
----
-23

query I rowsort
SELECT ALL + ( + 3 )
----
3

query I rowsort
SELECT + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT MAX( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-1197
SELECT MAX ( - 95 )
----
-95

query I rowsort
SELECT + ( 52 ) * 20
----
1040

query I rowsort
SELECT ALL 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL COUNT( DISTINCT + 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL COUNT ( DISTINCT + 29 ) AS col2
----
1

query I rowsort
SELECT ALL + 5 col1
----
5

query I rowsort
SELECT ( 36 )
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1203
SELECT DISTINCT - 69 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT - 69 / CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT COUNT( - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-1205
SELECT COUNT ( - 70 )
----
1

query I rowsort
SELECT - 55 + + 42
----
-13

query I rowsort
SELECT - ( - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT - 68 * SUM( - 53 )
----
3604

skipif mysql # not compatible
query I rowsort label-1208
SELECT - 68 * SUM ( - 53 )
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT - - COUNT( 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1209
SELECT - - COUNT ( 5 ) AS col1
----
1

query I rowsort
SELECT 60 * + + 29
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL MAX( DISTINCT 6 ) + 73 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL MAX ( DISTINCT 6 ) + 73 AS col0
----
79

query I rowsort
SELECT 82 AS col0
----
82

query I rowsort
SELECT 93 col0
----
93

query I rowsort
SELECT + 62 col2
----
62

query I rowsort
SELECT ALL - - 67
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT - ( - 84 ) DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-1216
SELECT - ( - 84 ) / + 55
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT - 94 + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1217
SELECT - 94 + - COUNT ( * )
----
-95

query I rowsort
SELECT ALL - ( 83 )
----
-83

query I rowsort
SELECT - - 45
----
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1220
SELECT DISTINCT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT COUNT( 20 ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1221
SELECT COUNT ( 20 ) + + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT DISTINCT COUNT( DISTINCT 38 )
----
1

skipif mysql # not compatible
query I rowsort label-1222
SELECT DISTINCT COUNT ( DISTINCT 38 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1223
SELECT ALL MAX( ALL - CAST( NULL AS DECIMAL ) ) - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL MAX ( ALL - CAST ( NULL AS REAL ) ) - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT ALL 14 * - + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-1224
SELECT ALL 14 * - + COUNT ( * ) AS col1
----
-14

query I rowsort
SELECT DISTINCT 84 - + + 55
----
29

query I rowsort
SELECT DISTINCT + + 44 * + 19 * - 58 * 38
----
-1842544

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT - 73 + 99 * - COUNT( * ) * 52
----
-5221

skipif mysql # not compatible
query I rowsort label-1227
SELECT - 73 + 99 * - COUNT ( * ) * 52
----
-5221

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1228
SELECT - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1228
SELECT - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL ( 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1230
SELECT - CAST( NULL AS SIGNED ) * - + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1230
SELECT - CAST ( NULL AS INTEGER ) * - + 66 AS col0
----
NULL

query I rowsort
SELECT ALL ( + 77 ) AS col2
----
77

query I rowsort
SELECT - NULLIF ( 73, 6 ) AS col1
----
-73

query I rowsort
SELECT ( + 0 ) AS col2
----
0

query I rowsort
SELECT + 59 * + 86 AS col2
----
5074

query I rowsort
SELECT - 38 - - + 13 col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT DISTINCT + ( - NULLIF ( + ( 76 ), - 79 ) ) DIV - 16
----
4

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT + ( - NULLIF ( + ( 76 ), - 79 ) ) / - 16
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT DISTINCT - 89 + - 26 * - COUNT( * ) DIV - NULLIF ( + + 99, + 87 )
----
-89

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT - 89 + - 26 * - COUNT ( * ) / - NULLIF ( + + 99, + 87 )
----
-89

query I rowsort
SELECT 69 * - - 58 AS col0
----
4002

query I rowsort
SELECT 4 + + + ( - 44 )
----
-40

query I rowsort
SELECT - 79 AS col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1241
SELECT CAST( NULL AS SIGNED ) + + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1241
SELECT CAST ( NULL AS INTEGER ) + + + 69 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 64 AS col1
----
64

query I rowsort
SELECT 44 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT ALL - MAX( DISTINCT + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-1244
SELECT ALL - MAX ( DISTINCT + 63 )
----
-63

query I rowsort
SELECT + + 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT + + MIN( - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1246
SELECT + + MIN ( - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT - + MAX( - 19 ) * + 79
----
1501

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT - + MAX ( - 19 ) * + 79
----
1501

query II rowsort
SELECT ALL - 73 col0, - 58 AS col0
----
-73
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1249
SELECT - COUNT( * ) AS col2, + 59 AS col0
----
-1
59

skipif mysql # not compatible
query II rowsort label-1249
SELECT - COUNT ( * ) AS col2, + 59 AS col0
----
-1
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1250
SELECT + 77 DIV - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-1250
SELECT + 77 / - COUNT ( * )
----
-77

query I rowsort
SELECT DISTINCT 8 AS col2
----
8

query I rowsort
SELECT + - 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT ALL + 30 * + COUNT( * ) * 27 AS col0
----
810

skipif mysql # not compatible
query I rowsort label-1253
SELECT ALL + 30 * + COUNT ( * ) * 27 AS col0
----
810

query I rowsort
SELECT ALL + + 91 AS col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1255
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL 95 * + COUNT( * ) col2
----
95

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL 95 * + COUNT ( * ) col2
----
95

query I rowsort
SELECT DISTINCT + - 57
----
-57

query I rowsort
SELECT + + 69 AS col1
----
69

query I rowsort
SELECT 98 + - 91 AS col0
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-1260
SELECT 39 DIV + 7 AS col2, - 50 AS col2
----
5
-50

skipif mysql # not compatible
query II rowsort label-1260
SELECT 39 / + 7 AS col2, - 50 AS col2
----
5
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT COUNT( * ) - - 87 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1261
SELECT COUNT ( * ) - - 87 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + MIN( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-1262
SELECT + MIN ( ALL 89 )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1263
SELECT - MAX( ALL - ( + + CAST( - 27 AS SIGNED ) ) )
----
-27

skipif mysql # not compatible
query I rowsort label-1263
SELECT - MAX ( ALL - ( + + CAST ( - 27 AS INTEGER ) ) )
----
-27

query I rowsort
SELECT ALL 91 AS col2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT DISTINCT 84 DIV + MAX( + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT 84 / + MAX ( + 61 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT - 49 * - + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1266
SELECT - 49 * - + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT DISTINCT + 0 AS col2
----
0

query I rowsort
SELECT + 42 * - - 24
----
1008

query II rowsort
SELECT DISTINCT ( - + 31 ) AS col2, - 87 AS col1
----
-31
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1270
SELECT - CAST( + - ( - - 93 ) AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-1270
SELECT - CAST ( + - ( - - 93 ) AS INTEGER ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - 83 * - - COUNT( * ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-1271
SELECT - 83 * - - COUNT ( * ) col1
----
-83

query I rowsort
SELECT DISTINCT - 8 AS col0
----
-8

query I rowsort
SELECT - + 82 AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT DISTINCT 66 * - + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-1274
SELECT DISTINCT 66 * - + COUNT ( * )
----
-66

query I rowsort
SELECT 22 + - + 32 AS col1
----
-10

query I rowsort
SELECT 74 + - 50 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT - SUM( + 16 ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-1277
SELECT - SUM ( + 16 ) col1
----
-16

query I rowsort
SELECT ALL + 57 * + 35
----
1995

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT ALL SUM( - 33 ) + 76
----
43

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL SUM ( - 33 ) + 76
----
43

query I rowsort
SELECT - ( - + 85 ) AS col2
----
85

query I rowsort
SELECT DISTINCT + - 56 AS col2
----
-56

query I rowsort
SELECT DISTINCT + 47 AS col2
----
47

query I rowsort
SELECT DISTINCT - 4 col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT ALL - + COUNT( * ) + + 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1284
SELECT ALL - + COUNT ( * ) + + 59 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL SUM( DISTINCT + + 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL SUM ( DISTINCT + + 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1287
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( + + 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT + COUNT( ALL + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-1289
SELECT + COUNT ( ALL + 62 )
----
1

query I rowsort
SELECT ALL ( - 95 ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1291
SELECT DISTINCT CAST( + 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT CAST ( + 28 AS INTEGER )
----
28

query I rowsort
SELECT + + 13
----
13

query I rowsort
SELECT ALL - - ( - 3 ) AS col2
----
-3

query II rowsort
SELECT DISTINCT - 46, + 47 * - + 90 AS col1
----
-46
-4230

query I rowsort
SELECT ALL - + 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + - ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1296
SELECT + - ( + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - - 8 AS col0
----
8

query I rowsort
SELECT + + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT 48 - - + MAX( - 55 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1299
SELECT 48 - - + MAX ( - 55 ) AS col2
----
-7

query I rowsort
SELECT - 1 + + - 88 + 19
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT + COUNT( * ) * + 20
----
20

skipif mysql # not compatible
query I rowsort label-1301
SELECT + COUNT ( * ) * + 20
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1302
SELECT DISTINCT CAST( + + 29 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT CAST ( + + 29 AS INTEGER ) AS col0
----
29

query I rowsort
SELECT + 22 * 30
----
660

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1304
SELECT - + CAST( NULL AS DECIMAL ) + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-1304
SELECT - + CAST ( NULL AS REAL ) + + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT COUNT( ALL - - 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1305
SELECT COUNT ( ALL - - 70 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1306
SELECT + + ( CAST( 11 AS SIGNED ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1306
SELECT + + ( CAST ( 11 AS INTEGER ) ) AS col0
----
11

query I rowsort
SELECT ALL ( 4 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1308
SELECT ALL CAST( - 13 AS SIGNED ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL CAST ( - 13 AS INTEGER ) col0
----
-13

query I rowsort
SELECT ALL ( + - 40 ) * + 78 AS col1
----
-3120

query I rowsort
SELECT - NULLIF ( 55, 49 )
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT - + ( + CAST( NULL AS SIGNED ) ) + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT - + ( + CAST ( NULL AS INTEGER ) ) + + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT + - MIN( + 54 ) * 46 AS col2
----
-2484

skipif mysql # not compatible
query I rowsort label-1312
SELECT + - MIN ( + 54 ) * 46 AS col2
----
-2484

query I rowsort
SELECT ALL + 84 + + 40 + ( 42 ) AS col1
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT DISTINCT ( 91 ) * - 43 * - + COUNT( * ) * + 91
----
356083

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT ( 91 ) * - 43 * - + COUNT ( * ) * + 91
----
356083

query I rowsort
SELECT DISTINCT + 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT 1 + + ( COUNT( * ) ) col0
----
2

skipif mysql # not compatible
query I rowsort label-1316
SELECT 1 + + ( COUNT ( * ) ) col0
----
2

query I rowsort
SELECT 56 * ( - COALESCE ( + 16, 65 * + - 94 ) ) AS col1
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL - - NULLIF ( - 74, - + COUNT( * ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - - NULLIF ( - 74, - + COUNT ( * ) ) AS col2
----
-74

query I rowsort
SELECT ALL - 38 AS col2
----
-38

query I rowsort
SELECT ALL - + 25 AS col2
----
-25

query I rowsort
SELECT ALL - ( 37 )
----
-37

query I rowsort
SELECT 68 col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT ALL 59 + + - NULLIF ( + COUNT( * ), + ( + 23 ) / - 69 / AVG ( - 26 ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL 59 + + - NULLIF ( + COUNT ( * ), + ( + 23 ) / - 69 / AVG ( - 26 ) ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL - COUNT( * ) + - 93 col2
----
-94

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - COUNT ( * ) + - 93 col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT - SUM( 5 ) * 37 col0
----
-185

skipif mysql # not compatible
query I rowsort label-1325
SELECT - SUM ( 5 ) * 37 col0
----
-185

query I rowsort
SELECT DISTINCT + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT + 47 * - COUNT( + - 23 )
----
-47

skipif mysql # not compatible
query I rowsort label-1327
SELECT + 47 * - COUNT ( + - 23 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL - SUM( + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - SUM ( + 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT DISTINCT + COUNT( * ) + 34 col0
----
35

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT + COUNT ( * ) + 34 col0
----
35

query I rowsort
SELECT + 22 col2
----
22

query I rowsort
SELECT ALL + 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1332
SELECT - COUNT( DISTINCT - 33 ) * + + 34 * - 72 * - 85 AS col2
----
-208080

skipif mysql # not compatible
query I rowsort label-1332
SELECT - COUNT ( DISTINCT - 33 ) * + + 34 * - 72 * - 85 AS col2
----
-208080

query I rowsort
SELECT ( + 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1334
SELECT - COUNT( ALL + - COALESCE ( + CAST( NULL AS SIGNED ), + + 92 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1334
SELECT - COUNT ( ALL + - COALESCE ( + CAST ( NULL AS INTEGER ), + + 92 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT + - 35 * - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-1335
SELECT + - 35 * - COUNT ( * ) AS col1
----
35

query II rowsort
SELECT DISTINCT - 75, - 25 AS col2
----
-75
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - COUNT( ALL 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - COUNT ( ALL 82 ) AS col0
----
-1

query I rowsort
SELECT ALL - ( 23 ) AS col2
----
-23

query I rowsort
SELECT 82 - + 78
----
4

query I rowsort
SELECT ALL - - 96
----
96

query I rowsort
SELECT - 84 * - + ( + 30 )
----
2520

query I rowsort
SELECT - 51 AS col0
----
-51

query I rowsort
SELECT - - 28 AS col2
----
28

query I rowsort
SELECT DISTINCT + 2 col1
----
2

query I rowsort
SELECT DISTINCT - ( + 75 ) * - 24
----
1800

query I rowsort
SELECT ALL 66 + + 48
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT - MAX( - - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1347
SELECT - MAX ( - - 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT + MAX( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-1348
SELECT + MAX ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT + MAX( - - 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + MAX ( - - 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1350
SELECT + + ( + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT + - 63
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT + 7 AS col2, - COUNT( * ) AS col0
----
7
-1

skipif mysql # not compatible
query II rowsort label-1352
SELECT + 7 AS col2, - COUNT ( * ) AS col0
----
7
-1

query I rowsort
SELECT + + 97 AS col0
----
97

query I rowsort
SELECT DISTINCT 54 * + + 89 AS col0
----
4806

onlyif mysql # DIV for integer division: 
query I rowsort label-1355
SELECT + 29 DIV + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1355
SELECT + 29 / + 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1356
SELECT ALL + 68, - COUNT( * ) AS col0
----
68
-1

skipif mysql # not compatible
query II rowsort label-1356
SELECT ALL + 68, - COUNT ( * ) AS col0
----
68
-1

query I rowsort
SELECT DISTINCT + 34 * - - 46 AS col2
----
1564

query I rowsort
SELECT ALL + + 81 AS col2
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT DISTINCT + 84 DIV - 40 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + 84 / - 40 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1360
SELECT ALL CAST( + ( + 20 ) AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-1360
SELECT ALL CAST ( + ( + 20 ) AS INTEGER )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1361
SELECT DISTINCT + 21 + - COUNT( * ) col1
----
20

skipif mysql # not compatible
query I rowsort label-1361
SELECT DISTINCT + 21 + - COUNT ( * ) col1
----
20

query II rowsort
SELECT 95 * + 72 AS col0, 11 AS col2
----
6840
11

query I rowsort
SELECT DISTINCT - + 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT + COUNT( * ) * - 29
----
-29

skipif mysql # not compatible
query I rowsort label-1364
SELECT + COUNT ( * ) * - 29
----
-29

query I rowsort
SELECT DISTINCT - 69 AS col0
----
-69

query I rowsort
SELECT 20 - 65 AS col0
----
-45

query I rowsort
SELECT ALL + ( 62 ) * + 33
----
2046

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1368
SELECT CAST( NULL AS DECIMAL ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT CAST ( NULL AS REAL ) * + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL ( 50 ) + + + 50
----
100

query I rowsort
SELECT DISTINCT - 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT COUNT( * ) + - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-1371
SELECT COUNT ( * ) + - + 15
----
-14

query I rowsort
SELECT 76 AS col1
----
76

query I rowsort
SELECT 49 + - + 29 col1
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1374
SELECT DISTINCT + + NULLIF ( - 30, + + ( - + CAST( NULL AS DECIMAL ) ) )
----
-30

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + + NULLIF ( - 30, + + ( - + CAST ( NULL AS REAL ) ) )
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-1375
SELECT - 92, COUNT( * ) + + - ( - 10 ) AS col0
----
-92
11

skipif mysql # not compatible
query II rowsort label-1375
SELECT - 92, COUNT ( * ) + + - ( - 10 ) AS col0
----
-92
11

query I rowsort
SELECT ALL - 22 col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT + - MAX( ALL - 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-1377
SELECT + - MAX ( ALL - 86 ) AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT CAST( + - AVG ( 34 ) AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-1378
SELECT CAST ( + - AVG ( 34 ) AS INTEGER )
----
-34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1379
SELECT + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1380
SELECT CAST( NULL AS SIGNED ) AS col0, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-1380
SELECT CAST ( NULL AS INTEGER ) AS col0, + 45
----
NULL
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1381
SELECT DISTINCT - ( CAST( - 56 AS SIGNED ) )
----
56

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT - ( CAST ( - 56 AS INTEGER ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT COUNT( * ) * - 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1382
SELECT COUNT ( * ) * - 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT 90 * MAX( DISTINCT - 63 )
----
-5670

skipif mysql # not compatible
query I rowsort label-1383
SELECT 90 * MAX ( DISTINCT - 63 )
----
-5670

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1384
SELECT COUNT ( * ) * - COUNT ( * )
----
-1

query I rowsort
SELECT 87 AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1386
SELECT DISTINCT ( - COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT DISTINCT ( - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 45 - - + 5
----
50

query I rowsort
SELECT ALL - 16 col1
----
-16

query I rowsort
SELECT ALL - 35
----
-35

query II rowsort
SELECT ALL + 14 + - 75, 56 AS col2
----
-61
56

query I rowsort
SELECT ALL + - 63 * - 26 AS col0
----
1638

query I rowsort
SELECT ALL - 18 + + - 79 * + 65
----
-5153

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT ALL - 16 DIV + - 4
----
4

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL - 16 / + - 4
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1394
SELECT DISTINCT CAST( + 31 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT CAST ( + 31 AS INTEGER ) AS col1
----
31

query I rowsort
SELECT DISTINCT + 12
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1396
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + ( - + 87 ) AS col2
----
-87

query I rowsort
SELECT ALL 82 - - - 69
----
13

query I rowsort
SELECT DISTINCT 21 col2
----
21

query I rowsort
SELECT 54 col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1401
SELECT CAST( + 27 AS SIGNED ) col2
----
27

skipif mysql # not compatible
query I rowsort label-1401
SELECT CAST ( + 27 AS INTEGER ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT 29 * + + MAX( ALL 37 )
----
1073

skipif mysql # not compatible
query I rowsort label-1402
SELECT 29 * + + MAX ( ALL 37 )
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-1403
SELECT SUM( ALL + 3 ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-1403
SELECT SUM ( ALL + 3 ) + COUNT ( * )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1404
SELECT COUNT( ALL - + CAST( ( - 80 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1404
SELECT COUNT ( ALL - + CAST ( ( - 80 ) AS INTEGER ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1405
SELECT DISTINCT 46 * - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT DISTINCT 46 * - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT + COUNT( 80 )
----
1

skipif mysql # not compatible
query I rowsort label-1406
SELECT + COUNT ( 80 )
----
1

query I rowsort
SELECT DISTINCT - 90 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT COUNT( * ) * + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1408
SELECT COUNT ( * ) * + 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1409
SELECT + 22 col0, + 31 + COUNT( * )
----
22
32

skipif mysql # not compatible
query II rowsort label-1409
SELECT + 22 col0, + 31 + COUNT ( * )
----
22
32

query I rowsort
SELECT ALL + - 71 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT ALL + 29 * - 53 + - COUNT( * ) col0
----
-1538

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL + 29 * - 53 + - COUNT ( * ) col0
----
-1538

query I rowsort
SELECT ALL + 99 * 96
----
9504

query I rowsort
SELECT ALL ( + 98 ) AS col2
----
98

query I rowsort
SELECT ALL - - 19 AS col0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1415
SELECT ALL - 52 AS col0, COUNT( * ) AS col0
----
-52
1

skipif mysql # not compatible
query II rowsort label-1415
SELECT ALL - 52 AS col0, COUNT ( * ) AS col0
----
-52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL - 40 + - - COUNT( * ) * - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL - 40 + - - COUNT ( * ) * - COUNT ( * )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT DISTINCT - 23 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT - 23 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1418
SELECT DISTINCT 87 * 5 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT 87 * 5 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 91 AS col0
----
91

query I rowsort
SELECT + 43 - - 88 AS col0
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT ALL + - ( 60 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL + - ( 60 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL - + MIN( 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - + MIN ( 71 )
----
-71

query I rowsort
SELECT - - 54 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL COUNT( ALL - 11 ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL COUNT ( ALL - 11 ) + + 19
----
20

query I rowsort
SELECT - - 10 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT - COUNT( * ) * - 45
----
45

skipif mysql # not compatible
query I rowsort label-1426
SELECT - COUNT ( * ) * - 45
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT ALL + 5 DIV + - 59
----
0

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + 5 / + - 59
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1428
SELECT 83, - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
83
-1

skipif mysql # not compatible
query II rowsort label-1428
SELECT 83, - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
83
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT ALL COUNT( * ) + + 8 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL COUNT ( * ) + + 8 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT CAST( + - 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-1430
SELECT CAST ( + - 19 AS INTEGER )
----
-19

query I rowsort
SELECT - - ( 24 ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1432
SELECT ALL + CAST( NULL AS SIGNED ) * - - MIN( ALL - ( + ( + 76 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL + CAST ( NULL AS INTEGER ) * - - MIN ( ALL - ( + ( + 76 ) ) )
----
NULL

query I rowsort
SELECT DISTINCT + 41 AS col0
----
41

query I rowsort
SELECT DISTINCT 19 col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-1435
SELECT 39 * - COUNT( * ) AS col0, 49 AS col0
----
-39
49

skipif mysql # not compatible
query II rowsort label-1435
SELECT 39 * - COUNT ( * ) AS col0, 49 AS col0
----
-39
49

query I rowsort
SELECT ALL - - 2
----
2

query I rowsort
SELECT DISTINCT - + ( 55 ) AS col0
----
-55

query II rowsort
SELECT 21, 23 + - + 7 AS col0
----
21
16

query I rowsort
SELECT ALL - 88 AS col2
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1440
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT CAST ( NULL AS REAL ) + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT 52 + - + COUNT( * ) + + - 46 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-1441
SELECT 52 + - + COUNT ( * ) + + - 46 AS col0
----
5

query I rowsort
SELECT 77 * 17
----
1309

query I rowsort
SELECT ALL + - ( 10 ) - 71
----
-81

query I rowsort
SELECT DISTINCT + - 55 * - 87 AS col1
----
4785

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT - 88 AS col0, + SUM( - - 13 ) * + ( + 19 ) * COUNT( * ) AS col2
----
-88
247

skipif mysql # not compatible
query II rowsort label-1445
SELECT - 88 AS col0, + SUM ( - - 13 ) * + ( + 19 ) * COUNT ( * ) AS col2
----
-88
247

onlyif mysql # aggregate syntax: 
query II rowsort label-1446
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-1446
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col0
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1447
SELECT ALL - 6 * - - 6 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL - 6 * - - 6 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT DISTINCT + - MAX( DISTINCT 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-1448
SELECT DISTINCT + - MAX ( DISTINCT 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL + COALESCE ( COUNT( * ), - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL + COALESCE ( COUNT ( * ), - 46 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT DISTINCT - MIN( - 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT - MIN ( - 38 ) col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT - SUM( - 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-1451
SELECT - SUM ( - 69 ) AS col2
----
69

query I rowsort
SELECT - - 71 AS col0
----
71

query I rowsort
SELECT DISTINCT ( + - 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL + MAX( DISTINCT 49 ) + + 69 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL + MAX ( DISTINCT 49 ) + + 69 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT + MAX( DISTINCT - 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-1455
SELECT + MAX ( DISTINCT - 40 ) AS col0
----
-40

query I rowsort
SELECT ( + 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL - COUNT( * ) * - COUNT( * ) - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ) AS col1
----
2

query I rowsort
SELECT + ( 49 )
----
49

query I rowsort
SELECT ( + + 93 )
----
93

query I rowsort
SELECT + ( + 95 )
----
95

query I rowsort
SELECT ALL + + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT + COUNT( * ) + + + 50
----
51

skipif mysql # not compatible
query I rowsort label-1462
SELECT + COUNT ( * ) + + + 50
----
51

query I rowsort
SELECT ALL 61 col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1464
SELECT ALL + CAST( NULL AS SIGNED ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL + CAST ( NULL AS INTEGER ) * - 53
----
NULL

query I rowsort
SELECT 62 + + 50
----
112

query I rowsort
SELECT DISTINCT - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1467
SELECT DISTINCT - - 12 col2, COUNT( * ) col1
----
12
1

skipif mysql # not compatible
query II rowsort label-1467
SELECT DISTINCT - - 12 col2, COUNT ( * ) col1
----
12
1

query I rowsort
SELECT ALL - 11 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1469
SELECT DISTINCT 84 + + + CAST( NULL AS SIGNED ) * CAST( - - 15 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT 84 + + + CAST ( NULL AS INTEGER ) * CAST ( - - 15 AS INTEGER )
----
NULL

query II rowsort
SELECT - 51 AS col0, 31 AS col0
----
-51
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL - COUNT( * ) + - 46 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL - COUNT ( * ) + - 46 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT + 82 + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-1472
SELECT + 82 + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1473
SELECT + 99 DIV COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1473
SELECT + 99 / COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT + ( + SUM( - 91 ) ) * 92 col2
----
-8372

skipif mysql # not compatible
query I rowsort label-1474
SELECT + ( + SUM ( - 91 ) ) * 92 col2
----
-8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1475
SELECT ALL + + CAST( - - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + + CAST ( - - 51 AS INTEGER )
----
51

query I rowsort
SELECT - 86 + - 69 AS col1
----
-155

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1477
SELECT ALL - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL - CAST ( NULL AS REAL ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT + + 60 col1
----
60

query I rowsort
SELECT ( - 61 ) AS col0
----
-61

query I rowsort
SELECT ALL 35 * - 61
----
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT DISTINCT - + NULLIF ( - + COUNT( DISTINCT - 89 ), + 81 )
----
1

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT - + NULLIF ( - + COUNT ( DISTINCT - 89 ), + 81 )
----
1

query I rowsort
SELECT DISTINCT - + 97 col2
----
-97

query I rowsort
SELECT DISTINCT - 77 * + + ( - 63 ) AS col1
----
4851

query I rowsort
SELECT ALL - 69 - 92 AS col2
----
-161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1485
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 73 col0
----
73

query I rowsort
SELECT DISTINCT 76 + - 66
----
10

query I rowsort
SELECT 67 - 21
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT - SUM( ALL NULLIF ( - 44, 81 ) )
----
44

skipif mysql # not compatible
query I rowsort label-1489
SELECT - SUM ( ALL NULLIF ( - 44, 81 ) )
----
44

query I rowsort
SELECT - 53 * - 19 AS col1
----
1007

query I rowsort
SELECT - ( + 31 )
----
-31

query I rowsort
SELECT ALL ( - + 95 )
----
-95

query I rowsort
SELECT - - 12 col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1494
SELECT + + 31 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT + + 31 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 64 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT + - 4 * COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1496
SELECT + - 4 * COUNT ( * ) AS col1
----
-4

query I rowsort
SELECT + ( + 26 )
----
26

query I rowsort
SELECT ( + - 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT ALL + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL + ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT ALL - + 85 * - + COUNT( ALL - 11 ) * - 56
----
-4760

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - + 85 * - + COUNT ( ALL - 11 ) * - 56
----
-4760

query I rowsort
SELECT DISTINCT - 4 col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1502
SELECT ALL + 3 * + 64 * + + 37 DIV - COUNT( * )
----
-7104

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL + 3 * + 64 * + + 37 / - COUNT ( * )
----
-7104

query I rowsort
SELECT DISTINCT - 19 AS col0
----
-19

query I rowsort
SELECT 75 col2
----
75

query I rowsort
SELECT + 69 AS col2
----
69

query I rowsort
SELECT + 72 AS col1
----
72

query I rowsort
SELECT 13 AS col0
----
13

query I rowsort
SELECT ALL - 51 AS col1
----
-51

query I rowsort
SELECT + + 88 AS col1
----
88

query II rowsort
SELECT ALL - 68 * + 50, 81 col0
----
-3400
81

query I rowsort
SELECT - 93 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + COUNT( 20 )
----
1

skipif mysql # not compatible
query I rowsort label-1512
SELECT + COUNT ( 20 )
----
1

query I rowsort
SELECT ALL + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT DISTINCT + MIN( ALL - - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT + MIN ( ALL - - 18 )
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT - 78 DIV - 77 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1515
SELECT - 78 / - 77 AS col0
----
1

query I rowsort
SELECT ALL - ( + 45 ) AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1517
SELECT ALL - 49 - + CAST( - 3 AS SIGNED ) + 90
----
44

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL - 49 - + CAST ( - 3 AS INTEGER ) + 90
----
44

query I rowsort
SELECT ALL + 56 * 82 - 40
----
4552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1519
SELECT - CAST( - + 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-1519
SELECT - CAST ( - + 6 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT DISTINCT + COUNT( * ) + - 75
----
-74

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT + COUNT ( * ) + - 75
----
-74

query I rowsort
SELECT ALL - 50
----
-50

query I rowsort
SELECT ALL - 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT + + MIN( + + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-1523
SELECT + + MIN ( + + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT ALL - + COUNT( - - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-1524
SELECT ALL - + COUNT ( - - 18 )
----
-1

query I rowsort
SELECT ALL - - 41
----
41

query I rowsort
SELECT ALL - + 7 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1527
SELECT ALL + - CAST( NULL AS SIGNED ), - 17 AS col2
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-1527
SELECT ALL + - CAST ( NULL AS INTEGER ), - 17 AS col2
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - COUNT( * ) + - 20 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1528
SELECT - COUNT ( * ) + - 20 AS col2
----
-21

query I rowsort
SELECT - 10 AS col0
----
-10

query I rowsort
SELECT ALL 86 col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1531
SELECT + MIN( + + CAST( NULL AS SIGNED ) ) - + - CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT + MIN ( + + CAST ( NULL AS INTEGER ) ) - + - CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + - 7 AS col2
----
-7

query II rowsort
SELECT DISTINCT + 29 AS col2, 34
----
29
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT - MAX( - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-1534
SELECT - MAX ( - 47 )
----
47

query I rowsort
SELECT DISTINCT ( - - 40 )
----
40

query I rowsort
SELECT DISTINCT ( + NULLIF ( - - 71, 61 ) ) AS col1
----
71

query I rowsort
SELECT + 75 - + 83
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1538
SELECT - 63 DIV - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1538
SELECT - 63 / - COUNT ( * ) AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1539
SELECT + - 78 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT + - 78 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT - COUNT( + - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-1540
SELECT - COUNT ( + - 63 )
----
-1

query I rowsort
SELECT DISTINCT - 71 AS col1
----
-71

query I rowsort
SELECT ALL - + 26 col0
----
-26

query I rowsort
SELECT DISTINCT - 43 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT ALL COUNT( * ) - - 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL COUNT ( * ) - - 80 AS col1
----
81

query I rowsort
SELECT ALL ( - 18 ) AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1546
SELECT 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1546
SELECT 58 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT ALL MAX( + 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-1547
SELECT ALL MAX ( + 80 ) col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL - + COUNT( * ) + - 45 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL - + COUNT ( * ) + - 45 AS col0
----
-46

query I rowsort
SELECT ALL 19 + - + 19
----
0

query I rowsort
SELECT DISTINCT - 92 AS col0
----
-92

query I rowsort
SELECT DISTINCT 34 col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT - NULLIF ( + - 2, - COUNT( * ) + 31 )
----
2

skipif mysql # not compatible
query I rowsort label-1552
SELECT - NULLIF ( + - 2, - COUNT ( * ) + 31 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT - COUNT( * ) * + 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1553
SELECT - COUNT ( * ) * + 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT ALL - COUNT( * ) * + + 43 - - 6 col1
----
-37

skipif mysql # not compatible
query I rowsort label-1554
SELECT ALL - COUNT ( * ) * + + 43 - - 6 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT + COUNT( ALL + 49 ) * - 33 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT + COUNT ( ALL + 49 ) * - 33 AS col2
----
-33

query I rowsort
SELECT DISTINCT + 72 AS col0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT + 33 DIV 16 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1557
SELECT + 33 / 16 AS col0
----
2

query I rowsort
SELECT - + 5 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1559
SELECT ALL - ( 46 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL - ( 46 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 20 col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT - - ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1561
SELECT - - ( - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT ALL - COUNT( * ) * + + 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL - COUNT ( * ) * + + 12 AS col1
----
-12

query I rowsort
SELECT DISTINCT - 25 AS col2
----
-25

query II rowsort
SELECT + 37 + - + 43 AS col2, + 90
----
-6
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT - SUM( ALL - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-1565
SELECT - SUM ( ALL - 39 )
----
39

query I rowsort
SELECT DISTINCT - 63 col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT DISTINCT + CAST( - 74 AS SIGNED ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT + CAST ( - 74 AS INTEGER ) AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT - MIN( ALL 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-1568
SELECT - MIN ( ALL 58 )
----
-58

query I rowsort
SELECT DISTINCT 9 AS col0
----
9

query I rowsort
SELECT ALL - 79 * + 38
----
-3002

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT SUM( 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1571
SELECT SUM ( 19 ) AS col2
----
19

query I rowsort
SELECT + 81 * - ( - 63 )
----
5103

query I rowsort
SELECT ALL + - 75 AS col1
----
-75

query I rowsort
SELECT ALL + + ( 40 )
----
40

query I rowsort
SELECT - + 77 AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1576
SELECT ALL + CAST( NULL AS SIGNED ) + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL + CAST ( NULL AS INTEGER ) + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + COUNT( + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-1577
SELECT + COUNT ( + 18 )
----
1

query I rowsort
SELECT ALL + 0 AS col1
----
0

query I rowsort
SELECT - 82 col1
----
-82

query I rowsort
SELECT - - 66 AS col0
----
66

query I rowsort
SELECT ALL - 44 + 25
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1582
SELECT DISTINCT - CAST( + 79 AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-1582
SELECT DISTINCT - CAST ( + 79 AS INTEGER ) AS col0
----
-79

query I rowsort
SELECT ALL - + 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT ( + 70 ) + + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-1584
SELECT ( + 70 ) + + COUNT ( * ) AS col2
----
71

query I rowsort
SELECT ALL - 22 * - 17 col0
----
374

query I rowsort
SELECT DISTINCT - - 12 col1
----
12

query I rowsort
SELECT DISTINCT - - 86
----
86

query I rowsort
SELECT DISTINCT - + 53 AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1589
SELECT 29 * CAST( NULL AS DECIMAL ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1589
SELECT 29 * CAST ( NULL AS REAL ) * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT - 33 + + 27 AS col2
----
-6

query I rowsort
SELECT ALL 46 * 69
----
3174

query I rowsort
SELECT 72 col0
----
72

query II rowsort
SELECT + 84, 99 col2
----
84
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1594
SELECT ALL + COUNT( * ) col2, 84
----
1
84

skipif mysql # not compatible
query II rowsort label-1594
SELECT ALL + COUNT ( * ) col2, 84
----
1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1595
SELECT - COALESCE ( + + 30, ( - 70 ), + CAST( NULL AS SIGNED ) ) + - COUNT( - 35 ) * + 55 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1595
SELECT - COALESCE ( + + 30, ( - 70 ), + CAST ( NULL AS INTEGER ) ) + - COUNT ( - 35 ) * + 55 AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1596
SELECT DISTINCT - COUNT( * ) DIV 39 col1
----
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT - COUNT ( * ) / 39 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT - ( + 72 ) * - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-1597
SELECT - ( + 72 ) * - COUNT ( * )
----
72

query I rowsort
SELECT ALL 33 + 58
----
91

query I rowsort
SELECT + 79 col0
----
79

query I rowsort
SELECT ( - ( + + 81 ) )
----
-81

query I rowsort
SELECT 69 * 27 AS col0
----
1863

query I rowsort
SELECT ( - 59 ) * - ( - 85 ) AS col2
----
-5015

query I rowsort
SELECT DISTINCT - 36 AS col1
----
-36

query I rowsort
SELECT ALL + ( - ( 73 ) )
----
-73

query I rowsort
SELECT DISTINCT - ( + 46 ) AS col1
----
-46

query I rowsort
SELECT ALL - + 74 * 77 AS col1
----
-5698

query I rowsort
SELECT DISTINCT - + 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1608
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 58 + - 33
----
25

query I rowsort
SELECT ALL 69 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT - ( + + MIN( + 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-1611
SELECT - ( + + MIN ( + 17 ) )
----
-17

query I rowsort
SELECT ALL + + 4
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT ALL COUNT( * ) * - 17 + 97
----
80

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL COUNT ( * ) * - 17 + 97
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT COUNT( * ) - COUNT( * ) * + 46 + 70 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * + 46 + 70 AS col0
----
25

query I rowsort
SELECT - + 21 col1
----
-21

query I rowsort
SELECT DISTINCT - ( 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1617
SELECT - + CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1617
SELECT - + CAST ( + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT + 29 col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT - COUNT( * ) + 85 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1619
SELECT - COUNT ( * ) + 85 AS col1
----
84

query I rowsort
SELECT ( 21 ) AS col0
----
21

query I rowsort
SELECT ( - 16 ) AS col1
----
-16

query I rowsort
SELECT DISTINCT + 80 AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT - NULLIF ( COUNT( * ), MAX( DISTINCT + 40 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1623
SELECT - NULLIF ( COUNT ( * ), MAX ( DISTINCT + 40 ) )
----
-1

query I rowsort
SELECT DISTINCT - 52 col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1625
SELECT ALL - MAX( CAST( 18 AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL - MAX ( CAST ( 18 AS INTEGER ) )
----
-18

query I rowsort
SELECT + - 94 AS col1
----
-94

query I rowsort
SELECT 27 * + + 52 AS col0
----
1404

onlyif mysql # aggregate syntax: 
query II rowsort label-1628
SELECT - - 76 AS col2, + COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-1628
SELECT - - 76 AS col2, + COUNT ( * )
----
76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT - COUNT( * ) * SUM( - - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1629
SELECT - COUNT ( * ) * SUM ( - - 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1630
SELECT COUNT( * ) DIV - 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1630
SELECT COUNT ( * ) / - 3 AS col2
----
0

query I rowsort
SELECT ALL + 29 AS col1
----
29

query I rowsort
SELECT ALL + 55 AS col0
----
55

query I rowsort
SELECT DISTINCT 34 col1
----
34

query I rowsort
SELECT - - 88
----
88

query I rowsort
SELECT - + 76 * ( 16 )
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT + 28 * COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-1636
SELECT + 28 * COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT + 10 + - - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-1637
SELECT + 10 + - - COUNT ( * )
----
11

query I rowsort
SELECT + ( + 47 ) AS col2
----
47

query I rowsort
SELECT + - 8 col1
----
-8

query II rowsort
SELECT + - 57 col0, 28
----
-57
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1641
SELECT ALL COUNT( ALL - - 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL COUNT ( ALL - - 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT - + 30 + + 31 * - COUNT( ALL + ( + 24 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-1642
SELECT - + 30 + + 31 * - COUNT ( ALL + ( + 24 ) )
----
-61

query I rowsort
SELECT ALL - + 93
----
-93

query I rowsort
SELECT DISTINCT - + 77
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1645
SELECT ALL - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1646
SELECT - 69 + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1646
SELECT - 69 + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1647
SELECT CAST( NULL AS SIGNED ) * - - 20 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT CAST ( NULL AS INTEGER ) * - - 20 + + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1648
SELECT MIN( + - 56 ) DIV 10
----
-5

skipif mysql # not compatible
query I rowsort label-1648
SELECT MIN ( + - 56 ) / 10
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT - MAX( 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1649
SELECT - MAX ( 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT DISTINCT - COUNT( * ) + - + 57 + + - 1
----
-59

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT - COUNT ( * ) + - + 57 + + - 1
----
-59

query I rowsort
SELECT + ( - + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT 3 * MAX( 19 ) col1
----
57

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT 3 * MAX ( 19 ) col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL - - 94 * - COUNT( ALL - 80 )
----
-94

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL - - 94 * - COUNT ( ALL - 80 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT + MIN( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-1654
SELECT + MIN ( - 61 )
----
-61

query I rowsort
SELECT DISTINCT + - 87 AS col0
----
-87

query I rowsort
SELECT + - 26 AS col2
----
-26

query I rowsort
SELECT ALL + + 28
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1658
SELECT ALL - SUM( - CAST( NULL AS SIGNED ) ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL - SUM ( - CAST ( NULL AS INTEGER ) ) * + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT DISTINCT COUNT( * ) * - 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT COUNT ( * ) * - 87 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL MIN( DISTINCT - 95 ) - - 68 * - 11
----
-843

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL MIN ( DISTINCT - 95 ) - - 68 * - 11
----
-843

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL MIN( DISTINCT 88 ) col1
----
88

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL MIN ( DISTINCT 88 ) col1
----
88

query II rowsort
SELECT - 65, 32 AS col2
----
-65
32

query I rowsort
SELECT - 26 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT - COUNT( * ) * + 75
----
-75

skipif mysql # not compatible
query I rowsort label-1664
SELECT - COUNT ( * ) * + 75
----
-75

query I rowsort
SELECT ALL + ( - 75 ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT COALESCE ( - 85, COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-1666
SELECT COALESCE ( - 85, COUNT ( * ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + SUM( 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-1667
SELECT + SUM ( 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1668
SELECT - ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1668
SELECT - ( + - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL + 37 col0
----
37

query I rowsort
SELECT - + 26 AS col1
----
-26

query I rowsort
SELECT DISTINCT + 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT + MAX( DISTINCT + 28 ) * - - MAX( DISTINCT 81 )
----
2268

skipif mysql # not compatible
query I rowsort label-1672
SELECT + MAX ( DISTINCT + 28 ) * - - MAX ( DISTINCT 81 )
----
2268

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1673
SELECT DISTINCT + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 6 AS col0, 16
----
6
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT DISTINCT + NULLIF ( + - 3, COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + NULLIF ( + - 3, COUNT ( * ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1676
SELECT ALL + CAST( + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-1676
SELECT ALL + CAST ( + 86 AS INTEGER )
----
86

query I rowsort
SELECT - - 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL - 34 * COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL - 34 * COUNT ( * )
----
-34

query I rowsort
SELECT DISTINCT - ( + - 89 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT DISTINCT - - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 94 AS col2
----
94

query I rowsort
SELECT DISTINCT - 61 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1683
SELECT DISTINCT COUNT( * ) AS col2, 81
----
1
81

skipif mysql # not compatible
query II rowsort label-1683
SELECT DISTINCT COUNT ( * ) AS col2, 81
----
1
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT COUNT( ALL 56 )
----
1

skipif mysql # not compatible
query I rowsort label-1684
SELECT COUNT ( ALL 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT + SUM( + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1685
SELECT + SUM ( + 34 ) AS col1
----
34

query I rowsort
SELECT DISTINCT ( + + 54 )
----
54

query II rowsort
SELECT DISTINCT 55 AS col1, 15 AS col1
----
55
15

query I rowsort
SELECT - 58 + - 41 AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1689
SELECT + ( 38 ) + + MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT + ( 38 ) + + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT ALL COUNT( * ) DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL COUNT ( * ) / + 26
----
0

query I rowsort
SELECT + 14 * - 15 AS col2
----
-210

query I rowsort
SELECT ALL + + 75 col0
----
75

query I rowsort
SELECT ALL + + 16 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT ALL + - 46 * + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + - 46 * + - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1695
SELECT + 49 DIV + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-1695
SELECT + 49 / + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT - + 29 * + 85 AS col2
----
-2465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1697
SELECT ALL CAST( - + 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL CAST ( - + 28 AS INTEGER )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT - 99 + + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1698
SELECT - 99 + + COUNT ( * ) AS col1
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1699
SELECT ALL - + CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL - + 16 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT COUNT( * ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1701
SELECT COUNT ( * ) + - - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT 56 + + - 53 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT - 28 * + COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-1703
SELECT - 28 * + COUNT ( * ) AS col1
----
-28

query I rowsort
SELECT ALL - + 20 AS col0
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1705
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT + COUNT( * ) AS col1, - 29
----
1
-29

skipif mysql # not compatible
query II rowsort label-1706
SELECT + COUNT ( * ) AS col1, - 29
----
1
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1707
SELECT + COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1707
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL MIN( - 84 ) - 7
----
-91

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL MIN ( - 84 ) - 7
----
-91

query I rowsort
SELECT 58 col0
----
58

query I rowsort
SELECT ALL 33 col0
----
33

query I rowsort
SELECT 74 AS col2
----
74

query I rowsort
SELECT ALL 1 AS col0
----
1

query I rowsort
SELECT ALL 10 col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL COUNT( ALL 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL COUNT ( ALL 90 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - 27 AS col1
----
-27

query I rowsort
SELECT ALL 88 col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1717
SELECT - CAST( - COUNT( 88 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1717
SELECT - CAST ( - COUNT ( 88 ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ALL + + 54
----
54

query I rowsort
SELECT ALL + - 34
----
-34

query I rowsort
SELECT DISTINCT + 17 AS col1
----
17

query I rowsort
SELECT ALL + 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT - 57 * + 72 * + 83 * + COUNT( * ) AS col0
----
-340632

skipif mysql # not compatible
query I rowsort label-1722
SELECT - 57 * + 72 * + 83 * + COUNT ( * ) AS col0
----
-340632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT ALL ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - SUM( ALL + - 15 ) * + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1724
SELECT - SUM ( ALL + - 15 ) * + COUNT ( * ) AS col0
----
15

query I rowsort
SELECT DISTINCT + 0 * - 9 col1
----
0

query I rowsort
SELECT ALL 11 col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-1727
SELECT + 49 DIV - + 5 DIV + 1
----
-9

skipif mysql # not compatible
query I rowsort label-1727
SELECT + 49 / - + 5 / + 1
----
-9

query I rowsort
SELECT ALL + - 19
----
-19

query I rowsort
SELECT 20 * + 80
----
1600

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT 10 DIV + - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT 10 / + - 48 AS col2
----
0

query I rowsort
SELECT ALL + 51 * - 25
----
-1275

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1732
SELECT CAST( NULL AS DECIMAL ) + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1732
SELECT CAST ( NULL AS REAL ) + - + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - + 15 AS col1
----
-15

query I rowsort
SELECT + ( + 37 ) AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1735
SELECT ALL - 84 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1735
SELECT ALL - 84 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 1 * 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ( COUNT( * ) ) + + MIN( 30 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1737
SELECT ( COUNT ( * ) ) + + MIN ( 30 ) AS col0
----
31

query I rowsort
SELECT ALL 68 + - + ( - 96 )
----
164

query I rowsort
SELECT - 52 col1
----
-52

query I rowsort
SELECT - - 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT DISTINCT - + MAX( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT - + MAX ( 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT + MAX( ALL + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-1742
SELECT + MAX ( ALL + 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT COALESCE ( + + MAX( ALL + - ( ( - 36 ) ) ), - 0 )
----
36

skipif mysql # not compatible
query I rowsort label-1743
SELECT COALESCE ( + + MAX ( ALL + - ( ( - 36 ) ) ), - 0 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1744
SELECT DISTINCT + ( + CAST( + - 54 AS SIGNED ) )
----
-54

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT + ( + CAST ( + - 54 AS INTEGER ) )
----
-54

query I rowsort
SELECT ALL + 74 col0
----
74

query I rowsort
SELECT ALL 70 AS col0
----
70

query I rowsort
SELECT ALL + 1 * + - 78 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT - - MIN( - - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-1748
SELECT - - MIN ( - - 98 )
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1749
SELECT ALL + COUNT( * ) DIV - COUNT( * ) + + 58 col1
----
57

skipif mysql # not compatible
query I rowsort label-1749
SELECT ALL + COUNT ( * ) / - COUNT ( * ) + + 58 col1
----
57

query I rowsort
SELECT ( + - 99 )
----
-99

query I rowsort
SELECT - 21 + + - 74 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT DISTINCT + MAX( - - 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT + MAX ( - - 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT - 50 * + COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-1753
SELECT - 50 * + COUNT ( * ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT + 57 * + SUM( ALL 33 ) + + 35
----
1916

skipif mysql # not compatible
query I rowsort label-1754
SELECT + 57 * + SUM ( ALL 33 ) + + 35
----
1916

query I rowsort
SELECT ALL - 6 col2
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1756
SELECT - 41 * + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1756
SELECT - 41 * + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 98 col2
----
98

query I rowsort
SELECT ALL 52 + 61 col0
----
113

query I rowsort
SELECT 54 * 89
----
4806

query II rowsort
SELECT - 44 AS col1, + 97 AS col1
----
-44
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT CAST( NULL AS SIGNED ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1761
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * )
----
NULL

query I rowsort
SELECT - + 10
----
-10

query I rowsort
SELECT DISTINCT 79 AS col0
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1764
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT CAST ( NULL AS REAL ) * - 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT + + COUNT( DISTINCT - ( + - 78 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1765
SELECT + + COUNT ( DISTINCT - ( + - 78 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT - + 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL - + COUNT( * ) + + 95
----
94

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL - + COUNT ( * ) + + 95
----
94

query I rowsort
SELECT ALL ( 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT + 54 * - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-1769
SELECT + 54 * - COUNT ( * ) AS col2
----
-54

query I rowsort
SELECT + ( 14 ) col1
----
14

query I rowsort
SELECT ALL ( - 70 )
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT - 51 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1772
SELECT - 51 / 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT - NULLIF ( 61, + 28 ) + COUNT( * ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-1773
SELECT - NULLIF ( 61, + 28 ) + COUNT ( * ) col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT - 15 DIV ( - 23 )
----
0

skipif mysql # not compatible
query I rowsort label-1774
SELECT - 15 / ( - 23 )
----
0

query I rowsort
SELECT - 53 col2
----
-53

query I rowsort
SELECT + + ( 99 )
----
99

query I rowsort
SELECT ALL - - 80 AS col1
----
80

query I rowsort
SELECT - 85 * - 22 AS col2
----
1870

query I rowsort
SELECT + 60 * ( - 51 ) AS col1
----
-3060

query I rowsort
SELECT ALL - + 34 AS col2
----
-34

query I rowsort
SELECT + - 46 AS col1
----
-46

query I rowsort
SELECT 93 col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT 53 + 40 - + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1783
SELECT 53 + 40 - + COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT - - COUNT( * ), + 39 AS col2
----
1
39

skipif mysql # not compatible
query II rowsort label-1784
SELECT - - COUNT ( * ), + 39 AS col2
----
1
39

query I rowsort
SELECT ALL + 25 col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT MAX( DISTINCT - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-1786
SELECT MAX ( DISTINCT - 55 )
----
-55

query I rowsort
SELECT DISTINCT + + 39
----
39

query I rowsort
SELECT ALL + + 25
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT SUM( ALL - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1789
SELECT SUM ( ALL - 48 )
----
-48

query I rowsort
SELECT ALL 72 - + 7 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT + - 47 * - + 3 + + COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-1791
SELECT + - 47 * - + 3 + + COUNT ( * )
----
142

query I rowsort
SELECT DISTINCT + 27 AS col2
----
27

query II rowsort
SELECT ( - + ( + 22 ) ), 69 * ( 42 ) AS col1
----
-22
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT ( - COUNT( + 0 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1794
SELECT ( - COUNT ( + 0 ) )
----
-1

query I rowsort
SELECT - - 75 AS col2
----
75

query I rowsort
SELECT - + ( - 31 ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1797
SELECT ALL - - 42 DIV - 23
----
-1

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL - - 42 / - 23
----
-1

query I rowsort
SELECT DISTINCT - + 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1799
SELECT ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1800
SELECT ( + COUNT( * ) ) DIV 68 + + + 24 * + 52 AS col1
----
1248

skipif mysql # not compatible
query I rowsort label-1800
SELECT ( + COUNT ( * ) ) / 68 + + + 24 * + 52 AS col1
----
1248

query II rowsort
SELECT 3, 62 AS col2
----
3
62

query II rowsort
SELECT DISTINCT 93 AS col0, 78 AS col0
----
93
78

query I rowsort
SELECT ALL - 31 + - 90
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT ALL + COUNT( * ) * - 16 + + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL + COUNT ( * ) * - 16 + + COUNT ( * )
----
-15

query I rowsort
SELECT ALL + 53 AS col1
----
53

query I rowsort
SELECT ALL 66 col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT + COUNT( DISTINCT - - ( - 22 ) ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-1807
SELECT + COUNT ( DISTINCT - - ( - 22 ) ) * - 8
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT - 54 DIV + 34
----
-1

skipif mysql # not compatible
query I rowsort label-1808
SELECT - 54 / + 34
----
-1

query I rowsort
SELECT - - 80 + - 88 AS col2
----
-8

query I rowsort
SELECT ALL + ( - + 64 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1811
SELECT + - CAST( COUNT( + 84 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1811
SELECT + - CAST ( COUNT ( + 84 ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - MAX( DISTINCT - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1812
SELECT - MAX ( DISTINCT - 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT - COUNT( ALL + ( 98 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1813
SELECT - COUNT ( ALL + ( 98 ) ) AS col0
----
-1

query I rowsort
SELECT + - 95 + + 2 AS col0
----
-93

query I rowsort
SELECT - - 32 AS col1
----
32

query I rowsort
SELECT DISTINCT - 46
----
-46

query I rowsort
SELECT ALL - 59 AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1818
SELECT ALL - SUM( ALL + CAST( + 30 AS SIGNED ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL - SUM ( ALL + CAST ( + 30 AS INTEGER ) ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1819
SELECT + CAST( - + ( - 39 ) AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-1819
SELECT + CAST ( - + ( - 39 ) AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL 19 * ( + - COUNT( * ) ) + + 11
----
-8

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL 19 * ( + - COUNT ( * ) ) + + 11
----
-8

query I rowsort
SELECT DISTINCT + 52 AS col2
----
52

query I rowsort
SELECT ALL ( - 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1823
SELECT 8 * + - COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1823
SELECT 8 * + - COUNT ( * ) AS col1
----
-8

query I rowsort
SELECT DISTINCT 79 AS col1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT DISTINCT - COUNT( * ), + 91 AS col0
----
-1
91

skipif mysql # not compatible
query II rowsort label-1825
SELECT DISTINCT - COUNT ( * ), + 91 AS col0
----
-1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT COUNT( DISTINCT - - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-1826
SELECT COUNT ( DISTINCT - - 17 )
----
1

query I rowsort
SELECT + + 97 AS col2
----
97

query I rowsort
SELECT 89 * - - 72
----
6408

query I rowsort
SELECT ALL - 39 * 90
----
-3510

query I rowsort
SELECT DISTINCT + - 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT DISTINCT + MIN( ALL + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + MIN ( ALL + 1 )
----
1

query I rowsort
SELECT ALL + 12 * + ( 54 )
----
648

query II rowsort
SELECT - 66 col1, 53
----
-66
53

query I rowsort
SELECT - 39 + - + 79
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL - 67 + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL - 67 + + COUNT ( * )
----
-66

query I rowsort
SELECT + 26 + + + 21 + - - 78
----
125

query I rowsort
SELECT - ( - 43 )
----
43

query I rowsort
SELECT DISTINCT - + 17
----
-17

query I rowsort
SELECT 68 * + 86
----
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT 1 - - COUNT( * ) * COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1840
SELECT 1 - - COUNT ( * ) * COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT ALL - + 24 * + 88 + + COUNT( * ) AS col1
----
-2111

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL - + 24 * + 88 + + COUNT ( * ) AS col1
----
-2111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1842
SELECT - + NULLIF ( - MIN( - - CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED ) + - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1842
SELECT - + NULLIF ( - MIN ( - - CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1843
SELECT ALL - 54 AS col1, COUNT( * )
----
-54
1

skipif mysql # not compatible
query II rowsort label-1843
SELECT ALL - 54 AS col1, COUNT ( * )
----
-54
1

query I rowsort
SELECT 98 * - 64 AS col0
----
-6272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1845
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1845
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT ALL 62 DIV ( + - 2 )
----
-31

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL 62 / ( + - 2 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT - 28 + - SUM( DISTINCT - 68 )
----
40

skipif mysql # not compatible
query I rowsort label-1847
SELECT - 28 + - SUM ( DISTINCT - 68 )
----
40

query I rowsort
SELECT + - 92
----
-92

query I rowsort
SELECT DISTINCT + - 2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1850
SELECT - MAX( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT - MAX ( + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1851
SELECT + 97 DIV + + 14
----
6

skipif mysql # not compatible
query I rowsort label-1851
SELECT + 97 / + + 14
----
6

query I rowsort
SELECT 75 col0
----
75

query I rowsort
SELECT + 78 * + 78
----
6084

query I rowsort
SELECT - - 96
----
96

query I rowsort
SELECT ALL + 27 * 35
----
945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1856
SELECT DISTINCT + COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 91 * + 18 AS col1
----
-1638

query I rowsort
SELECT - 33 + 89 AS col2
----
56

query I rowsort
SELECT + 62 col1
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1860
SELECT DISTINCT + 96 AS col1, COUNT( * ) AS col0
----
96
1

skipif mysql # not compatible
query II rowsort label-1860
SELECT DISTINCT + 96 AS col1, COUNT ( * ) AS col0
----
96
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1861
SELECT + + 47 col0, CAST( NULL AS DECIMAL ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-1861
SELECT + + 47 col0, CAST ( NULL AS REAL ) AS col2
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL COUNT( * ) * - + 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL COUNT ( * ) * - + 50 AS col0
----
-50

query I rowsort
SELECT ALL - 7 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL + MAX( DISTINCT 28 ) + 22
----
50

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + MAX ( DISTINCT 28 ) + 22
----
50

query II rowsort
SELECT - - ( 84 ) AS col0, - 13 AS col2
----
84
-13

query I rowsort
SELECT DISTINCT - 18 col2
----
-18

query I rowsort
SELECT - + 59
----
-59

query I rowsort
SELECT ALL 48 AS col1
----
48

query I rowsort
SELECT - 13 - + + 6
----
-19

query I rowsort
SELECT DISTINCT - 26 AS col2
----
-26

query I rowsort
SELECT + 44 * + 9
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL + 55 * COUNT( * ) + ( - 49 )
----
6

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL + 55 * COUNT ( * ) + ( - 49 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT ALL COUNT( DISTINCT - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-1873
SELECT ALL COUNT ( DISTINCT - 90 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT ALL + 11 DIV - 82 + + 84
----
84

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL + 11 / - 82 + + 84
----
84

query I rowsort
SELECT DISTINCT + - 19
----
-19

query I rowsort
SELECT ALL - 24 * - 62
----
1488

query I rowsort
SELECT ALL + 81 col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT - 98 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT - 98 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - ( 50 )
----
-50

query I rowsort
SELECT ALL - + 51
----
-51

query II rowsort
SELECT - 44 AS col1, - 56
----
-44
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT ALL - ( - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1882
SELECT ALL - ( - - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + 86 col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT MAX( ALL + - ( 34 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-1884
SELECT MAX ( ALL + - ( 34 ) ) AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1885
SELECT DISTINCT - 37 AS col0, - CAST( NULL AS SIGNED )
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-1885
SELECT DISTINCT - 37 AS col0, - CAST ( NULL AS INTEGER )
----
-37
NULL

query I rowsort
SELECT + - 57 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT - MIN( - 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-1887
SELECT - MIN ( - 37 ) AS col1
----
37

query I rowsort
SELECT - 63 * - 41 * + 33 AS col0
----
85239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1889
SELECT + CAST( NULL AS SIGNED ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT + CAST ( NULL AS INTEGER ) + - 19
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1890
SELECT DISTINCT 25 DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT 25 / 30 AS col2
----
0

query I rowsort
SELECT + + 63 + 24 * + - 33
----
-729

query I rowsort
SELECT - 47 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT + SUM( ALL + + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-1893
SELECT + SUM ( ALL + + 52 )
----
52

query I rowsort
SELECT DISTINCT - + 47
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-1895
SELECT ALL - ( + 21 ) + + ( + 53 ) + 48, - COUNT( DISTINCT 1 ) AS col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-1895
SELECT ALL - ( + 21 ) + + ( + 53 ) + 48, - COUNT ( DISTINCT 1 ) AS col1
----
80
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT DISTINCT + COALESCE ( - CAST( - + 58 AS SIGNED ), - 44 ) + 19
----
77

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT + COALESCE ( - CAST ( - + 58 AS INTEGER ), - 44 ) + 19
----
77

query I rowsort
SELECT - 84 col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1898
SELECT ALL MAX( 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL MAX ( 78 ) AS col0
----
78

query I rowsort
SELECT ALL - 11 * + ( - - 61 ) AS col2
----
-671

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT + - COALESCE ( - COUNT( * ), - 62 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1900
SELECT + - COALESCE ( - COUNT ( * ), - 62 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 36 AS col2
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT ALL 54 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL 54 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 93 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT COUNT( * ) * COUNT( * ) + 57 + + - ( + COUNT( * ) ) + + + MAX( DISTINCT 10 ) * - ( 32 )
----
-263

skipif mysql # not compatible
query I rowsort label-1905
SELECT COUNT ( * ) * COUNT ( * ) + 57 + + - ( + COUNT ( * ) ) + + + MAX ( DISTINCT 10 ) * - ( 32 )
----
-263

query I rowsort
SELECT ALL 22 AS col2
----
22

query I rowsort
SELECT 89 col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1908
SELECT CAST( NULL AS SIGNED ) + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT CAST ( NULL AS INTEGER ) + 27 AS col2
----
NULL

query I rowsort
SELECT + 55 AS col2
----
55

query I rowsort
SELECT DISTINCT 92 AS col1
----
92

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1911
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT ( + + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + 79 * COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1913
SELECT + 79 * COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT + 6 + MIN( DISTINCT + 73 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-1914
SELECT + 6 + MIN ( DISTINCT + 73 ) AS col1
----
79

query I rowsort
SELECT ALL + + 98 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1916
SELECT DISTINCT 55 * - + 34 * + CAST( NULL AS DECIMAL ) + - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT 55 * - + 34 * + CAST ( NULL AS REAL ) + - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 80 - + 42
----
38

query I rowsort
SELECT - + 81
----
-81

query I rowsort
SELECT + 9 AS col2
----
9

query II rowsort
SELECT 5 AS col1, - ( + ( + + 72 ) ) AS col0
----
5
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1921
SELECT - 45 * 24 + 57 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT - 45 * 24 + 57 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT ALL - COUNT( DISTINCT + - 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1922
SELECT ALL - COUNT ( DISTINCT + - 83 ) AS col1
----
-1

query I rowsort
SELECT ALL - 65 AS col0
----
-65

query I rowsort
SELECT 39 * + 64
----
2496

query I rowsort
SELECT - + 78 AS col1
----
-78

query II rowsort
SELECT 38, + ( - + 75 ) col0
----
38
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT 24 + COUNT( DISTINCT + + 38 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1927
SELECT 24 + COUNT ( DISTINCT + + 38 ) AS col1
----
25

query I rowsort
SELECT ALL - 69 col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1929
SELECT 20 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT 20 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 59 col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1931
SELECT + 42 / - CAST( NULL AS SIGNED ) AS col1, - ( - 27 )
----
NULL
27

skipif mysql # not compatible
query II rowsort label-1931
SELECT + 42 / - CAST ( NULL AS INTEGER ) AS col1, - ( - 27 )
----
NULL
27

query I rowsort
SELECT DISTINCT + 88 AS col2
----
88

query I rowsort
SELECT ALL - ( 73 ) * + 41
----
-2993

query I rowsort
SELECT DISTINCT + 40 * + 45
----
1800

query I rowsort
SELECT ALL + 59 AS col2
----
59

query I rowsort
SELECT ( - 40 ) col2
----
-40

query I rowsort
SELECT ( + 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT + 36 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT + 36 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL COUNT( * ) * ( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL COUNT ( * ) * ( 19 )
----
19

query I rowsort
SELECT ( + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT DISTINCT + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1941
SELECT DISTINCT + + COUNT ( * ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT MAX( ALL - - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-1942
SELECT MAX ( ALL - - 64 )
----
64

query I rowsort
SELECT + ( - 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT SUM( DISTINCT - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT SUM ( DISTINCT - 40 )
----
-40

query I rowsort
SELECT - - 81 AS col2
----
81

query I rowsort
SELECT ALL 85 * + + 50 AS col0
----
4250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1947
SELECT ALL CAST( - + 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL CAST ( - + 36 AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1948
SELECT ALL - 75, COUNT( * ) col2
----
-75
1

skipif mysql # not compatible
query II rowsort label-1948
SELECT ALL - 75, COUNT ( * ) col2
----
-75
1

query I rowsort
SELECT DISTINCT - 81 AS col1
----
-81

query I rowsort
SELECT - 63 + + 36
----
-27

query I rowsort
SELECT ALL + 68 * 40 AS col1
----
2720

query I rowsort
SELECT DISTINCT - 97 AS col2
----
-97

query I rowsort
SELECT DISTINCT - 54 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT - + COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - + COUNT ( * ) - + COUNT ( * )
----
-2

query I rowsort
SELECT + + 95 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT + COUNT( * ) + - - 12
----
13

skipif mysql # not compatible
query I rowsort label-1956
SELECT + COUNT ( * ) + - - 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT DISTINCT 31 + - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT 31 + - COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT - MAX( + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-1958
SELECT - MAX ( + 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT - - COUNT( * ) + ( 38 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-1959
SELECT - - COUNT ( * ) + ( 38 ) AS col1
----
39

query I rowsort
SELECT ALL + - 26 AS col0
----
-26

query I rowsort
SELECT ( + - ( - - 47 ) )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT CAST( NULL AS SIGNED ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT CAST ( NULL AS INTEGER ) + - 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1963
SELECT CAST( NULL AS SIGNED ) + + ( 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT CAST ( NULL AS INTEGER ) + + ( 83 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1964
SELECT ALL - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - - ( - 6 ) AS col2
----
-6

query I rowsort
SELECT - ( - 40 ) AS col1
----
40

query I rowsort
SELECT 47 * 51
----
2397

query I rowsort
SELECT DISTINCT - + 66
----
-66

query I rowsort
SELECT ALL - 40 AS col0
----
-40

query II rowsort
SELECT ALL - 29 AS col1, 29 col1
----
-29
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1971
SELECT ALL + COALESCE ( - COUNT( * ), 29 DIV + + 41 ) * 95
----
-95

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + COALESCE ( - COUNT ( * ), 29 / + + 41 ) * 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT COUNT( * ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-1972
SELECT COUNT ( * ) * 75
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1973
SELECT + 9, 74 * - - COUNT( * ) AS col0
----
9
74

skipif mysql # not compatible
query II rowsort label-1973
SELECT + 9, 74 * - - COUNT ( * ) AS col0
----
9
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT + MIN( ALL + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-1974
SELECT + MIN ( ALL + 78 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1975
SELECT ALL - COUNT( * ), - 84 AS col2
----
-1
-84

skipif mysql # not compatible
query II rowsort label-1975
SELECT ALL - COUNT ( * ), - 84 AS col2
----
-1
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT + COUNT( * ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-1976
SELECT + COUNT ( * ) + + 76
----
77

query I rowsort
SELECT + 85 col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ( + - 36 ) * COUNT( * ) + + 2 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1978
SELECT ( + - 36 ) * COUNT ( * ) + + 2 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT ALL - COUNT( * ) + - COUNT( ALL - 4 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - COUNT ( * ) + - COUNT ( ALL - 4 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT + ( MIN( + 45 ) )
----
45

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT + ( MIN ( + 45 ) )
----
45

query I rowsort
SELECT ALL + 9 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT DISTINCT + 73 * - + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT + 73 * - + COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT MIN( ALL 11 )
----
11

skipif mysql # not compatible
query I rowsort label-1983
SELECT MIN ( ALL 11 )
----
11

query I rowsort
SELECT DISTINCT - 17
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-1985
SELECT ALL - + 12 + + 19 DIV - - 7
----
-10

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL - + 12 + + 19 / - - 7
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT SUM( - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-1986
SELECT SUM ( - 47 ) AS col2
----
-47

query I rowsort
SELECT ALL ( + 3 ) - + 0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT COUNT( * ) + 62
----
63

skipif mysql # not compatible
query I rowsort label-1988
SELECT COUNT ( * ) + 62
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT + SUM( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-1989
SELECT + SUM ( 41 )
----
41

query I rowsort
SELECT + 58 AS col0
----
58

query I rowsort
SELECT DISTINCT 72 * - 53 col0
----
-3816

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT MAX( ALL + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-1992
SELECT MAX ( ALL + 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL + + MAX( ALL 75 )
----
75

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + + MAX ( ALL 75 )
----
75

query I rowsort
SELECT DISTINCT + - 14
----
-14

query I rowsort
SELECT - 5 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1996
SELECT COUNT( * ) DIV COUNT( ALL + 28 ) - + 36 + - COUNT( * ) + + 60 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-1996
SELECT COUNT ( * ) / COUNT ( ALL + 28 ) - + 36 + - COUNT ( * ) + + 60 AS col1
----
24

query I rowsort
SELECT ( 4 ) col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1998
SELECT DISTINCT - 25 DIV - 35 col1
----
0

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT - 25 / - 35 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1999
SELECT ALL - SUM( DISTINCT 10 ) AS col0, + COUNT( * ) col1
----
-10
1

skipif mysql # not compatible
query II rowsort label-1999
SELECT ALL - SUM ( DISTINCT 10 ) AS col0, + COUNT ( * ) col1
----
-10
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2000
SELECT + 12 * + CAST( NULL AS SIGNED ) / + MIN( 45 ) + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT + 12 * + CAST ( NULL AS INTEGER ) / + MIN ( 45 ) + - 76
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 4 ) AS col0
----
4

query I rowsort
SELECT - 66 col2
----
-66

query I rowsort
SELECT ALL - 82
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2004
SELECT CAST( - COUNT( * ) AS SIGNED ) + + ( + COUNT( 28 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2004
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + ( + COUNT ( 28 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT DISTINCT - + 44, MAX( ALL + 89 ) col2
----
-44
89

skipif mysql # not compatible
query II rowsort label-2005
SELECT DISTINCT - + 44, MAX ( ALL + 89 ) col2
----
-44
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) + 33 + + 59 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2006
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) + 33 + + 59 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT - COUNT( - 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-2007
SELECT - COUNT ( - 6 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT 67 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-2008
SELECT 67 / - 76
----
0

query I rowsort
SELECT ALL 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT - COUNT( - - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2010
SELECT - COUNT ( - - 35 ) AS col1
----
-1

query I rowsort
SELECT + 6 - 11 col2
----
-5

query I rowsort
SELECT ALL + - 92
----
-92

query I rowsort
SELECT DISTINCT + + 31 AS col1
----
31

query I rowsort
SELECT + - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2015
SELECT ALL - 94 * 69 + + + 96 + + COUNT( * ) AS col2, 59 AS col2
----
-6389
59

skipif mysql # not compatible
query II rowsort label-2015
SELECT ALL - 94 * 69 + + + 96 + + COUNT ( * ) AS col2, 59 AS col2
----
-6389
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2016
SELECT DISTINCT 29 * CAST( NULL AS SIGNED ) * - COUNT( * ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT 29 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 99
----
NULL

query I rowsort
SELECT DISTINCT - 83 * + 19
----
-1577

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - COUNT( * ) * 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-2018
SELECT - COUNT ( * ) * 86 AS col1
----
-86

query I rowsort
SELECT DISTINCT ( 75 ) AS col2
----
75

query I rowsort
SELECT ALL + 66 * + + 42 AS col1
----
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT + 77 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2021
SELECT + 77 / - 82 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2022
SELECT - - MAX( DISTINCT 89 ) * + - AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2022
SELECT - - MAX ( DISTINCT 89 ) * + - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2023
SELECT + + COUNT( ALL - ( - CAST( NULL AS SIGNED ) ) ) AS col2, + 50 AS col2
----
0
50

skipif mysql # not compatible
query II rowsort label-2023
SELECT + + COUNT ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, + 50 AS col2
----
0
50

query I rowsort
SELECT ( - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT COUNT( * ) + - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2025
SELECT COUNT ( * ) + - + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL - COALESCE ( MIN( DISTINCT - 42 ), - 49 ) - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - COALESCE ( MIN ( DISTINCT - 42 ), - 49 ) - - COUNT ( * )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT ALL - CAST( - 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL - CAST ( - 39 AS INTEGER )
----
39

query I rowsort
SELECT ALL 17 col2
----
17

query I rowsort
SELECT - + 86
----
-86

query I rowsort
SELECT ALL + + 95 col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-2031
SELECT ALL + 73 AS col1, + COUNT( * )
----
73
1

skipif mysql # not compatible
query II rowsort label-2031
SELECT ALL + 73 AS col1, + COUNT ( * )
----
73
1

query II rowsort
SELECT 90 AS col1, 69 AS col0
----
90
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2033
SELECT + + CAST( NULL AS SIGNED ) * + CAST( - + ( + 88 ) AS SIGNED ) / - + 46 * CAST( + 86 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT + + CAST ( NULL AS INTEGER ) * + CAST ( - + ( + 88 ) AS INTEGER ) / - + 46 * CAST ( + 86 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL COUNT( + 50 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL COUNT ( + 50 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT ALL + + 37 * - + CAST( NULL AS SIGNED ) / 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + + 37 * - + CAST ( NULL AS INTEGER ) / 40 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2036
SELECT - CAST( NULL AS DECIMAL ), 58 AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-2036
SELECT - CAST ( NULL AS REAL ), 58 AS col0
----
NULL
58

query I rowsort
SELECT ALL + + 41 AS col1
----
41

query I rowsort
SELECT ALL - 82 AS col1
----
-82

query I rowsort
SELECT ALL - ( - + 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT - 67 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT - 67 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + 33 * + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2041
SELECT + 33 * + COUNT ( * ) AS col2
----
33

query I rowsort
SELECT DISTINCT - 82 AS col0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT CAST( + COUNT( * ) AS SIGNED ) + - + CAST( - + 64 AS SIGNED ) col1
----
65

skipif mysql # not compatible
query I rowsort label-2043
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - + CAST ( - + 64 AS INTEGER ) col1
----
65

query I rowsort
SELECT 53 * 13
----
689

query I rowsort
SELECT ALL - 87 col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT CASE + COUNT( * ) WHEN COUNT( * ) THEN - 39 * - 33 END + + 0 col2
----
1287

skipif mysql # not compatible
query I rowsort label-2046
SELECT CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - 39 * - 33 END + + 0 col2
----
1287

query I rowsort
SELECT - 56 AS col1
----
-56

query I rowsort
SELECT ALL 39 + + ( + ( - 75 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT COUNT( * ) + - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT COUNT ( * ) + - COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT ALL - - NULLIF ( + 64, + 15 * COUNT( * ) ) col1
----
64

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - - NULLIF ( + 64, + 15 * COUNT ( * ) ) col1
----
64

query I rowsort
SELECT - 52 * 88 AS col2
----
-4576

query I rowsort
SELECT + ( 12 ) AS col2
----
12

query I rowsort
SELECT ALL + + 5
----
5

query I rowsort
SELECT ALL 71 + 73 AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT DISTINCT + + 71 + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT + + 71 + COUNT ( * )
----
72

query I rowsort
SELECT - - 70 AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT - 79 - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2057
SELECT - 79 - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT ALL - 54 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - 54 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 78 ) AS col1
----
78

query I rowsort
SELECT ( 93 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT + 19 * + 93 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2061
SELECT + 19 * + 93 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 71 + + - 29
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2063
SELECT + + CAST( + - AVG ( + CAST( + 69 AS SIGNED ) ) AS SIGNED ) * - 71 AS col2
----
4899

skipif mysql # not compatible
query I rowsort label-2063
SELECT + + CAST ( + - AVG ( + CAST ( + 69 AS INTEGER ) ) AS INTEGER ) * - 71 AS col2
----
4899

query I rowsort
SELECT + ( + + 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2065
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL ( + ( 23 ) )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2067
SELECT + ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT ALL + COALESCE ( - - ( 92 ), COUNT( * ) ) + 93 AS col2
----
185

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + COALESCE ( - - ( 92 ), COUNT ( * ) ) + 93 AS col2
----
185

query II rowsort
SELECT - 34, ( 1 ) AS col2
----
-34
1

query I rowsort
SELECT ALL + 43 * - ( - 5 ) AS col1
----
215

query I rowsort
SELECT DISTINCT 79 * 81 AS col1
----
6399

query I rowsort
SELECT ALL - 32 col0
----
-32

query I rowsort
SELECT ALL - - 38 AS col0
----
38

query I rowsort
SELECT DISTINCT - 27
----
-27

query I rowsort
SELECT DISTINCT - - 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT + 12 + - + 21 * + ( + 42 ) - + + COUNT( * ) AS col2
----
-871

skipif mysql # not compatible
query I rowsort label-2076
SELECT + 12 + - + 21 * + ( + 42 ) - + + COUNT ( * ) AS col2
----
-871

query I rowsort
SELECT DISTINCT + 16 AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT ALL 22 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL 22 / 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT DISTINCT + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + ( + + 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL 60 + - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL 60 + - COUNT ( * ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ALL ( - SUM( DISTINCT - ( ( 51 ) ) ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL ( - SUM ( DISTINCT - ( ( 51 ) ) ) ) AS col1
----
51

query I rowsort
SELECT DISTINCT 8 AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT DISTINCT 29 * + CAST( 31 AS SIGNED ) AS col0
----
899

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT 29 * + CAST ( 31 AS INTEGER ) AS col0
----
899

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2085
SELECT ALL 40 / - + CAST( NULL AS SIGNED ) / - COUNT( 23 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL 40 / - + CAST ( NULL AS INTEGER ) / - COUNT ( 23 ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2086
SELECT CAST( NULL AS SIGNED ) + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT CAST ( NULL AS INTEGER ) + + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT MIN( - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-2087
SELECT MIN ( - 50 )
----
-50

query II rowsort
SELECT DISTINCT - + ( + 67 ) AS col0, - 27 AS col0
----
-67
-27

query I rowsort
SELECT - - 50 AS col0
----
50

query I rowsort
SELECT ALL - - 5 * - 10
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT + MIN( DISTINCT + 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2091
SELECT + MIN ( DISTINCT + 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT COUNT( DISTINCT - - 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2092
SELECT COUNT ( DISTINCT - - 53 ) AS col2
----
1

query I rowsort
SELECT ALL - - 80 * + - 88 AS col1
----
-7040

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT ALL - MIN( DISTINCT + 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-2094
SELECT ALL - MIN ( DISTINCT + 25 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL - + COUNT( * ) * + - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - + COUNT ( * ) * + - COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT DISTINCT MIN( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT MIN ( 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL - + COUNT( * ) + - - 21 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL - + COUNT ( * ) + - - 21 AS col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2098
SELECT - 6 AS col1, COUNT( * ) AS col0
----
-6
1

skipif mysql # not compatible
query II rowsort label-2098
SELECT - 6 AS col1, COUNT ( * ) AS col0
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT COUNT( ALL + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-2099
SELECT COUNT ( ALL + 36 )
----
1

query I rowsort
SELECT DISTINCT 42 * 81 - 87 col1
----
3315

query I rowsort
SELECT ALL 24 AS col1
----
24

query I rowsort
SELECT + - 14 * - + ( - + 61 )
----
-854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2103
SELECT DISTINCT ( + 37 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT DISTINCT ( + 37 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2104
SELECT ALL 7 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL 7 / 52
----
0

query I rowsort
SELECT 27 col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - MAX( ALL - 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2106
SELECT - MAX ( ALL - 2 ) AS col1
----
2

query I rowsort
SELECT - + ( - + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT + COUNT( * ) * + 60
----
60

skipif mysql # not compatible
query I rowsort label-2108
SELECT + COUNT ( * ) * + 60
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT - CAST( 15 AS SIGNED ) * - + COUNT( * ) + + 12
----
27

skipif mysql # not compatible
query I rowsort label-2109
SELECT - CAST ( 15 AS INTEGER ) * - + COUNT ( * ) + + 12
----
27

query I rowsort
SELECT ( + 61 )
----
61

query I rowsort
SELECT ( - + 91 )
----
-91

query I rowsort
SELECT ALL + ( + 16 ) AS col2
----
16

query I rowsort
SELECT ALL + ( + 19 ) col2
----
19

query I rowsort
SELECT 55 + - 80 * - 19
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL + 15 - + + 76 + + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + 15 - + + 76 + + + COUNT ( * )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT ALL - CAST( - + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - CAST ( - + 0 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT - 29 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT DISTINCT - ( - NULLIF ( COUNT( * ), 39 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT - ( - NULLIF ( COUNT ( * ), 39 ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ( 86 ) + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-2119
SELECT ( 86 ) + + COUNT ( * )
----
87

query I rowsort
SELECT 51 + - - 24 AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2121
SELECT 38, 4 * COUNT( * ) AS col0
----
38
4

skipif mysql # not compatible
query II rowsort label-2121
SELECT 38, 4 * COUNT ( * ) AS col0
----
38
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL + COUNT( * ) - + 20
----
-19

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL + COUNT ( * ) - + 20
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT DISTINCT - CAST( + 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT - CAST ( + 40 AS INTEGER )
----
-40

query I rowsort
SELECT ALL - 35 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT 94 * - COUNT( DISTINCT 45 )
----
-94

skipif mysql # not compatible
query I rowsort label-2125
SELECT 94 * - COUNT ( DISTINCT 45 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT - 20 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT - 20 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT - COUNT( * ) + - + COUNT( * ) * - 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-2127
SELECT - COUNT ( * ) + - + COUNT ( * ) * - 59 AS col0
----
58

query I rowsort
SELECT ALL ( + - 35 ) * - 76 AS col1
----
2660

query I rowsort
SELECT DISTINCT - + 96 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT + COUNT( * ) * 55 * + 95 * - 85 AS col1
----
-444125

skipif mysql # not compatible
query I rowsort label-2130
SELECT + COUNT ( * ) * 55 * + 95 * - 85 AS col1
----
-444125

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT COUNT( * ) * - 11
----
-11

skipif mysql # not compatible
query I rowsort label-2131
SELECT COUNT ( * ) * - 11
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2132
SELECT - CAST( NULL AS DECIMAL ) * - 82 * + COUNT( * ) - - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT - CAST ( NULL AS REAL ) * - 82 * + COUNT ( * ) - - - 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT ALL + 35 + + SUM( + + COALESCE ( - - 57, + 32, 45 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL + 35 + + SUM ( + + COALESCE ( - - 57, + 32, 45 ) ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL 49 + + 36 / CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL 49 + + 36 / CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 52 AS col2
----
52

query I rowsort
SELECT ALL - 23 col2
----
-23

query I rowsort
SELECT 84 col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT DISTINCT - SUM( + 12 ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT - SUM ( + 12 ) col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 4 AS col1
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT ALL ( 39 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL ( 39 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 75 AS col0
----
75

query I rowsort
SELECT + - 6 AS col2
----
-6

query I rowsort
SELECT DISTINCT - 26 * + ( + 93 ) * + 21 * + + 25 * - 4
----
5077800

query I rowsort
SELECT - - 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + COUNT( DISTINCT - 77 )
----
1

skipif mysql # not compatible
query I rowsort label-2146
SELECT + COUNT ( DISTINCT - 77 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL COUNT( * ) + + + 95
----
96

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL COUNT ( * ) + + + 95
----
96

query II rowsort
SELECT ALL + 54 AS col1, 84 AS col2
----
54
84

query I rowsort
SELECT - 54 * ( - ( + 40 ) ) AS col0
----
2160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT ALL COUNT( * ) DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL COUNT ( * ) / + 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL SUM( DISTINCT 98 )
----
98

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL SUM ( DISTINCT 98 )
----
98

query I rowsort
SELECT - 71 + 61 AS col2
----
-10

query I rowsort
SELECT - - 97 col2
----
97

query II rowsort
SELECT DISTINCT - + 20 AS col2, 20 col2
----
-20
20

query I rowsort
SELECT ALL - - 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT ALL - COUNT( DISTINCT 83 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL - COUNT ( DISTINCT 83 ) AS col2
----
-1

query I rowsort
SELECT + 32 AS col1
----
32

query I rowsort
SELECT - - 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT + MIN( + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-2159
SELECT + MIN ( + - 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT MIN( - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-2160
SELECT MIN ( - 91 )
----
-91

query I rowsort
SELECT + - 49 * 17
----
-833

query I rowsort
SELECT ALL - 71 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - - MAX( ALL + + 43 ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2163
SELECT - - MAX ( ALL + + 43 ) AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT + 76 - + MIN( DISTINCT - - 27 ) + - 70 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2164
SELECT + 76 - + MIN ( DISTINCT - - 27 ) + - 70 AS col0
----
-21

query I rowsort
SELECT DISTINCT - - 89 * + 68 AS col1
----
6052

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT - COUNT( * ) * - + 88 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2166
SELECT - COUNT ( * ) * - + 88 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT ( + + MIN( ALL - + 97 ) )
----
-97

skipif mysql # not compatible
query I rowsort label-2167
SELECT ( + + MIN ( ALL - + 97 ) )
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2168
SELECT + - COUNT( * ) * + 77 AS col0, - COUNT( * ) AS col2
----
-77
-1

skipif mysql # not compatible
query II rowsort label-2168
SELECT + - COUNT ( * ) * + 77 AS col0, - COUNT ( * ) AS col2
----
-77
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT MIN( ALL - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT MIN ( ALL - 66 ) AS col0
----
-66

query I rowsort
SELECT - - 54 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT 68 * COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2171
SELECT 68 * COUNT ( * ) AS col2
----
68

query I rowsort
SELECT + 8 AS col1
----
8

query I rowsort
SELECT ALL - + 75 AS col0
----
-75

query I rowsort
SELECT 89 AS col2
----
89

query I rowsort
SELECT ALL 78 col0
----
78

query I rowsort
SELECT DISTINCT 99
----
99

query I rowsort
SELECT ALL + - 1 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT - CAST( - ( 67 ) AS SIGNED ) col1
----
67

skipif mysql # not compatible
query I rowsort label-2178
SELECT - CAST ( - ( 67 ) AS INTEGER ) col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT MAX( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-2179
SELECT MAX ( 13 )
----
13

query I rowsort
SELECT - 24 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT DISTINCT ( + + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2181
SELECT DISTINCT ( + + COUNT ( * ) ) col0
----
1

query I rowsort
SELECT - ( + 39 )
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2183
SELECT AVG ( DISTINCT CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2183
SELECT AVG ( DISTINCT CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT DISTINCT 60 * COUNT( * ) col2
----
60

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT 60 * COUNT ( * ) col2
----
60

query I rowsort
SELECT DISTINCT - 52 + + 65 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT ALL 64 - COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL 64 - COUNT ( * )
----
63

query I rowsort
SELECT 66 col0
----
66

query I rowsort
SELECT - 90 col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2189
SELECT - COUNT( DISTINCT + + 7 ) AS col2, 96
----
-1
96

skipif mysql # not compatible
query II rowsort label-2189
SELECT - COUNT ( DISTINCT + + 7 ) AS col2, 96
----
-1
96

query I rowsort
SELECT ALL + 92 col1
----
92

query I rowsort
SELECT DISTINCT + + 30 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT DISTINCT + - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + - COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT - 25 + - COUNT( * ) col2
----
-26

skipif mysql # not compatible
query I rowsort label-2193
SELECT - 25 + - COUNT ( * ) col2
----
-26

query I rowsort
SELECT 51 col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2195
SELECT ALL + 9 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + 9 / + 83
----
0

query I rowsort
SELECT DISTINCT 64 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - COUNT( * ) + + 18 + 21 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2197
SELECT - COUNT ( * ) + + 18 + 21 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT + MAX( DISTINCT + ( - - 97 ) ) * - 37 AS col2
----
-3589

skipif mysql # not compatible
query I rowsort label-2198
SELECT + MAX ( DISTINCT + ( - - 97 ) ) * - 37 AS col2
----
-3589

query I rowsort
SELECT DISTINCT + 39 col2
----
39

query I rowsort
SELECT ALL + 16 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2201
SELECT CAST( NULL AS SIGNED ) * + + COUNT( * ) / 1
----
NULL

skipif mysql # not compatible
query I rowsort label-2201
SELECT CAST ( NULL AS INTEGER ) * + + COUNT ( * ) / 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL - ( + COUNT( * ) ) + + 61 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL - ( + COUNT ( * ) ) + + 61 AS col1
----
60

query I rowsort
SELECT ALL + + 47 + - - 72 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT 88 * + + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-2204
SELECT 88 * + + COUNT ( * )
----
88

query I rowsort
SELECT 78 + + 71
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT COUNT( * ) + + MIN( ALL 69 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL 69 ) col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT DISTINCT - 31 DIV + COUNT( * ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - 31 / + COUNT ( * ) AS col0
----
-31

query I rowsort
SELECT + 82 AS col2
----
82

query I rowsort
SELECT ALL ( - - 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT ALL - MAX( ALL 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2210
SELECT ALL - MAX ( ALL 83 )
----
-83

query I rowsort
SELECT DISTINCT 0 AS col2
----
0

query II rowsort
SELECT ALL - 41 AS col0, - 21
----
-41
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT + COUNT( ALL - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-2213
SELECT + COUNT ( ALL - 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL 76 * - + 69 + SUM( 44 )
----
-5200

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL 76 * - + 69 + SUM ( 44 )
----
-5200

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT COUNT( ALL - 7 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2215
SELECT COUNT ( ALL - 7 ) AS col0
----
1

query I rowsort
SELECT - + 71 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT - COUNT( 85 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2217
SELECT - COUNT ( 85 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 76 * + 17
----
1292

query I rowsort
SELECT DISTINCT + 55 AS col0
----
55

query I rowsort
SELECT + 26 col1
----
26

query I rowsort
SELECT ( + 97 ) AS col2
----
97

query II rowsort
SELECT ( - 83 ), 54 AS col0
----
-83
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2223
SELECT + 80 DIV - 97
----
0

skipif mysql # not compatible
query I rowsort label-2223
SELECT + 80 / - 97
----
0

query I rowsort
SELECT ALL - 89 + - 19 AS col2
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT ALL - COUNT( * ) - + + 4 * COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL - COUNT ( * ) - + + 4 * COUNT ( * )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2226
SELECT 16 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT 16 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2227
SELECT DISTINCT + COUNT( * ) DIV - 89 * 42 * - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + COUNT ( * ) / - 89 * 42 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT + + 34
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT + CAST( NULL AS SIGNED ) * 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT + CAST ( NULL AS INTEGER ) * 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT 75 + 90 * COUNT( * )
----
165

skipif mysql # not compatible
query I rowsort label-2230
SELECT 75 + 90 * COUNT ( * )
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2231
SELECT CAST( NULL AS SIGNED ) + + 47 - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT CAST ( NULL AS INTEGER ) + + 47 - + 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT - 62 * - CAST( NULL AS SIGNED ) + - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT - 62 * - CAST ( NULL AS INTEGER ) + - - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT 79 * COUNT( * ) + 92 AS col0
----
171

skipif mysql # not compatible
query I rowsort label-2233
SELECT 79 * COUNT ( * ) + 92 AS col0
----
171

query I rowsort
SELECT + 18 col2
----
18

query I rowsort
SELECT ALL NULLIF ( + 35, - 5 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT DISTINCT COUNT( * ) + - + 8
----
-7

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT COUNT ( * ) + - + 8
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-2237
SELECT 86 DIV - 16 + - 64 * + 19 AS col1
----
-1221

skipif mysql # not compatible
query I rowsort label-2237
SELECT 86 / - 16 + - 64 * + 19 AS col1
----
-1221

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT ALL + 95 AS col1, 34 + - COUNT( - ( 18 ) ) AS col1
----
95
33

skipif mysql # not compatible
query II rowsort label-2238
SELECT ALL + 95 AS col1, 34 + - COUNT ( - ( 18 ) ) AS col1
----
95
33

query I rowsort
SELECT ALL + + 64
----
64

query I rowsort
SELECT ALL + + 50
----
50

query I rowsort
SELECT ALL + - 59
----
-59

query I rowsort
SELECT DISTINCT + + 98 AS col1
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2243
SELECT - MAX( CAST( + - 16 AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-2243
SELECT - MAX ( CAST ( + - 16 AS INTEGER ) )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT + 35 DIV + + 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2244
SELECT + 35 / + + 6 AS col1
----
5

query I rowsort
SELECT - ( + 4 )
----
-4

query I rowsort
SELECT - 99 + + 58
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2247
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 4 + - 13
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT 47 + + COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2249
SELECT 47 + + COUNT ( * ) AS col2
----
48

query I rowsort
SELECT DISTINCT 1 col1
----
1

query II rowsort
SELECT - - 41 AS col2, 75 AS col1
----
41
75

query II rowsort
SELECT + + 18 AS col0, - 46
----
18
-46

query I rowsort
SELECT DISTINCT + 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2254
SELECT COUNT( * ) col0, + 62 AS col1
----
1
62

skipif mysql # not compatible
query II rowsort label-2254
SELECT COUNT ( * ) col0, + 62 AS col1
----
1
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT 30 * - COUNT( * ) + + 9 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-2255
SELECT 30 * - COUNT ( * ) + + 9 AS col0
----
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2256
SELECT MIN( DISTINCT - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT MIN ( DISTINCT - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2257
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 94 col1
----
94

query I rowsort
SELECT DISTINCT + + 34
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2260
SELECT - 35 * CAST( 35 AS SIGNED ), - 36 AS col0
----
-1225
-36

skipif mysql # not compatible
query II rowsort label-2260
SELECT - 35 * CAST ( 35 AS INTEGER ), - 36 AS col0
----
-1225
-36

query I rowsort
SELECT ALL + ( - + 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2262
SELECT + COALESCE ( - + CAST( NULL AS SIGNED ), + COUNT( * ) ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2262
SELECT + COALESCE ( - + CAST ( NULL AS INTEGER ), + COUNT ( * ) ) / COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2263
SELECT ALL 60 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL 60 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 67 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT 80 * + + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-2265
SELECT 80 * + + COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT - 12 * COUNT( * ) + - 41
----
-53

skipif mysql # not compatible
query I rowsort label-2266
SELECT - 12 * COUNT ( * ) + - 41
----
-53

query I rowsort
SELECT 73 + + ( - - 54 )
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT ALL - 68 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL - 68 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( + 34 )
----
-34

query I rowsort
SELECT ALL - 78 + - 54
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + COUNT( * ) * + 6
----
6

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL + COUNT ( * ) * + 6
----
6

query I rowsort
SELECT ALL + 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT + SUM( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2273
SELECT + SUM ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT MAX( ALL + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-2274
SELECT MAX ( ALL + - 50 )
----
-50

query I rowsort
SELECT ALL 64 + + - 17 col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT ALL + MIN( + + 96 ) - - + MAX( DISTINCT + 26 )
----
122

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL + MIN ( + + 96 ) - - + MAX ( DISTINCT + 26 )
----
122

query I rowsort
SELECT DISTINCT ( + 78 )
----
78

query I rowsort
SELECT ( + 66 )
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2279
SELECT ALL + 1 AS col2, 6 + - - COUNT( * )
----
1
7

skipif mysql # not compatible
query II rowsort label-2279
SELECT ALL + 1 AS col2, 6 + - - COUNT ( * )
----
1
7

query I rowsort
SELECT + + 56 col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2281
SELECT + + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT + + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT ALL - 33 DIV + + 30
----
-1

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - 33 / + + 30
----
-1

query I rowsort
SELECT - - 62 + - 86 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT + - COUNT( * ) - - 39 + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2284
SELECT + - COUNT ( * ) - - 39 + - COUNT ( * ) AS col0
----
37

query I rowsort
SELECT DISTINCT - 17 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT ALL - ( ( COUNT( * ) ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - ( ( COUNT ( * ) ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2287
SELECT + ( COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - 57 * - - 38
----
-2166

query I rowsort
SELECT - 63 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT COUNT( ALL + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-2290
SELECT COUNT ( ALL + 78 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL - COUNT( + - 83 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - COUNT ( + - 83 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT DISTINCT 4 * + + COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT 4 * + + COUNT ( * ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT ALL - + COUNT( 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - + COUNT ( 16 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT + COUNT( * ) * 3 * - ( + 93 )
----
-279

skipif mysql # not compatible
query I rowsort label-2294
SELECT + COUNT ( * ) * 3 * - ( + 93 )
----
-279

query I rowsort
SELECT DISTINCT + + 55
----
55

query II rowsort
SELECT 12 AS col0, 5 AS col0
----
12
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT - CAST( NULL AS SIGNED ) + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2297
SELECT - CAST ( NULL AS INTEGER ) + 0 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT ALL CAST( - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL CAST ( - 10 AS INTEGER )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT + COUNT( * ) * 37 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT + COUNT ( * ) * 37 AS col2
----
37

query I rowsort
SELECT DISTINCT 39
----
39

query I rowsort
SELECT ALL - + 26 AS col1
----
-26

query II rowsort
SELECT - 24 AS col0, 78 AS col0
----
-24
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT - 68 * SUM( DISTINCT 6 ) col1
----
-408

skipif mysql # not compatible
query I rowsort label-2303
SELECT - 68 * SUM ( DISTINCT 6 ) col1
----
-408

query I rowsort
SELECT DISTINCT - 36
----
-36

query I rowsort
SELECT ALL - 49 col2
----
-49

query I rowsort
SELECT ALL 76 * 5
----
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2307
SELECT CAST( NULL AS SIGNED ) + + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT CAST ( NULL AS INTEGER ) + + 47 col2
----
NULL

query I rowsort
SELECT ALL + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT MIN( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-2309
SELECT MIN ( 12 )
----
12

query I rowsort
SELECT + 63 * + 93 AS col2
----
5859

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + 27 * COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-2311
SELECT + 27 * COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT DISTINCT MAX( ALL 75 )
----
75

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT MAX ( ALL 75 )
----
75

query I rowsort
SELECT ALL 82 col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT ALL - 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL - 59 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT - COUNT( * ) * 94 col1
----
-94

skipif mysql # not compatible
query I rowsort label-2315
SELECT - COUNT ( * ) * 94 col1
----
-94

query I rowsort
SELECT DISTINCT + 42 * 73
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-2317
SELECT DISTINCT 12 * + COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT 12 * + COUNT ( * ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL + COUNT( 35 )
----
1

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + COUNT ( 35 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 67 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 67 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT NULLIF ( COUNT( * ), + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-2320
SELECT NULLIF ( COUNT ( * ), + 89 )
----
1

query I rowsort
SELECT DISTINCT - 40 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT 48 + ( COUNT( * ) )
----
49

skipif mysql # not compatible
query I rowsort label-2322
SELECT 48 + ( COUNT ( * ) )
----
49

query I rowsort
SELECT ALL - 81 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ALL COUNT( * ) + 50 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL COUNT ( * ) + 50 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT + + MAX( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-2325
SELECT + + MAX ( 59 )
----
59

query I rowsort
SELECT ALL 71 * + 96 col1
----
6816

query I rowsort
SELECT 39 * - ( 89 )
----
-3471

query I rowsort
SELECT DISTINCT - 77 AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT - SUM( + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT - SUM ( + 97 )
----
-97

query I rowsort
SELECT ALL - ( - + 54 ) AS col1
----
54

query I rowsort
SELECT ALL - 83 col2
----
-83

query I rowsort
SELECT ALL NULLIF ( 93, + 83 ) * - 16
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT SUM( + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-2333
SELECT SUM ( + 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT MAX( - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-2334
SELECT MAX ( - - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL COUNT( * ) - 94
----
-93

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL COUNT ( * ) - 94
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT + MAX( DISTINCT + 85 ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-2336
SELECT + MAX ( DISTINCT + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT + + ( ( + COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2337
SELECT + + ( ( + COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT - ( 92 ) - - - COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-2338
SELECT - ( 92 ) - - - COUNT ( * ) AS col1
----
-93

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2339
SELECT - - 10, - CAST( NULL AS DECIMAL ) AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-2339
SELECT - - 10, - CAST ( NULL AS REAL ) AS col2
----
10
NULL

query I rowsort
SELECT DISTINCT + 44 col1
----
44

query I rowsort
SELECT ALL ( - ( - + 57 ) )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT ALL - 76 DIV - + 61
----
1

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL - 76 / - + 61
----
1

query I rowsort
SELECT - 10 * - 94 AS col0
----
940

query I rowsort
SELECT DISTINCT + + 56
----
56

query I rowsort
SELECT - - 63
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT ALL + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2347
SELECT ALL - COUNT( * ) AS col2, 23
----
-1
23

skipif mysql # not compatible
query II rowsort label-2347
SELECT ALL - COUNT ( * ) AS col2, 23
----
-1
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT + 87 + + COUNT( * ) * - 57
----
30

skipif mysql # not compatible
query I rowsort label-2348
SELECT + 87 + + COUNT ( * ) * - 57
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2349
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 29 AS col1
----
NULL

query II rowsort
SELECT 9 AS col1, - 22
----
9
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT ALL - - 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL - - 76 + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL - + COUNT( ALL - ( - - 28 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL - + COUNT ( ALL - ( - - 28 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2353
SELECT ALL + + 71 DIV NULLIF ( + ( - 48 ), + 55 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL + + 71 / NULLIF ( + ( - 48 ), + 55 ) col1
----
-1

query I rowsort
SELECT DISTINCT ( ( 17 ) ) col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT ALL COALESCE ( + + COUNT( * ), - 73 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL COALESCE ( + + COUNT ( * ), - 73 ) AS col1
----
1

query I rowsort
SELECT + 16 + - 90 col2
----
-74

query I rowsort
SELECT - ( - 44 )
----
44

query I rowsort
SELECT + + 69
----
69

query I rowsort
SELECT ALL 5 * 70
----
350

query I rowsort
SELECT DISTINCT - 87 col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT - 73 + 17 + COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT - 73 + 17 + COUNT ( * )
----
-55

query I rowsort
SELECT 82 + + 84
----
166

query I rowsort
SELECT ALL - - 39 AS col0
----
39

query I rowsort
SELECT + 72 + + 16 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL + 66 * COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + 66 * COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT ALL + COUNT( * ) - SUM( DISTINCT + 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL + COUNT ( * ) - SUM ( DISTINCT + 50 )
----
-49

query I rowsort
SELECT - - 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL - - 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL - - 49 * COUNT ( * )
----
49

query I rowsort
SELECT ALL 69 - + - 30
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2370
SELECT + CAST( + 96 AS SIGNED ) - + - 33 col0
----
129

skipif mysql # not compatible
query I rowsort label-2370
SELECT + CAST ( + 96 AS INTEGER ) - + - 33 col0
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-2371
SELECT DISTINCT 70, + COUNT( * ) AS col1
----
70
1

skipif mysql # not compatible
query II rowsort label-2371
SELECT DISTINCT 70, + COUNT ( * ) AS col1
----
70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT - + COUNT( * ) - 86
----
-87

skipif mysql # not compatible
query I rowsort label-2372
SELECT - + COUNT ( * ) - 86
----
-87

query I rowsort
SELECT ALL + ( - - 55 ) + + 58
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 63 + - 37 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 63 + - 37 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT ALL + COUNT( * ) + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL + COUNT ( * ) + COUNT ( * ) col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2376
SELECT + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2376
SELECT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 24 AS col2
----
24

query I rowsort
SELECT ALL 28 + - 28 + + 35
----
35

query I rowsort
SELECT ALL - 37 * 95
----
-3515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT ALL - CAST( 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL - CAST ( 81 AS INTEGER )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2381
SELECT ALL COUNT( * ) AS col1, 83 - 49 AS col2
----
1
34

skipif mysql # not compatible
query II rowsort label-2381
SELECT ALL COUNT ( * ) AS col1, 83 - 49 AS col2
----
1
34

query I rowsort
SELECT - 48 * - 45
----
2160

query I rowsort
SELECT DISTINCT + 42
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2384
SELECT COUNT( * ) DIV 12 * - 31 + + 25
----
25

skipif mysql # not compatible
query I rowsort label-2384
SELECT COUNT ( * ) / 12 * - 31 + + 25
----
25

query I rowsort
SELECT DISTINCT - 43 col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL 62 + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL 62 + - COUNT ( * )
----
61

query I rowsort
SELECT ALL - ( + 41 ) col1
----
-41

query I rowsort
SELECT - 24 col1
----
-24

query I rowsort
SELECT DISTINCT - 77 * + + 25 col2
----
-1925

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL + 37 * - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + 37 * - COUNT ( * )
----
-37

query I rowsort
SELECT + ( - - 18 )
----
18

query I rowsort
SELECT ALL + - 94
----
-94

query I rowsort
SELECT + - 82 col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT MAX( + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2394
SELECT MAX ( + 79 ) AS col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2395
SELECT + - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2395
SELECT + - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 80 - 33 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT MAX( + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT MAX ( + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT COUNT( + - 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2398
SELECT COUNT ( + - 6 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + COUNT( * ) + - MIN( - ( + ( 53 ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-2399
SELECT + COUNT ( * ) + - MIN ( - ( + ( 53 ) ) )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT COUNT( * ) * - + SUM( ALL + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-2400
SELECT COUNT ( * ) * - + SUM ( ALL + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT COUNT( * ) + 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2401
SELECT COUNT ( * ) + 20 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT - MAX( ALL + + 66 ) * - CAST( + COUNT( * ) AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-2402
SELECT - MAX ( ALL + + 66 ) * - CAST ( + COUNT ( * ) AS INTEGER )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT DISTINCT - 65 + - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-2403
SELECT DISTINCT - 65 + - COUNT ( * ) AS col1
----
-66

query I rowsort
SELECT DISTINCT 31 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2405
SELECT CAST( NULL AS SIGNED ) * - + CAST( COUNT( * ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2405
SELECT CAST ( NULL AS INTEGER ) * - + CAST ( COUNT ( * ) AS INTEGER )
----
NULL

query I rowsort
SELECT + + 6 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2407
SELECT ALL + COUNT( * ) + + CAST( + 25 AS SIGNED ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL + COUNT ( * ) + + CAST ( + 25 AS INTEGER ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT - ( COUNT( ALL 66 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2408
SELECT - ( COUNT ( ALL 66 ) )
----
-1

query I rowsort
SELECT ALL 3 col0
----
3

query I rowsort
SELECT 82 + 5
----
87

query I rowsort
SELECT ALL 68 AS col1
----
68

query I rowsort
SELECT + 92 * - + 20 AS col1
----
-1840

onlyif mysql # aggregate syntax: 
query II rowsort label-2413
SELECT COUNT( * ), - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-2413
SELECT COUNT ( * ), - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT DISTINCT NULLIF ( - - COUNT( * ), + 2 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT NULLIF ( - - COUNT ( * ), + 2 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2415
SELECT - ( + - CAST( NULL AS SIGNED ) ) + - - 30 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT - ( + - CAST ( NULL AS INTEGER ) ) + - - 30 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 72 AS col1
----
72

query I rowsort
SELECT + 68 * + 11 AS col1
----
748

query I rowsort
SELECT + - 61 col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT + + COUNT( * ) * 99 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-2419
SELECT + + COUNT ( * ) * 99 AS col1
----
99

query I rowsort
SELECT DISTINCT + - 36 AS col0
----
-36

query I rowsort
SELECT ALL + + 84 col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT COUNT( * ) + 87 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2422
SELECT COUNT ( * ) + 87 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + COUNT( * ) * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2423
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 97 * - 28
----
-2716

query I rowsort
SELECT 55 + + 36
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT DISTINCT 93 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT 93 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 22 col0
----
22

query I rowsort
SELECT 61 + - 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2429
SELECT DISTINCT 37, MAX( DISTINCT 43 ) AS col0
----
37
43

skipif mysql # not compatible
query II rowsort label-2429
SELECT DISTINCT 37, MAX ( DISTINCT 43 ) AS col0
----
37
43

query II rowsort
SELECT DISTINCT - 73 AS col1, + 34 AS col2
----
-73
34

query I rowsort
SELECT + + 24 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT + MAX( ALL 94 ) col1
----
94

skipif mysql # not compatible
query I rowsort label-2432
SELECT + MAX ( ALL 94 ) col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL 34 + - - ( - COUNT( * ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL 34 + - - ( - COUNT ( * ) ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT + COALESCE ( - + 51, + MIN( DISTINCT - ( - 66 ) ) * 61 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-2434
SELECT + COALESCE ( - + 51, + MIN ( DISTINCT - ( - 66 ) ) * 61 ) AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL CAST( + 98 AS SIGNED ) + - - ( 41 ) col1
----
139

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL CAST ( + 98 AS INTEGER ) + - - ( 41 ) col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT ALL - MIN( DISTINCT + 2 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - MIN ( DISTINCT + 2 ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT DISTINCT - 0 * - + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT - 0 * - + COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - 82 * - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-2438
SELECT - 82 * - COUNT ( * )
----
82

query I rowsort
SELECT - 99 + - 15 col0
----
-114

query I rowsort
SELECT - ( - 87 ) AS col0
----
87

query I rowsort
SELECT - ( + 38 ) AS col0
----
-38

query I rowsort
SELECT ALL - 41 AS col2
----
-41

query I rowsort
SELECT + + 82 - - 73 AS col0
----
155

query I rowsort
SELECT ALL ( + + 93 ) AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2445
SELECT ALL - 94 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - 94 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2446
SELECT ALL - SUM( ALL + 19 ), - COUNT( * ) AS col2
----
-19
-1

skipif mysql # not compatible
query II rowsort label-2446
SELECT ALL - SUM ( ALL + 19 ), - COUNT ( * ) AS col2
----
-19
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT COUNT( * ) + + 49 - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT COUNT ( * ) + + 49 - COUNT ( * )
----
49

query I rowsort
SELECT ALL + 35 + 35
----
70

query I rowsort
SELECT ALL - ( - 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT COUNT( * ) + 79 + + 97 AS col0
----
177

skipif mysql # not compatible
query I rowsort label-2450
SELECT COUNT ( * ) + 79 + + 97 AS col0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT SUM( + + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-2451
SELECT SUM ( + + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT MAX( DISTINCT - 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-2452
SELECT MAX ( DISTINCT - 29 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + SUM( + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-2453
SELECT + SUM ( + 12 )
----
12

query I rowsort
SELECT ALL - 34 AS col1
----
-34

query I rowsort
SELECT DISTINCT + 11 + 34
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT - MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT - MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL ( - + 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT ( - + ( COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT ( - + ( COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT + ( - 99 )
----
-99

query I rowsort
SELECT + ( + 0 )
----
0

query I rowsort
SELECT ALL + 50 col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL 61 * COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-2462
SELECT ALL 61 * COUNT ( * )
----
61

query I rowsort
SELECT DISTINCT + - 6 AS col1
----
-6

query I rowsort
SELECT ALL + - 24
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT + 37 + + - 0 - - COUNT( * ) * + COUNT( * ) * + 5 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2465
SELECT + 37 + + - 0 - - COUNT ( * ) * + COUNT ( * ) * + 5 AS col2
----
42

query I rowsort
SELECT DISTINCT + 80 col1
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2467
SELECT + 56 DIV + COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2467
SELECT + 56 / + COUNT ( * ) AS col0
----
56

query I rowsort
SELECT + 36 col1
----
36

query I rowsort
SELECT - 32 col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT SUM( DISTINCT + 2 ) + + ( - - COUNT( * ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2470
SELECT SUM ( DISTINCT + 2 ) + + ( - - COUNT ( * ) ) AS col0
----
3

query I rowsort
SELECT ALL - + 31 col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2472
SELECT + - COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT + - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT DISTINCT - COUNT( * ) * 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT - COUNT ( * ) * 1 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT + CAST( 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2474
SELECT + CAST ( 9 AS INTEGER ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2475
SELECT DISTINCT - 86 AS col2, COUNT( * ) col0
----
-86
1

skipif mysql # not compatible
query II rowsort label-2475
SELECT DISTINCT - 86 AS col2, COUNT ( * ) col0
----
-86
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT ALL + 90 DIV - + COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL + 90 / - + COUNT ( * ) AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2477
SELECT ALL - 49 * - + 14 DIV ( + + COUNT( * ) )
----
686

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - 49 * - + 14 / ( + + COUNT ( * ) )
----
686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT 35 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT 35 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT DISTINCT 4 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT 4 / + 69
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2480
SELECT ALL - COUNT( * ) + - 99 AS col1, + 72
----
-100
72

skipif mysql # not compatible
query II rowsort label-2480
SELECT ALL - COUNT ( * ) + - 99 AS col1, + 72
----
-100
72

query I rowsort
SELECT ( 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT + + MIN( + 34 ) AS col2, COUNT( * ) AS col2
----
34
1

skipif mysql # not compatible
query II rowsort label-2482
SELECT + + MIN ( + 34 ) AS col2, COUNT ( * ) AS col2
----
34
1

query I rowsort
SELECT DISTINCT + - 2 AS col1
----
-2

query I rowsort
SELECT ( - ( - + 79 ) ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT - + CAST( NULL AS SIGNED ) / 36
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT - + CAST ( NULL AS INTEGER ) / 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT + COUNT( * ) * - 58 * - 53
----
3074

skipif mysql # not compatible
query I rowsort label-2486
SELECT + COUNT ( * ) * - 58 * - 53
----
3074

query I rowsort
SELECT 58 col1
----
58

query I rowsort
SELECT + ( - + 68 ) + + 59 col1
----
-9

query I rowsort
SELECT - ( + + 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT COUNT( * ) * + - 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT COUNT ( * ) * + - 49 AS col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2491
SELECT ALL - ( + COUNT( * ) ) DIV 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - ( + COUNT ( * ) ) / 4 AS col0
----
0

query I rowsort
SELECT ALL + 77 AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2493
SELECT - MAX( 63 ) DIV CAST( 70 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2493
SELECT - MAX ( 63 ) / CAST ( 70 AS INTEGER )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2494
SELECT 59, + CAST( NULL AS DECIMAL ) AS col1
----
59
NULL

skipif mysql # not compatible
query II rowsort label-2494
SELECT 59, + CAST ( NULL AS REAL ) AS col1
----
59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT CAST( 10 AS SIGNED ) * - + 85
----
-850

skipif mysql # not compatible
query I rowsort label-2495
SELECT CAST ( 10 AS INTEGER ) * - + 85
----
-850

query I rowsort
SELECT ALL 85 col2
----
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2497
SELECT - ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT - ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - 12 + 83 AS col2
----
71

query I rowsort
SELECT - - 58 AS col2
----
58

query I rowsort
SELECT + 56 * 8
----
448

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2501
SELECT ALL 35 AS col2, - CAST( - + 5 AS SIGNED )
----
35
5

skipif mysql # not compatible
query II rowsort label-2501
SELECT ALL 35 AS col2, - CAST ( - + 5 AS INTEGER )
----
35
5

query I rowsort
SELECT ALL 98 col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - + SUM( + + 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-2503
SELECT - + SUM ( + + 64 ) AS col2
----
-64

query II rowsort
SELECT - 27, 67 AS col2
----
-27
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + - SUM( + 4 ) + - 75 * COUNT( * ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + - SUM ( + 4 ) + - 75 * COUNT ( * ) AS col0
----
-79

query I rowsort
SELECT ( - - 32 )
----
32

query I rowsort
SELECT ( + - 85 ) AS col1
----
-85

query I rowsort
SELECT ( + 30 )
----
30

query I rowsort
SELECT DISTINCT + ( - 25 ) col2
----
-25

query I rowsort
SELECT DISTINCT + 56 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT MAX( DISTINCT + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2511
SELECT MAX ( DISTINCT + 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT MIN( ALL + 32 ) - 52
----
-20

skipif mysql # not compatible
query I rowsort label-2512
SELECT MIN ( ALL + 32 ) - 52
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2513
SELECT 15 DIV 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-2513
SELECT 15 / 72 col2
----
0

query I rowsort
SELECT 33 + 38 AS col0
----
71

query I rowsort
SELECT DISTINCT - 62
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT CAST( 89 AS SIGNED ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2516
SELECT CAST ( 89 AS INTEGER ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT + COUNT( ALL - 13 )
----
1

skipif mysql # not compatible
query I rowsort label-2517
SELECT + COUNT ( ALL - 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT - ( + - ( - + ( COUNT( * ) ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2518
SELECT - ( + - ( - + ( COUNT ( * ) ) ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT 79 + - - COUNT( 73 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2520
SELECT 79 + - - COUNT ( 73 ) AS col2
----
80

query I rowsort
SELECT ALL 46 col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT DISTINCT 8 + + COUNT( * ) + + - 4
----
5

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT 8 + + COUNT ( * ) + + - 4
----
5

query I rowsort
SELECT ALL + 5 + 7
----
12

query II rowsort
SELECT - 25 AS col1, 93 - 16
----
-25
77

query I rowsort
SELECT + 85 + - 66 AS col0
----
19

query I rowsort
SELECT ALL + 84 AS col0
----
84

query I rowsort
SELECT - - 90
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2528
SELECT ALL CAST( + 67 AS SIGNED ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL CAST ( + 67 AS INTEGER ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2529
SELECT ALL + 38 + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL + 38 + + COUNT ( * )
----
39

query I rowsort
SELECT DISTINCT + 93 + + 17 AS col2
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2531
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2531
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT + NULLIF ( - COUNT( * ), 89 )
----
-1

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT + NULLIF ( - COUNT ( * ), 89 )
----
-1

query II rowsort
SELECT - 30 AS col2, 76
----
-30
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL + + ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL + + ( - COUNT ( * ) ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT ALL COALESCE ( - 29, - 71, - 45 ) DIV - 4 + + 6
----
13

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL COALESCE ( - 29, - 71, - 45 ) / - 4 + + 6
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT ALL COUNT( * ) + - - COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL COUNT ( * ) + - - COUNT ( * ) col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2537
SELECT ( CAST( NULL AS SIGNED ) ) + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT ( CAST ( NULL AS INTEGER ) ) + + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT - MIN( ALL + - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2538
SELECT - MIN ( ALL + - 78 ) AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT - 73 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT - 73 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + COUNT( ALL - 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2540
SELECT + COUNT ( ALL - 93 ) AS col1
----
1

query I rowsort
SELECT - - 82 + 12
----
94

query I rowsort
SELECT ALL + - 99
----
-99

query I rowsort
SELECT DISTINCT COALESCE ( - + 97, - + 34 ) col2
----
-97

query I rowsort
SELECT ALL ( + 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT + ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT + ( COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - - 77 AS col1
----
77

query I rowsort
SELECT ALL 28 * + + 93 * 58 AS col0
----
151032

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT COUNT( * ) * 45
----
45

skipif mysql # not compatible
query I rowsort label-2548
SELECT COUNT ( * ) * 45
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2549
SELECT ALL - 87 AS col1, CAST( NULL AS SIGNED )
----
-87
NULL

skipif mysql # not compatible
query II rowsort label-2549
SELECT ALL - 87 AS col1, CAST ( NULL AS INTEGER )
----
-87
NULL

query I rowsort
SELECT ALL 94 col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT ALL - COUNT( + + 81 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL - COUNT ( + + 81 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT 14 * + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-2552
SELECT 14 * + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT + COUNT( * ) * - COUNT( ALL + 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-2553
SELECT + COUNT ( * ) * - COUNT ( ALL + 87 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT + 8 + - - COUNT( * ) * + MIN( DISTINCT + ( 20 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-2554
SELECT + 8 + - - COUNT ( * ) * + MIN ( DISTINCT + ( 20 ) ) AS col1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-2555
SELECT DISTINCT + 45 DIV + 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + 45 / + 77 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT DISTINCT + COUNT( * ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT + COUNT ( * ) * - 72
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-2557
SELECT + COUNT( * ) col0, - 33 AS col2
----
1
-33

skipif mysql # not compatible
query II rowsort label-2557
SELECT + COUNT ( * ) col0, - 33 AS col2
----
1
-33

query I rowsort
SELECT + 67 * 20 AS col1
----
1340

query I rowsort
SELECT DISTINCT + ( + 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2560
SELECT + CAST( NULL AS SIGNED ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT + CAST ( NULL AS INTEGER ) - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT 30 col2
----
30

query I rowsort
SELECT ALL ( + - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL + 23 + - COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL + 23 + - COUNT ( * )
----
22

query I rowsort
SELECT ALL - ( 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT - COUNT( ALL - - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-2565
SELECT - COUNT ( ALL - - 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - 88 + - COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-2566
SELECT - 88 + - COUNT ( * ) AS col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2567
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + 85 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2567
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + 85 AS col0
----
NULL
85

query I rowsort
SELECT - - ( - ( 44 ) )
----
-44

query I rowsort
SELECT + 95 col2
----
95

query I rowsort
SELECT ALL + ( + 95 )
----
95

query I rowsort
SELECT 86 * ( 63 ) + - 71 AS col2
----
5347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2572
SELECT - 98 + + + CAST( - 60 AS SIGNED ) + - - 73 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2572
SELECT - 98 + + + CAST ( - 60 AS INTEGER ) + - - 73 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - SUM( DISTINCT - - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-2573
SELECT - SUM ( DISTINCT - - 97 )
----
-97

query I rowsort
SELECT + 90 + 47 AS col1
----
137

query I rowsort
SELECT DISTINCT + + 26 col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT - - SUM( + - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-2576
SELECT - - SUM ( + - 15 )
----
-15

query I rowsort
SELECT ALL + 40 + - 33 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / 83 * ( + 13 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / 83 * ( + 13 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2579
SELECT + MAX( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2579
SELECT + MAX ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 38 + + + 97 col0
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2581
SELECT 83 + + 31 * - NULLIF ( - 64, + 17 ) * - + COUNT( DISTINCT NULLIF ( 48, + ( - CAST( NULL AS SIGNED ) ) ) ) * + 45
----
-89197

skipif mysql # not compatible
query I rowsort label-2581
SELECT 83 + + 31 * - NULLIF ( - 64, + 17 ) * - + COUNT ( DISTINCT NULLIF ( 48, + ( - CAST ( NULL AS INTEGER ) ) ) ) * + 45
----
-89197

onlyif mysql # aggregate syntax: 
query II rowsort label-2582
SELECT COUNT( * ) * 13 AS col0, 69
----
13
69

skipif mysql # not compatible
query II rowsort label-2582
SELECT COUNT ( * ) * 13 AS col0, 69
----
13
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT DISTINCT - MIN( ( - 63 ) )
----
63

skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT - MIN ( ( - 63 ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT - ( + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2585
SELECT COUNT( * ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-2585
SELECT COUNT ( * ) / - 59
----
0

query I rowsort
SELECT - 50 AS col0
----
-50

query I rowsort
SELECT DISTINCT 52 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL COUNT( * ) + - 20 col1
----
-19

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL COUNT ( * ) + - 20 col1
----
-19

query I rowsort
SELECT 15 + 26 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL - 21 * - 62 - - COUNT( * ) * 54
----
1356

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - 21 * - 62 - - COUNT ( * ) * 54
----
1356

query I rowsort
SELECT DISTINCT + - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + COALESCE ( ( - COUNT( * ) ), - 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-2592
SELECT + COALESCE ( ( - COUNT ( * ) ), - 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL + ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL + ( + COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT COUNT( 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2594
SELECT COUNT ( 10 ) AS col2
----
1

query I rowsort
SELECT ALL + ( + 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT - + ( - - COUNT( * ) ) * 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT - + ( - - COUNT ( * ) ) * 13 AS col0
----
-13

query I rowsort
SELECT DISTINCT + - 15
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2598
SELECT ALL + 2 DIV + - ( COUNT( * ) ) - + COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL + 2 / + - ( COUNT ( * ) ) - + COUNT ( * )
----
-3

query I rowsort
SELECT + 69 col2
----
69

query I rowsort
SELECT ALL + 57 AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2601
SELECT + COUNT( * ), + 58 * + ( 44 ) * + 25 AS col0
----
1
63800

skipif mysql # not compatible
query II rowsort label-2601
SELECT + COUNT ( * ), + 58 * + ( 44 ) * + 25 AS col0
----
1
63800

query I rowsort
SELECT 47 + - 26 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT - + 62 col2, + COUNT( * )
----
-62
1

skipif mysql # not compatible
query II rowsort label-2603
SELECT - + 62 col2, + COUNT ( * )
----
-62
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT ALL - CAST( + - 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-2604
SELECT ALL - CAST ( + - 96 AS INTEGER ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT ALL COUNT( * ) + 35
----
36

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL COUNT ( * ) + 35
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + COUNT( * ) * 69 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2606
SELECT + COUNT ( * ) * 69 AS col2
----
69

query I rowsort
SELECT ( ( 79 ) ) * + 30 AS col2
----
2370

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT MAX( - + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-2608
SELECT MAX ( - + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL - MIN( ALL - 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - MIN ( ALL - 62 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT COUNT( * ) + - - 70
----
71

skipif mysql # not compatible
query I rowsort label-2610
SELECT COUNT ( * ) + - - 70
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT ALL COUNT( * ) + + 61 * - 54 AS col2
----
-3293

skipif mysql # not compatible
query I rowsort label-2611
SELECT ALL COUNT ( * ) + + 61 * - 54 AS col2
----
-3293

query I rowsort
SELECT ALL 99 AS col0
----
99

query I rowsort
SELECT - - 35 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT ALL + CAST( - + 7 AS SIGNED ) col1
----
-7

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL + CAST ( - + 7 AS INTEGER ) col1
----
-7

query I rowsort
SELECT + ( 17 ) AS col2
----
17

query I rowsort
SELECT ALL + 17 col2
----
17

query I rowsort
SELECT + ( - + 94 )
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT + COUNT( DISTINCT + 53 ) DIV 27 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2618
SELECT + COUNT ( DISTINCT + 53 ) / 27 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2619
SELECT ALL + 94 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL + 94 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL - 3 + - + COUNT( * ) * + 85
----
-88

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL - 3 + - + COUNT ( * ) * + 85
----
-88

query I rowsort
SELECT - + 41 col2
----
-41

query I rowsort
SELECT DISTINCT - 57 * - + NULLIF ( + 52, + + 43 )
----
2964

query I rowsort
SELECT DISTINCT + 39 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT COALESCE ( + + CAST( - - 18 AS SIGNED ), - COUNT( * ) ) + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-2625
SELECT COALESCE ( + + CAST ( - - 18 AS INTEGER ), - COUNT ( * ) ) + COUNT ( * )
----
19

query I rowsort
SELECT DISTINCT - ( + 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT ALL COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1
----
1

query II rowsort
SELECT 24, 31 AS col2
----
24
31

query I rowsort
SELECT - ( - - 88 )
----
-88

query I rowsort
SELECT ALL + - 95 + - 65 AS col2
----
-160

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT - 28 col2, - COUNT( * ) AS col1
----
-28
-1

skipif mysql # not compatible
query II rowsort label-2631
SELECT - 28 col2, - COUNT ( * ) AS col1
----
-28
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT - COUNT( * ) * - 33 + - COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-2632
SELECT - COUNT ( * ) * - 33 + - COUNT ( * ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT - + 89 * - + ( + + ( - COUNT( * ) ) ) * COUNT( * ) + 28 - - 63 + - 98
----
-96

skipif mysql # not compatible
query I rowsort label-2633
SELECT - + 89 * - + ( + + ( - COUNT ( * ) ) ) * COUNT ( * ) + 28 - - 63 + - 98
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2634
SELECT DISTINCT + + COUNT( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT + + COUNT ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT - MIN( - - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-2635
SELECT - MIN ( - - 24 )
----
-24

query I rowsort
SELECT DISTINCT ( - 52 )
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT CAST( - MIN( + - 77 ) AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-2637
SELECT CAST ( - MIN ( + - 77 ) AS INTEGER )
----
77

query I rowsort
SELECT + ( - + 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2639
SELECT + 70 * + COUNT( * ) * 8 AS col2, CAST( NULL AS SIGNED ) AS col1
----
560
NULL

skipif mysql # not compatible
query II rowsort label-2639
SELECT + 70 * + COUNT ( * ) * 8 AS col2, CAST ( NULL AS INTEGER ) AS col1
----
560
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2640
SELECT ALL + 4 DIV + + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL + 4 / + + 17 AS col1
----
0

query I rowsort
SELECT + 9 * + 1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT NULLIF ( - COUNT( * ), + + NULLIF ( - 37, - 48 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2642
SELECT NULLIF ( - COUNT ( * ), + + NULLIF ( - 37, - 48 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT COUNT( * ) - - + 10 * + + COUNT( * ) * + + COUNT( - ( + 68 ) ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2643
SELECT COUNT ( * ) - - + 10 * + + COUNT ( * ) * + + COUNT ( - ( + 68 ) ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2644
SELECT CAST( NULL AS DECIMAL ) * - 42 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT CAST ( NULL AS REAL ) * - 42 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL + ( - + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL + ( - + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT + ( + - COUNT( + 64 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2646
SELECT + ( + - COUNT ( + 64 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL COUNT( * ) * 98
----
98

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL COUNT ( * ) * 98
----
98

query I rowsort
SELECT - + ( - 73 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2649
SELECT + 94 DIV + - ( + COUNT( * ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-2649
SELECT + 94 / + - ( + COUNT ( * ) ) AS col1
----
-94

query I rowsort
SELECT ALL + - 74 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT + SUM( DISTINCT - + 77 ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-2651
SELECT + SUM ( DISTINCT - + 77 ) col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT - COUNT( * ) + + 79
----
78

skipif mysql # not compatible
query I rowsort label-2652
SELECT - COUNT ( * ) + + 79
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + COUNT( DISTINCT 54 )
----
1

skipif mysql # not compatible
query I rowsort label-2653
SELECT + COUNT ( DISTINCT 54 )
----
1

query I rowsort
SELECT DISTINCT - ( ( 18 ) ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT ALL - MAX( 48 ) + + + MAX( ALL + 27 )
----
-21

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - MAX ( 48 ) + + + MAX ( ALL + 27 )
----
-21

query I rowsort
SELECT + - 62 AS col0
----
-62

query I rowsort
SELECT ALL - 19 col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT 9 - COUNT( * ) * + 38
----
-29

skipif mysql # not compatible
query I rowsort label-2658
SELECT 9 - COUNT ( * ) * + 38
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT ALL 13 + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL 13 + + COUNT ( * )
----
14

query I rowsort
SELECT - 67 col0
----
-67

query I rowsort
SELECT - 12 + + 82 AS col0
----
70

query I rowsort
SELECT ALL - - ( 22 )
----
22

query I rowsort
SELECT ALL - ( + + 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2664
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + MIN( DISTINCT + + 78 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + MIN ( DISTINCT + + 78 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT 68 * + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2665
SELECT 68 * + COUNT ( * )
----
68

onlyif mysql # DIV for integer division: 
query II rowsort label-2666
SELECT DISTINCT - 26, 34 DIV - + 10 AS col0
----
-26
-3

skipif mysql # not compatible
query II rowsort label-2666
SELECT DISTINCT - 26, 34 / - + 10 AS col0
----
-26
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT MIN( ALL - + 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2667
SELECT MIN ( ALL - + 5 ) AS col0
----
-5

query I rowsort
SELECT ALL NULLIF ( + 26, 20 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT - COALESCE ( - - CAST( NULL AS SIGNED ), - 89, 6, + - 55 ) col0
----
89

skipif mysql # not compatible
query I rowsort label-2669
SELECT - COALESCE ( - - CAST ( NULL AS INTEGER ), - 89, 6, + - 55 ) col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2670
SELECT 90 AS col2, COUNT( * ) AS col1
----
90
1

skipif mysql # not compatible
query II rowsort label-2670
SELECT 90 AS col2, COUNT ( * ) AS col1
----
90
1

query II rowsort
SELECT ALL 19 AS col2, 50
----
19
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ( + 34 )
----
34

query I rowsort
SELECT + ( 51 )
----
51

query I rowsort
SELECT + - 18 + 95 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT DISTINCT - MIN( + 82 ) * + - COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT - MIN ( + 82 ) * + - COUNT ( * ) AS col2
----
82

query I rowsort
SELECT - ( ( - - 25 ) ) col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT ALL MAX( DISTINCT 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL MAX ( DISTINCT 84 ) AS col2
----
84

query I rowsort
SELECT ALL + 81 AS col1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT ALL - 27 + CAST( NULL AS SIGNED ) / - 95 * + ( + + 18 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL - 27 + CAST ( NULL AS INTEGER ) / - 95 * + ( + + 18 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT + SUM( DISTINCT + 17 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT + SUM ( DISTINCT + 17 ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT 29 * + 26 + 16 + - + MIN( 5 ) - COUNT( * ) AS col0
----
764

skipif mysql # not compatible
query I rowsort label-2682
SELECT 29 * + 26 + 16 + - + MIN ( 5 ) - COUNT ( * ) AS col0
----
764

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - COUNT( - 3 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2683
SELECT - COUNT ( - 3 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT 68 + + + COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-2684
SELECT 68 + + + COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ALL 84 + + 16 - 68 + - + 86 + - 20 - - 31 * COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL 84 + + 16 - 68 + - + 86 + - 20 - - 31 * COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-2686
SELECT ALL - + COUNT( * ) * - 73 AS col2, 99
----
73
99

skipif mysql # not compatible
query II rowsort label-2686
SELECT ALL - + COUNT ( * ) * - 73 AS col2, 99
----
73
99

query I rowsort
SELECT - + 69 col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2688
SELECT ALL 87 AS col0, NULLIF ( 14, - CAST( NULL AS SIGNED ) )
----
87
14

skipif mysql # not compatible
query II rowsort label-2688
SELECT ALL 87 AS col0, NULLIF ( 14, - CAST ( NULL AS INTEGER ) )
----
87
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT + 79 + - MAX( - 29 ) AS col0
----
108

skipif mysql # not compatible
query I rowsort label-2689
SELECT + 79 + - MAX ( - 29 ) AS col0
----
108

query I rowsort
SELECT ALL 98 AS col1
----
98

query I rowsort
SELECT ALL + 68 * - 56
----
-3808

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT + - SUM( ALL 36 ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-2692
SELECT + - SUM ( ALL 36 ) AS col1
----
-36

query I rowsort
SELECT - 7 + - - 96
----
89

query I rowsort
SELECT ALL ( 77 ) AS col0
----
77

query I rowsort
SELECT 30 col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2696
SELECT ALL COUNT( * ) DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL COUNT ( * ) / 45
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2697
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) * - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) * - 93 AS col2
----
0

query I rowsort
SELECT DISTINCT ( + + 86 )
----
86

query I rowsort
SELECT DISTINCT + - 67
----
-67

query I rowsort
SELECT ALL + - 81 AS col1
----
-81

query I rowsort
SELECT ALL + + ( 18 ) AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL - 83 * - COUNT( * ) + - + CAST( NULL AS SIGNED ) + - ( MAX( DISTINCT + 50 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - 83 * - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + - ( MAX ( DISTINCT + 50 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2703
SELECT COUNT( * ) DIV COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2703
SELECT COUNT ( * ) / COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL - MIN( DISTINCT + 31 ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - MIN ( DISTINCT + 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2705
SELECT DISTINCT 46 DIV COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT 46 / COUNT ( * )
----
46

query I rowsort
SELECT ALL 84 AS col0
----
84

query I rowsort
SELECT DISTINCT - - 85 AS col1
----
85

query I rowsort
SELECT ALL - + 12
----
-12

query I rowsort
SELECT ALL + ( 77 )
----
77

query I rowsort
SELECT DISTINCT + 86 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT + MIN( ALL + - 77 ) + ( 43 )
----
-34

skipif mysql # not compatible
query I rowsort label-2711
SELECT + MIN ( ALL + - 77 ) + ( 43 )
----
-34

query I rowsort
SELECT DISTINCT 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT - SUM( DISTINCT - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2713
SELECT - SUM ( DISTINCT - 35 ) AS col1
----
35

query I rowsort
SELECT DISTINCT + + 86 AS col0
----
86

query I rowsort
SELECT ALL + - 4
----
-4

query I rowsort
SELECT ALL + ( 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT + MIN( ALL 84 )
----
84

skipif mysql # not compatible
query I rowsort label-2717
SELECT + MIN ( ALL 84 )
----
84

query I rowsort
SELECT - - 81 AS col1
----
81

query I rowsort
SELECT - 91 - + 45 + - + 8
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT + 58 + - ( COUNT( * ) ) * 68
----
-10

skipif mysql # not compatible
query I rowsort label-2720
SELECT + 58 + - ( COUNT ( * ) ) * 68
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT + - ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-2721
SELECT + - ( + - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - 8 AS col0
----
-8

query II rowsort
SELECT - 29 AS col0, - 54 col2
----
-29
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT - CAST( NULL AS SIGNED ) + - + 53 * 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT - CAST ( NULL AS INTEGER ) + - + 53 * 37 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 88 + 86
----
-2

query I rowsort
SELECT DISTINCT ( + + 64 ) + + + 86 AS col2
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2728
SELECT ALL CAST( NULL AS SIGNED ) / - SUM( - + 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL CAST ( NULL AS INTEGER ) / - SUM ( - + 76 )
----
NULL

query I rowsort
SELECT DISTINCT - 10 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT ALL - ( MIN( + 92 ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL - ( MIN ( + 92 ) ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-2731
SELECT + COUNT( * ) AS col2, 21
----
1
21

skipif mysql # not compatible
query II rowsort label-2731
SELECT + COUNT ( * ) AS col2, 21
----
1
21

query I rowsort
SELECT + ( - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT + COUNT( * ) + + SUM( + + 75 ) * - 53 AS col0
----
-3974

skipif mysql # not compatible
query I rowsort label-2733
SELECT + COUNT ( * ) + + SUM ( + + 75 ) * - 53 AS col0
----
-3974

query I rowsort
SELECT DISTINCT + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-2735
SELECT ALL + COUNT( * ) AS col2, - 47
----
1
-47

skipif mysql # not compatible
query II rowsort label-2735
SELECT ALL + COUNT ( * ) AS col2, - 47
----
1
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT 20 * + + COUNT( * ) + - CAST( NULL AS SIGNED ) + - 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT 20 * + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - 52 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT - COUNT( DISTINCT + + 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-2737
SELECT - COUNT ( DISTINCT + + 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT ALL MIN( DISTINCT - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL MIN ( DISTINCT - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL - - COUNT( * ) * - 77 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL - - COUNT ( * ) * - 77 AS col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT CAST( + 77 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT CAST ( + 77 AS INTEGER ) AS col0
----
77

query I rowsort
SELECT ALL + 91 col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT - COUNT( * ) * - ( + MIN( + ( + 90 ) ) )
----
90

skipif mysql # not compatible
query I rowsort label-2742
SELECT - COUNT ( * ) * - ( + MIN ( + ( + 90 ) ) )
----
90

query I rowsort
SELECT + 56 * + 79 - 31
----
4393

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT 30 * - - 42 + + - MAX( - 42 ) AS col0
----
1302

skipif mysql # not compatible
query I rowsort label-2744
SELECT 30 * - - 42 + + - MAX ( - 42 ) AS col0
----
1302

query I rowsort
SELECT ( + ( 37 ) ) AS col1
----
37

query I rowsort
SELECT 43 * + + 16 AS col0
----
688

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT COUNT( * ) - + 23 + 56
----
34

skipif mysql # not compatible
query I rowsort label-2747
SELECT COUNT ( * ) - + 23 + 56
----
34

query I rowsort
SELECT DISTINCT - + 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT COUNT( * ) * - - MAX( ALL + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-2749
SELECT COUNT ( * ) * - - MAX ( ALL + 18 )
----
18

query I rowsort
SELECT + ( - 47 )
----
-47

query II rowsort
SELECT ALL + - 7 AS col0, 68
----
-7
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL + MAX( + + 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL + MAX ( + + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT ALL NULLIF ( 22, - 12 + 24 / + 59 - + + COUNT( * ) - - ( COUNT( * ) ) )
----
22

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL NULLIF ( 22, - 12 + 24 / + 59 - + + COUNT ( * ) - - ( COUNT ( * ) ) )
----
22

query I rowsort
SELECT - 25 + 10 AS col1
----
-15

query I rowsort
SELECT ALL + ( + - 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 94 AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-2758
SELECT DISTINCT + ( - + COUNT( * ) ), + 62 AS col2
----
-1
62

skipif mysql # not compatible
query II rowsort label-2758
SELECT DISTINCT + ( - + COUNT ( * ) ), + 62 AS col2
----
-1
62

query I rowsort
SELECT ALL + ( - 85 ) * + - 48
----
4080

query I rowsort
SELECT DISTINCT + - 39 AS col1
----
-39

query I rowsort
SELECT DISTINCT + 74 AS col1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT DISTINCT - 26 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT - 26 / - 75
----
0

query I rowsort
SELECT DISTINCT - + 37 AS col1
----
-37

query I rowsort
SELECT DISTINCT 30 AS col2
----
30

query I rowsort
SELECT DISTINCT 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL COUNT( * ) * - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL COUNT ( * ) * - 15 AS col0
----
-15

query I rowsort
SELECT - - 3 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT ALL - + 61 + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL - + 61 + + COUNT ( * )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2769
SELECT - ( 93 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2769
SELECT - ( 93 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT ALL + 77 * - ( MAX( ALL + 60 ) )
----
-4620

skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL + 77 * - ( MAX ( ALL + 60 ) )
----
-4620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT DISTINCT CAST( + 23 AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT CAST ( + 23 AS INTEGER ) AS col0
----
23

query I rowsort
SELECT + 68 + + 12
----
80

query I rowsort
SELECT 22 + - 17 - 24 AS col2
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2774
SELECT ALL - 76 + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - 76 + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL 69 + COUNT( * ) col0
----
70

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL 69 + COUNT ( * ) col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT SUM( ALL - + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-2776
SELECT SUM ( ALL - + 24 )
----
-24

query I rowsort
SELECT DISTINCT ( - + 80 ) * 99
----
-7920

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT + MAX( DISTINCT + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2778
SELECT + MAX ( DISTINCT + 33 )
----
33

query I rowsort
SELECT 28 col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2780
SELECT - CAST( NULL AS SIGNED ) AS col0, - 88 AS col2
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-2780
SELECT - CAST ( NULL AS INTEGER ) AS col0, - 88 AS col2
----
NULL
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT ALL - 27 * + + SUM( + ( + + 20 ) ) + 49
----
-491

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL - 27 * + + SUM ( + ( + + 20 ) ) + 49
----
-491

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT + COUNT( * ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2782
SELECT + COUNT ( * ) + + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2783
SELECT ALL - ( + - NULLIF ( + CAST( 43 AS SIGNED ), CAST( NULL AS DECIMAL ) ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL - ( + - NULLIF ( + CAST ( 43 AS INTEGER ), CAST ( NULL AS REAL ) ) ) AS col0
----
43

query I rowsort
SELECT - + 97 AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL + 59 * - COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL + 59 * - COUNT ( * ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2786
SELECT DISTINCT + - 31 AS col1, + CAST( NULL AS SIGNED ) AS col0
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-2786
SELECT DISTINCT + - 31 AS col1, + CAST ( NULL AS INTEGER ) AS col0
----
-31
NULL

query I rowsort
SELECT ALL 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT 15 + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-2788
SELECT 15 + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL + 28 + - 99
----
-71

query I rowsort
SELECT DISTINCT ( + 21 ) * - + 23
----
-483

query I rowsort
SELECT ALL - 76 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT ALL - - COUNT( DISTINCT - - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - - COUNT ( DISTINCT - - 99 )
----
1

query I rowsort
SELECT DISTINCT + ( 91 ) * - 8 col0
----
-728

query I rowsort
SELECT ALL - 1 AS col2
----
-1

query I rowsort
SELECT DISTINCT 77 col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT DISTINCT MIN( DISTINCT - 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT MIN ( DISTINCT - 67 ) AS col2
----
-67

query I rowsort
SELECT ALL 25 col1
----
25

query I rowsort
SELECT DISTINCT 90 AS col0
----
90

query I rowsort
SELECT + + 80 col2
----
80

query I rowsort
SELECT + + 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2801
SELECT DISTINCT + + MIN( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT + + MIN ( 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT + - MIN( DISTINCT + 6 ) + - 13
----
-19

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + - MIN ( DISTINCT + 6 ) + - 13
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT DISTINCT ( - - SUM( ALL + 81 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT ( - - SUM ( ALL + 81 ) ) AS col0
----
81

query I rowsort
SELECT ALL ( + 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2806
SELECT ALL COUNT( * ) DIV + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL COUNT ( * ) / + + COUNT ( * )
----
1

query I rowsort
SELECT + 47 * + 78 AS col2
----
3666

query I rowsort
SELECT + + 18 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT + + COUNT( * ) + - 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2809
SELECT + + COUNT ( * ) + - 81 AS col2
----
-80

query I rowsort
SELECT ALL ( 19 ) AS col1
----
19

query I rowsort
SELECT 76 * + 69 AS col1
----
5244

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT 50 - - - 44 DIV + 22 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-2812
SELECT 50 - - - 44 / + 22 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL ( - - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT ALL - + 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT ALL + + COUNT( * ) + - 95
----
-94

skipif mysql # not compatible
query I rowsort label-2815
SELECT ALL + + COUNT ( * ) + - 95
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT - 13 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT - 13 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 50 AS col2
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2818
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query I rowsort
SELECT - 42 * 24
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT MAX( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT MAX ( - 0 )
----
0

query I rowsort
SELECT + COALESCE ( 92, 7 * ( + 54 ) )
----
92

query II rowsort
SELECT ALL 45, + 87 AS col2
----
45
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2823
SELECT ALL + 39 DIV COUNT( * ) - + 96
----
-57

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL + 39 / COUNT ( * ) - + 96
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2824
SELECT + 84 DIV COUNT( + 28 )
----
84

skipif mysql # not compatible
query I rowsort label-2824
SELECT + 84 / COUNT ( + 28 )
----
84

query I rowsort
SELECT DISTINCT 89 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2826
SELECT MIN( + 4 ) AS col0, CAST( 37 AS SIGNED )
----
4
37

skipif mysql # not compatible
query II rowsort label-2826
SELECT MIN ( + 4 ) AS col0, CAST ( 37 AS INTEGER )
----
4
37

query I rowsort
SELECT ALL - 47 * - 82 AS col2
----
3854

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2828
SELECT ALL MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 87
----
-87

query I rowsort
SELECT - ( 98 ) AS col0
----
-98

query I rowsort
SELECT ALL - 96
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT ALL - COUNT( * ) col1, ( + 46 )
----
-1
46

skipif mysql # not compatible
query II rowsort label-2832
SELECT ALL - COUNT ( * ) col1, ( + 46 )
----
-1
46

query I rowsort
SELECT ALL 78 + - + ( 70 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL + 44 + + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL + 44 + + COUNT ( * )
----
45

query I rowsort
SELECT DISTINCT + 62 + + 9 AS col2
----
71

query I rowsort
SELECT 10 * 46
----
460

query I rowsort
SELECT DISTINCT - 58 * + - 95
----
5510

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT - 66 DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-2838
SELECT - 66 / - + 79
----
0

query I rowsort
SELECT - - ( + 9 ) AS col0
----
9

query I rowsort
SELECT ALL 71 + - + 29 col1
----
42

query I rowsort
SELECT 82 col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2842
SELECT DISTINCT 23 * - COUNT( * ), CAST( NULL AS SIGNED ) col1
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-2842
SELECT DISTINCT 23 * - COUNT ( * ), CAST ( NULL AS INTEGER ) col1
----
-23
NULL

query I rowsort
SELECT ALL - + 30
----
-30

query I rowsort
SELECT ALL NULLIF ( 74, 49 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT - COUNT( * ) + 70 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-2845
SELECT - COUNT ( * ) + 70 AS col2
----
69

query I rowsort
SELECT - 27 col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT - SUM( DISTINCT 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-2847
SELECT - SUM ( DISTINCT 73 )
----
-73

query I rowsort
SELECT ALL 43 * + 7 AS col2
----
301

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT + ( + - 40 ) * - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-2849
SELECT + ( + - 40 ) * - COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL + MAX( ALL + 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL + MAX ( ALL + 15 ) AS col0
----
15

query I rowsort
SELECT - 81 * - 11
----
891

query I rowsort
SELECT - 36 col1
----
-36

query I rowsort
SELECT ALL ( 40 ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT DISTINCT + 3 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT + 3 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT + COUNT( ALL 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2855
SELECT + COUNT ( ALL 10 ) AS col2
----
1

query I rowsort
SELECT ALL + 50 * - 87 AS col2
----
-4350

query I rowsort
SELECT + 35 + 76
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT + 49 + SUM( ( 64 ) ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-2858
SELECT + 49 + SUM ( ( 64 ) ) AS col0
----
113

query I rowsort
SELECT 0 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT MAX( - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT MAX ( - 63 )
----
-63

query I rowsort
SELECT + + 56
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - 49 - + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2862
SELECT - 49 - + COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT DISTINCT - ( + ( 37 ) )
----
-37

query I rowsort
SELECT ALL - + 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 2 AS col0
----
2

query I rowsort
SELECT ALL - 49 - 53
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT - COUNT( DISTINCT 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2867
SELECT - COUNT ( DISTINCT 15 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT 71 col2
----
71

query I rowsort
SELECT 4 * 11
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2870
SELECT 94 DIV + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-2870
SELECT 94 / + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT ALL 11 + - - COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL 11 + - - COUNT ( * ) AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT CAST( NULL AS SIGNED ) - - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT CAST ( NULL AS INTEGER ) - - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT + NULLIF ( MIN( 67 ), 96 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2873
SELECT + NULLIF ( MIN ( 67 ), 96 ) AS col1
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2874
SELECT NULLIF ( + + 78, - CAST( NULL AS SIGNED ) * - COUNT( * ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2874
SELECT NULLIF ( + + 78, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) ) AS col1
----
78

query I rowsort
SELECT + - 32 AS col2
----
-32

query II rowsort
SELECT DISTINCT + 62 AS col1, + 21 - 61 AS col2
----
62
-40

query I rowsort
SELECT - 1 col1
----
-1

query I rowsort
SELECT - NULLIF ( - 83, - 54 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT COUNT( * ) * 90
----
90

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT COUNT ( * ) * 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT DISTINCT 94 * 95 * + + COUNT( * )
----
8930

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT 94 * 95 * + + COUNT ( * )
----
8930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT + 65 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2881
SELECT + 65 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 5 * - + 40
----
-200

query I rowsort
SELECT - + 79 AS col1
----
-79

query I rowsort
SELECT + + 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT + - COUNT( + + 24 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2885
SELECT + - COUNT ( + + 24 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2886
SELECT ALL + COUNT( * ) + CAST( - 88 AS SIGNED )
----
-87

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL + COUNT ( * ) + CAST ( - 88 AS INTEGER )
----
-87

query II rowsort
SELECT DISTINCT 38 AS col1, 31 AS col0
----
38
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2888
SELECT CAST( NULL AS DECIMAL ) * + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT CAST ( NULL AS REAL ) * + + 38
----
NULL

query I rowsort
SELECT - 86 + 29 AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT + COUNT( DISTINCT - + CAST( - 94 AS SIGNED ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2890
SELECT + COUNT ( DISTINCT - + CAST ( - 94 AS INTEGER ) ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2891
SELECT ALL - 21 DIV 2 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - 21 / 2 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-2892
SELECT SUM( - - 25 ), - ( 60 ) AS col1
----
25
-60

skipif mysql # not compatible
query II rowsort label-2892
SELECT SUM ( - - 25 ), - ( 60 ) AS col1
----
25
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-2893
SELECT ALL + MIN( 63 ), 74 AS col0
----
63
74

skipif mysql # not compatible
query II rowsort label-2893
SELECT ALL + MIN ( 63 ), 74 AS col0
----
63
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2894
SELECT + MAX( - 81 ) AS col2, - 75 AS col0
----
-81
-75

skipif mysql # not compatible
query II rowsort label-2894
SELECT + MAX ( - 81 ) AS col2, - 75 AS col0
----
-81
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT - MAX( + 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2895
SELECT - MAX ( + 73 ) AS col2
----
-73

query I rowsort
SELECT ALL + + 57
----
57

query I rowsort
SELECT ALL + 65 col1
----
65

query I rowsort
SELECT + 4 + + 49 col0
----
53

query II rowsort
SELECT + 32 AS col0, 20
----
32
20

query I rowsort
SELECT - 66 + + 45 col0
----
-21

query I rowsort
SELECT - 84 * - 47 * - 44
----
-173712

query I rowsort
SELECT - - 15 col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT COUNT( * ) + + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT COUNT ( * ) + + ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2904
SELECT 77 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2904
SELECT 77 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2905
SELECT DISTINCT 88 + + 77 + + 59 AS col1, - ( + - SUM( 21 ) )
----
224
21

skipif mysql # not compatible
query II rowsort label-2905
SELECT DISTINCT 88 + + 77 + + 59 AS col1, - ( + - SUM ( 21 ) )
----
224
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL + + COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + + COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2907
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 29 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT DISTINCT - 5 DIV + - COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT - 5 / + - COUNT ( * ) AS col1
----
5

query I rowsort
SELECT - + 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL + MIN( - + 72 ) * - + 34
----
2448

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL + MIN ( - + 72 ) * - + 34
----
2448

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT - MIN( ALL - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-2911
SELECT - MIN ( ALL - 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT + 47 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 47 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 47 * + 76 AS col0
----
3572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2914
SELECT + - COUNT( * ) * - 7 AS col2, - 89 - - ( CAST( NULL AS SIGNED ) )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-2914
SELECT + - COUNT ( * ) * - 7 AS col2, - 89 - - ( CAST ( NULL AS INTEGER ) )
----
7
NULL

query I rowsort
SELECT - 89 * - + 68
----
6052

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT + MIN( DISTINCT - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-2916
SELECT + MIN ( DISTINCT - 50 )
----
-50

query I rowsort
SELECT DISTINCT + + 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT 92 * - COUNT( 19 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-2918
SELECT 92 * - COUNT ( 19 ) AS col1
----
-92

query I rowsort
SELECT 16 + - 57
----
-41

query I rowsort
SELECT 22 * + 55
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT - SUM( DISTINCT + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-2921
SELECT - SUM ( DISTINCT + 14 )
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2922
SELECT 47 + 90 DIV + + 75
----
48

skipif mysql # not compatible
query I rowsort label-2922
SELECT 47 + 90 / + + 75
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2923
SELECT ALL + 21 DIV + 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + 21 / + 30 AS col2
----
0

query I rowsort
SELECT ALL - - 38
----
38

query I rowsort
SELECT DISTINCT + 91 AS col2
----
91

query I rowsort
SELECT DISTINCT + - 11 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT - COUNT( * ) * MAX( + - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-2927
SELECT - COUNT ( * ) * MAX ( + - 47 )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2928
SELECT 41 AS col1, - COUNT( * ) + MAX( DISTINCT - 18 ) AS col0
----
41
-19

skipif mysql # not compatible
query II rowsort label-2928
SELECT 41 AS col1, - COUNT ( * ) + MAX ( DISTINCT - 18 ) AS col0
----
41
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT - MAX( ALL + 85 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2929
SELECT - MAX ( ALL + 85 ) AS col0
----
-85

query I rowsort
SELECT - 82 * 20 - + + 21
----
-1661

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2931
SELECT - + 77 DIV COUNT( * ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-2931
SELECT - + 77 / COUNT ( * ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2932
SELECT ALL ( CAST( NULL AS DECIMAL ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL ( CAST ( NULL AS REAL ) ) / COUNT ( * )
----
NULL

query II rowsort
SELECT + + 57 col0, - 12 col2
----
57
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT + + ( COUNT( * ) ) + - + COUNT( * ) + - + 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2934
SELECT + + ( COUNT ( * ) ) + - + COUNT ( * ) + - + 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT + - COUNT( + + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-2935
SELECT + - COUNT ( + + 3 )
----
-1

query I rowsort
SELECT ALL ( + ( + 8 ) ) AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2937
SELECT - COUNT( * ) + - + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT - COUNT ( * ) + - + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 65 AS col2
----
65

query II rowsort
SELECT + 44 AS col1, - 17
----
44
-17

query I rowsort
SELECT ALL - - 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL MAX( ALL + - 69 ) + - COUNT( * ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL MAX ( ALL + - 69 ) + - COUNT ( * ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ( - COUNT( + 9 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2942
SELECT ( - COUNT ( + 9 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT - COUNT( * ) + - 0
----
-1

skipif mysql # not compatible
query I rowsort label-2943
SELECT - COUNT ( * ) + - 0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + + COUNT( + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-2944
SELECT + + COUNT ( + 54 )
----
1

query I rowsort
SELECT ALL - 60 + + 2 AS col0
----
-58

query I rowsort
SELECT + + 62 AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2947
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 74 AS col1
----
74

query II rowsort
SELECT 72 * + 25 AS col1, + 70 + + + 61
----
1800
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT DISTINCT - - NULLIF ( COUNT( * ), - 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT - - NULLIF ( COUNT ( * ), - 63 ) AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2951
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + 51 - - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT - CAST ( NULL AS REAL ) * + 51 - - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT + 70 * + MIN( 51 ) AS col0
----
3570

skipif mysql # not compatible
query I rowsort label-2952
SELECT + 70 * + MIN ( 51 ) AS col0
----
3570

query I rowsort
SELECT + 18 * + 45 * - - 55 - - - 77
----
44473

query I rowsort
SELECT ALL 17 + - 69 AS col1
----
-52

query I rowsort
SELECT - 63 + + 23
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT MIN( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-2956
SELECT MIN ( + 90 )
----
90

query I rowsort
SELECT + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + COUNT( DISTINCT 14 )
----
1

skipif mysql # not compatible
query I rowsort label-2958
SELECT + COUNT ( DISTINCT 14 )
----
1

query I rowsort
SELECT DISTINCT - 59 col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT + MIN( + + 1 ) * - + 69 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2960
SELECT + MIN ( + + 1 ) * - + 69 AS col2
----
-69

query I rowsort
SELECT DISTINCT + 26 - - 26 AS col1
----
52

query I rowsort
SELECT - + 16
----
-16

query I rowsort
SELECT - - 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2964
SELECT - COUNT( * ), + ( + 6 ) col2
----
-1
6

skipif mysql # not compatible
query II rowsort label-2964
SELECT - COUNT ( * ), + ( + 6 ) col2
----
-1
6

query I rowsort
SELECT ALL + ( + 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT 8 - - 93 * + COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-2966
SELECT 8 - - 93 * + COUNT ( * )
----
101

query I rowsort
SELECT DISTINCT + 58 + 1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT ALL + COUNT( * ) + + - 33 AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL + COUNT ( * ) + + - 33 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT CAST( - 83 AS SIGNED ) + 80
----
-3

skipif mysql # not compatible
query I rowsort label-2969
SELECT CAST ( - 83 AS INTEGER ) + 80
----
-3

query II rowsort
SELECT 81 col0, - 85
----
81
-85

query II rowsort
SELECT ALL - 36, 33 AS col0
----
-36
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2972
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + 33 AS col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-2972
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 33 AS col1
----
NULL
33

query I rowsort
SELECT ALL + 36 * + 23 * + 19 AS col1
----
15732

query II rowsort
SELECT DISTINCT - 35 AS col1, + 89
----
-35
89

query I rowsort
SELECT + 34 - + 54 + - + 39
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT - - COUNT( DISTINCT + 60 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2976
SELECT - - COUNT ( DISTINCT + 60 ) col1
----
1

query II rowsort
SELECT DISTINCT 92 AS col2, + 27 * + 97 AS col0
----
92
2619

query I rowsort
SELECT - 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL + COUNT( * ) * - + 81 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL + COUNT ( * ) * - + 81 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT + ( + MIN( DISTINCT + - 10 ) ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2980
SELECT + ( + MIN ( DISTINCT + - 10 ) ) AS col1
----
-10

query I rowsort
SELECT + 6 + - + 29 + + 11 AS col2
----
-12

query I rowsort
SELECT - 1 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL + 23 * + + COUNT( * ) - 84 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL + 23 * + + COUNT ( * ) - 84 AS col0
----
-61

query I rowsort
SELECT + - 71 AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT ALL + 33 + + 94 * + CAST( NULL AS SIGNED ) + COUNT( 64 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + 33 + + 94 * + CAST ( NULL AS INTEGER ) + COUNT ( 64 ) AS col1
----
NULL

query I rowsort
SELECT ALL 65 AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2987
SELECT - 96 AS col2, + 67 * - COUNT( * )
----
-96
-67

skipif mysql # not compatible
query II rowsort label-2987
SELECT - 96 AS col2, + 67 * - COUNT ( * )
----
-96
-67

query II rowsort
SELECT ALL 61 AS col0, 15
----
61
15

query I rowsort
SELECT + 94 * + + 30
----
2820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2990
SELECT DISTINCT ( - COUNT( * ) ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT ( - COUNT ( * ) ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT DISTINCT + MIN( DISTINCT + 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + MIN ( DISTINCT + 67 ) AS col0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT ALL - CAST( - + ( + 97 ) AS SIGNED ) * + - ( - CAST( + - COUNT( * ) AS SIGNED ) ) * - + 97
----
9409

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - CAST ( - + ( + 97 ) AS INTEGER ) * + - ( - CAST ( + - COUNT ( * ) AS INTEGER ) ) * - + 97
----
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT ALL COUNT( * ) * + + 69
----
69

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL COUNT ( * ) * + + 69
----
69

query I rowsort
SELECT DISTINCT 71 * - COALESCE ( + 29, - 65 ) AS col0
----
-2059

query I rowsort
SELECT ALL + 23 * + 7
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2996
SELECT ALL + COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL + COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT 62 DIV - 17 - 47 col2
----
-50

skipif mysql # not compatible
query I rowsort label-2997
SELECT 62 / - 17 - 47 col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2998
SELECT ALL CAST( - + ( 69 ) AS SIGNED ) DIV + - 40
----
1

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL CAST ( - + ( 69 ) AS INTEGER ) / + - 40
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT CAST( NULL AS SIGNED ) + + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT CAST ( NULL AS INTEGER ) + + - 17
----
NULL

query I rowsort
SELECT - + 74 AS col1
----
-74

query I rowsort
SELECT ALL - - 71 + + 42 col2
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3002
SELECT ALL - COUNT( * ) DIV + COUNT( ALL - + 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - COUNT ( * ) / + COUNT ( ALL - + 52 ) AS col2
----
-1

query I rowsort
SELECT ALL 69 + 3 AS col0
----
72

query I rowsort
SELECT + - 91 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT + + MAX( ALL + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-3005
SELECT + + MAX ( ALL + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT - - COUNT( * ) - - 76 + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-3006
SELECT - - COUNT ( * ) - - 76 + COUNT ( * ) AS col2
----
78

query I rowsort
SELECT ALL - + 38 * 99 col1
----
-3762

query I rowsort
SELECT 33 col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL + SUM( - - 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + SUM ( - - 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL + MAX( + - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + MAX ( + - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT - MIN( + 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-3011
SELECT - MIN ( + 35 )
----
-35

query I rowsort
SELECT DISTINCT 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL - ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL - ( + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT 71 * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3014
SELECT 71 * + COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3015
SELECT - 70, CAST( NULL AS SIGNED ) AS col2
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-3015
SELECT - 70, CAST ( NULL AS INTEGER ) AS col2
----
-70
NULL

query I rowsort
SELECT + ( - 79 ) AS col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3017
SELECT MIN( + + CAST( 78 AS SIGNED ) )
----
78

skipif mysql # not compatible
query I rowsort label-3017
SELECT MIN ( + + CAST ( 78 AS INTEGER ) )
----
78

query I rowsort
SELECT DISTINCT - 97 AS col0
----
-97

query I rowsort
SELECT 54 + 49 AS col2
----
103

query II rowsort
SELECT 61 + + - 39 AS col2, + 86 col0
----
22
86

query I rowsort
SELECT - + 24 + + 70
----
46

query I rowsort
SELECT - + 61 AS col1
----
-61

query I rowsort
SELECT + 88 + - + 18 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT NULLIF ( + ( 53 ), - + COUNT( * ) - 15 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3024
SELECT NULLIF ( + ( 53 ), - + COUNT ( * ) - 15 ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + MIN( - 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-3025
SELECT + MIN ( - 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL + ( + + MAX( + 21 ) ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL + ( + + MAX ( + 21 ) ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL + COUNT( - + ( 15 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + COUNT ( - + ( 15 ) ) AS col0
----
1

query I rowsort
SELECT ALL + 57 + - 64
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL - + ( + - COUNT( * ) ) + + 93 + - 26 * ( - MAX( DISTINCT + + 73 ) ) AS col2
----
1992

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL - + ( + - COUNT ( * ) ) + + 93 + - 26 * ( - MAX ( DISTINCT + + 73 ) ) AS col2
----
1992

query I rowsort
SELECT - 47 + - 83 AS col2
----
-130

query I rowsort
SELECT - 35 * 13 AS col2
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL - 47 * - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - 47 * - COUNT ( * )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + SUM( ALL + + 73 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-3033
SELECT + SUM ( ALL + + 73 ) col2
----
73

query I rowsort
SELECT 60 + + - 4
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT 26 - + CAST( + 22 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-3035
SELECT 26 - + CAST ( + 22 AS INTEGER )
----
4

query I rowsort
SELECT DISTINCT + 8 + - - 16
----
24

query I rowsort
SELECT 98 + - + 32 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3038
SELECT DISTINCT COUNT( * ) + - 10 col0
----
-9

skipif mysql # not compatible
query I rowsort label-3038
SELECT DISTINCT COUNT ( * ) + - 10 col0
----
-9

query I rowsort
SELECT 2 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT COUNT( * ) * + - 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3040
SELECT COUNT ( * ) * + - 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT 38 + - COUNT( * ) col1
----
37

skipif mysql # not compatible
query I rowsort label-3041
SELECT 38 + - COUNT ( * ) col1
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT - SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3043
SELECT + COUNT( * ) AS col0, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3043
SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT NULLIF ( - - ( + CAST( - - 40 AS SIGNED ) ), + CAST( NULL AS SIGNED ) )
----
40

skipif mysql # not compatible
query I rowsort label-3044
SELECT NULLIF ( - - ( + CAST ( - - 40 AS INTEGER ) ), + CAST ( NULL AS INTEGER ) )
----
40

query I rowsort
SELECT ALL 96 col1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT + ( - + CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3046
SELECT + ( - + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3047
SELECT - ( + + CAST( NULL AS SIGNED ) ) * 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT - ( + + CAST ( NULL AS INTEGER ) ) * 21 AS col1
----
NULL

query I rowsort
SELECT - ( + + 66 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT 80 * - - 61 * - 5 * + COUNT( ALL 46 ) * COUNT( * ) + + 62
----
-24338

skipif mysql # not compatible
query I rowsort label-3049
SELECT 80 * - - 61 * - 5 * + COUNT ( ALL 46 ) * COUNT ( * ) + + 62
----
-24338

query I rowsort
SELECT 8 - + 19
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3051
SELECT ALL + - 52 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL + - 52 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3052
SELECT + COUNT( * ) * - COUNT( * ) DIV COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3052
SELECT + COUNT ( * ) * - COUNT ( * ) / COUNT ( * )
----
-1

query I rowsort
SELECT ALL - ( + - 32 )
----
32

query I rowsort
SELECT + 42 + - 29 + - 47 AS col0
----
-34

query I rowsort
SELECT DISTINCT - - 81
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-3056
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-3056
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * )
----
-1
1

query II rowsort
SELECT ALL 15 AS col1, 91
----
15
91

query I rowsort
SELECT ALL - - 81
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL - 44 * + COUNT( * ) + + + 38 col1
----
-6

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL - 44 * + COUNT ( * ) + + + 38 col1
----
-6

query I rowsort
SELECT ALL - + 47 AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3061
SELECT SUM( DISTINCT - - CAST( 23 AS SIGNED ) ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-3061
SELECT SUM ( DISTINCT - - CAST ( 23 AS INTEGER ) ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT + COUNT( * ) + - 24 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3062
SELECT + COUNT ( * ) + - 24 AS col2
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3063
SELECT ALL COUNT( * ) DIV 31
----
0

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL COUNT ( * ) / 31
----
0

query I rowsort
SELECT ALL + 94 col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3065
SELECT CAST( + SUM( DISTINCT ( 10 ) ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-3065
SELECT CAST ( + SUM ( DISTINCT ( 10 ) ) AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT ALL + 46 * + - 72 + - 23, - COUNT( * ) AS col2
----
-3335
-1

skipif mysql # not compatible
query II rowsort label-3066
SELECT ALL + 46 * + - 72 + - 23, - COUNT ( * ) AS col2
----
-3335
-1

query I rowsort
SELECT + 54 col0
----
54

query I rowsort
SELECT ALL + - 27 AS col0
----
-27

query I rowsort
SELECT DISTINCT + 15 AS col2
----
15

query I rowsort
SELECT DISTINCT + ( - + 62 ) col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3071
SELECT DISTINCT CAST( + 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT CAST ( + 92 AS INTEGER )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3072
SELECT - ( - - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3072
SELECT - ( - - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT + 16 * - COUNT( * ) col0
----
-16

skipif mysql # not compatible
query I rowsort label-3073
SELECT + 16 * - COUNT ( * ) col0
----
-16

query II rowsort
SELECT ALL 22 col2, - 29 AS col2
----
22
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3075
SELECT ALL CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3075
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT DISTINCT 47 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT SUM( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3077
SELECT SUM ( + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL - SUM( + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - SUM ( + 58 )
----
-58

query I rowsort
SELECT ALL 32 * + 16
----
512

query I rowsort
SELECT DISTINCT - 40 col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL - MAX( ALL 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL - MAX ( ALL 12 )
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3082
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + ( + - 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT - - CAST ( NULL AS REAL ) + ( + - 85 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT DISTINCT + COUNT( * ) + - 10
----
-9

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + COUNT ( * ) + - 10
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT - MIN( DISTINCT + ( 10 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-3084
SELECT - MIN ( DISTINCT + ( 10 ) )
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-3085
SELECT ALL SUM( 0 ), 6 * 63 AS col2
----
0
378

skipif mysql # not compatible
query II rowsort label-3085
SELECT ALL SUM ( 0 ), 6 * 63 AS col2
----
0
378

query I rowsort
SELECT ALL 59 + 7 + + 48 col1
----
114

query I rowsort
SELECT - + 90 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT 83 + - - COUNT( * ) * - + ( 87 )
----
-4

skipif mysql # not compatible
query I rowsort label-3088
SELECT 83 + - - COUNT ( * ) * - + ( 87 )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT ALL + 2 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL + 2 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3090
SELECT - + CAST( + 10 AS SIGNED ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-3090
SELECT - + CAST ( + 10 AS INTEGER ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL - - 60 + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - - 60 + COUNT ( * )
----
61

query I rowsort
SELECT ALL - 25 col0
----
-25

query II rowsort
SELECT DISTINCT 0 AS col0, + 15 AS col1
----
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL - - COUNT( * ) * - 40 col2
----
-40

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - - COUNT ( * ) * - 40 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT - COUNT( * ) * + 94
----
-94

skipif mysql # not compatible
query I rowsort label-3095
SELECT - COUNT ( * ) * + 94
----
-94

query I rowsort
SELECT + NULLIF ( + - 22, - 8 + - 26 )
----
-22

query I rowsort
SELECT DISTINCT + 81 AS col1
----
81

query II rowsort
SELECT - 78 AS col0, 61 AS col1
----
-78
61

query II rowsort
SELECT + 6, - 32 * - 64 col1
----
6
2048

query I rowsort
SELECT ( - 0 )
----
0

query II rowsort
SELECT - 85, 67 AS col1
----
-85
67

query I rowsort
SELECT - 46 col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3103
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3104
SELECT - - 34 DIV + - 98 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3104
SELECT - - 34 / + - 98 * COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3105
SELECT DISTINCT CASE COUNT( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT( * ) END AS col2, + 25 col2
----
1
25

skipif mysql # not compatible
query II rowsort label-3105
SELECT DISTINCT CASE COUNT ( * ) WHEN + 50 THEN + - 32 ELSE - - COUNT ( * ) END AS col2, + 25 col2
----
1
25

query I rowsort
SELECT DISTINCT + ( + + 27 ) AS col0
----
27

query I rowsort
SELECT + - 42 AS col1
----
-42

query I rowsort
SELECT + COALESCE ( + 37, - 10 ) col2
----
37

query I rowsort
SELECT - - 91 AS col0
----
91

query I rowsort
SELECT DISTINCT 36 col2
----
36

query I rowsort
SELECT ALL - COALESCE ( NULLIF ( + + 72, + 57 ), - + 82 )
----
-72

query I rowsort
SELECT DISTINCT 20 col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3113
SELECT ALL - CAST( NULL AS SIGNED ) + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL - CAST ( NULL AS INTEGER ) + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT 59 * - COUNT( * ) col2
----
-59

skipif mysql # not compatible
query I rowsort label-3114
SELECT 59 * - COUNT ( * ) col2
----
-59

query I rowsort
SELECT DISTINCT - - ( + 46 )
----
46

query I rowsort
SELECT DISTINCT - + 76 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL - ( - - COUNT( * ) ) * - + 88
----
88

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - ( - - COUNT ( * ) ) * - + 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT - MAX( ALL + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3118
SELECT - MAX ( ALL + 0 ) AS col1
----
0

query I rowsort
SELECT ALL 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT - MAX( 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3120
SELECT - MAX ( 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT COUNT( * ) + + 5 * - + 36
----
-179

skipif mysql # not compatible
query I rowsort label-3121
SELECT COUNT ( * ) + + 5 * - + 36
----
-179

query I rowsort
SELECT ALL + - 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ALL + - ( - COUNT( * ) ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL + - ( - COUNT ( * ) ) * - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - MAX( - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3124
SELECT - MAX ( - 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3125
SELECT - 81 * - COUNT( * ) DIV - MAX( ALL + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT - 81 * - COUNT ( * ) / - MAX ( ALL + 82 )
----
0

query I rowsort
SELECT + 86 col0
----
86

query I rowsort
SELECT + + 43
----
43

query I rowsort
SELECT ALL + 45 * + 3 AS col2
----
135

query I rowsort
SELECT ALL + - 88
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT CAST( + 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-3130
SELECT CAST ( + 22 AS INTEGER )
----
22

query I rowsort
SELECT DISTINCT ( - + 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3132
SELECT ALL - COUNT( * ) * 28 DIV + + COUNT( ALL - + 5 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL - COUNT ( * ) * 28 / + + COUNT ( ALL - + 5 ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT ALL + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) - + + 38 - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) - + + 38 - 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT 58 - + COUNT( * ) + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-3134
SELECT 58 - + COUNT ( * ) + COUNT ( * ) AS col2
----
58

query I rowsort
SELECT DISTINCT 80 * - 98
----
-7840

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT - COUNT( - 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - COUNT ( - 58 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 66
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3138
SELECT ( + 91 ) DIV - COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-3138
SELECT ( + 91 ) / - COUNT ( * ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT - + COUNT( - + 89 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT - + COUNT ( - + 89 ) AS col0
----
-1

query I rowsort
SELECT 90 * - - 99 AS col1
----
8910

query I rowsort
SELECT + + 5 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT SUM( + + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-3142
SELECT SUM ( + + 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT + COALESCE ( - SUM( + 84 ), + 93 ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-3143
SELECT + COALESCE ( - SUM ( + 84 ), + 93 ) col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT + COUNT( * ) + 43
----
44

skipif mysql # not compatible
query I rowsort label-3144
SELECT + COUNT ( * ) + 43
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT DISTINCT - CAST( - 13 AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT - CAST ( - 13 AS INTEGER ) AS col2
----
13

query I rowsort
SELECT - + 63 + + - 70 AS col0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT ALL + MIN( + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-3147
SELECT ALL + MIN ( + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT - COUNT( * ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3148
SELECT - COUNT ( * ) + - COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT DISTINCT - 54 * - - COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT - 54 * - - COUNT ( * ) AS col1
----
-54

query I rowsort
SELECT ALL + + 5 col1
----
5

query I rowsort
SELECT DISTINCT - + 23 AS col2
----
-23

query I rowsort
SELECT + - 37 AS col2
----
-37

query I rowsort
SELECT 83 + 56
----
139

query I rowsort
SELECT 21 * + 1
----
21

query I rowsort
SELECT ALL 28 AS col1
----
28

query I rowsort
SELECT DISTINCT 8 * 75
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-3157
SELECT ALL - 31 DIV - 6 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - 31 / - 6 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL COUNT( * ) * 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL COUNT ( * ) * 16 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT 52 * - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-3159
SELECT 52 * - COUNT ( * )
----
-52

query I rowsort
SELECT ALL 63 + 13
----
76

query I rowsort
SELECT ALL + ( - 14 ) * 7
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT CAST( 97 AS SIGNED ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3162
SELECT CAST ( 97 AS INTEGER ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT + 69 + - MAX( DISTINCT 82 )
----
-13

skipif mysql # not compatible
query I rowsort label-3163
SELECT + 69 + - MAX ( DISTINCT 82 )
----
-13

query I rowsort
SELECT DISTINCT ( + + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT + - COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT + - COUNT ( * ) + + COUNT ( * )
----
0

query I rowsort
SELECT - 81 + 21
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT - + 2 + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3167
SELECT - + 2 + - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - COUNT( * ) + 56 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3168
SELECT - COUNT ( * ) + 56 AS col0
----
55

query I rowsort
SELECT DISTINCT + ( - 23 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT - CAST( NULL AS SIGNED ) + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT - CAST ( NULL AS INTEGER ) + + 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT 7 * - 72 + + - ( + MIN( ( 27 ) ) ) - - COUNT( * )
----
-530

skipif mysql # not compatible
query I rowsort label-3171
SELECT 7 * - 72 + + - ( + MIN ( ( 27 ) ) ) - - COUNT ( * )
----
-530

query I rowsort
SELECT 9 + - 13 AS col2
----
-4

query I rowsort
SELECT DISTINCT 67 + + 47 col0
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT - CAST( + MAX( - 0 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3174
SELECT - CAST ( + MAX ( - 0 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3175
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + COUNT( * ) + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + 0
----
NULL

query I rowsort
SELECT 71 + + 98 * 45 AS col0
----
4481

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3177
SELECT CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3177
SELECT CAST ( NULL AS REAL ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT + CAST( NULL AS SIGNED ) * + - 94 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT + CAST ( NULL AS INTEGER ) * + - 94 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT - COUNT( ALL 87 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3179
SELECT - COUNT ( ALL 87 ) AS col1
----
-1

query I rowsort
SELECT ALL + - 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL - 17 + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL - 17 + - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT - COUNT( - 4 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3182
SELECT - COUNT ( - 4 ) * COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT - 53 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3184
SELECT CAST( - + ( - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3184
SELECT CAST ( - + ( - COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT DISTINCT - 1 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT 5 + + + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT 5 + + + COUNT ( * )
----
6

query I rowsort
SELECT ALL 83 AS col1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 60 AS col1
----
NULL

query II rowsort
SELECT - 50, - 13 AS col1
----
-50
-13

query I rowsort
SELECT + + 39 AS col2
----
39

query I rowsort
SELECT ALL - + 91
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT 95 * - COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3192
SELECT 95 * - COUNT ( * ) AS col1
----
-95

query I rowsort
SELECT ALL - 60 col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT + COUNT( DISTINCT 62 )
----
1

skipif mysql # not compatible
query I rowsort label-3194
SELECT + COUNT ( DISTINCT 62 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL 92 * COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL 92 * COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT + COUNT( + 22 ) + 5 col2
----
6

skipif mysql # not compatible
query I rowsort label-3196
SELECT + COUNT ( + 22 ) + 5 col2
----
6

query I rowsort
SELECT DISTINCT 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT - 28 * COUNT( * ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3198
SELECT - 28 * COUNT ( * ) AS col0
----
-28

query I rowsort
SELECT + 83 col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT MIN( 46 )
----
46

skipif mysql # not compatible
query I rowsort label-3200
SELECT MIN ( 46 )
----
46

query I rowsort
SELECT - ( - - 78 )
----
-78

query I rowsort
SELECT + 87 * + + 6
----
522

query II rowsort
SELECT DISTINCT - 38 col1, + 62 AS col0
----
-38
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT DISTINCT 55 + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT 55 + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT DISTINCT - 28 + + + COUNT( * ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT - 28 + + + COUNT ( * ) AS col1
----
-27

query I rowsort
SELECT - ( - 72 ) col0
----
72

query I rowsort
SELECT + - 39 + 20 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT COUNT( * ) * - COUNT( * ) * - 77
----
77

skipif mysql # not compatible
query I rowsort label-3208
SELECT COUNT ( * ) * - COUNT ( * ) * - 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT - ( + SUM( DISTINCT + 21 ) ) col2
----
-21

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - ( + SUM ( DISTINCT + 21 ) ) col2
----
-21

query I rowsort
SELECT ALL - 28 * + 88 AS col0
----
-2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3211
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3212
SELECT - SUM( DISTINCT + 54 ) col0, + 73 AS col1
----
-54
73

skipif mysql # not compatible
query II rowsort label-3212
SELECT - SUM ( DISTINCT + 54 ) col0, + 73 AS col1
----
-54
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT - - 40 AS col2, - COUNT( * ) AS col2
----
40
-1

skipif mysql # not compatible
query II rowsort label-3213
SELECT - - 40 AS col2, - COUNT ( * ) AS col2
----
40
-1

query I rowsort
SELECT ALL - ( - 87 ) AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT DISTINCT + ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT + ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3216
SELECT - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT + 28 + + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3217
SELECT + 28 + + COUNT ( * ) AS col1
----
29

query I rowsort
SELECT + + ( - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT + - 2 + + - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3219
SELECT + - 2 + + - COUNT ( * )
----
-3

query I rowsort
SELECT - + 27 + + - 20 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT DISTINCT COALESCE ( + + COUNT( * ), + + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT COALESCE ( + + COUNT ( * ), + + 68 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3222
SELECT - MIN( + + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3222
SELECT - MIN ( + + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT + + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + + 5 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT + - SUM( - - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-3226
SELECT + - SUM ( - - 59 ) AS col1
----
-59

query I rowsort
SELECT 69 - - - 50 AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3228
SELECT 36 col1, COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-3228
SELECT 36 col1, COUNT ( * )
----
36
1

query I rowsort
SELECT 78 * + 61 * - 40
----
-190320

query I rowsort
SELECT ALL 20 * 63
----
1260

query I rowsort
SELECT ALL - - 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT - - NULLIF ( - 92, MIN( DISTINCT - - 48 ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - - NULLIF ( - 92, MIN ( DISTINCT - - 48 ) ) AS col0
----
-92

query I rowsort
SELECT DISTINCT - ( - + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT 94 - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-3234
SELECT 94 - + COUNT ( * )
----
93

query I rowsort
SELECT 9 * + 80 AS col2
----
720

query I rowsort
SELECT ALL - 41 + + 7
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-3237
SELECT - COUNT( * ) AS col1, + MIN( DISTINCT - + 36 )
----
-1
-36

skipif mysql # not compatible
query II rowsort label-3237
SELECT - COUNT ( * ) AS col1, + MIN ( DISTINCT - + 36 )
----
-1
-36

query I rowsort
SELECT DISTINCT + - 90
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - MIN( ALL + 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-3239
SELECT - MIN ( ALL + 65 ) col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT ALL - 24 DIV - - ( + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL - 24 / - - ( + 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL + + COUNT( * ) * + MIN( ALL 5 ) + 92
----
97

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL + + COUNT ( * ) * + MIN ( ALL 5 ) + 92
----
97

query I rowsort
SELECT - 41 AS col1
----
-41

query I rowsort
SELECT 20 AS col2
----
20

query II rowsort
SELECT 33, + 69 AS col2
----
33
69

query I rowsort
SELECT - ( + 29 ) AS col2
----
-29

query I rowsort
SELECT ALL 97 AS col2
----
97

query I rowsort
SELECT 38 * - 20
----
-760

onlyif mysql # aggregate syntax: 
query II rowsort label-3248
SELECT 17 col0, - COUNT( * ) AS col2
----
17
-1

skipif mysql # not compatible
query II rowsort label-3248
SELECT 17 col0, - COUNT ( * ) AS col2
----
17
-1

query II rowsort
SELECT 60, + 32 AS col1
----
60
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3250
SELECT 97 AS col2, 25 * CAST( NULL AS SIGNED )
----
97
NULL

skipif mysql # not compatible
query II rowsort label-3250
SELECT 97 AS col2, 25 * CAST ( NULL AS INTEGER )
----
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT DISTINCT + 94 * + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT + 94 * + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT + - SUM( ALL + + 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-3252
SELECT + - SUM ( ALL + + 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT DISTINCT + 65 - - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT + 65 - - COUNT ( * )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3254
SELECT ALL - 84 DIV + + COUNT( * ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL - 84 / + + COUNT ( * ) AS col2
----
-84

query I rowsort
SELECT 13 * 15 AS col0
----
195

query I rowsort
SELECT ALL + + 55 + + 36
----
91

query I rowsort
SELECT ALL - + 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL - + ( + ( - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - + ( + ( - COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL - - 13
----
13

query I rowsort
SELECT DISTINCT - ( + 22 )
----
-22

query I rowsort
SELECT 78 * + - 79
----
-6162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT CAST( 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-3262
SELECT CAST ( 43 AS INTEGER )
----
43

query II rowsort
SELECT + 26 col1, - 89 col1
----
26
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT + SUM( 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT + SUM ( 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3265
SELECT COUNT( * ) DIV 71 + - - 33 * + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-3265
SELECT COUNT ( * ) / 71 + - - 33 * + COUNT ( * )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3266
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) / 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3266
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) / 61 AS col1
----
NULL

query I rowsort
SELECT - + 84 col0
----
-84

query II rowsort
SELECT + 8 AS col0, - 31 - + + 1 AS col0
----
8
-32

query I rowsort
SELECT 19 * + + 77 AS col1
----
1463

onlyif mysql # aggregate syntax: 
query II rowsort label-3270
SELECT DISTINCT COUNT( * ) AS col1, 66
----
1
66

skipif mysql # not compatible
query II rowsort label-3270
SELECT DISTINCT COUNT ( * ) AS col1, 66
----
1
66

query I rowsort
SELECT ALL 4 + - 99
----
-95

query I rowsort
SELECT - - 1 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT COUNT( * ) * 70 col2
----
70

skipif mysql # not compatible
query I rowsort label-3273
SELECT COUNT ( * ) * 70 col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT ALL + SUM( ALL + ( - 69 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + SUM ( ALL + ( - 69 ) ) AS col1
----
-69

query I rowsort
SELECT 62 * - 42 - + 53 AS col1
----
-2657

query I rowsort
SELECT DISTINCT - ( - 10 ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT ALL - ( - AVG ( + - CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL - ( - AVG ( + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 21 AS col2
----
21

query I rowsort
SELECT + 67 * + 88
----
5896

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT MAX( ALL + 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-3280
SELECT MAX ( ALL + 56 ) AS col2
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3281
SELECT + + ( + COUNT( * ) ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT + + ( + COUNT ( * ) ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL - COUNT( ( + + 44 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL - COUNT ( ( + + 44 ) )
----
-1

query II rowsort
SELECT ALL - 50 AS col0, - 76 AS col1
----
-50
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT 9 * - SUM( DISTINCT + + 99 )
----
-891

skipif mysql # not compatible
query I rowsort label-3284
SELECT 9 * - SUM ( DISTINCT + + 99 )
----
-891

query I rowsort
SELECT + - ( + 4 ) AS col1
----
-4

query I rowsort
SELECT ALL 82 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT 53 + + MAX( - 59 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3287
SELECT 53 + + MAX ( - 59 ) col2
----
-6

query I rowsort
SELECT ALL + + 80
----
80

query I rowsort
SELECT ALL + - 48 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT + + COUNT( DISTINCT + + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT + + COUNT ( DISTINCT + + 52 )
----
1

query I rowsort
SELECT DISTINCT ( + COALESCE ( 95, - 2 * + 33 ) ) AS col0
----
95

query I rowsort
SELECT DISTINCT 15 * + - ( - 74 )
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT + + 92 + - COUNT( * ) col1
----
91

skipif mysql # not compatible
query I rowsort label-3293
SELECT + + 92 + - COUNT ( * ) col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT DISTINCT + + ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT + + ( - - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ALL + - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + - COUNT ( * ) col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3296
SELECT - ( - - ( - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3296
SELECT - ( - - ( - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT SUM( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT SUM ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL - ( - 27 ) + + + MIN( - 8 )
----
19

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL - ( - 27 ) + + + MIN ( - 8 )
----
19

query I rowsort
SELECT 57 - - ( + 69 )
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT ( - ( - ( 76 ) ) ) DIV + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT ( - ( - ( 76 ) ) ) / + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL - ( + 49 ) + + COUNT( * ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - ( + 49 ) + + COUNT ( * ) AS col1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3303
SELECT + 98 * - 73 DIV - COUNT( * )
----
7154

skipif mysql # not compatible
query I rowsort label-3303
SELECT + 98 * - 73 / - COUNT ( * )
----
7154

query I rowsort
SELECT ALL - 40 col0
----
-40

query I rowsort
SELECT 30 - - 38 + + 7
----
75

query I rowsort
SELECT ALL - - ( + 89 ) AS col1
----
89

query I rowsort
SELECT 55 + - 71 * - 53
----
3818

query I rowsort
SELECT + + 71 AS col1
----
71

query I rowsort
SELECT DISTINCT 84 - - 86
----
170

query I rowsort
SELECT ALL - - 64 * + - 58 AS col2
----
-3712

query I rowsort
SELECT ALL + + 65
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3312
SELECT - - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT - - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT + MAX( ALL + - 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3314
SELECT + MAX ( ALL + - 25 ) AS col1
----
-25

query I rowsort
SELECT DISTINCT + 85 AS col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3316
SELECT + 62 + CAST( NULL AS DECIMAL ) AS col0, + NULLIF ( + - 24, - + COUNT( * ) )
----
NULL
-24

skipif mysql # not compatible
query II rowsort label-3316
SELECT + 62 + CAST ( NULL AS REAL ) AS col0, + NULLIF ( + - 24, - + COUNT ( * ) )
----
NULL
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - MIN( DISTINCT - - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-3317
SELECT - MIN ( DISTINCT - - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL - COUNT( * ) + - + ( 80 )
----
-81

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL - COUNT ( * ) + - + ( 80 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT - COUNT( * ) + + + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT - COUNT ( * ) + + + COUNT ( * ) col0
----
0

query I rowsort
SELECT 23 - 14 AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3321
SELECT COUNT( * ), + CAST( NULL AS DECIMAL ) col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3321
SELECT COUNT ( * ), + CAST ( NULL AS REAL ) col2
----
1
NULL

query I rowsort
SELECT 22 col1
----
22

query I rowsort
SELECT DISTINCT - 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT 94 AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3325
SELECT + CAST( NULL AS SIGNED ) / + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-3325
SELECT + CAST ( NULL AS INTEGER ) / + + 95
----
NULL

query I rowsort
SELECT + - 14 AS col2
----
-14

query I rowsort
SELECT DISTINCT ( - 71 ) col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3328
SELECT ALL + COUNT( * ) DIV - 19 + - + 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL + COUNT ( * ) / - 19 + - + 56 AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3329
SELECT - NULLIF ( + CAST( NULL AS DECIMAL ), CAST( NULL AS SIGNED ) ) * - 22 + + COALESCE ( 97, - 77 * + ( - COUNT( * ) ) * - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT - NULLIF ( + CAST ( NULL AS REAL ), CAST ( NULL AS INTEGER ) ) * - 22 + + COALESCE ( 97, - 77 * + ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL - 54 col1
----
-54

query I rowsort
SELECT DISTINCT - + 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ( - - 68 ) * - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3332
SELECT ( - - 68 ) * - COUNT ( * )
----
-68

query I rowsort
SELECT DISTINCT - 94 AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3334
SELECT 76 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT 76 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3335
SELECT DISTINCT - 24 * + COUNT( * ), 20 AS col0
----
-24
20

skipif mysql # not compatible
query II rowsort label-3335
SELECT DISTINCT - 24 * + COUNT ( * ), 20 AS col0
----
-24
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL - COUNT( * ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL - COUNT ( * ) + - COUNT ( * )
----
-2

query I rowsort
SELECT DISTINCT - - 6 * + 18
----
108

query II rowsort
SELECT ALL - 71 col1, 69
----
-71
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT ALL - 84 + - COUNT( * ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL - 84 + - COUNT ( * ) col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT + CAST( + 56 AS SIGNED ) + - 30
----
26

skipif mysql # not compatible
query I rowsort label-3340
SELECT + CAST ( + 56 AS INTEGER ) + - 30
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3341
SELECT ALL 56 DIV 92 col1
----
0

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL 56 / 92 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT ALL COUNT( * ) * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ALL 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - + COUNT( * ) + - - 18 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - + COUNT ( * ) + - - 18 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3345
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col0
----
NULL

query II rowsort
SELECT ALL 30 AS col1, + 42 AS col1
----
30
42

query I rowsort
SELECT ALL + 23 + + + 56 AS col2
----
79

query I rowsort
SELECT ALL + - 36 + + 43
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT 74 + + MAX( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT 74 + + MAX ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 23 * 73 AS col2
----
1679

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL - SUM( ALL + 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL - SUM ( ALL + 8 ) AS col0
----
-8

query I rowsort
SELECT 74 col2
----
74

query I rowsort
SELECT 6 + - + 79 - + 26
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT COUNT( DISTINCT + + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT COUNT ( DISTINCT + + 89 )
----
1

query I rowsort
SELECT - - 43 col2
----
43

query I rowsort
SELECT DISTINCT - 9 AS col1
----
-9

query I rowsort
SELECT ALL + 76 - + 95
----
-19

query I rowsort
SELECT DISTINCT ( - 98 )
----
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3359
SELECT - ( - COUNT( * ) ) + + 14 DIV COUNT( * ) col0
----
15

skipif mysql # not compatible
query I rowsort label-3359
SELECT - ( - COUNT ( * ) ) + + 14 / COUNT ( * ) col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT COUNT( + - 6 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3360
SELECT COUNT ( + - 6 ) col2
----
1

query I rowsort
SELECT + ( - 32 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - - ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3362
SELECT - - ( COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT - CAST( NULL AS SIGNED ) * CAST( - - ( - - 56 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3363
SELECT - CAST ( NULL AS INTEGER ) * CAST ( - - ( - - 56 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL MAX( DISTINCT + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL MAX ( DISTINCT + + 38 )
----
38

query I rowsort
SELECT DISTINCT - 75 * + + 90 * + 40 AS col2
----
-270000

query I rowsort
SELECT ( ( 58 ) ) AS col1
----
58

query I rowsort
SELECT 41 * + - 6
----
-246

query I rowsort
SELECT DISTINCT + ( + 45 )
----
45

query I rowsort
SELECT DISTINCT - 23 col1
----
-23

query I rowsort
SELECT - 94 col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3371
SELECT ALL - MIN( DISTINCT + + CAST( + 2 AS SIGNED ) ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - MIN ( DISTINCT + + CAST ( + 2 AS INTEGER ) ) col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT + 40 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT + 40 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 86 AS col1
----
86

query I rowsort
SELECT ALL 52 * + + 55 + - 17 AS col1
----
2843

query I rowsort
SELECT DISTINCT + 22 col0
----
22

query I rowsort
SELECT ALL + + ( + 37 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT ALL - COUNT( * ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL - COUNT ( * ) / 71
----
0

query I rowsort
SELECT 18 col0
----
18

query I rowsort
SELECT DISTINCT + ( + 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-3380
SELECT + 13 * 69 AS col2, - COUNT( * ) + + + COUNT( * )
----
897
0

skipif mysql # not compatible
query II rowsort label-3380
SELECT + 13 * 69 AS col2, - COUNT ( * ) + + + COUNT ( * )
----
897
0

query I rowsort
SELECT ALL + + 43
----
43

query I rowsort
SELECT + - 65 AS col1
----
-65

query I rowsort
SELECT ALL + 8 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3384
SELECT - MAX( DISTINCT CAST( + 13 AS SIGNED ) )
----
-13

skipif mysql # not compatible
query I rowsort label-3384
SELECT - MAX ( DISTINCT CAST ( + 13 AS INTEGER ) )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL - SUM( + 18 ) * + 82 col2
----
-1476

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - SUM ( + 18 ) * + 82 col2
----
-1476

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT - COUNT( ALL - + 6 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3386
SELECT - COUNT ( ALL - + 6 ) AS col2
----
-1

query I rowsort
SELECT - 24 + + 34
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + MAX( ALL - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-3388
SELECT + MAX ( ALL - 68 )
----
-68

query I rowsort
SELECT ALL 19 AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT ALL + SUM( 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL + SUM ( 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT + 79 + COALESCE ( COUNT( * ), + 26 )
----
80

skipif mysql # not compatible
query I rowsort label-3391
SELECT + 79 + COALESCE ( COUNT ( * ), + 26 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT + COUNT( * ) * + COALESCE ( + 87, - + 75 ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-3392
SELECT + COUNT ( * ) * + COALESCE ( + 87, - + 75 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT + ( - COUNT( * ) ) * + 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3393
SELECT + ( - COUNT ( * ) ) * + 59 AS col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT DISTINCT - 88 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - 88 / - 91 AS col0
----
0

query I rowsort
SELECT + 17 * ( - 61 )
----
-1037

query I rowsort
SELECT ALL - 71 * 21 AS col1
----
-1491

query I rowsort
SELECT DISTINCT + 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL + ( + ( COUNT( 88 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL + ( + ( COUNT ( 88 ) ) ) AS col2
----
1

query I rowsort
SELECT - 63 * 99
----
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT ALL + MIN( - 50 ) col0
----
-50

skipif mysql # not compatible
query I rowsort label-3400
SELECT ALL + MIN ( - 50 ) col0
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT + 19 DIV COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-3401
SELECT + 19 / COUNT ( * ) AS col1
----
19

query I rowsort
SELECT - ( 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + COUNT( * ) * - 26 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3403
SELECT + COUNT ( * ) * - 26 AS col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT ALL CAST( NULL AS SIGNED ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL CAST ( NULL AS INTEGER ) * - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT - + COUNT( ALL + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-3405
SELECT - + COUNT ( ALL + 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT ALL MAX( ALL 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL MAX ( ALL 72 )
----
72

query I rowsort
SELECT 88 * 24 col0
----
2112

query I rowsort
SELECT DISTINCT - - 94 AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3409
SELECT 79 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT 79 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT DISTINCT - SUM( ALL - 49 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT - SUM ( ALL - 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - SUM( DISTINCT + - 83 ) col2
----
83

skipif mysql # not compatible
query I rowsort label-3411
SELECT - SUM ( DISTINCT + - 83 ) col2
----
83

query I rowsort
SELECT - - 90 AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3413
SELECT ALL + COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL + COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3414
SELECT + 0 / - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT + 0 / - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 66 AS col2
----
66

query I rowsort
SELECT ALL - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT 7 * COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3417
SELECT 7 * COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT - + COUNT( * ) + 46 * - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-3418
SELECT - + COUNT ( * ) + 46 * - COUNT ( * ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - + 41 - COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-3419
SELECT - + 41 - COUNT ( * ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL + COUNT( DISTINCT ( + + 49 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + COUNT ( DISTINCT ( + + 49 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT + COUNT( * ) * - 49
----
-49

skipif mysql # not compatible
query I rowsort label-3421
SELECT + COUNT ( * ) * - 49
----
-49

query I rowsort
SELECT ALL + 33 col0
----
33

query I rowsort
SELECT + 60 + - 97 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL + MIN( DISTINCT 96 ) * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + MIN ( DISTINCT 96 ) * COUNT ( * )
----
96

query I rowsort
SELECT ALL + 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3426
SELECT DISTINCT - COUNT( DISTINCT + 79 ) col1, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-3426
SELECT DISTINCT - COUNT ( DISTINCT + 79 ) col1, COUNT ( * ) AS col2
----
-1
1

query I rowsort
SELECT - 14 * + 99 - + - 54 AS col2
----
-1332

query I rowsort
SELECT - + 65
----
-65

query I rowsort
SELECT DISTINCT 32 AS col2
----
32

query I rowsort
SELECT 57 * + 75
----
4275

query I rowsort
SELECT ALL 90 * 86 AS col1
----
7740

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT ( + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3432
SELECT ( + COUNT ( * ) ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( DISTINCT - 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT - 70 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT SUM( - 18 ) - + 91
----
-109

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT SUM ( - 18 ) - + 91
----
-109

query II rowsort
SELECT 95 col2, - 5
----
95
-5

query I rowsort
SELECT ALL - 52 * 33 AS col2
----
-1716

query I rowsort
SELECT + 70 - + + 82
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL + 87 + + + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL + 87 + + + COUNT ( * ) AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT DISTINCT SUM( + - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT SUM ( + - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT - 35 * - + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3440
SELECT - 35 * - + COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-3441
SELECT - ( + 93 ) AS col2, COUNT( * )
----
-93
1

skipif mysql # not compatible
query II rowsort label-3441
SELECT - ( + 93 ) AS col2, COUNT ( * )
----
-93
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT 58, - COUNT( * ) col0
----
58
-1

skipif mysql # not compatible
query II rowsort label-3442
SELECT 58, - COUNT ( * ) col0
----
58
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT DISTINCT ( + ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT ( + ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT DISTINCT ( 72 ) AS col2
----
72

query I rowsort
SELECT DISTINCT 12 AS col2
----
12

query I rowsort
SELECT + ( 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3447
SELECT + ( + - ( - CAST( NULL AS SIGNED ) ) ) AS col2, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3447
SELECT + ( + - ( - CAST ( NULL AS INTEGER ) ) ) AS col2, CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 56 + + + 56 AS col1
----
112

query I rowsort
SELECT ALL - 21 col1
----
-21

query I rowsort
SELECT 34 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT - MIN( - 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3451
SELECT - MIN ( - 45 ) AS col1
----
45

query I rowsort
SELECT + 41 col1
----
41

query I rowsort
SELECT ALL - 85 AS col1
----
-85

query I rowsort
SELECT - 86 col2
----
-86

query I rowsort
SELECT ALL 97 + - 72 AS col2
----
25

query I rowsort
SELECT ALL 8 col1
----
8

query I rowsort
SELECT ALL 62 AS col1
----
62

query I rowsort
SELECT 7 + 27
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL + 7 + - + COUNT( * ) col0
----
6

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + 7 + - + COUNT ( * ) col0
----
6

query I rowsort
SELECT ALL 73 AS col2
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3461
SELECT DISTINCT - 62 DIV 6
----
-10

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - 62 / 6
----
-10

query I rowsort
SELECT ALL - ( 68 )
----
-68

query I rowsort
SELECT + - 64 col1
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-3464
SELECT ALL 27 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL 27 / - 90 AS col0
----
0

query I rowsort
SELECT ALL 83 - 95 AS col0
----
-12

query I rowsort
SELECT DISTINCT + - 7 col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3467
SELECT - COUNT( CAST( NULL AS SIGNED ) ) + + 73 + 65
----
138

skipif mysql # not compatible
query I rowsort label-3467
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) + + 73 + 65
----
138

query I rowsort
SELECT DISTINCT 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT + 71 * COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3469
SELECT + 71 * COUNT ( * )
----
71

query I rowsort
SELECT - - 11
----
11

query I rowsort
SELECT + ( + - 6 ) AS col1
----
-6

query I rowsort
SELECT + - 60 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT COUNT( * ) + - - 10 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( * ) + - - 10 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT 55 * + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3475
SELECT COUNT( * ) DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-3475
SELECT COUNT ( * ) / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT 12 * - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT 12 * - COUNT ( * )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-3477
SELECT 5 DIV + 16
----
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT 5 / + 16
----
0

query I rowsort
SELECT + 35 AS col1
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT DISTINCT + NULLIF ( + ( - + 3 ), - - COUNT( * ) ) DIV - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + NULLIF ( + ( - + 3 ), - - COUNT ( * ) ) / - COUNT ( * ) AS col0
----
3

query I rowsort
SELECT DISTINCT - 55 AS col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3481
SELECT ALL CAST( NULL AS SIGNED ) * - COALESCE ( - - CAST( NULL AS SIGNED ), + + 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL CAST ( NULL AS INTEGER ) * - COALESCE ( - - CAST ( NULL AS INTEGER ), + + 91 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3482
SELECT 84 - NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-3482
SELECT 84 - NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT - SUM( + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-3483
SELECT - SUM ( + 63 )
----
-63

query I rowsort
SELECT - ( + 60 ) AS col0
----
-60

query I rowsort
SELECT ALL - - 19 * 73
----
1387

query I rowsort
SELECT DISTINCT + ( - - 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT + 9 * - COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-3487
SELECT + 9 * - COUNT ( * ) AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT ALL CAST( NULL AS SIGNED ) * - 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL CAST ( NULL AS INTEGER ) * - 99 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3489
SELECT + AVG ( + ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3489
SELECT + AVG ( + ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 0 AS col1
----
0

query I rowsort
SELECT ALL - 16 * - 16
----
256

query I rowsort
SELECT - 79 * + 11
----
-869

onlyif mysql # aggregate syntax: 
query II rowsort label-3493
SELECT ALL + COUNT( 86 ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3493
SELECT ALL + COUNT ( 86 ) AS col0, COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT CAST( + 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-3494
SELECT CAST ( + 12 AS INTEGER )
----
12

query I rowsort
SELECT - 43 * + 13 * + 31
----
-17329

query I rowsort
SELECT ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT + COUNT( * ) - ( + 36 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3497
SELECT + COUNT ( * ) - ( + 36 ) AS col1
----
-35

query II rowsort
SELECT ALL + 96 AS col1, + 21
----
96
21

query I rowsort
SELECT + ( ( + - 2 ) )
----
-2

query I rowsort
SELECT + ( - + 63 ) AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT DISTINCT + + CAST( + + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT + + CAST ( + + 21 AS INTEGER )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3502
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT ALL + CAST( - 12 AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL + CAST ( - 12 AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT ALL - ( - ( - + MIN( ALL - - 55 ) ) )
----
-55

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL - ( - ( - + MIN ( ALL - - 55 ) ) )
----
-55

query I rowsort
SELECT ALL - - 88 AS col2
----
88

query I rowsort
SELECT 70 * 46
----
3220

query I rowsort
SELECT - + 26
----
-26

query II rowsort
SELECT DISTINCT + 8 col0, 90 AS col1
----
8
90

query I rowsort
SELECT ALL + + 29 AS col2
----
29

query I rowsort
SELECT ALL + - 95
----
-95

query I rowsort
SELECT + + 72 col1
----
72

query I rowsort
SELECT DISTINCT + + 13 AS col0
----
13

query I rowsort
SELECT ALL + 20 col1
----
20

query I rowsort
SELECT DISTINCT ( - 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT - MIN( ALL 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3515
SELECT - MIN ( ALL 27 ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3516
SELECT + ( 28 ) - 64 - - + 70 / SUM( ALL - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT + ( 28 ) - 64 - - + 70 / SUM ( ALL - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3517
SELECT ALL + + ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL + + ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT - + COUNT( * ) * + 47 + + 90
----
43

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - + COUNT ( * ) * + 47 + + 90
----
43

query I rowsort
SELECT + - 89 AS col2
----
-89

query I rowsort
SELECT + NULLIF ( + 17, 86 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT - COUNT( * ) * + + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3521
SELECT - COUNT ( * ) * + + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL + 72 - + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + 72 - + COUNT ( * ) AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT ALL CAST( + 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL CAST ( + 96 AS INTEGER ) AS col0
----
96

query I rowsort
SELECT 1 * + - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT + + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3525
SELECT + + ( - COUNT ( * ) ) AS col0
----
-1

query II rowsort
SELECT ALL - 80 AS col1, 52
----
-80
52

query I rowsort
SELECT ALL - 40 * + 80 * + 83 AS col2
----
-265600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT 32 * - - 86 * + CAST( + 50 AS SIGNED ) col2
----
137600

skipif mysql # not compatible
query I rowsort label-3528
SELECT 32 * - - 86 * + CAST ( + 50 AS INTEGER ) col2
----
137600

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT + 23 - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + 23 - + COUNT ( * )
----
22

query I rowsort
SELECT DISTINCT + 57 AS col2
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3531
SELECT - COUNT( * ) * - 30 DIV - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-3531
SELECT - COUNT ( * ) * - 30 / - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT SUM( 39 ) * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-3532
SELECT SUM ( 39 ) * - COUNT ( * )
----
-39

query I rowsort
SELECT 73 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT - 92 * - COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3534
SELECT - 92 * - COUNT ( * ) AS col2
----
92

query I rowsort
SELECT DISTINCT + 74 AS col2
----
74

query I rowsort
SELECT ALL + ( - 23 ) AS col1
----
-23

query I rowsort
SELECT + + 89
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT - 44 + - - CAST( + - 38 AS SIGNED ) + COUNT( * ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3538
SELECT - 44 + - - CAST ( + - 38 AS INTEGER ) + COUNT ( * ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT + COUNT( * ) AS col0, 76 AS col2
----
1
76

skipif mysql # not compatible
query II rowsort label-3539
SELECT + COUNT ( * ) AS col0, 76 AS col2
----
1
76

query I rowsort
SELECT ALL 26 * + 96
----
2496

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT DISTINCT 29 + + SUM( DISTINCT 58 )
----
87

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT 29 + + SUM ( DISTINCT 58 )
----
87

query I rowsort
SELECT DISTINCT + 20 col1
----
20

query I rowsort
SELECT DISTINCT + ( + + 32 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3544
SELECT ALL + 60 AS col2, SUM( + 82 ) * - + COUNT( * ) - 79 AS col1
----
60
-161

skipif mysql # not compatible
query II rowsort label-3544
SELECT ALL + 60 AS col2, SUM ( + 82 ) * - + COUNT ( * ) - 79 AS col1
----
60
-161

query I rowsort
SELECT 47 * + - 18 - + 3 * + 85
----
-1101

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT ALL - 74 DIV + - 19 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - 74 / + - 19 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT 47 * - - 13 + + COUNT( * ) - 15
----
597

skipif mysql # not compatible
query I rowsort label-3547
SELECT 47 * - - 13 + + COUNT ( * ) - 15
----
597

query I rowsort
SELECT - + 91 AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3550
SELECT - - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT - - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT DISTINCT 79 * COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3551
SELECT DISTINCT 79 * COUNT ( * ) AS col2
----
79

query I rowsort
SELECT DISTINCT - ( - + ( + 41 ) ) AS col2
----
41

query I rowsort
SELECT ALL - ( + - 13 ) * + - 47
----
-611

query I rowsort
SELECT DISTINCT - 33 col0
----
-33

query I rowsort
SELECT ALL + 26 * - 46 + + 92 AS col0
----
-1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3556
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + COUNT( + ( 45 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3557
SELECT + COUNT ( + ( 45 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT ALL + 66, ( + - COUNT( * ) ) * - - 11 AS col1
----
66
-11

skipif mysql # not compatible
query II rowsort label-3558
SELECT ALL + 66, ( + - COUNT ( * ) ) * - - 11 AS col1
----
66
-11

query I rowsort
SELECT + 0 - 61
----
-61

query II rowsort
SELECT - 59 AS col1, + 34
----
-59
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - + NULLIF ( - 45, + - 11 * COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-3561
SELECT - + NULLIF ( - 45, + - 11 * COUNT ( * ) )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3562
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT + 65 * - + 11
----
-715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3564
SELECT + COUNT( * ) DIV + - MIN( ALL - 37 )
----
0

skipif mysql # not compatible
query I rowsort label-3564
SELECT + COUNT ( * ) / + - MIN ( ALL - 37 )
----
0

query I rowsort
SELECT ALL - 19 + 76 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3566
SELECT CAST( 27 AS SIGNED ) * + 85 col1
----
2295

skipif mysql # not compatible
query I rowsort label-3566
SELECT CAST ( 27 AS INTEGER ) * + 85 col1
----
2295

query I rowsort
SELECT 14 + + + 28 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3568
SELECT ALL - 30 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL - 30 / + 51
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT - COUNT( 9 ) * - 17 * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT - COUNT ( 9 ) * - 17 * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 27 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT + MAX( + 67 ) col2
----
67

skipif mysql # not compatible
query I rowsort label-3571
SELECT + MAX ( + 67 ) col2
----
67

query I rowsort
SELECT ALL 32 AS col1
----
32

query I rowsort
SELECT - 78 AS col2
----
-78

query I rowsort
SELECT ALL 80 col2
----
80

query I rowsort
SELECT ALL 38 col1
----
38

query I rowsort
SELECT DISTINCT - 68 col2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT - - 4 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT - - 4 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - ( 2 )
----
-2

query I rowsort
SELECT DISTINCT ( - 42 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT ( - - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3581
SELECT ( - ( COUNT( * ) ) ) AS col2, 27 AS col1
----
-1
27

skipif mysql # not compatible
query II rowsort label-3581
SELECT ( - ( COUNT ( * ) ) ) AS col2, 27 AS col1
----
-1
27

query I rowsort
SELECT + + 23 + - + 1
----
22

query I rowsort
SELECT + 69 * - 12
----
-828

query I rowsort
SELECT 35 * 66
----
2310

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - 24 + - + COUNT( * ) + + - 15
----
-40

skipif mysql # not compatible
query I rowsort label-3585
SELECT - 24 + - + COUNT ( * ) + + - 15
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT + MIN( - + 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-3586
SELECT + MIN ( - + 68 ) AS col0
----
-68

query I rowsort
SELECT ALL - - 97
----
97

query I rowsort
SELECT ALL - + 64 AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT ALL CAST( 52 AS SIGNED ) + - ( - ( - + 7 ) ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL CAST ( 52 AS INTEGER ) + - ( - ( - + 7 ) ) AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3590
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + 81 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 30
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT 3 + - + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3592
SELECT 3 + - + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT ALL ( - - COUNT( * ) ) + 40 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL ( - - COUNT ( * ) ) + 40 AS col1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 69 AS col1
----
69

query I rowsort
SELECT - - ( 84 )
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-3597
SELECT + - 23 AS col1, - COUNT( * )
----
-23
-1

skipif mysql # not compatible
query II rowsort label-3597
SELECT + - 23 AS col1, - COUNT ( * )
----
-23
-1

query I rowsort
SELECT DISTINCT + 52 col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3599
SELECT DISTINCT + CAST( + + 84 AS SIGNED ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3599
SELECT DISTINCT + CAST ( + + 84 AS INTEGER ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT COUNT( ALL 36 )
----
1

skipif mysql # not compatible
query I rowsort label-3600
SELECT COUNT ( ALL 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - MAX( + 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3601
SELECT - MAX ( + 95 ) AS col0
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3602
SELECT - 31 * + + 22 + + - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT - 31 * + + 22 + + - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL CAST( NULL AS SIGNED ) / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL CAST ( NULL AS INTEGER ) / 78
----
NULL

query I rowsort
SELECT - - 38 col1
----
38

query I rowsort
SELECT ALL + 2 col1
----
2

query I rowsort
SELECT DISTINCT + 52 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT + MIN( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-3607
SELECT + MIN ( - 24 )
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3608
SELECT 74 DIV - - 86
----
0

skipif mysql # not compatible
query I rowsort label-3608
SELECT 74 / - - 86
----
0

query I rowsort
SELECT ALL + - 29 + + ( - 45 )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3610
SELECT - 65, - 21 - COUNT( * ) AS col1
----
-65
-22

skipif mysql # not compatible
query II rowsort label-3610
SELECT - 65, - 21 - COUNT ( * ) AS col1
----
-65
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT DISTINCT 14 * - 71 AS col2, - COUNT( * )
----
-994
-1

skipif mysql # not compatible
query II rowsort label-3611
SELECT DISTINCT 14 * - 71 AS col2, - COUNT ( * )
----
-994
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT 13 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT 13 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT COUNT( * ) * + 52 * + 8 AS col1
----
416

skipif mysql # not compatible
query I rowsort label-3613
SELECT COUNT ( * ) * + 52 * + 8 AS col1
----
416

query I rowsort
SELECT - + 75 AS col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3615
SELECT 19 DIV + ( - 90 ) * 37
----
0

skipif mysql # not compatible
query I rowsort label-3615
SELECT 19 / + ( - 90 ) * 37
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT + 85 * + ( + CAST( NULL AS SIGNED ) ) + - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT + 85 * + ( + CAST ( NULL AS INTEGER ) ) + - 66 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3617
SELECT ( - - 32 ) DIV + - 21
----
-1

skipif mysql # not compatible
query I rowsort label-3617
SELECT ( - - 32 ) / + - 21
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3618
SELECT DISTINCT + ( + + 10 ) DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT + ( + + 10 ) / + + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT - 38 + - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-3619
SELECT - 38 + - + COUNT ( * )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT DISTINCT + 8 - - - COUNT( + - CAST( NULL AS SIGNED ) ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3620
SELECT DISTINCT + 8 - - - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT 53 - - COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT 53 - - COUNT ( * ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT - ( + + MIN( DISTINCT - 32 ) )
----
32

skipif mysql # not compatible
query I rowsort label-3622
SELECT - ( + + MIN ( DISTINCT - 32 ) )
----
32

query I rowsort
SELECT ALL + ( + + 39 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3624
SELECT COUNT( * ) DIV COUNT( * ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-3624
SELECT COUNT ( * ) / COUNT ( * ) + 92
----
93

query I rowsort
SELECT - - 55 + - 47 AS col2
----
8

query I rowsort
SELECT - 64 * - 25
----
1600

query I rowsort
SELECT - 47 col0
----
-47

query I rowsort
SELECT ( + 4 ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + 55 + - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3629
SELECT + 55 + - COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT + MAX( DISTINCT 63 ) * + + 98
----
6174

skipif mysql # not compatible
query I rowsort label-3630
SELECT + MAX ( DISTINCT 63 ) * + + 98
----
6174

query I rowsort
SELECT ALL 96 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ALL 53 - + COUNT( * ) + + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL 53 - + COUNT ( * ) + + COUNT ( * ) AS col0
----
53

query I rowsort
SELECT ALL + 29 - - ( COALESCE ( - 21, 32, - 21 ) ) + + ( + 44 ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT + ( - ( 74 ) ) * COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + ( - ( 74 ) ) * COUNT ( * ) AS col0
----
-74

query I rowsort
SELECT ALL + - 69
----
-69

query I rowsort
SELECT ALL + + 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT ALL + 24 * + - 92 * COUNT( * ) AS col2
----
-2208

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL + 24 * + - 92 * COUNT ( * ) AS col2
----
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3638
SELECT + 70 + + + 78 * + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT + 70 + + + 78 * + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 14 AS col2
----
14

query I rowsort
SELECT DISTINCT + + 71 * + 88 * + - ( + - 81 ) AS col1
----
506088

query I rowsort
SELECT DISTINCT - - 2
----
2

query I rowsort
SELECT + + 53 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT DISTINCT + - ( + COUNT( * ) ) + + - 20 col0
----
-21

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT + - ( + COUNT ( * ) ) + + - 20 col0
----
-21

query I rowsort
SELECT ALL 51 AS col0
----
51

query I rowsort
SELECT DISTINCT 3 AS col2
----
3

query I rowsort
SELECT DISTINCT 11 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3647
SELECT ALL + 89 DIV + + 62 col1
----
1

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL + 89 / + + 62 col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3648
SELECT + COALESCE ( 80, COUNT( * ) ) DIV + 33 col2
----
2

skipif mysql # not compatible
query I rowsort label-3648
SELECT + COALESCE ( 80, COUNT ( * ) ) / + 33 col2
----
2

query I rowsort
SELECT - ( 26 )
----
-26

query I rowsort
SELECT ALL 6 AS col2
----
6

query I rowsort
SELECT DISTINCT 57 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT - + COUNT( * ) + + - 33 col0
----
-34

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - + COUNT ( * ) + + - 33 col0
----
-34

query I rowsort
SELECT - 46 + - - 75 AS col2
----
29

query I rowsort
SELECT - - 67 AS col1
----
67

query I rowsort
SELECT ALL + - 65 AS col2
----
-65

query I rowsort
SELECT ALL + 49 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT MIN( + - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-3657
SELECT MIN ( + - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT DISTINCT COUNT( - 64 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3658
SELECT DISTINCT COUNT ( - 64 ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT - ( + SUM( - 98 ) )
----
98

skipif mysql # not compatible
query I rowsort label-3659
SELECT - ( + SUM ( - 98 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3661
SELECT - + 44 DIV + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-3661
SELECT - + 44 / + COUNT ( * )
----
-44

query I rowsort
SELECT + 6 * - + 28
----
-168

query I rowsort
SELECT DISTINCT - 3 col1
----
-3

query II rowsort
SELECT - 33 AS col0, + 43 AS col2
----
-33
43

query I rowsort
SELECT ALL + - 38
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - 95 * COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3666
SELECT - 95 * COUNT ( * )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3667
SELECT - CAST( NULL AS SIGNED ) - + 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT - CAST ( NULL AS INTEGER ) - + 67 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3668
SELECT COUNT( * ) / - + SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT COUNT ( * ) / - + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 89 + + ( 47 )
----
136

query I rowsort
SELECT + 67 col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL COUNT( * ) * - 57 col2
----
-57

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL COUNT ( * ) * - 57 col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT - MAX( ALL + 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3672
SELECT - MAX ( ALL + 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + 60 * COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3673
SELECT + 60 * COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT COUNT( - 91 )
----
1

skipif mysql # not compatible
query I rowsort label-3674
SELECT COUNT ( - 91 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT - + 21 * 16 - - - CAST( + 88 AS SIGNED )
----
-424

skipif mysql # not compatible
query I rowsort label-3675
SELECT - + 21 * 16 - - - CAST ( + 88 AS INTEGER )
----
-424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT - - 44 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT - - 44 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT ALL 54 * - COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL 54 * - COUNT ( * )
----
-54

query I rowsort
SELECT ( - 22 )
----
-22

query I rowsort
SELECT + - 74
----
-74

query I rowsort
SELECT - ( 41 ) col0
----
-41

query I rowsort
SELECT 62 * 98
----
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT MAX( + 95 ) + - ( + 78 ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3682
SELECT MAX ( + 95 ) + - ( + 78 ) AS col1
----
17

query I rowsort
SELECT + 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL ( NULLIF ( + 95, COUNT( * ) ) ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL ( NULLIF ( + 95, COUNT ( * ) ) ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT + COUNT( * ) * - + 99 col2
----
-99

skipif mysql # not compatible
query I rowsort label-3685
SELECT + COUNT ( * ) * - + 99 col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3686
SELECT DISTINCT + COUNT( * ) DIV 32 + - 85 col1
----
-85

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT + COUNT ( * ) / 32 + - 85 col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL - COUNT( * ) * - 41 + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - COUNT ( * ) * - 41 + COUNT ( * ) AS col1
----
42

query I rowsort
SELECT + + 72 col2
----
72

query I rowsort
SELECT ALL + 49 col2
----
49

query I rowsort
SELECT ALL + + 93
----
93

query I rowsort
SELECT ( + 18 )
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3692
SELECT - 99 + CAST( 38 AS SIGNED ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3692
SELECT - 99 + CAST ( 38 AS INTEGER ) AS col0
----
-61

query I rowsort
SELECT DISTINCT ( 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - MIN( DISTINCT + 84 ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3695
SELECT - MIN ( DISTINCT + 84 ) AS col0
----
-84

query I rowsort
SELECT ALL - 76 + + - 28 AS col2
----
-104

query I rowsort
SELECT + - 43 AS col2
----
-43

query I rowsort
SELECT DISTINCT - NULLIF ( - - 60, + 8 )
----
-60

query I rowsort
SELECT - ( - 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT + 65 * COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-3700
SELECT + 65 * COUNT ( * )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT ( CAST( 91 AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-3701
SELECT ( CAST ( 91 AS INTEGER ) ) AS col1
----
91

query I rowsort
SELECT ALL - - 70 AS col0
----
70

query I rowsort
SELECT + - 38 AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT MIN( DISTINCT + 47 ) col1
----
47

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT MIN ( DISTINCT + 47 ) col1
----
47

query I rowsort
SELECT DISTINCT + 1 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + + COUNT( DISTINCT 32 )
----
1

skipif mysql # not compatible
query I rowsort label-3706
SELECT + + COUNT ( DISTINCT 32 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT + COUNT( * ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3707
SELECT + COUNT ( * ) AS col2, COUNT ( * )
----
1
1

query I rowsort
SELECT - 95 * - 45 AS col1
----
4275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3709
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3710
SELECT + CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3710
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + + COUNT( DISTINCT COALESCE ( - + 10, + - 0 ) ) - + 57
----
-56

skipif mysql # not compatible
query I rowsort label-3711
SELECT + + COUNT ( DISTINCT COALESCE ( - + 10, + - 0 ) ) - + 57
----
-56

query I rowsort
SELECT + 19 + + 53
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3713
SELECT DISTINCT + MAX( ALL + - 12 ) AS col1, 59
----
-12
59

skipif mysql # not compatible
query II rowsort label-3713
SELECT DISTINCT + MAX ( ALL + - 12 ) AS col1, 59
----
-12
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT MAX( ALL 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-3714
SELECT MAX ( ALL 25 ) AS col0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT DISTINCT - 6 + - 74 - + ( + 4 ) + + CAST( - + 84 AS SIGNED ) AS col1
----
-168

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - 6 + - 74 - + ( + 4 ) + + CAST ( - + 84 AS INTEGER ) AS col1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT ( + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3716
SELECT ( + ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT DISTINCT 13 - COUNT( * ) col1
----
12

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT 13 - COUNT ( * ) col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT 65 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT 65 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3719
SELECT DISTINCT - 3 AS col2, COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-3719
SELECT DISTINCT - 3 AS col2, COUNT ( * )
----
-3
1

query I rowsort
SELECT DISTINCT - 48 col1
----
-48

query I rowsort
SELECT ALL - ( + - 19 )
----
19

query I rowsort
SELECT ALL - ( - + 87 )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT DISTINCT - 92 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT - 92 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT CAST( + 27 AS SIGNED ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3724
SELECT CAST ( + 27 AS INTEGER ) AS col1
----
27

query I rowsort
SELECT 58 + 96
----
154

query I rowsort
SELECT - - 2 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT ALL - CAST( NULL AS SIGNED ) + - 2 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL - CAST ( NULL AS INTEGER ) + - 2 col0
----
NULL

query I rowsort
SELECT ALL - 27 * - 42 AS col0
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT - - ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3729
SELECT - - ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT + COUNT( ALL + 47 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3730
SELECT + COUNT ( ALL + 47 ) col1
----
1

query I rowsort
SELECT DISTINCT 83 * + 91 + + 43
----
7596

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL MAX( - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL MAX ( - 22 ) AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT + CAST( NULL AS SIGNED ) / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3733
SELECT + CAST ( NULL AS INTEGER ) / + 37
----
NULL

query I rowsort
SELECT + + 8
----
8

query I rowsort
SELECT ( - 99 ) AS col2
----
-99

query I rowsort
SELECT ALL + 54 * + 51 AS col2
----
2754

query I rowsort
SELECT DISTINCT - 21 * 32
----
-672

query I rowsort
SELECT + - 82 * 60
----
-4920

query I rowsort
SELECT 41 * + 57 - 15
----
2322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3740
SELECT ALL CAST( NULL AS SIGNED ) AS col1, - CAST( NULL AS DECIMAL ) + - + 39 + + - COUNT( * ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3740
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS REAL ) + - + 39 + + - COUNT ( * ) AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + 23 * - + 80
----
-1840

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT COUNT( * ) - - 76 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3742
SELECT COUNT ( * ) - - 76 AS col0
----
77

query I rowsort
SELECT ALL 5 * - 53
----
-265

query I rowsort
SELECT ALL + 81 * - - 35
----
2835

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3745
SELECT ALL - + 44 AS col0, CAST( NULL AS SIGNED ) - ( + 24 )
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-3745
SELECT ALL - + 44 AS col0, CAST ( NULL AS INTEGER ) - ( + 24 )
----
-44
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT ALL + 15 * - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL + 15 * - COUNT ( * ) AS col2
----
-15

query I rowsort
SELECT ALL 70 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ALL 41 + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL 41 + + COUNT ( * )
----
42

query I rowsort
SELECT ALL + 47 + 51 AS col0
----
98

query I rowsort
SELECT DISTINCT 41 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT - 56 AS col1
----
-56

query I rowsort
SELECT ALL - - 26
----
26

query I rowsort
SELECT + - 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT + ( + CAST( + SUM( 36 ) AS SIGNED ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3755
SELECT + ( + CAST ( + SUM ( 36 ) AS INTEGER ) ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT DISTINCT 65 AS col1, COUNT( * )
----
65
1

skipif mysql # not compatible
query II rowsort label-3756
SELECT DISTINCT 65 AS col1, COUNT ( * )
----
65
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT + CAST( - 68 AS SIGNED ) - + 50
----
-118

skipif mysql # not compatible
query I rowsort label-3757
SELECT + CAST ( - 68 AS INTEGER ) - + 50
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3758
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3758
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT ALL 36 AS col2, + COUNT( * )
----
36
1

skipif mysql # not compatible
query II rowsort label-3759
SELECT ALL 36 AS col2, + COUNT ( * )
----
36
1

query I rowsort
SELECT + 40 - - 65
----
105

query I rowsort
SELECT - ( - 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3762
SELECT ALL + - CAST( + COUNT( * ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL + - CAST ( + COUNT ( * ) AS INTEGER ) col2
----
-1

query I rowsort
SELECT DISTINCT 77 * - - 14 + 62 col0
----
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - 94 + NULLIF ( + - COUNT( * ), - 56 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3764
SELECT - 94 + NULLIF ( + - COUNT ( * ), - 56 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT + MAX( - + 48 ) + - - 35
----
-13

skipif mysql # not compatible
query I rowsort label-3765
SELECT + MAX ( - + 48 ) + - - 35
----
-13

query I rowsort
SELECT DISTINCT ( - + 18 ) - 35 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT - CASE + - COUNT( * ) WHEN - + COUNT( * ) + + 65 THEN + 26 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3767
SELECT - CASE + - COUNT ( * ) WHEN - + COUNT ( * ) + + 65 THEN + 26 END AS col2
----
NULL

query I rowsort
SELECT ALL - 52 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + COUNT( DISTINCT + - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-3769
SELECT + COUNT ( DISTINCT + - 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT ALL MAX( DISTINCT - 89 ) * - + 39
----
3471

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL MAX ( DISTINCT - 89 ) * - + 39
----
3471

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT 24 DIV - + 25 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3771
SELECT 24 / - + 25 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3772
SELECT ALL - 73 / - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL - 73 / - - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 76 + + 17
----
93

query I rowsort
SELECT - + 71 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT ALL 61 + 2 * - COUNT( * ), 70 AS col0
----
59
70

skipif mysql # not compatible
query II rowsort label-3775
SELECT ALL 61 + 2 * - COUNT ( * ), 70 AS col0
----
59
70

query I rowsort
SELECT ALL 90 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + MIN( DISTINCT - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-3777
SELECT + MIN ( DISTINCT - 15 )
----
-15

query I rowsort
SELECT DISTINCT 43 AS col0
----
43

query I rowsort
SELECT ALL + 99 col0
----
99

query I rowsort
SELECT DISTINCT + - 34
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3781
SELECT ALL 18 DIV + - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL 18 / + - COUNT ( * ) AS col0
----
-18

query I rowsort
SELECT ALL + 98 AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3783
SELECT DISTINCT 64 DIV + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT 64 / + COUNT ( * ) AS col0
----
64

query I rowsort
SELECT ALL - 96 AS col0
----
-96

query I rowsort
SELECT + - 48 + - + 71
----
-119

query I rowsort
SELECT ALL + ( - 16 ) AS col1
----
-16

query I rowsort
SELECT ( - - 90 ) AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3788
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) - - COUNT( DISTINCT + 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) - - COUNT ( DISTINCT + 18 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT COUNT( * ) * + COUNT( * ) + COUNT( * ) * - 0 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3789
SELECT COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) * - 0 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ( - MAX( - - 93 ) ) + - 17 + - - COUNT( * ) AS col0
----
-109

skipif mysql # not compatible
query I rowsort label-3790
SELECT ( - MAX ( - - 93 ) ) + - 17 + - - COUNT ( * ) AS col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT COUNT( * ) * - 93
----
-93

skipif mysql # not compatible
query I rowsort label-3791
SELECT COUNT ( * ) * - 93
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT DISTINCT 54 DIV + + MAX( 86 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT 54 / + + MAX ( 86 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT 57 * COUNT( * ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT 57 * COUNT ( * ) AS col2
----
57

query I rowsort
SELECT + - 79 AS col2
----
-79

query I rowsort
SELECT 52 col0
----
52

query I rowsort
SELECT DISTINCT - 85
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT ALL 70 * + + COUNT( * ) + + COUNT( * ) + + 65
----
136

skipif mysql # not compatible
query I rowsort label-3797
SELECT ALL 70 * + + COUNT ( * ) + + COUNT ( * ) + + 65
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT - - 60 * - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-3798
SELECT - - 60 * - COUNT ( * )
----
-60

query I rowsort
SELECT - ( 97 )
----
-97

query I rowsort
SELECT + ( 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT - 17 + - + NULLIF ( - SUM( + + 69 ), - COUNT( * ) ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3801
SELECT - 17 + - + NULLIF ( - SUM ( + + 69 ), - COUNT ( * ) ) AS col2
----
52

query I rowsort
SELECT + ( + + 88 ) col1
----
88

query I rowsort
SELECT + ( + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT - SUM( - 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-3804
SELECT - SUM ( - 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT ( NULLIF ( - COUNT( * ), + 74 + 49 ) ) * - 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3805
SELECT ( NULLIF ( - COUNT ( * ), + 74 + 49 ) ) * - 57 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL + SUM( + 71 ) * + 89 AS col0
----
6319

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL + SUM ( + 71 ) * + 89 AS col0
----
6319

query I rowsort
SELECT + - 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT MAX( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-3808
SELECT MAX ( + 1 )
----
1

query I rowsort
SELECT + 88 * - 82
----
-7216

query II rowsort
SELECT 99, 1 AS col2
----
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT + SUM( 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3811
SELECT + SUM ( 63 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3812
SELECT + CAST( 53 AS SIGNED ) DIV - 28
----
-1

skipif mysql # not compatible
query I rowsort label-3812
SELECT + CAST ( 53 AS INTEGER ) / - 28
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - + SUM( DISTINCT - 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-3813
SELECT - + SUM ( DISTINCT - 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3814
SELECT + + COUNT ( * ) col0
----
1

query I rowsort
SELECT + + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - COUNT( * ) * - 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-3816
SELECT - COUNT ( * ) * - 67 AS col1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT DISTINCT CAST( 82 AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT CAST ( 82 AS INTEGER ) AS col2
----
82

query I rowsort
SELECT 65 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + MAX( ALL - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-3819
SELECT + MAX ( ALL - 83 )
----
-83

query I rowsort
SELECT DISTINCT - + 8
----
-8

query I rowsort
SELECT 69 * - + 6
----
-414

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3822
SELECT DISTINCT + 86 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + 86 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT ALL - 96 + - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - 96 + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3824
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - 62 )
----
62

query I rowsort
SELECT ALL - - 74 AS col1
----
74

query I rowsort
SELECT DISTINCT - ( - + 65 ) AS col2
----
65

query I rowsort
SELECT + 94 AS col1
----
94

query I rowsort
SELECT ALL - 32 AS col1
----
-32

query I rowsort
SELECT - - 61
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT SUM( 67 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-3831
SELECT SUM ( 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT COUNT( - + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-3832
SELECT COUNT ( - + 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT ALL 79 - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 79 - COUNT ( * )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3834
SELECT DISTINCT 67 AS col0, CAST( NULL AS SIGNED )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-3834
SELECT DISTINCT 67 AS col0, CAST ( NULL AS INTEGER )
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT + MIN( - ( + 73 ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + MIN ( - ( + 73 ) ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT ALL + SUM( - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + SUM ( - 22 )
----
-22

query I rowsort
SELECT - 75 AS col1
----
-75

query I rowsort
SELECT - 51 * + - 69 AS col0
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL - COUNT( * ) + + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL - COUNT ( * ) + + 1 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3840
SELECT DISTINCT - 70 AS col0, CAST( NULL AS SIGNED ) + - 8 + - + 68 col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-3840
SELECT DISTINCT - 70 AS col0, CAST ( NULL AS INTEGER ) + - 8 + - + 68 col1
----
-70
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3841
SELECT ALL - CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL - CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT 22 * - 15
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL - + COUNT( * ) + - 8
----
-9

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL - + COUNT ( * ) + - 8
----
-9

query I rowsort
SELECT 41 * + 71
----
2911

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT DISTINCT + SUM( DISTINCT + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3845
SELECT DISTINCT + SUM ( DISTINCT + 19 ) AS col2
----
19

query I rowsort
SELECT DISTINCT 6 - - 52 AS col1
----
58

query I rowsort
SELECT ALL 10 col2
----
10

query I rowsort
SELECT - - 79 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT - SUM( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-3849
SELECT - SUM ( 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT ALL + SUM( DISTINCT + 88 ) - - + 94
----
182

skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL + SUM ( DISTINCT + 88 ) - - + 94
----
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3851
SELECT - COUNT( * ) DIV 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT - COUNT ( * ) / 89 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3852
SELECT ALL 52 * + MAX( + - 41 ), 88 + - MAX( ALL + - 23 ) AS col1
----
-2132
111

skipif mysql # not compatible
query II rowsort label-3852
SELECT ALL 52 * + MAX ( + - 41 ), 88 + - MAX ( ALL + - 23 ) AS col1
----
-2132
111

query I rowsort
SELECT ALL - 45 * 92
----
-4140

query I rowsort
SELECT DISTINCT + - 35 AS col0
----
-35

query I rowsort
SELECT DISTINCT ( + + 47 ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3856
SELECT 21 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT 21 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT ALL - CAST( - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL - CAST ( - 0 AS INTEGER )
----
0

query I rowsort
SELECT ALL 92 + + 40
----
132

query I rowsort
SELECT DISTINCT - - 75 AS col0
----
75

query I rowsort
SELECT ALL - 19 AS col2
----
-19

query I rowsort
SELECT NULLIF ( NULLIF ( + + ( 13 ), - 74 ), 18 ) * + 12 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT DISTINCT + COUNT( * ) * + + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + COUNT ( * ) * + + 83 AS col0
----
83

query I rowsort
SELECT DISTINCT 33
----
33

query I rowsort
SELECT DISTINCT - - NULLIF ( - 56, - 4 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT ALL - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - ( - COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - 20 AS col1
----
-20

query I rowsort
SELECT ALL ( 0 ) * - 82
----
0

query I rowsort
SELECT ALL 30 col2
----
30

query I rowsort
SELECT ALL + + ( + + 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT - COUNT( * ) * 47 * + COUNT( * ) * 56 + 77 + - 18 * COUNT( * ) AS col0
----
-2573

skipif mysql # not compatible
query I rowsort label-3870
SELECT - COUNT ( * ) * 47 * + COUNT ( * ) * 56 + 77 + - 18 * COUNT ( * ) AS col0
----
-2573

query I rowsort
SELECT ALL ( - 46 ) AS col0
----
-46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3872
SELECT ALL CAST( NULL AS DECIMAL ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3872
SELECT ALL CAST ( NULL AS REAL ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3873
SELECT + 51 * + CAST( 51 AS SIGNED ) AS col1
----
2601

skipif mysql # not compatible
query I rowsort label-3873
SELECT + 51 * + CAST ( 51 AS INTEGER ) AS col1
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-3874
SELECT + 11 + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3874
SELECT + 11 + COUNT ( * ) AS col1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-3875
SELECT ALL 92 DIV 85 + + 48
----
49

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL 92 / 85 + + 48
----
49

query I rowsort
SELECT + - 83 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT + COUNT( * ) + 17
----
18

skipif mysql # not compatible
query I rowsort label-3877
SELECT + COUNT ( * ) + 17
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3878
SELECT ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT DISTINCT + 84 DIV + 38
----
2

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT + 84 / + 38
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3880
SELECT DISTINCT + CAST( + 0 AS SIGNED ) DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + CAST ( + 0 AS INTEGER ) / - 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3881
SELECT 56 + MIN( ALL 21 ) DIV ( 58 )
----
56

skipif mysql # not compatible
query I rowsort label-3881
SELECT 56 + MIN ( ALL 21 ) / ( 58 )
----
56

query I rowsort
SELECT + + ( 15 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3883
SELECT + COUNT( * ), 2 DIV + + COUNT( * ) AS col2
----
1
2

skipif mysql # not compatible
query II rowsort label-3883
SELECT + COUNT ( * ), 2 / + + COUNT ( * ) AS col2
----
1
2

query II rowsort
SELECT + 17, 60 AS col2
----
17
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT + 2 + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT + 2 + + COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT ALL - COUNT( * ) + + - 81 - MIN( + + 10 ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - COUNT ( * ) + + - 81 - MIN ( + + 10 ) col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT MIN( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-3887
SELECT MIN ( + 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3888
SELECT - 70, SUM( - CAST( - + 67 AS SIGNED ) ) DIV 22 AS col1
----
-70
3

skipif mysql # not compatible
query II rowsort label-3888
SELECT - 70, SUM ( - CAST ( - + 67 AS INTEGER ) ) / 22 AS col1
----
-70
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3889
SELECT ALL + COALESCE ( - 18, 60 * - COUNT( * ) ) DIV + ( 85 )
----
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + COALESCE ( - 18, 60 * - COUNT ( * ) ) / + ( 85 )
----
0

query I rowsort
SELECT DISTINCT + 8 AS col1
----
8

query I rowsort
SELECT ALL + 21 col0
----
21

query I rowsort
SELECT + ( + + 9 ) AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + COUNT( * ) + - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3893
SELECT + COUNT ( * ) + - COUNT ( * ) col1
----
0

query I rowsort
SELECT DISTINCT - + 47 * - - 96
----
-4512

query I rowsort
SELECT ( + 57 )
----
57

query I rowsort
SELECT - 32 * - - 2 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT 69 + - + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-3897
SELECT 69 + - + COUNT ( * )
----
68

query I rowsort
SELECT ALL - ( 77 )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3899
SELECT + + COUNT( DISTINCT - 91 ), 37 AS col1
----
1
37

skipif mysql # not compatible
query II rowsort label-3899
SELECT + + COUNT ( DISTINCT - 91 ), 37 AS col1
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT COUNT( * ) + 22
----
23

skipif mysql # not compatible
query I rowsort label-3900
SELECT COUNT ( * ) + 22
----
23

query I rowsort
SELECT 52 + + 73
----
125

query I rowsort
SELECT + - 13 AS col2
----
-13

query I rowsort
SELECT - 99 * 44 col1
----
-4356

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT DISTINCT ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3905
SELECT ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT - 74 * COUNT( * ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 74 * COUNT ( * ) col2
----
-74

query I rowsort
SELECT ( - 29 )
----
-29

query I rowsort
SELECT ALL + 71 AS col2
----
71

query I rowsort
SELECT + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT - + 18 * - - SUM( DISTINCT - + 8 )
----
144

skipif mysql # not compatible
query I rowsort label-3910
SELECT - + 18 * - - SUM ( DISTINCT - + 8 )
----
144

query I rowsort
SELECT ALL + 48 col2
----
48

query I rowsort
SELECT 27 col2
----
27

query I rowsort
SELECT DISTINCT - 4
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3914
SELECT - MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT - MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT DISTINCT - 59 * COUNT( * ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT - 59 * COUNT ( * ) AS col0
----
-59

query I rowsort
SELECT ALL 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT + 37 AS col1, + 22 - COUNT( * ) AS col2
----
37
21

skipif mysql # not compatible
query II rowsort label-3917
SELECT + 37 AS col1, + 22 - COUNT ( * ) AS col2
----
37
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT + 78 * COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT + 78 * COUNT ( * ) AS col0
----
78

query I rowsort
SELECT ALL + 20 + - 29 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT DISTINCT 76 - + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT 76 - + + COUNT ( * )
----
75

query I rowsort
SELECT 56 * 63 AS col1
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT - COUNT( + + 95 )
----
-1

skipif mysql # not compatible
query I rowsort label-3922
SELECT - COUNT ( + + 95 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT - COUNT( + - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-3923
SELECT - COUNT ( + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3924
SELECT ALL 25 col1, 52 + + COUNT( * )
----
25
53

skipif mysql # not compatible
query II rowsort label-3924
SELECT ALL 25 col1, 52 + + COUNT ( * )
----
25
53

onlyif mysql # aggregate syntax: 
query II rowsort label-3925
SELECT ALL + 33, COUNT( * ) AS col2
----
33
1

skipif mysql # not compatible
query II rowsort label-3925
SELECT ALL + 33, COUNT ( * ) AS col2
----
33
1

query I rowsort
SELECT ALL + - 10
----
-10

query II rowsort
SELECT ALL + + 76 AS col2, 70 AS col1
----
76
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT DISTINCT + - MIN( DISTINCT - - ( + 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT + - MIN ( DISTINCT - - ( + 11 ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT COUNT( - + 6 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3929
SELECT COUNT ( - + 6 ) col2
----
1

query I rowsort
SELECT - ( 52 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - NULLIF ( - + 29, COUNT( + 91 ) ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3931
SELECT - NULLIF ( - + 29, COUNT ( + 91 ) ) AS col1
----
29

query I rowsort
SELECT - - 61 AS col1
----
61

query I rowsort
SELECT ALL + - 70 col2
----
-70

query I rowsort
SELECT ALL + 39 col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3935
SELECT ALL + NULLIF ( + 79, - CAST( NULL AS SIGNED ) ) DIV + + NULLIF ( - COUNT( * ), + 88 )
----
-79

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + NULLIF ( + 79, - CAST ( NULL AS INTEGER ) ) / + + NULLIF ( - COUNT ( * ), + 88 )
----
-79

query I rowsort
SELECT ALL + 29 AS col0
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3937
SELECT - + NULLIF ( - 0, - 9 + + CAST( + COUNT( * ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3937
SELECT - + NULLIF ( - 0, - 9 + + CAST ( + COUNT ( * ) AS INTEGER ) )
----
0

query I rowsort
SELECT ALL - 96 AS col1
----
-96

query I rowsort
SELECT + ( 2 ) * 62
----
124

query II rowsort
SELECT ALL 84 AS col0, 49 * - + 98 AS col0
----
84
-4802

query I rowsort
SELECT ALL - 55 col1
----
-55

query I rowsort
SELECT ALL + 32 * - 52 AS col2
----
-1664

query I rowsort
SELECT ALL - 58 col0
----
-58

query I rowsort
SELECT DISTINCT 73 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - COUNT( * ) * 39
----
-39

skipif mysql # not compatible
query I rowsort label-3945
SELECT - COUNT ( * ) * 39
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3946
SELECT ALL - - COUNT( * ) - + - COUNT( * ) DIV MAX( - 77 ) + 12 - - - 69 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL - - COUNT ( * ) - + - COUNT ( * ) / MAX ( - 77 ) + 12 - - - 69 AS col1
----
-56

query I rowsort
SELECT ALL - + 74 * - + 87 AS col0
----
6438

query I rowsort
SELECT DISTINCT - 41 AS col0
----
-41

query I rowsort
SELECT - 48 + 31 AS col2
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT - CAST( COUNT( * ) AS SIGNED ) / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 39 AS col2
----
39

query I rowsort
SELECT 94 + - ( + 44 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3953
SELECT COUNT( * ) AS col2, + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3953
SELECT COUNT ( * ) AS col2, + CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT DISTINCT + 80 col0
----
80

query I rowsort
SELECT DISTINCT + 70 AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3956
SELECT ALL 32 DIV - NULLIF ( - 20, - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL 32 / - NULLIF ( - 20, - + COUNT ( * ) )
----
1

query I rowsort
SELECT - ( + ( 68 ) ) + 76 * 68
----
5100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3958
SELECT DISTINCT CAST( - 53 AS SIGNED ) * 71 AS col2
----
-3763

skipif mysql # not compatible
query I rowsort label-3958
SELECT DISTINCT CAST ( - 53 AS INTEGER ) * 71 AS col2
----
-3763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3959
SELECT DISTINCT - 21 DIV SUM( - 46 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - 21 / SUM ( - 46 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3960
SELECT - COUNT( * ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-3960
SELECT - COUNT ( * ) / - 80
----
0

query I rowsort
SELECT 6 col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT ALL - COUNT( * ) + + ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-3963
SELECT ALL - COUNT ( * ) + + ( + COUNT ( * ) )
----
0

query I rowsort
SELECT + ( 77 ) AS col2
----
77

query I rowsort
SELECT ALL 92 * 15
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT 70 * SUM( + 10 * + 7 ) + - 77
----
4823

skipif mysql # not compatible
query I rowsort label-3966
SELECT 70 * SUM ( + 10 * + 7 ) + - 77
----
4823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT ( + CAST( + 86 AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-3967
SELECT ( + CAST ( + 86 AS INTEGER ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL + MIN( + 98 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL + MIN ( + 98 ) col0
----
98

query I rowsort
SELECT - + 73 * 82
----
-5986

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - + COUNT( * ) + + 3 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3970
SELECT - + COUNT ( * ) + + 3 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL + 58 + ( ( - COUNT( * ) ) ) col1
----
57

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL + 58 + ( ( - COUNT ( * ) ) ) col1
----
57

query I rowsort
SELECT 48 * - ( 18 ) AS col1
----
-864

query I rowsort
SELECT 38 * - - 38
----
1444

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT DISTINCT - + MAX( ALL - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-3974
SELECT DISTINCT - + MAX ( ALL - 31 )
----
31

query I rowsort
SELECT 75 + + 53 AS col0
----
128

query I rowsort
SELECT - ( + 3 ) AS col1
----
-3

query I rowsort
SELECT DISTINCT 91 AS col0
----
91

query I rowsort
SELECT DISTINCT 43 col2
----
43

query I rowsort
SELECT DISTINCT 53 AS col0
----
53

query I rowsort
SELECT DISTINCT + 72 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT + 21 * + 65 + + + CAST( + 27 AS SIGNED ) col1
----
1392

skipif mysql # not compatible
query I rowsort label-3981
SELECT + 21 * + 65 + + + CAST ( + 27 AS INTEGER ) col1
----
1392

query I rowsort
SELECT + - ( + 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - - COUNT( - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-3983
SELECT - - COUNT ( - 46 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT - + 40 DIV + 77
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT - + 40 / + 77
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 95 * + 24 * + + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 95 * + 24 * + + 51 AS col2
----
NULL

query I rowsort
SELECT + ( + 70 ) AS col1
----
70

query I rowsort
SELECT ( - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT ALL - - COUNT( - 55 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - - COUNT ( - 55 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 58 * + - 96
----
-5568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT 57 + + 88 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT 57 + + 88 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 99 col2
----
-99

query I rowsort
SELECT DISTINCT - + 43 AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT COUNT( ALL 56 ) * - 12
----
-12

skipif mysql # not compatible
query I rowsort label-3993
SELECT COUNT ( ALL 56 ) * - 12
----
-12

query I rowsort
SELECT DISTINCT - 7 + 70 - + 28 + 60 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT ALL MAX( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL MAX ( DISTINCT + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT COUNT( * ) * CASE - 39 WHEN - 36 THEN - AVG ( 77 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT COUNT ( * ) * CASE - 39 WHEN - 36 THEN - AVG ( 77 ) END
----
NULL

query I rowsort
SELECT DISTINCT 74
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3998
SELECT ALL + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT + MAX( DISTINCT ( + - 85 ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3999
SELECT + MAX ( DISTINCT ( + - 85 ) ) AS col0
----
-85

query I rowsort
SELECT DISTINCT + - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + 27 + - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 27 + - + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-4002
SELECT ALL 91, - COUNT( * ) + - + 32 AS col0
----
91
-33

skipif mysql # not compatible
query II rowsort label-4002
SELECT ALL 91, - COUNT ( * ) + - + 32 AS col0
----
91
-33

query I rowsort
SELECT + - 76
----
-76

query I rowsort
SELECT ALL + - ( - 13 )
----
13

query I rowsort
SELECT DISTINCT + 96 AS col1
----
96

query I rowsort
SELECT ALL + ( + - 21 )
----
-21

query I rowsort
SELECT DISTINCT ( - 64 ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL COUNT( DISTINCT - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL COUNT ( DISTINCT - 12 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT + ( COALESCE ( - - 82, - 98 * + CAST( + COUNT( * ) AS SIGNED ) ) )
----
82

skipif mysql # not compatible
query I rowsort label-4009
SELECT + ( COALESCE ( - - 82, - 98 * + CAST ( + COUNT ( * ) AS INTEGER ) ) )
----
82

query I rowsort
SELECT ALL - NULLIF ( + - 20, - ( + 62 ) ) AS col0
----
20

query I rowsort
SELECT ALL - ( + - 85 )
----
85

query I rowsort
SELECT ALL 74 col2
----
74

query I rowsort
SELECT DISTINCT + 75 AS col1
----
75

query II rowsort
SELECT ALL - 18 AS col2, 40
----
-18
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT + COALESCE ( 86, + NULLIF ( - COUNT( * ), - COUNT( * ) ), - COUNT( * ) * - COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-4015
SELECT + COALESCE ( 86, + NULLIF ( - COUNT ( * ), - COUNT ( * ) ), - COUNT ( * ) * - COUNT ( * ) )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT + COALESCE ( - + COUNT( * ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4016
SELECT + COALESCE ( - + COUNT ( * ), COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL COUNT( * ) + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL COUNT ( * ) + 19 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT - MIN( ALL + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4018
SELECT - MIN ( ALL + 16 )
----
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4019
SELECT - 19 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT - 19 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL - + COUNT( * ) + + 66 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - + COUNT ( * ) + + 66 AS col2
----
65

query I rowsort
SELECT - - 44 AS col2
----
44

query I rowsort
SELECT + ( - 8 )
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT + 79 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT + 79 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 42 * + 67 + + + 14 AS col0
----
2828

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT ALL - 9 + + - 35 + + 91 - - - COUNT( * ) * 5 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL - 9 + + - 35 + + 91 - - - COUNT ( * ) * 5 AS col2
----
42

query I rowsort
SELECT ALL - 23 * - + 36 col1
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT - MIN( DISTINCT - - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT - MIN ( DISTINCT - - 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4028
SELECT 66 DIV COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-4028
SELECT 66 / COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT DISTINCT - 94 * MAX( DISTINCT - 43 )
----
4042

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - 94 * MAX ( DISTINCT - 43 )
----
4042

onlyif mysql # aggregate syntax: 
query II rowsort label-4030
SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT( * ) col0
----
-79
83

skipif mysql # not compatible
query II rowsort label-4030
SELECT ALL - ( 79 ) AS col0, 82 + + + COUNT ( * ) col0
----
-79
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT SUM( - + 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-4031
SELECT SUM ( - + 46 ) AS col2
----
-46

query I rowsort
SELECT ALL 26 AS col1
----
26

query I rowsort
SELECT DISTINCT + + 95
----
95

query I rowsort
SELECT + - 41 AS col1
----
-41

query I rowsort
SELECT ALL + + 27
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT - COUNT( * ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4036
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 93 * + 4
----
-372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - 76 AS col1
----
-76

query II rowsort
SELECT + 30 AS col1, + 59 AS col1
----
30
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL + 81 * - COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + 81 * - COUNT ( * ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4042
SELECT DISTINCT + COUNT( * ) DIV + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT + COUNT ( * ) / + ( - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4043
SELECT 42 + + COUNT( * ), - COUNT( * ) AS col2
----
43
-1

skipif mysql # not compatible
query II rowsort label-4043
SELECT 42 + + COUNT ( * ), - COUNT ( * ) AS col2
----
43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL + COUNT( * ) * + 5 * 51 col2
----
255

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL + COUNT ( * ) * + 5 * 51 col2
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4045
SELECT + CAST( + + 82 AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-4045
SELECT + CAST ( + + 82 AS INTEGER ) AS col1
----
82

query I rowsort
SELECT DISTINCT 58 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT ALL - NULLIF ( + - COUNT( * ), 31 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL - NULLIF ( + - COUNT ( * ), 31 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT + CAST( + 93 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4048
SELECT + CAST ( + 93 AS INTEGER ) AS col1
----
93

query I rowsort
SELECT + - 4 AS col0
----
-4

query II rowsort
SELECT + 21 AS col1, 93
----
21
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL - MIN( DISTINCT - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - MIN ( DISTINCT - 91 )
----
91

query I rowsort
SELECT ALL 41 col0
----
41

query II rowsort
SELECT 18 AS col0, 33 AS col1
----
18
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT - MAX( ALL + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-4054
SELECT - MAX ( ALL + 36 )
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT DISTINCT - 75 DIV - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - 75 / - 80 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT COUNT( ALL + - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-4056
SELECT COUNT ( ALL + - 86 )
----
1

query I rowsort
SELECT DISTINCT 63 * + 24 AS col0
----
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-4058
SELECT + 56 DIV + 4
----
14

skipif mysql # not compatible
query I rowsort label-4058
SELECT + 56 / + 4
----
14

query I rowsort
SELECT DISTINCT 77 AS col2
----
77

query I rowsort
SELECT ALL + 20 * - - 6
----
120

query I rowsort
SELECT DISTINCT - 77 * + 96 AS col0
----
-7392

query I rowsort
SELECT ( + + 48 )
----
48

query I rowsort
SELECT ALL + ( + 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4064
SELECT DISTINCT + MAX( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT + MAX ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ( + 53 ) AS col1
----
53

query I rowsort
SELECT DISTINCT 49 AS col2
----
49

query I rowsort
SELECT ALL - + 24 AS col0
----
-24

query I rowsort
SELECT 52 * - 78 AS col0
----
-4056

query I rowsort
SELECT DISTINCT - 68
----
-68

query II rowsort
SELECT - 27, + 68 AS col0
----
-27
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT ALL + CAST( + 56 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL + CAST ( + 56 AS INTEGER ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT + 16 * + COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-4072
SELECT + 16 * + COUNT ( * ) col0
----
16

query I rowsort
SELECT DISTINCT + ( - ( - 97 ) ) * 49
----
4753

query I rowsort
SELECT - + ( - - 27 )
----
-27

query II rowsort
SELECT 36 AS col0, ( + - 9 )
----
36
-9

query I rowsort
SELECT + CASE + 18 WHEN 19 THEN 45 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT DISTINCT 49 DIV - + 39
----
-1

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT 49 / - + 39
----
-1

query I rowsort
SELECT DISTINCT + NULLIF ( + 99, - - 41 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT + + MIN( - 16 ) - 11 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4079
SELECT + + MIN ( - 16 ) - 11 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-4080
SELECT - - 62 * COUNT( * ), 29 AS col0
----
62
29

skipif mysql # not compatible
query II rowsort label-4080
SELECT - - 62 * COUNT ( * ), 29 AS col0
----
62
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT - + COUNT( * ) * + ( - - 68 ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4081
SELECT - + COUNT ( * ) * + ( - - 68 ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT - COALESCE ( - - COUNT( * ), + 43 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4082
SELECT - COALESCE ( - - COUNT ( * ), + 43 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4083
SELECT - + CAST( - + 79 AS SIGNED ) DIV + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4083
SELECT - + CAST ( - + 79 AS INTEGER ) / + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT + COUNT( * ) * + + 12
----
12

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + COUNT ( * ) * + + 12
----
12

query I rowsort
SELECT DISTINCT + 74 col1
----
74

query I rowsort
SELECT ALL + - 21 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT ALL NULLIF ( + 96, + CASE + + 27 WHEN 45 THEN + 50 - 89 * + COUNT( * ) ELSE NULL END ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL NULLIF ( + 96, + CASE + + 27 WHEN 45 THEN + 50 - 89 * + COUNT ( * ) ELSE NULL END ) AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT - - 6 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT - - 6 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT + CAST( - - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-4089
SELECT + CAST ( - - 83 AS INTEGER )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT 80 DIV + 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4090
SELECT 80 / + 31 AS col2
----
2

query I rowsort
SELECT DISTINCT - - 54 AS col1
----
54

query I rowsort
SELECT DISTINCT - - 67
----
67

query I rowsort
SELECT ALL - + 95 col1
----
-95

query I rowsort
SELECT DISTINCT - + 34 AS col0
----
-34

query I rowsort
SELECT ALL - 5 + 17
----
12

query I rowsort
SELECT 35 + 67
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4097
SELECT CAST( NULL AS SIGNED ) + + COUNT( + - ( - - 89 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( + - ( - - 89 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT COUNT( * ) * 22
----
22

skipif mysql # not compatible
query I rowsort label-4098
SELECT COUNT ( * ) * 22
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL - - CAST( NULL AS SIGNED ) + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 32
----
NULL

query I rowsort
SELECT ALL - 52 AS col1
----
-52

query I rowsort
SELECT ALL 97 * + 94
----
9118

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT + COUNT( * ) + - 43 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4102
SELECT + COUNT ( * ) + - 43 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT SUM( ALL + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-4103
SELECT SUM ( ALL + 20 )
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4104
SELECT ALL + CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL + CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT - ( 93 ) col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT COUNT( * ) + - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4106
SELECT COUNT ( * ) + - 3 AS col2
----
-2

query I rowsort
SELECT ALL - 92 AS col1
----
-92

query I rowsort
SELECT ALL - + 70 AS col1
----
-70

query I rowsort
SELECT 45 * + 32
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT - COUNT( * ) * - 42
----
42

skipif mysql # not compatible
query I rowsort label-4110
SELECT - COUNT ( * ) * - 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT DISTINCT - - ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - - ( - + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL - - MAX( DISTINCT - + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL - - MAX ( DISTINCT - + 59 )
----
-59

query I rowsort
SELECT 86 col0
----
86

query I rowsort
SELECT ALL - 5 col1
----
-5

query I rowsort
SELECT + 29 col0
----
29

query I rowsort
SELECT 67 AS col0
----
67

query I rowsort
SELECT ALL - 35 col1
----
-35

query I rowsort
SELECT ALL 61 * + + 6 AS col1
----
366

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - 43 * + + COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 43 * + + COUNT ( * ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT - - 61 + + 24 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT - - 61 + + 24 * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT CAST( + 88 AS SIGNED ) col0
----
88

skipif mysql # not compatible
query I rowsort label-4121
SELECT CAST ( + 88 AS INTEGER ) col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4122
SELECT + + CAST( + 37 AS SIGNED ) * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4122
SELECT + + CAST ( + 37 AS INTEGER ) * COUNT ( * )
----
37

query I rowsort
SELECT DISTINCT + 8 AS col2
----
8

query I rowsort
SELECT ( - 40 )
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4125
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ( 8 ) AS col1
----
8

query I rowsort
SELECT ALL + ( - + 59 ) col0
----
-59

query I rowsort
SELECT - ( - - 32 )
----
-32

query I rowsort
SELECT ALL - + 73 + + + 97
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT DISTINCT - ( 38 ) + + + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT - ( 38 ) + + + COUNT ( * )
----
-37

query I rowsort
SELECT ALL + 28 col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4132
SELECT ALL - COUNT( * ) - + + CAST( + - 71 AS SIGNED ) * 81 AS col0
----
5750

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL - COUNT ( * ) - + + CAST ( + - 71 AS INTEGER ) * 81 AS col0
----
5750

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL + 54 * - - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + 54 * - - COUNT ( * ) AS col1
----
54

query I rowsort
SELECT ALL ( + 47 ) + + + 86 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + COUNT( ALL + + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4135
SELECT + COUNT ( ALL + + 38 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT ALL - SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT ALL - MAX( ALL + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - MAX ( ALL + 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT SUM( DISTINCT + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-4138
SELECT SUM ( DISTINCT + 7 )
----
7

query II rowsort
SELECT - - 86 col1, - 95 AS col0
----
86
-95

query I rowsort
SELECT DISTINCT 25 AS col1
----
25

query I rowsort
SELECT + - 90 AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT ALL 78 DIV - 58
----
-1

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL 78 / - 58
----
-1

query I rowsort
SELECT ALL 85 - - 38
----
123

query I rowsort
SELECT - ( 3 ) - 73
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT - + ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT - + ( COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL - + 65
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT ALL + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - + 78 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT + COALESCE ( + COUNT( * ), + - COUNT( * ), - + SUM( ALL - 35 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4149
SELECT + COALESCE ( + COUNT ( * ), + - COUNT ( * ), - + SUM ( ALL - 35 ) ) AS col0
----
1

query I rowsort
SELECT ALL 85 * - 61
----
-5185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4151
SELECT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) + - ( - + ( + 67 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) + - ( - + ( + 67 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 45 AS col0
----
-45

query I rowsort
SELECT - 30 * - 76 + + ( 15 )
----
2295

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT DISTINCT + 73 * 74 DIV + 32 AS col1
----
168

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT + 73 * 74 / + 32 AS col1
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-4155
SELECT - MAX( DISTINCT + ( - 55 ) ), + ( - - 84 ) AS col2
----
55
84

skipif mysql # not compatible
query II rowsort label-4155
SELECT - MAX ( DISTINCT + ( - 55 ) ), + ( - - 84 ) AS col2
----
55
84

query I rowsort
SELECT + 14 * - 29
----
-406

query I rowsort
SELECT DISTINCT + 93 * - 87 AS col2
----
-8091

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT - COUNT( + 53 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4158
SELECT - COUNT ( + 53 ) AS col1
----
-1

query I rowsort
SELECT + ( ( 88 ) )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4160
SELECT 58 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4160
SELECT 58 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - - 38 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT DISTINCT - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT - + COUNT ( * ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT - COUNT( - 93 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - COUNT ( - 93 ) col0
----
-1

query I rowsort
SELECT 23 + - 72
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4165
SELECT CAST( NULL AS SIGNED ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT CAST ( NULL AS INTEGER ) * 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT ALL CAST( NULL AS SIGNED ) / CAST( + - 72 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL CAST ( NULL AS INTEGER ) / CAST ( + - 72 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 77 + - 88 AS col0
----
-11

query I rowsort
SELECT ( - + 29 )
----
-29

query I rowsort
SELECT + + ( - 17 ) AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4170
SELECT DISTINCT - 26 DIV + 85
----
0

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT - 26 / + 85
----
0

query I rowsort
SELECT DISTINCT + ( + + 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL + 29 AS col0, 61 * - 72 + + 4
----
29
-4388

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + COUNT( - 79 ) - - 2 + + - 95 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( - 79 ) - - 2 + + - 95 AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4175
SELECT DISTINCT - COUNT( * ) DIV + 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT - COUNT ( * ) / + 19 AS col1
----
0

query I rowsort
SELECT - + 70 AS col0
----
-70

query I rowsort
SELECT - + 1 AS col0
----
-1

query I rowsort
SELECT - 40 + + 58
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4179
SELECT COUNT( 49 ), MAX( + CAST( 14 AS SIGNED ) ) + - - 11 AS col2
----
1
25

skipif mysql # not compatible
query II rowsort label-4179
SELECT COUNT ( 49 ), MAX ( + CAST ( 14 AS INTEGER ) ) + - - 11 AS col2
----
1
25

query I rowsort
SELECT DISTINCT + 90
----
90

query I rowsort
SELECT DISTINCT 60 AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT CAST( 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-4182
SELECT CAST ( 94 AS INTEGER )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT ALL + SUM( DISTINCT + + 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + SUM ( DISTINCT + + 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4184
SELECT DISTINCT - 59, - COUNT( ALL + 77 ) AS col1
----
-59
-1

skipif mysql # not compatible
query II rowsort label-4184
SELECT DISTINCT - 59, - COUNT ( ALL + 77 ) AS col1
----
-59
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT + ( COUNT( * ) ) * + COUNT( * ) - 69 * + COALESCE ( COUNT( * ), - 98, - + 96 ) + COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-4185
SELECT + ( COUNT ( * ) ) * + COUNT ( * ) - 69 * + COALESCE ( COUNT ( * ), - 98, - + 96 ) + COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT ALL - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + + 58 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT - COUNT( ALL - + 77 ) * 56 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-4189
SELECT - COUNT ( ALL - + 77 ) * 56 AS col2
----
-56

query I rowsort
SELECT ( - - 66 ) AS col0
----
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4191
SELECT + CAST( NULL AS DECIMAL ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT + CAST ( NULL AS REAL ) * - 67
----
NULL

query I rowsort
SELECT DISTINCT + 50 AS col2
----
50

query I rowsort
SELECT ALL + - 64
----
-64

query I rowsort
SELECT - 57 + + 16 AS col2
----
-41

query I rowsort
SELECT + 23 * 51
----
1173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL ( - COALESCE ( + COUNT( * ), - MIN( CAST( NULL AS SIGNED ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL ( - COALESCE ( + COUNT ( * ), - MIN ( CAST ( NULL AS INTEGER ) ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4197
SELECT - COUNT( * ) AS col2, 25
----
-1
25

skipif mysql # not compatible
query II rowsort label-4197
SELECT - COUNT ( * ) AS col2, 25
----
-1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT - 12 - + 6 + + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - 12 - + 6 + + - COUNT ( * )
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4199
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT DISTINCT - + 68
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL - - 74 * - - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) - + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL - - 74 * - - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 84 AS col1
----
NULL

query I rowsort
SELECT + - 20 AS col2
----
-20

query I rowsort
SELECT DISTINCT - 35 col1
----
-35

query I rowsort
SELECT DISTINCT - 28 AS col1
----
-28

query II rowsort
SELECT 85, ( + 60 ) * + - 22 AS col2
----
85
-1320

query I rowsort
SELECT DISTINCT 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL 42 + 91 + COUNT( * )
----
134

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL 42 + 91 + COUNT ( * )
----
134

query I rowsort
SELECT DISTINCT 98 AS col2
----
98

query I rowsort
SELECT ALL + - 22
----
-22

query I rowsort
SELECT + 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-4211
SELECT DISTINCT ( + 73 ) AS col1, COUNT( * ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-4211
SELECT DISTINCT ( + 73 ) AS col1, COUNT ( * ) AS col0
----
73
1

query I rowsort
SELECT ALL ( - 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4213
SELECT + ( + + COUNT( * ) ) DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT + ( + + COUNT ( * ) ) / 30 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT + 72 DIV + 10
----
7

skipif mysql # not compatible
query I rowsort label-4214
SELECT + 72 / + 10
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT + 90 - + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4215
SELECT + 90 - + - COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT 82 col1
----
82

query I rowsort
SELECT + 54 + - + ( + + 69 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4218
SELECT ALL 19 + + 42, 74 * - COUNT( * ) col1
----
61
-74

skipif mysql # not compatible
query II rowsort label-4218
SELECT ALL 19 + + 42, 74 * - COUNT ( * ) col1
----
61
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-4219
SELECT DISTINCT + 3 * - + COUNT( * ) col0, + COUNT( * )
----
-3
1

skipif mysql # not compatible
query II rowsort label-4219
SELECT DISTINCT + 3 * - + COUNT ( * ) col0, + COUNT ( * )
----
-3
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) + SUM( DISTINCT - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT - 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL - COUNT( * ) + - 18 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - COUNT ( * ) + - 18 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT COUNT( * ) + + 24 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4222
SELECT COUNT ( * ) + + 24 AS col1
----
25

query I rowsort
SELECT + 76 col0
----
76

query I rowsort
SELECT 51 + 66 * - 70
----
-4569

query I rowsort
SELECT + 34 AS col1
----
34

query I rowsort
SELECT DISTINCT - 54 AS col2
----
-54

query I rowsort
SELECT DISTINCT - 38
----
-38

query I rowsort
SELECT 82 col2
----
82

query I rowsort
SELECT DISTINCT 91 + - 65
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4230
SELECT 2 DIV - 2
----
-1

skipif mysql # not compatible
query I rowsort label-4230
SELECT 2 / - 2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4231
SELECT DISTINCT - 36 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT - 36 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + 2 AS col2
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4233
SELECT ( 60 ) + + CAST( NULL AS SIGNED ) * COUNT( ALL + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT ( 60 ) + + CAST ( NULL AS INTEGER ) * COUNT ( ALL + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL + COUNT( * ) - - 91 col2
----
92

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + COUNT ( * ) - - 91 col2
----
92

query I rowsort
SELECT 66 + + 5 * - 57 AS col0
----
-219

query I rowsort
SELECT + 19 * - 85 AS col0
----
-1615

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4237
SELECT ALL - MAX( - CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL - MAX ( - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - ( + 78 ) AS col1
----
-78

query I rowsort
SELECT DISTINCT - + 80 * + 29
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL + - MAX( - 43 ) * 11
----
473

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL + - MAX ( - 43 ) * 11
----
473

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL + COUNT( - 10 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL + COUNT ( - 10 ) AS col0
----
1

query I rowsort
SELECT ALL 32 * + - 21 AS col0
----
-672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4243
SELECT MAX( + CAST( 10 AS SIGNED ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4243
SELECT MAX ( + CAST ( 10 AS INTEGER ) ) AS col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4244
SELECT ALL - 59 * + SUM( DISTINCT - 69 ) / + CAST( NULL AS SIGNED ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - 59 * + SUM ( DISTINCT - 69 ) / + CAST ( NULL AS INTEGER ) + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL + MAX( ALL + + 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + MAX ( ALL + + 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT MAX( + - 51 ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4246
SELECT MAX ( + - 51 ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT NULLIF ( COUNT( * ), 14 )
----
1

skipif mysql # not compatible
query I rowsort label-4247
SELECT NULLIF ( COUNT ( * ), 14 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT - ( + - ( - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4248
SELECT - ( + - ( - COUNT ( * ) ) )
----
-1

query I rowsort
SELECT DISTINCT - 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - ( - 65 ) + - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4250
SELECT - ( - 65 ) + - COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT + ( ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4251
SELECT + ( ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL + 45 * + + 1
----
45

query I rowsort
SELECT + 72 col1
----
72

query I rowsort
SELECT DISTINCT + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT + MAX( ALL - + 39 ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-4255
SELECT + MAX ( ALL - + 39 ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT + COUNT( * ) + - 86 * + COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4256
SELECT + COUNT ( * ) + - 86 * + COUNT ( * ) AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT ALL + COUNT( * ) * + - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT ALL SUM( - 15 ) + - - 49 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL SUM ( - 15 ) + - - 49 AS col0
----
34

query I rowsort
SELECT ALL + ( 25 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4260
SELECT ( COUNT( * ) ) - + 99 + 44 + - 59 DIV - 92
----
-54

skipif mysql # not compatible
query I rowsort label-4260
SELECT ( COUNT ( * ) ) - + 99 + 44 + - 59 / - 92
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT SUM( + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4261
SELECT SUM ( + 15 ) AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT CAST( NULL AS SIGNED ) + + 73 + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT CAST ( NULL AS INTEGER ) + + 73 + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT - MIN( 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT - MIN ( 1 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT ( + 95 )
----
95

query I rowsort
SELECT ALL - + 96 + + 60
----
-36

query I rowsort
SELECT DISTINCT ( 18 ) AS col0
----
18

query I rowsort
SELECT ALL 16 col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT ALL + COUNT( * ) AS col2, + 12 AS col0
----
1
12

skipif mysql # not compatible
query II rowsort label-4268
SELECT ALL + COUNT ( * ) AS col2, + 12 AS col0
----
1
12

query I rowsort
SELECT ( + + 86 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT + SUM( ALL - + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4270
SELECT + SUM ( ALL - + 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT MIN( DISTINCT - + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-4271
SELECT MIN ( DISTINCT - + 5 )
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4272
SELECT DISTINCT - 4 * CAST( + 69 AS SIGNED )
----
-276

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT - 4 * CAST ( + 69 AS INTEGER )
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL ( - + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL ( - + ( COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - 8 + + 28 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4275
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT DISTINCT - 64 * + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT - 64 * + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT ALL + CAST( NULL AS SIGNED ) * 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + CAST ( NULL AS INTEGER ) * 93 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT - - SUM( DISTINCT - + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4278
SELECT - - SUM ( DISTINCT - + 80 ) AS col0
----
-80

query II rowsort
SELECT DISTINCT 40, + 48 AS col0
----
40
48

query I rowsort
SELECT + + 69 AS col2
----
69

query I rowsort
SELECT DISTINCT + 42 * 33
----
1386

query I rowsort
SELECT ALL + 97 AS col0
----
97

query I rowsort
SELECT - 44 col1
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT + + 64 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-4284
SELECT + + 64 / 53
----
1

query I rowsort
SELECT DISTINCT + 82
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT + MIN( ALL - - 17 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-4286
SELECT + MIN ( ALL - - 17 ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL + SUM( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL + SUM ( + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT 64 + - - MIN( ALL - 87 ) + + - COUNT( * ) + + - COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4288
SELECT 64 + - - MIN ( ALL - 87 ) + + - COUNT ( * ) + + - COUNT ( * ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT 80 + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4289
SELECT 80 + - COUNT ( * )
----
79

query I rowsort
SELECT 21 + 50
----
71

query I rowsort
SELECT - - 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + COUNT( * ) + - COUNT( + 43 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT + COUNT ( * ) + - COUNT ( + 43 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT + COUNT( * ) + - + MIN( ALL 74 )
----
-73

skipif mysql # not compatible
query I rowsort label-4293
SELECT + COUNT ( * ) + - + MIN ( ALL 74 )
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-4294
SELECT 21 DIV - 6
----
-3

skipif mysql # not compatible
query I rowsort label-4294
SELECT 21 / - 6
----
-3

query I rowsort
SELECT ( + 83 ) AS col0
----
83

query I rowsort
SELECT ( + 1 ) + - + 73
----
-72

query I rowsort
SELECT ALL - 7 * 68 AS col1
----
-476

query I rowsort
SELECT + - 82 AS col0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT - 42 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT - 42 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT + COUNT( * ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-4300
SELECT + COUNT ( * ) * 9
----
9

query I rowsort
SELECT ALL - 56 + - 2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - - SUM( + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4302
SELECT - - SUM ( + 50 )
----
50

query I rowsort
SELECT DISTINCT 32 * - 78
----
-2496

query I rowsort
SELECT + 15 AS col1
----
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4305
SELECT + 80 / + CAST( NULL AS DECIMAL ) + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT + 80 / + CAST ( NULL AS REAL ) + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + 28 + - 41 * - + ( - + MAX( 11 ) )
----
-423

skipif mysql # not compatible
query I rowsort label-4306
SELECT + 28 + - 41 * - + ( - + MAX ( 11 ) )
----
-423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT - - ( + - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT - - ( + - CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT - 55 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4309
SELECT DISTINCT - COALESCE ( + ( + COUNT( * ) ), - - ( + CAST( NULL AS SIGNED ) ), + 64 * + - COUNT( * ) + + - 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT - COALESCE ( + ( + COUNT ( * ) ), - - ( + CAST ( NULL AS INTEGER ) ), + 64 * + - COUNT ( * ) + + - 68 )
----
-1

query I rowsort
SELECT DISTINCT - + 67 AS col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4311
SELECT - 48 AS col2, - CAST( NULL AS SIGNED ) AS col2
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-4311
SELECT - 48 AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
-48
NULL

query II rowsort
SELECT - 99 AS col1, + ( - 4 )
----
-99
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT + COUNT( DISTINCT 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4313
SELECT + COUNT ( DISTINCT 48 ) AS col2
----
1

query I rowsort
SELECT 80 + + ( - 63 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT ALL 33 - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL 33 - COUNT ( * )
----
32

query I rowsort
SELECT ALL - + 60
----
-60

query I rowsort
SELECT ALL - 81 * + 68
----
-5508

query I rowsort
SELECT DISTINCT 73 + + 82 AS col1
----
155

query I rowsort
SELECT ( - ( 46 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL + MIN( ALL 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + MIN ( ALL 93 )
----
93

query I rowsort
SELECT + NULLIF ( - 19, - + 30 ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL - COUNT( * ) * + + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) col1
----
-1

query I rowsort
SELECT ALL + + 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT - COUNT( * ) + + - 71
----
-72

skipif mysql # not compatible
query I rowsort label-4324
SELECT - COUNT ( * ) + + - 71
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4325
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4326
SELECT DISTINCT CAST( - - 13 AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT CAST ( - - 13 AS INTEGER ) AS col2
----
13

query I rowsort
SELECT + 12 + - 53
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4328
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, - 71 AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-4328
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, - 71 AS col0
----
NULL
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT DISTINCT + COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-4329
SELECT DISTINCT + COUNT ( * ) * 40
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4330
SELECT + 56 AS col2, + COUNT( * )
----
56
1

skipif mysql # not compatible
query II rowsort label-4330
SELECT + 56 AS col2, + COUNT ( * )
----
56
1

query I rowsort
SELECT DISTINCT + 42 + - 79 * 4
----
-274

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4332
SELECT + 77 * ( + - COALESCE ( ( - 71 ), + COUNT( * ) ) ) + + 16 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT + 77 * ( + - COALESCE ( ( - 71 ), + COUNT ( * ) ) ) + + 16 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT 61 + - COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT 61 + - COUNT ( * ) AS col2
----
60

query I rowsort
SELECT ALL 96 + + 45
----
141

query I rowsort
SELECT 18 - - 84
----
102

query I rowsort
SELECT ALL 76 AS col0
----
76

query I rowsort
SELECT DISTINCT 35 AS col2
----
35

query I rowsort
SELECT ALL 87 col1
----
87

query I rowsort
SELECT ALL - 13 col1
----
-13

query I rowsort
SELECT DISTINCT - + 51
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL - MIN( ALL CAST( NULL AS SIGNED ) ) + - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL - MIN ( ALL CAST ( NULL AS INTEGER ) ) + - 53 AS col1
----
NULL

query I rowsort
SELECT ALL - - ( + ( - 12 ) ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT 18 + COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4343
SELECT 18 + COUNT ( * ) AS col2
----
19

query II rowsort
SELECT ALL 76 AS col2, + 31 AS col2
----
76
31

query I rowsort
SELECT - NULLIF ( - 1, 29 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + + 6 * + 48 AS col0
----
288

query I rowsort
SELECT + 37 + ( + 35 ) AS col1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT ALL COUNT( * ) DIV - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL COUNT ( * ) / - ( + COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL ( + + 50 ) AS col0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT DISTINCT ( - - COUNT( * ) ) + 1 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT ( - - COUNT ( * ) ) + 1 AS col0
----
2

query I rowsort
SELECT DISTINCT - ( + 56 ) + - 65
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT - - MIN( + 50 ) col1
----
50

skipif mysql # not compatible
query I rowsort label-4352
SELECT - - MIN ( + 50 ) col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL + + SUM( ALL - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + + SUM ( ALL - 68 ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ( - + ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4354
SELECT ( - + ( COUNT ( * ) ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4355
SELECT DISTINCT + MIN( ( + 0 ) ) * - CAST( NULL AS SIGNED ) + CAST( 6 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT + MIN ( ( + 0 ) ) * - CAST ( NULL AS INTEGER ) + CAST ( 6 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT + MAX( ALL - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-4356
SELECT + MAX ( ALL - 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT 63 + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4357
SELECT 63 + COUNT ( * ) AS col0
----
64

query I rowsort
SELECT 53 + + 17
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + 48 * COUNT( * ) * + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-4359
SELECT + 48 * COUNT ( * ) * + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT COUNT( * ) * + 71
----
71

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT COUNT ( * ) * + 71
----
71

query I rowsort
SELECT - 38 col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-4362
SELECT + 14 + - COUNT( * ), 36 col0
----
13
36

skipif mysql # not compatible
query II rowsort label-4362
SELECT + 14 + - COUNT ( * ), 36 col0
----
13
36

query I rowsort
SELECT DISTINCT 55 AS col0
----
55

query II rowsort
SELECT + 39 AS col2, - 3 AS col1
----
39
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT 1 * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4365
SELECT 1 * COUNT ( * )
----
1

query I rowsort
SELECT ALL 21 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4367
SELECT + COUNT( * ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT + COUNT ( * ) + - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 11, - 71 AS col0
----
11
-71

query I rowsort
SELECT - - 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT - + COUNT( * ) AS col2, COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-4370
SELECT - + COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4371
SELECT DISTINCT CAST( NULL AS SIGNED ) / 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4372
SELECT ALL CAST( + + ( - 63 ) AS SIGNED ) - - + 83
----
20

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL CAST ( + + ( - 63 ) AS INTEGER ) - - + 83
----
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4373
SELECT - CAST( - 38 AS SIGNED ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT - CAST ( - 38 AS INTEGER ) + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT + MAX( 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4375
SELECT + MAX ( 29 ) AS col0
----
29

query I rowsort
SELECT + ( 59 ) AS col2
----
59

query I rowsort
SELECT + ( - + 27 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4378
SELECT + CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4378
SELECT + CAST ( COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT + - 63 AS col0
----
-63

query I rowsort
SELECT - + 56 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ( - + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4381
SELECT ( - + COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT 52 + 5 AS col1
----
57

query I rowsort
SELECT 59 * NULLIF ( 7, - 64 )
----
413

query I rowsort
SELECT DISTINCT - 36 AS col0
----
-36

query I rowsort
SELECT ALL - 42 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL + COUNT( * ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + COUNT ( * ) + - 97
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT MAX( 85 ) * ( + - 3 )
----
-255

skipif mysql # not compatible
query I rowsort label-4387
SELECT MAX ( 85 ) * ( + - 3 )
----
-255

query I rowsort
SELECT DISTINCT - - 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL - - MAX( DISTINCT - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - - MAX ( DISTINCT - 83 )
----
-83

query I rowsort
SELECT + - 13 + - 6
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4391
SELECT ALL CAST( NULL AS DECIMAL ) / + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL CAST ( NULL AS REAL ) / + 46 AS col1
----
NULL

query I rowsort
SELECT + ( - 72 )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4393
SELECT DISTINCT 41 DIV - + 46
----
0

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT 41 / - + 46
----
0

query II rowsort
SELECT ALL + 7, - 36 AS col1
----
7
-36

query I rowsort
SELECT ALL + 46 col1
----
46

query I rowsort
SELECT ALL 49 col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4397
SELECT + ( - - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL + + 94 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT SUM( DISTINCT + - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4399
SELECT SUM ( DISTINCT + - 89 )
----
-89

query I rowsort
SELECT ALL - + 35 AS col0
----
-35

query I rowsort
SELECT DISTINCT - 39 + - + 22 AS col0
----
-61

query I rowsort
SELECT ALL 81 AS col0
----
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4403
SELECT ALL - CAST( NULL AS DECIMAL ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL - CAST ( NULL AS REAL ) / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 13 - + 53 AS col0
----
-40

query I rowsort
SELECT ALL - 26 + + 97 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT ALL - CAST( - 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL - CAST ( - 23 AS INTEGER )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL + - COALESCE ( + - COUNT( * ), - 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL + - COALESCE ( + - COUNT ( * ), - 99 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4408
SELECT ALL + - 64 DIV COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL + - 64 / COUNT ( * )
----
-64

query I rowsort
SELECT ALL + 75 col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT ALL + + 97 DIV - 91 + - 11 DIV ( + 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL + + 97 / - 91 + - 11 / ( + 73 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + COUNT( ALL - 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + COUNT ( ALL - 35 ) AS col1
----
1

query I rowsort
SELECT + 89 col1
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT COUNT( DISTINCT - - ( + - 47 ) ) AS col1, 0 + + 63
----
1
63

skipif mysql # not compatible
query II rowsort label-4413
SELECT COUNT ( DISTINCT - - ( + - 47 ) ) AS col1, 0 + + 63
----
1
63

query I rowsort
SELECT DISTINCT 20 AS col1
----
20

query I rowsort
SELECT ALL 23 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4416
SELECT - ( - - MIN( - CAST( 36 AS SIGNED ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-4416
SELECT - ( - - MIN ( - CAST ( 36 AS INTEGER ) ) )
----
36

query I rowsort
SELECT ALL + 35 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - COUNT( * ) * 65
----
-65

skipif mysql # not compatible
query I rowsort label-4418
SELECT - COUNT ( * ) * 65
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4419
SELECT - COALESCE ( + COUNT( * ), + + CAST( - 18 AS SIGNED ) ) + COUNT( * ) * + + 84
----
83

skipif mysql # not compatible
query I rowsort label-4419
SELECT - COALESCE ( + COUNT ( * ), + + CAST ( - 18 AS INTEGER ) ) + COUNT ( * ) * + + 84
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL MIN( DISTINCT - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL MIN ( DISTINCT - 1 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - MIN( - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4422
SELECT - MIN ( - 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL - COUNT( * ) * - 5
----
5

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - COUNT ( * ) * - 5
----
5

query I rowsort
SELECT ALL - 50 col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4425
SELECT ( CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4425
SELECT ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4426
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col1, + 57
----
-1
57

skipif mysql # not compatible
query II rowsort label-4426
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col1, + 57
----
-1
57

query I rowsort
SELECT 50 + + 99
----
149

query I rowsort
SELECT DISTINCT 71 * - 5
----
-355

query I rowsort
SELECT ALL + 57 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT MAX( ALL - + 75 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4430
SELECT MAX ( ALL - + 75 ) AS col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT ALL - CAST( - 96 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - CAST ( - 96 AS INTEGER )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT - + 84 + - + COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT - + 84 + - + COUNT ( * )
----
-85

query I rowsort
SELECT ALL ( 42 ) AS col2
----
42

query I rowsort
SELECT ( + NULLIF ( + - 48, 54 ) ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT ALL 78 * 53 + 19 + + COUNT( * ) col1
----
4154

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL 78 * 53 + 19 + + COUNT ( * ) col1
----
4154

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + 62 - + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4436
SELECT + 62 - + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4437
SELECT DISTINCT COUNT( * ) col1, 58 col2
----
1
58

skipif mysql # not compatible
query II rowsort label-4437
SELECT DISTINCT COUNT ( * ) col1, 58 col2
----
1
58

query I rowsort
SELECT ALL - 7 * + 35
----
-245

query I rowsort
SELECT ALL - 17 + - 17
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4440
SELECT COUNT( * ) * - 77 DIV MIN( ALL 67 ) * + 8 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4440
SELECT COUNT ( * ) * - 77 / MIN ( ALL 67 ) * + 8 AS col2
----
-8

query I rowsort
SELECT ALL + 45 * - + 21 AS col2
----
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT + - ( - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4442
SELECT + - ( - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT + 29 * - 11 / + + MAX( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4443
SELECT + 29 * - 11 / + + MAX ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4445
SELECT + 37 AS col0, + NULLIF ( COUNT( * ), - - 29 ) * - - MAX( ALL - 4 )
----
37
-4

skipif mysql # not compatible
query II rowsort label-4445
SELECT + 37 AS col0, + NULLIF ( COUNT ( * ), - - 29 ) * - - MAX ( ALL - 4 )
----
37
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4446
SELECT ALL - + MIN( - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL - + MIN ( - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT 40 col2
----
40

query I rowsort
SELECT - 18 AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4449
SELECT DISTINCT CAST( NULL AS SIGNED ) + COUNT( * ), COUNT( ALL - CASE ( 52 ) WHEN - 17 THEN - 13 ELSE NULL END ) AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4449
SELECT DISTINCT CAST ( NULL AS INTEGER ) + COUNT ( * ), COUNT ( ALL - CASE ( 52 ) WHEN - 17 THEN - 13 ELSE NULL END ) AS col0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT + 82 + - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4450
SELECT + 82 + - COUNT ( * )
----
81

query I rowsort
SELECT - 11 + - 90
----
-101

query I rowsort
SELECT + 95 + 30
----
125

query I rowsort
SELECT + + 80
----
80

query I rowsort
SELECT DISTINCT ( 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - COUNT( * ) * - 14
----
14

skipif mysql # not compatible
query I rowsort label-4455
SELECT - COUNT ( * ) * - 14
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL CAST( + 82 AS SIGNED ) col0
----
82

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL CAST ( + 82 AS INTEGER ) col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT + 77 * + MAX( DISTINCT + 62 ) AS col0
----
4774

skipif mysql # not compatible
query I rowsort label-4457
SELECT + 77 * + MAX ( DISTINCT + 62 ) AS col0
----
4774

onlyif mysql # aggregate syntax: 
query II rowsort label-4458
SELECT - COUNT( * ), 93 AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-4458
SELECT - COUNT ( * ), 93 AS col2
----
-1
93

query I rowsort
SELECT + 95 + + 82 col0
----
177

query I rowsort
SELECT + 5 * 18
----
90

query I rowsort
SELECT + 57 AS col2
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4462
SELECT - MAX( CAST( NULL AS SIGNED ) ) * + 11 * + 13 * - 11 + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) * + 11 * + 13 * - 11 + + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT COUNT( * ) * ( + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4463
SELECT COUNT ( * ) * ( + 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 18 + - 29 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT - ( + MAX( - 69 ) ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4465
SELECT - ( + MAX ( - 69 ) ) AS col2
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4466
SELECT CAST( NULL AS SIGNED ) * + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT CAST ( NULL AS INTEGER ) * + 29
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT CAST( NULL AS SIGNED ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT CAST ( NULL AS INTEGER ) * - 59
----
NULL

query I rowsort
SELECT 79 * - 97
----
-7663

query I rowsort
SELECT - ( - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT + 11 * - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-4470
SELECT + 11 * - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + COUNT( * ) * + 65
----
65

skipif mysql # not compatible
query I rowsort label-4471
SELECT + COUNT ( * ) * + 65
----
65

query II rowsort
SELECT + 18 + - 86 * + 82 * + - 61, - 99 AS col0
----
430190
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT MIN( 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4473
SELECT MIN ( 3 ) AS col0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4474
SELECT - ( + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4474
SELECT - ( + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4475
SELECT - ( + ( - + 68 ) ), + COUNT( * ) + + 35 AS col0
----
68
36

skipif mysql # not compatible
query II rowsort label-4475
SELECT - ( + ( - + 68 ) ), + COUNT ( * ) + + 35 AS col0
----
68
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT + - CAST( NULL AS SIGNED ) * - + 54 + + 26 + + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT + - CAST ( NULL AS INTEGER ) * - + 54 + + 26 + + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT ALL 51 + + + COUNT( * ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 51 + + + COUNT ( * ) AS col2
----
52

query I rowsort
SELECT - ( 30 ) AS col0
----
-30

query I rowsort
SELECT + ( - 98 ) AS col2
----
-98

query I rowsort
SELECT ( - + 45 )
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4481
SELECT ALL - COUNT( * ) DIV - ( + 88 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - COUNT ( * ) / - ( + 88 ) AS col2
----
0

query I rowsort
SELECT DISTINCT + ( + 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-4483
SELECT ALL MAX( - - 60 ), + 50 AS col1
----
60
50

skipif mysql # not compatible
query II rowsort label-4483
SELECT ALL MAX ( - - 60 ), + 50 AS col1
----
60
50

query I rowsort
SELECT DISTINCT - - 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT SUM( - + 67 ) - + ( ( + 98 ) ) AS col1
----
-165

skipif mysql # not compatible
query I rowsort label-4485
SELECT SUM ( - + 67 ) - + ( ( + 98 ) ) AS col1
----
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-4486
SELECT 85 DIV + 14 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4486
SELECT 85 / + 14 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT DISTINCT ( + COALESCE ( + - 33, - COUNT( * ) * - 23 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT ( + COALESCE ( + - 33, - COUNT ( * ) * - 23 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT DISTINCT - MAX( + 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT - MAX ( + 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT + COUNT( * ) * + 0 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT + COUNT ( * ) * + 0 + + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 1 * + 11 AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4491
SELECT COUNT( * ) DIV COUNT( - 94 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4491
SELECT COUNT ( * ) / COUNT ( - 94 ) col0
----
1

query I rowsort
SELECT ALL - 95 AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4493
SELECT AVG ( - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT AVG ( - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT ALL 69 * - CAST( NULL AS SIGNED ) * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL 69 * - CAST ( NULL AS INTEGER ) * - 94
----
NULL

query I rowsort
SELECT DISTINCT + + 63 AS col1
----
63

query I rowsort
SELECT ALL + 4 * + + 37 col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT - COUNT( - 52 ) * - 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4497
SELECT - COUNT ( - 52 ) * - 29 AS col1
----
29

query I rowsort
SELECT + ( - 70 ) * 88 AS col1
----
-6160

query I rowsort
SELECT DISTINCT 6 * - - 38
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4500
SELECT + CAST( NULL AS SIGNED ) / 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT + CAST ( NULL AS INTEGER ) / 48
----
NULL

query I rowsort
SELECT + 15 + + 66 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL - - COUNT( ALL - 19 ) + - + 95 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - - COUNT ( ALL - 19 ) + - + 95 AS col0
----
-94

query I rowsort
SELECT - 13 col1
----
-13

query I rowsort
SELECT ALL - ( - 41 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4505
SELECT DISTINCT - SUM( - 86 ) * - 83, COUNT( * ) * + CAST( NULL AS SIGNED ) col0
----
-7138
NULL

skipif mysql # not compatible
query II rowsort label-4505
SELECT DISTINCT - SUM ( - 86 ) * - 83, COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0
----
-7138
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT DISTINCT - - MAX( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT - - MAX ( DISTINCT - 86 )
----
-86

query I rowsort
SELECT ALL - 22 * - 33
----
726

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4508
SELECT ALL - COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL - - SUM( DISTINCT + - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL - - SUM ( DISTINCT + - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL - 82 + - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - 82 + - COUNT ( * )
----
-83

query I rowsort
SELECT 69 - 74
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT + ( COUNT( * ) ) + + 73 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4512
SELECT + ( COUNT ( * ) ) + + 73 AS col2
----
74

query I rowsort
SELECT DISTINCT 49 AS col1
----
49

query I rowsort
SELECT DISTINCT 60
----
60

query I rowsort
SELECT ALL 33 * - 64
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT + COUNT( 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT + COUNT ( 13 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT ALL + 92 DIV ( 98 )
----
0

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + 92 / ( 98 )
----
0

query I rowsort
SELECT DISTINCT 43 * 57 AS col1
----
2451

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT - MAX( DISTINCT + 8 ) * - 29
----
232

skipif mysql # not compatible
query I rowsort label-4519
SELECT - MAX ( DISTINCT + 8 ) * - 29
----
232

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4520
SELECT ALL ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT ALL CAST( - 62 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL CAST ( - 62 AS INTEGER )
----
-62

query I rowsort
SELECT - ( + 26 )
----
-26

query I rowsort
SELECT ALL 12 col0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4524
SELECT - NULLIF ( CAST( NULL AS SIGNED ), 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4524
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), 27 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4525
SELECT + SUM( DISTINCT - ( ( - CAST( NULL AS SIGNED ) ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT + SUM ( DISTINCT - ( ( - CAST ( NULL AS INTEGER ) ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 66 * + 45 - 83
----
2887

query I rowsort
SELECT + 42 * + 97 + + 52 AS col1
----
4126

query I rowsort
SELECT 88 * ( + 32 ) AS col1
----
2816

query I rowsort
SELECT 4 + - + ( - 33 ) col0
----
37

query I rowsort
SELECT DISTINCT - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT - + COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * )
----
0

query I rowsort
SELECT - + 5 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL MIN( ALL 36 )
----
36

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL MIN ( ALL 36 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT 30 * - CAST( 32 AS SIGNED )
----
-960

skipif mysql # not compatible
query I rowsort label-4534
SELECT 30 * - CAST ( 32 AS INTEGER )
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - ( - ( COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4535
SELECT - ( - ( COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT ALL - - MIN( 49 )
----
49

skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL - - MIN ( 49 )
----
49

query I rowsort
SELECT + 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL COUNT( * ) * - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL COUNT ( * ) * - ( - COUNT ( * ) )
----
1

query I rowsort
SELECT - + 42 col0
----
-42

query I rowsort
SELECT ALL - 0 * - + 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT - - COUNT( * ) + + SUM( - 61 ) * - 24
----
1465

skipif mysql # not compatible
query I rowsort label-4541
SELECT - - COUNT ( * ) + + SUM ( - 61 ) * - 24
----
1465

query I rowsort
SELECT + ( - - 9 )
----
9

query I rowsort
SELECT ALL - 99 + + 79
----
-20

query I rowsort
SELECT + 34 * 8 AS col0
----
272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT ( - - ( + ( + CAST( NULL AS SIGNED ) ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4545
SELECT ( - - ( + ( + CAST ( NULL AS INTEGER ) ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT DISTINCT + CAST( 20 AS SIGNED ) col0
----
20

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT + CAST ( 20 AS INTEGER ) col0
----
20

query I rowsort
SELECT ALL - ( 84 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-4548
SELECT - - 5 AS col2, + 17 - MIN( - 94 ) AS col2
----
5
111

skipif mysql # not compatible
query II rowsort label-4548
SELECT - - 5 AS col2, + 17 - MIN ( - 94 ) AS col2
----
5
111

query I rowsort
SELECT DISTINCT ( + + 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT DISTINCT - 65 AS col2, + COUNT( * )
----
-65
1

skipif mysql # not compatible
query II rowsort label-4550
SELECT DISTINCT - 65 AS col2, + COUNT ( * )
----
-65
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT ALL - COUNT( DISTINCT + 24 ) - + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - COUNT ( DISTINCT + 24 ) - + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - 42 * 13 * + - 70 + + COUNT( * ) AS col0
----
38221

skipif mysql # not compatible
query I rowsort label-4552
SELECT - 42 * 13 * + - 70 + + COUNT ( * ) AS col0
----
38221

query I rowsort
SELECT ALL ( + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT 67 * - COUNT( * ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT 67 * - COUNT ( * ) col0
----
-67

query I rowsort
SELECT DISTINCT - 65 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT MAX( + 46 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4556
SELECT MAX ( + 46 ) AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT AVG ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT AVG ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - + 78 + + + COUNT( - 59 )
----
-77

skipif mysql # not compatible
query I rowsort label-4558
SELECT - + 78 + + + COUNT ( - 59 )
----
-77

query I rowsort
SELECT + ( 47 ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4560
SELECT + COUNT( * ), 7 AS col1
----
1
7

skipif mysql # not compatible
query II rowsort label-4560
SELECT + COUNT ( * ), 7 AS col1
----
1
7

query I rowsort
SELECT - - 50 * + 91
----
4550

query I rowsort
SELECT DISTINCT - 60 * + 3
----
-180

query I rowsort
SELECT ALL - 40 * - 51
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT - 67 * - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - 67 * - COUNT ( * )
----
67

query I rowsort
SELECT + - 59 AS col1
----
-59

query I rowsort
SELECT DISTINCT 77 - 85 AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4567
SELECT 3 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT 3 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT 48 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-4568
SELECT 48 / - + 83
----
0

query I rowsort
SELECT 73 * - 19 * + 22
----
-30514

query I rowsort
SELECT ALL - ( + 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT COUNT( * ) * + 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4571
SELECT COUNT ( * ) * + 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4572
SELECT ALL 97, + COUNT( * ) AS col0
----
97
1

skipif mysql # not compatible
query II rowsort label-4572
SELECT ALL 97, + COUNT ( * ) AS col0
----
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT - CAST( - 25 AS SIGNED ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4573
SELECT - CAST ( - 25 AS INTEGER ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT - CAST( - 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-4574
SELECT - CAST ( - 25 AS INTEGER )
----
25

query I rowsort
SELECT + 56 * + - 66 * - 24 AS col1
----
88704

query I rowsort
SELECT DISTINCT + + COALESCE ( 3, - - 90 ) AS col1
----
3

query I rowsort
SELECT ALL + - 55 col0
----
-55

query I rowsort
SELECT 57 * - 24
----
-1368

query I rowsort
SELECT DISTINCT - + 21
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4580
SELECT CAST( NULL AS DECIMAL ) AS col1, 86 AS col2
----
NULL
86

skipif mysql # not compatible
query II rowsort label-4580
SELECT CAST ( NULL AS REAL ) AS col1, 86 AS col2
----
NULL
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT NULLIF ( - + 83, + + COUNT( * ) )
----
-83

skipif mysql # not compatible
query I rowsort label-4581
SELECT NULLIF ( - + 83, + + COUNT ( * ) )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4582
SELECT ALL - NULLIF ( - + 49, - CAST( NULL AS SIGNED ) )
----
49

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - NULLIF ( - + 49, - CAST ( NULL AS INTEGER ) )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - - ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4583
SELECT - - ( + + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - + 58 AS col0
----
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4585
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT - 71 + - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-4586
SELECT - 71 + - COUNT ( * )
----
-72

query I rowsort
SELECT - 88 * 68 AS col0
----
-5984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT + CAST( NULL AS SIGNED ) / - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT + CAST ( NULL AS INTEGER ) / - - 17
----
NULL

query I rowsort
SELECT DISTINCT + ( + + ( + 97 ) ) col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4590
SELECT DISTINCT + COUNT( * ), 46 AS col1
----
1
46

skipif mysql # not compatible
query II rowsort label-4590
SELECT DISTINCT + COUNT ( * ), 46 AS col1
----
1
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT COUNT( * ) * 87
----
87

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT COUNT ( * ) * 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT - + NULLIF ( ( - COUNT( * ) ), + 46 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4592
SELECT - + NULLIF ( ( - COUNT ( * ) ), + 46 ) col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4593
SELECT 75, - MIN( 7 ) AS col1
----
75
-7

skipif mysql # not compatible
query II rowsort label-4593
SELECT 75, - MIN ( 7 ) AS col1
----
75
-7

query I rowsort
SELECT DISTINCT - 80 col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT DISTINCT - CAST( - 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT - CAST ( - 75 AS INTEGER )
----
75

query I rowsort
SELECT DISTINCT - + 58 AS col2
----
-58

query I rowsort
SELECT ALL - 25 AS col0
----
-25

query I rowsort
SELECT ALL + NULLIF ( - 64, - - 74 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - - ( + - MIN( ALL - 46 ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-4599
SELECT - - ( + - MIN ( ALL - 46 ) ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4600
SELECT CAST( NULL AS SIGNED ) * + ( + - 0 ) * - 38 * + COUNT( * ) + - 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4600
SELECT CAST ( NULL AS INTEGER ) * + ( + - 0 ) * - 38 * + COUNT ( * ) + - 31 col1
----
NULL

query I rowsort
SELECT 76 * + NULLIF ( 43, + 8 ) AS col1
----
3268

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4602
SELECT + COUNT( * ) AS col2, MAX( + CAST( NULL AS DECIMAL ) )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4602
SELECT + COUNT ( * ) AS col2, MAX ( + CAST ( NULL AS REAL ) )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT COUNT( ALL + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-4603
SELECT COUNT ( ALL + 50 )
----
1

query I rowsort
SELECT DISTINCT - 53 AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL - - 94 - - ( + + COUNT( * ) ) col1
----
95

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - - 94 - - ( + + COUNT ( * ) ) col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT + 57 / - CAST( NULL AS SIGNED ) * 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT + 57 / - CAST ( NULL AS INTEGER ) * 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4607
SELECT + - COUNT( * ) DIV 22
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT + - COUNT ( * ) / 22
----
0

query I rowsort
SELECT DISTINCT + - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL MAX( 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL MAX ( 72 ) AS col1
----
72

query I rowsort
SELECT 33 col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4611
SELECT ALL + 10 DIV - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL + 10 / - COUNT ( * )
----
-10

query I rowsort
SELECT + 57 * - 35 AS col2
----
-1995

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4613
SELECT ALL + COUNT( * ) DIV 3
----
0

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + COUNT ( * ) / 3
----
0

query I rowsort
SELECT + 97 AS col0
----
97

query I rowsort
SELECT + ( - 78 )
----
-78

query I rowsort
SELECT ALL - + 9 AS col2
----
-9

query I rowsort
SELECT 82 - 99
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4618
SELECT DISTINCT 80 AS col2, + ( - - CAST( NULL AS SIGNED ) )
----
80
NULL

skipif mysql # not compatible
query II rowsort label-4618
SELECT DISTINCT 80 AS col2, + ( - - CAST ( NULL AS INTEGER ) )
----
80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL + COUNT( * ) * + + 83 * + 42
----
3486

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + COUNT ( * ) * + + 83 * + 42
----
3486

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL - SUM( + ( 39 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL - SUM ( + ( 39 ) ) AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT ALL - CAST( - ( + - SUM( - 71 ) ) AS SIGNED )
----
71

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL - CAST ( - ( + - SUM ( - 71 ) ) AS INTEGER )
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4622
SELECT 79 + + + 29 DIV - 98
----
79

skipif mysql # not compatible
query I rowsort label-4622
SELECT 79 + + + 29 / - 98
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4623
SELECT + 41, - CAST( + 40 AS SIGNED ) col1
----
41
-40

skipif mysql # not compatible
query II rowsort label-4623
SELECT + 41, - CAST ( + 40 AS INTEGER ) col1
----
41
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4624
SELECT 10 * + - SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT 10 * + - SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT ALL ( + COUNT( * ) ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL ( + COUNT ( * ) ) * - COUNT ( * )
----
-1

query I rowsort
SELECT ALL 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL COUNT( 34 )
----
1

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL COUNT ( 34 )
----
1

query I rowsort
SELECT DISTINCT 54 AS col2
----
54

query I rowsort
SELECT ALL + 14 AS col2
----
14

query I rowsort
SELECT - 27 * + 31 + - + 72 * 82 AS col0
----
-6741

query I rowsort
SELECT ALL + - 79
----
-79

query I rowsort
SELECT ALL 70 col2
----
70

query I rowsort
SELECT + 34 + + 85
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT + 28 * - - ( + COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-4634
SELECT + 28 * - - ( + COUNT ( * ) )
----
28

query I rowsort
SELECT ALL 39 AS col1
----
39

query I rowsort
SELECT ALL + + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT + MIN( + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4637
SELECT + MIN ( + 14 ) AS col2
----
14

query I rowsort
SELECT DISTINCT + ( + 41 ) col0
----
41

query I rowsort
SELECT + - 62 * 35 AS col1
----
-2170

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT + MIN( + 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-4640
SELECT + MIN ( + 41 ) AS col2
----
41

query I rowsort
SELECT + 79 * + 80
----
6320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + 32 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + 32 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT DISTINCT - ( - COUNT( * ) ) + + - 23 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - ( - COUNT ( * ) ) + + - 23 AS col2
----
-22

query I rowsort
SELECT + 99 col0
----
99

query I rowsort
SELECT + + 21 col2
----
21

query I rowsort
SELECT ALL - NULLIF ( - - 3, - 77 ) AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT + ( - - CAST( - 58 AS SIGNED ) )
----
-58

skipif mysql # not compatible
query I rowsort label-4647
SELECT + ( - - CAST ( - 58 AS INTEGER ) )
----
-58

query II rowsort
SELECT 74, 63 AS col0
----
74
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4649
SELECT DISTINCT + CAST( ( + - 88 ) AS SIGNED ) + 49 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4649
SELECT DISTINCT + CAST ( ( + - 88 ) AS INTEGER ) + 49 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT DISTINCT + + COUNT( * ) * + 86
----
86

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + + COUNT ( * ) * + 86
----
86

query I rowsort
SELECT ALL - 0 AS col2
----
0

query I rowsort
SELECT ALL - - 50 col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4653
SELECT + 59 AS col2, - COUNT( * )
----
59
-1

skipif mysql # not compatible
query II rowsort label-4653
SELECT + 59 AS col2, - COUNT ( * )
----
59
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT SUM( 3 ) col1
----
3

skipif mysql # not compatible
query I rowsort label-4654
SELECT SUM ( 3 ) col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL + MIN( DISTINCT 13 )
----
13

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + MIN ( DISTINCT 13 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-4656
SELECT ALL + COUNT( * ) AS col0, 23 * - + 51
----
1
-1173

skipif mysql # not compatible
query II rowsort label-4656
SELECT ALL + COUNT ( * ) AS col0, 23 * - + 51
----
1
-1173

query I rowsort
SELECT + - 41 * + 70
----
-2870

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT - - ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4658
SELECT - - ( + COUNT ( * ) )
----
1

query I rowsort
SELECT ( ( - 27 ) )
----
-27

query I rowsort
SELECT 35 * - 15 - + - 16 AS col1
----
-509

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT + MAX( + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-4661
SELECT + MAX ( + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT - 22 * + COUNT( * ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4662
SELECT - 22 * + COUNT ( * ) AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-4663
SELECT 37 DIV - 25 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4663
SELECT 37 / - 25 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4664
SELECT ALL - CAST( NULL AS SIGNED ) + - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - CAST ( NULL AS INTEGER ) + - 9
----
NULL

query I rowsort
SELECT DISTINCT - ( 63 ) AS col1
----
-63

query I rowsort
SELECT DISTINCT - ( - + 82 ) col2
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-4667
SELECT ALL - COUNT( * ) AS col0, 95
----
-1
95

skipif mysql # not compatible
query II rowsort label-4667
SELECT ALL - COUNT ( * ) AS col0, 95
----
-1
95

query I rowsort
SELECT ALL - 90 col0
----
-90

query I rowsort
SELECT 80 * + + 79
----
6320

query I rowsort
SELECT ALL - + 62 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + CASE 15 WHEN - COUNT( * ) THEN - - 67 END + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT + CASE 15 WHEN - COUNT ( * ) THEN - - 67 END + + 38
----
NULL

query I rowsort
SELECT - ( - + 86 ) col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT ALL + 9 DIV + + COUNT( * ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + 9 / + + COUNT ( * ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT DISTINCT + COUNT( * ) * - - ( + + 9 ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4674
SELECT DISTINCT + COUNT ( * ) * - - ( + + 9 ) AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL + COUNT( * ) + + - ( + + 35 ) + + 63
----
29

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + COUNT ( * ) + + - ( + + 35 ) + + 63
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4676
SELECT ALL + ( 63 ) DIV COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL + ( 63 ) / COUNT ( * ) AS col2
----
63

query I rowsort
SELECT - ( + 25 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT - MIN( + + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4678
SELECT - MIN ( + + 62 )
----
-62

query I rowsort
SELECT - 58 * 97
----
-5626

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT + ( COUNT( * ) ) * - + 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4680
SELECT + ( COUNT ( * ) ) * - + 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT - 66 * 84 + - + 99 * - COUNT( * ) AS col2
----
-5445

skipif mysql # not compatible
query I rowsort label-4681
SELECT - 66 * 84 + - + 99 * - COUNT ( * ) AS col2
----
-5445

query I rowsort
SELECT + + 40
----
40

query I rowsort
SELECT DISTINCT 71 AS col1
----
71

query I rowsort
SELECT ALL + ( - 67 ) col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4685
SELECT DISTINCT - 12 DIV - - COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - 12 / - - COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT - + COUNT( * ) + 18 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-4686
SELECT - + COUNT ( * ) + 18 AS col1
----
17

query I rowsort
SELECT ALL ( - ( 35 ) )
----
-35

query I rowsort
SELECT - 63 * - 9
----
567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4689
SELECT DISTINCT + + 21 / 41 * + CAST( NULL AS SIGNED ) + - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT + + 21 / 41 * + CAST ( NULL AS INTEGER ) + - 14 AS col0
----
NULL

query I rowsort
SELECT ALL ( 91 ) * ( 84 ) AS col0
----
7644

query I rowsort
SELECT ( + 84 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT - - CAST( ( + 60 ) AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-4692
SELECT - - CAST ( ( + 60 ) AS INTEGER ) AS col1
----
60

query I rowsort
SELECT ALL 34 - 98
----
-64

query I rowsort
SELECT DISTINCT - + 18 col2
----
-18

query II rowsort
SELECT - 56, - 36 AS col1
----
-56
-36

query I rowsort
SELECT ALL 80 + + 57 AS col2
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-4697
SELECT ALL COUNT( * ) AS col2, - 18
----
1
-18

skipif mysql # not compatible
query II rowsort label-4697
SELECT ALL COUNT ( * ) AS col2, - 18
----
1
-18

query I rowsort
SELECT + 65 + - 28 AS col1
----
37

query I rowsort
SELECT ALL - + 25 * + - 85
----
2125

query I rowsort
SELECT DISTINCT + + 58 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT ALL + MIN( - - 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4701
SELECT ALL + MIN ( - - 56 ) AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT + ( + - 1 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT + ( + - 1 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4703
SELECT DISTINCT MIN( ALL 68 ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT MIN ( ALL 68 ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 50 AS col0
----
50

query I rowsort
SELECT ALL + + 52 AS col2
----
52

query I rowsort
SELECT - 10 + - - 58 AS col2
----
48

query I rowsort
SELECT ( - - 49 ) col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4708
SELECT DISTINCT CAST( - ( + COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT CAST ( - ( + COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL 27 - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL 27 - + COUNT ( * )
----
26

query I rowsort
SELECT 29 * + 12 AS col1
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT 78 * + COUNT( * ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4711
SELECT 78 * + COUNT ( * ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + - COUNT( ALL 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-4712
SELECT + - COUNT ( ALL 24 )
----
-1

query II rowsort
SELECT DISTINCT 92 AS col2, 34
----
92
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4714
SELECT COUNT( * ) AS col1, - 28 AS col0
----
1
-28

skipif mysql # not compatible
query II rowsort label-4714
SELECT COUNT ( * ) AS col1, - 28 AS col0
----
1
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT - COUNT( * ) * - 17 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4715
SELECT - COUNT ( * ) * - 17 AS col2
----
17

query I rowsort
SELECT ALL - - 36
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT + MIN( DISTINCT ( - + 83 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4717
SELECT + MIN ( DISTINCT ( - + 83 ) ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT DISTINCT COUNT( + + 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT COUNT ( + + 28 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL - + MIN( + - 20 ) + ( + + 2 )
----
22

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - + MIN ( + - 20 ) + ( + + 2 )
----
22

query I rowsort
SELECT DISTINCT - 92 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT + 22 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT + 22 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL + COUNT( * ) * + - 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL + COUNT ( * ) * + - 43 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-4724
SELECT + + 52 DIV + 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4724
SELECT + + 52 / + 83 AS col1
----
0

query I rowsort
SELECT - 53 col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT 98 * + + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-4726
SELECT 98 * + + COUNT ( * )
----
98

query I rowsort
SELECT ALL - 72 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-4728
SELECT DISTINCT - SUM( + + 65 ) AS col2, 79 AS col0
----
-65
79

skipif mysql # not compatible
query II rowsort label-4728
SELECT DISTINCT - SUM ( + + 65 ) AS col2, 79 AS col0
----
-65
79

query I rowsort
SELECT DISTINCT - 42 col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT COUNT( * ) * - 75 * + + COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-4730
SELECT COUNT ( * ) * - 75 * + + COUNT ( * )
----
-75

query I rowsort
SELECT ALL 15 col0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4732
SELECT + 16 AS col1, CAST( NULL AS SIGNED ) AS col2
----
16
NULL

skipif mysql # not compatible
query II rowsort label-4732
SELECT + 16 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
16
NULL

query I rowsort
SELECT ALL 57 + + + 46
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT SUM( - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4734
SELECT SUM ( - 62 )
----
-62

query II rowsort
SELECT DISTINCT - 65 AS col1, + 34
----
-65
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4736
SELECT - COUNT( * ) DIV + 48 + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4736
SELECT - COUNT ( * ) / + 48 + + COUNT ( * ) col0
----
1

query I rowsort
SELECT ALL - 28 col0
----
-28

query I rowsort
SELECT 95 + + 66
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT 85 + - - COUNT( * ) col2
----
86

skipif mysql # not compatible
query I rowsort label-4739
SELECT 85 + - - COUNT ( * ) col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT - - MAX( ALL + + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-4740
SELECT - - MAX ( ALL + + 10 )
----
10

query I rowsort
SELECT DISTINCT 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - 11 + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - 11 + COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL - COUNT( * ) * 46
----
-46

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - COUNT ( * ) * 46
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT - 92 * - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-4744
SELECT - 92 * - COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4745
SELECT ALL + CAST( AVG ( DISTINCT - 45 ) AS SIGNED ) * - 3
----
135

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + CAST ( AVG ( DISTINCT - 45 ) AS INTEGER ) * - 3
----
135

query I rowsort
SELECT - 0 col1
----
0

query I rowsort
SELECT - 3 col2
----
-3

query I rowsort
SELECT DISTINCT ( 6 ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT + CAST( ( - - ( + COUNT( * ) ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + CAST ( ( - - ( + COUNT ( * ) ) ) AS INTEGER )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT CAST( + 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-4750
SELECT CAST ( + 18 AS INTEGER )
----
18

query I rowsort
SELECT + + 40 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL + - COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + - COUNT ( * ) + + COUNT ( * )
----
0

query I rowsort
SELECT ALL 34 * - + 11
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT 43 * + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4754
SELECT 43 * + COUNT ( * ) AS col1
----
43

query I rowsort
SELECT + + ( - + 25 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT - + ( - MAX( - + 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT - + ( - MAX ( - + 56 ) )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4757
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) - - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) - - + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL ( + 99 ) * - COUNT( * ) + - 26 AS col0
----
-125

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL ( + 99 ) * - COUNT ( * ) + - 26 AS col0
----
-125

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4759
SELECT ALL CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4760
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0, + ( + - COUNT( * ) )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4760
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0, + ( + - COUNT ( * ) )
----
NULL
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4761
SELECT 15 DIV + ( - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-4761
SELECT 15 / + ( - 39 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT MAX( - 15 ) * + 22
----
-330

skipif mysql # not compatible
query I rowsort label-4762
SELECT MAX ( - 15 ) * + 22
----
-330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4763
SELECT ALL - - COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - - COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT MAX( DISTINCT + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4764
SELECT MAX ( DISTINCT + 78 )
----
78

query I rowsort
SELECT DISTINCT + - 82 AS col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - MAX( ALL + + 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-4766
SELECT - MAX ( ALL + + 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL - COUNT( * ) * - 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL - COUNT ( * ) * - 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT COUNT( * ) + - 97 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT COUNT ( * ) + - 97 AS col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4769
SELECT DISTINCT - + ( - 14 ) DIV ( + - COUNT( * ) ) * + 60 * + COUNT( * ) + + 4
----
-836

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT - + ( - 14 ) / ( + - COUNT ( * ) ) * + 60 * + COUNT ( * ) + + 4
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT + SUM( ALL 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4770
SELECT + SUM ( ALL 22 ) AS col1
----
22

query I rowsort
SELECT ALL + + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT + MIN( ALL + 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4772
SELECT + MIN ( ALL + 21 ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT DISTINCT CAST( - 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT CAST ( - 29 AS INTEGER )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT - 21 - COUNT( * ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-4774
SELECT - 21 - COUNT ( * ) AS col2
----
-22

query I rowsort
SELECT - 13 + + 85 + - 41
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4776
SELECT DISTINCT - COUNT( * ) - + CAST( - 8 AS DECIMAL ) - 26 * - 41 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT - COUNT ( * ) - + CAST ( - 8 AS REAL ) - 26 * - 41 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + 69 - - 99
----
30

query I rowsort
SELECT ALL - 62 AS col2
----
-62

query I rowsort
SELECT DISTINCT - 4 * - 59 col0
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT + 67 * - 48 + - + COUNT( * )
----
-3217

skipif mysql # not compatible
query I rowsort label-4780
SELECT + 67 * - 48 + - + COUNT ( * )
----
-3217

query I rowsort
SELECT 77 col0
----
77

query I rowsort
SELECT ALL - - 93 col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT MIN( + 6 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4783
SELECT MIN ( + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT COUNT( * ) * - 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-4784
SELECT COUNT ( * ) * - 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL - 98 - COUNT( * ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL - 98 - COUNT ( * ) AS col1
----
-99

query I rowsort
SELECT - + 85
----
-85

query I rowsort
SELECT DISTINCT + 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT ( - + COUNT( - 77 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4788
SELECT ( - + COUNT ( - 77 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT + CAST( NULL AS SIGNED ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT + CAST ( NULL AS INTEGER ) * - 56
----
NULL

query I rowsort
SELECT - 92 + - 4 AS col0
----
-96

query I rowsort
SELECT ALL ( + + 58 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL - 27 + + CAST( 7 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - 27 + + CAST ( 7 AS INTEGER )
----
-20

query I rowsort
SELECT ALL - 28 + 51 AS col0
----
23

query I rowsort
SELECT 67 * - 75 AS col2
----
-5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4795
SELECT ALL 97 DIV + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL 97 / + COUNT ( * )
----
97

query I rowsort
SELECT DISTINCT - 63 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - 59 + + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - 59 + + COUNT ( * )
----
-58

query I rowsort
SELECT 61 * - 37
----
-2257

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL - COUNT( * ) * + 2
----
-2

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - COUNT ( * ) * + 2
----
-2

query I rowsort
SELECT DISTINCT - 28 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - - COUNT( * ) * + 74 + + 0 * COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-4801
SELECT - - COUNT ( * ) * + 74 + + 0 * COUNT ( * ) col2
----
74

query I rowsort
SELECT ALL - - 3 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL 30 + - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL 30 + - COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT + ( + - COUNT( * ) ) * + 88
----
-88

skipif mysql # not compatible
query I rowsort label-4804
SELECT + ( + - COUNT ( * ) ) * + 88
----
-88

query I rowsort
SELECT + 68 + 49 col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL + COUNT( * ) * - + MAX( DISTINCT - 18 ) + - 18 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + COUNT ( * ) * - + MAX ( DISTINCT - 18 ) + - 18 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT ALL + + 76 * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + + 76 * + COUNT ( * )
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4808
SELECT DISTINCT + 95 / - ( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT + 95 / - ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

query II rowsort
SELECT - 44 AS col1, 27 * 45 * - 5
----
-44
-6075

query I rowsort
SELECT ALL ( + - 53 ) AS col1
----
-53

query I rowsort
SELECT ALL 80 * 55
----
4400

query I rowsort
SELECT DISTINCT + - 21 AS col1
----
-21

query I rowsort
SELECT - 9 + + - 51 AS col2
----
-60

query I rowsort
SELECT DISTINCT + + 88
----
88

query I rowsort
SELECT ALL - + 15 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT ALL - 47 DIV + 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - 47 / + 60 col1
----
0

query I rowsort
SELECT DISTINCT - 78 col1
----
-78

query I rowsort
SELECT ALL - - 40 AS col1
----
40

query I rowsort
SELECT DISTINCT 69 * 65 AS col2
----
4485

query I rowsort
SELECT 79 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT COUNT( * ) + + - 43 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4821
SELECT COUNT ( * ) + + - 43 AS col0
----
-42

query I rowsort
SELECT DISTINCT 33 AS col0
----
33

query I rowsort
SELECT 6 - + + 68
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT - + COUNT( * ) + + 46
----
45

skipif mysql # not compatible
query I rowsort label-4824
SELECT - + COUNT ( * ) + + 46
----
45

query I rowsort
SELECT ALL + - 27 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - COUNT( * ) * 71 AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-4826
SELECT - COUNT ( * ) * 71 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL COUNT( * ) + - 38
----
-37

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL COUNT ( * ) + - 38
----
-37

query I rowsort
SELECT ALL 28 AS col0
----
28

query I rowsort
SELECT + + 92
----
92

query I rowsort
SELECT + 95 col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT ALL - 46 * - - CAST( NULL AS SIGNED ) + + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL - 46 * - - CAST ( NULL AS INTEGER ) + + 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4832
SELECT ALL + 79 * + CAST( NULL AS DECIMAL ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + 79 * + CAST ( NULL AS REAL ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT - 80 + - ( - + 95 ) col1
----
15

query I rowsort
SELECT - NULLIF ( + 77, 2 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL 61 * + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL 61 * + COUNT ( * ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT - 86 + - - COUNT( * )
----
-85

skipif mysql # not compatible
query I rowsort label-4836
SELECT - 86 + - - COUNT ( * )
----
-85

query I rowsort
SELECT - - 12 AS col2
----
12

query I rowsort
SELECT ALL 32 + + + 62 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT 77 * - - 25 + + COUNT( * )
----
1926

skipif mysql # not compatible
query I rowsort label-4839
SELECT 77 * - - 25 + + COUNT ( * )
----
1926

query I rowsort
SELECT ALL + 20 + - 53 col0
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4841
SELECT DISTINCT - CAST( CASE WHEN NULL > NULL THEN 89 ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - CAST ( CASE WHEN NULL > NULL THEN 89 ELSE NULL END AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 84 AS col1
----
84

query I rowsort
SELECT DISTINCT - 57 AS col1
----
-57

query I rowsort
SELECT 98 * - 69 AS col1
----
-6762

query I rowsort
SELECT DISTINCT - - 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + SUM( DISTINCT - ( + 8 ) )
----
-8

skipif mysql # not compatible
query I rowsort label-4846
SELECT + SUM ( DISTINCT - ( + 8 ) )
----
-8

query I rowsort
SELECT ALL ( - ( - 66 ) )
----
66

query I rowsort
SELECT - 38 * 15 col0
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL MAX( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL MAX ( ALL - 38 )
----
-38

query I rowsort
SELECT ( ( - 89 ) ) AS col0
----
-89

query I rowsort
SELECT ( - 9 ) AS col1
----
-9

query I rowsort
SELECT ALL + 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-4853
SELECT + COUNT( * ), - 21 AS col1
----
1
-21

skipif mysql # not compatible
query II rowsort label-4853
SELECT + COUNT ( * ), - 21 AS col1
----
1
-21

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4854
SELECT - CAST( NULL AS DECIMAL ) * + 12 + - - 99 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT - CAST ( NULL AS REAL ) * + 12 + - - 99 + COUNT ( * )
----
NULL

query I rowsort
SELECT - + ( 68 )
----
-68

query I rowsort
SELECT DISTINCT ( 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT - COUNT( * ) * + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4857
SELECT - COUNT ( * ) * + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT - 45 * 64 * COUNT( * )
----
-2880

skipif mysql # not compatible
query I rowsort label-4858
SELECT - 45 * 64 * COUNT ( * )
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL - 91 + - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - 91 + - COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL - + COUNT( ALL - 26 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - + COUNT ( ALL - 26 ) col2
----
-1

query I rowsort
SELECT ALL - 10 col1
----
-10

query I rowsort
SELECT ALL - - 14
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT 19 * + CAST( + + 71 AS SIGNED ) AS col1
----
1349

skipif mysql # not compatible
query I rowsort label-4863
SELECT 19 * + CAST ( + + 71 AS INTEGER ) AS col1
----
1349

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL - - ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL - - ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT - + 33 + + + CAST( 86 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-4865
SELECT - + 33 + + + CAST ( 86 AS INTEGER )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT ALL - + 38 DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL - + 38 / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - - 7 + + SUM( DISTINCT 48 )
----
55

skipif mysql # not compatible
query I rowsort label-4868
SELECT - - 7 + + SUM ( DISTINCT 48 )
----
55

query I rowsort
SELECT - 28 - - 27
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT DISTINCT CAST( + + CAST( 63 AS SIGNED ) AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT CAST ( + + CAST ( 63 AS INTEGER ) AS INTEGER ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + 67 + + - 19 + - - COUNT( * ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-4872
SELECT + 67 + + - 19 + - - COUNT ( * ) AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT + AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT + AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 69 * 98 AS col1
----
6762

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT DISTINCT - ( COUNT( * ) ) - 6
----
-7

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT - ( COUNT ( * ) ) - 6
----
-7

query I rowsort
SELECT + - 96 AS col1
----
-96

query I rowsort
SELECT + - ( - ( + 78 ) )
----
78

query II rowsort
SELECT ALL 13, 9 AS col1
----
13
9

query I rowsort
SELECT 94 * 21 AS col0
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT ALL + 60 + + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4880
SELECT ALL + 60 + + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4881
SELECT MIN( DISTINCT + 56 ) AS col2, 18 AS col1
----
56
18

skipif mysql # not compatible
query II rowsort label-4881
SELECT MIN ( DISTINCT + 56 ) AS col2, 18 AS col1
----
56
18

query I rowsort
SELECT 91 col1
----
91

query I rowsort
SELECT DISTINCT + - 29
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4884
SELECT ALL + CAST( NULL AS SIGNED ) * 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL + CAST ( NULL AS INTEGER ) * 53 AS col1
----
NULL

query I rowsort
SELECT + ( 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT SUM( - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-4886
SELECT SUM ( - 22 ) AS col1
----
-22

query I rowsort
SELECT - + 53 AS col0
----
-53

query I rowsort
SELECT ALL - - 89 AS col2
----
89

query I rowsort
SELECT ALL - ( - - 95 )
----
-95

query I rowsort
SELECT ALL - COALESCE ( + 58, 26 )
----
-58

query I rowsort
SELECT 99 + - + 77 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL - COUNT( * ) + - 6 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - COUNT ( * ) + - 6 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT COALESCE ( - 9, - + COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-4893
SELECT COALESCE ( - 9, - + COUNT ( * ) )
----
-9

query I rowsort
SELECT ALL + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + ( - SUM( - 35 ) )
----
35

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + ( - SUM ( - 35 ) )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - ( + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4896
SELECT - ( + COUNT ( * ) ) col2
----
-1

query I rowsort
SELECT ALL - + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT 39 * + + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-4898
SELECT 39 * + + COUNT ( * )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT 3 - + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4899
SELECT 3 - + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT + COUNT( 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4900
SELECT + COUNT ( 17 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4901
SELECT + SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 60 + + 61
----
1

query II rowsort
SELECT - - 11 AS col1, 15 * - 80 col2
----
11
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4904
SELECT ALL CASE - 22 WHEN ( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN - - 55 THEN + + MAX( - + 15 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL CASE - 22 WHEN ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN - - 55 THEN + + MAX ( - + 15 ) END
----
NULL

query I rowsort
SELECT DISTINCT 76 AS col2
----
76

query I rowsort
SELECT ALL + - 26 AS col2
----
-26

query I rowsort
SELECT - 28 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT + MIN( 89 ) * + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4908
SELECT + MIN ( 89 ) * + COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT DISTINCT ( + SUM( ALL CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT ( + SUM ( ALL CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - 57 AS col2
----
-57

query I rowsort
SELECT DISTINCT - + 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL - - COALESCE ( + + 32, - - COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - - COALESCE ( + + 32, - - COUNT ( * ) ) AS col0
----
32

query I rowsort
SELECT DISTINCT 56 AS col0
----
56

query I rowsort
SELECT DISTINCT - 40 AS col2
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4915
SELECT ALL + COUNT( * ) * - 56 DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + COUNT ( * ) * - 56 / - 74
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4916
SELECT CAST( + 59 AS SIGNED ) * - - ( - + 51 )
----
-3009

skipif mysql # not compatible
query I rowsort label-4916
SELECT CAST ( + 59 AS INTEGER ) * - - ( - + 51 )
----
-3009

query I rowsort
SELECT ALL - - 71 AS col0
----
71

query I rowsort
SELECT DISTINCT + 9 col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT 67 + COUNT( * ) * 5 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4919
SELECT 67 + COUNT ( * ) * 5 AS col1
----
72

query I rowsort
SELECT 74 * + - 84
----
-6216

query I rowsort
SELECT DISTINCT 96 AS col1
----
96

query I rowsort
SELECT ALL 48 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT DISTINCT COUNT( - - 76 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT COUNT ( - - 76 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT DISTINCT + SUM( + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT + SUM ( + 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - + COUNT( DISTINCT ( - 59 ) ) + + 90
----
89

skipif mysql # not compatible
query I rowsort label-4925
SELECT - + COUNT ( DISTINCT ( - 59 ) ) + + 90
----
89

query I rowsort
SELECT ALL ( 14 ) AS col1
----
14

query I rowsort
SELECT 26 col0
----
26

query I rowsort
SELECT + 33 - 76 * - 19 AS col1
----
1477

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + 91 * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4929
SELECT + 91 * COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT DISTINCT ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT ( COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL COUNT( ALL 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL COUNT ( ALL 92 ) AS col0
----
1

query I rowsort
SELECT ALL 7 + + 68
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - - MIN( ALL - 2 ) + - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4933
SELECT - - MIN ( ALL - 2 ) + - - COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4934
SELECT DISTINCT - 59 / + 6 * + COUNT( * ) / - CAST( NULL AS SIGNED ) + - 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT - 59 / + 6 * + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - 28 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 90 AS col1
----
-90

query I rowsort
SELECT DISTINCT + - 17
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - COUNT( * ) * - ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4937
SELECT - COUNT ( * ) * - ( + - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT COUNT( * ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4938
SELECT COUNT ( * ) + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT DISTINCT 59 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT DISTINCT MAX( - 85 ) col0
----
-85

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT MAX ( - 85 ) col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT + COUNT( * ) - - - 69 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4941
SELECT + COUNT ( * ) - - - 69 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT MAX( 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-4942
SELECT MAX ( 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT + MAX( ALL 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4943
SELECT + MAX ( ALL 49 ) AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT MIN( + 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4944
SELECT MIN ( + 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT - MAX( DISTINCT - + 93 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-4945
SELECT - MAX ( DISTINCT - + 93 ) col1
----
93

query I rowsort
SELECT + 69 + 91 AS col0
----
160

query I rowsort
SELECT ALL ( 88 ) AS col1
----
88

query I rowsort
SELECT DISTINCT - 19 * 67 AS col2
----
-1273

query I rowsort
SELECT ALL 51 * - 28 AS col2
----
-1428

query I rowsort
SELECT + NULLIF ( + - 99, 15 ) AS col0
----
-99

query I rowsort
SELECT - 14 + - - 22
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-4952
SELECT ALL MAX( ALL 2 ) AS col2, 32
----
2
32

skipif mysql # not compatible
query II rowsort label-4952
SELECT ALL MAX ( ALL 2 ) AS col2, 32
----
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT DISTINCT - 62 - SUM( - + 14 ) * COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT - 62 - SUM ( - + 14 ) * COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL - ( + 70 ) - - - 56 - - ( - COUNT( * ) ) AS col2
----
-127

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL - ( + 70 ) - - - 56 - - ( - COUNT ( * ) ) AS col2
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT - ( + ( + - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT - ( + ( + - COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT 33 - - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-4956
SELECT 33 - - COUNT ( * )
----
34

query I rowsort
SELECT DISTINCT ( - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT + MIN( ALL + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4958
SELECT + MIN ( ALL + 98 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4959
SELECT ALL - ( - COUNT( * ) ) AS col2, + 5
----
1
5

skipif mysql # not compatible
query II rowsort label-4959
SELECT ALL - ( - COUNT ( * ) ) AS col2, + 5
----
1
5

query I rowsort
SELECT ALL COALESCE ( 66, 73 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4961
SELECT - - 10 DIV - 29 * - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4961
SELECT - - 10 / - 29 * - + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - 38 * + + 13
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT SUM( + 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-4963
SELECT SUM ( + 12 ) AS col0
----
12

query II rowsort
SELECT 16 AS col2, + 97 AS col2
----
16
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4965
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * )
----
-1

query II rowsort
SELECT ( - 65 ) AS col2, 28
----
-65
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL + SUM( DISTINCT - ( 65 ) ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + SUM ( DISTINCT - ( 65 ) ) AS col2
----
-65

query I rowsort
SELECT - - 72 AS col0
----
72

query I rowsort
SELECT - + 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT DISTINCT ( + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT ( + COUNT ( * ) ) col0
----
1

query I rowsort
SELECT ALL 23 + + 15
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4972
SELECT DISTINCT - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 54 AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT + - COUNT( DISTINCT - - 35 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4974
SELECT + - COUNT ( DISTINCT - - 35 ) AS col0
----
-1

query I rowsort
SELECT ALL - - 90 AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL - CAST( 76 AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL - CAST ( 76 AS INTEGER )
----
-76

query I rowsort
SELECT DISTINCT - 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT - SUM( + ( 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-4978
SELECT - SUM ( + ( 98 ) ) AS col2
----
-98

query I rowsort
SELECT ALL + - 74
----
-74

query I rowsort
SELECT ALL 13 * 65
----
845

query I rowsort
SELECT ALL + 60 col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT - CAST( NULL AS SIGNED ) * + + AVG ( DISTINCT 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT - CAST ( NULL AS INTEGER ) * + + AVG ( DISTINCT 19 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4983
SELECT - - 38 DIV + COALESCE ( - SUM( 63 ), 48 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4983
SELECT - - 38 / + COALESCE ( - SUM ( 63 ), 48 ) AS col0
----
0

query I rowsort
SELECT ( - 58 ) AS col0
----
-58

query I rowsort
SELECT - ( + - 60 ) * + - 29
----
-1740

query I rowsort
SELECT 71 * 8 AS col0
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT COUNT( * ) + + + COUNT( * ) + - 1 * + 46 + - - 73
----
29

skipif mysql # not compatible
query I rowsort label-4987
SELECT COUNT ( * ) + + + COUNT ( * ) + - 1 * + 46 + - - 73
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4988
SELECT CAST( + 19 AS SIGNED ) * - 58
----
-1102

skipif mysql # not compatible
query I rowsort label-4988
SELECT CAST ( + 19 AS INTEGER ) * - 58
----
-1102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4989
SELECT 87 + - COUNT( * ) DIV COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-4989
SELECT 87 + - COUNT ( * ) / COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT - + COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4991
SELECT ALL - 36 + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL - 36 + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL - 99 * - - COUNT( * ) col2
----
-99

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - 99 * - - COUNT ( * ) col2
----
-99

query I rowsort
SELECT ALL - 17 AS col0
----
-17

query II rowsort
SELECT - 43 AS col1, 63 * - + ( 5 ) + 47
----
-43
-268

query II rowsort
SELECT ALL 54 AS col2, 65 AS col2
----
54
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT DISTINCT - 49 DIV 10 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT - 49 / 10 AS col2
----
-4

query I rowsort
SELECT DISTINCT - - 26
----
26

query I rowsort
SELECT ALL + 30 AS col1
----
30

query I rowsort
SELECT ALL 90 * + + 45 AS col1
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT DISTINCT 89 * + COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT 89 * + COUNT ( * ) AS col0
----
89

query I rowsort
SELECT - - 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT - MIN( DISTINCT - 87 ) + - - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5002
SELECT - MIN ( DISTINCT - 87 ) + - - COUNT ( * ) AS col0
----
88

query I rowsort
SELECT DISTINCT + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT - 20 * - 41 * - ( + COUNT( * ) ) AS col0
----
-820

skipif mysql # not compatible
query I rowsort label-5004
SELECT - 20 * - 41 * - ( + COUNT ( * ) ) AS col0
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT - MIN( 28 ) + 16
----
-12

skipif mysql # not compatible
query I rowsort label-5005
SELECT - MIN ( 28 ) + 16
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT ALL + CAST( + + 91 AS SIGNED ) + 51 - 48 + + 93 AS col0
----
187

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + CAST ( + + 91 AS INTEGER ) + 51 - 48 + + 93 AS col0
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT - ( COUNT( DISTINCT + 94 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5007
SELECT - ( COUNT ( DISTINCT + 94 ) )
----
-1

query I rowsort
SELECT DISTINCT - 42 AS col0
----
-42

query I rowsort
SELECT ALL - ( + 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT ALL - MAX( ALL + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - MAX ( ALL + 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT COUNT( * ) * + 43
----
43

skipif mysql # not compatible
query I rowsort label-5011
SELECT COUNT ( * ) * + 43
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT DISTINCT - 70 DIV + + 11 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT - 70 / + + 11 AS col2
----
-6

query I rowsort
SELECT + 44 + 24 + 11 + ( - + 90 ) * - 6
----
619

onlyif mysql # aggregate syntax: 
query II rowsort label-5014
SELECT ALL 32 + + + 81 AS col2, COUNT( * ) col0
----
113
1

skipif mysql # not compatible
query II rowsort label-5014
SELECT ALL 32 + + + 81 AS col2, COUNT ( * ) col0
----
113
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT 25 + - ( + COUNT( * ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5015
SELECT 25 + - ( + COUNT ( * ) ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL + 47 * + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL + 47 * + COUNT ( * )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT ALL COUNT( ALL - 93 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL COUNT ( ALL - 93 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 2 * - - 21 - + - 33
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL - AVG ( - - 86 ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - AVG ( - - 86 ) * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL CASE - - 44 WHEN MAX( ALL - 40 ) THEN 16 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL CASE - - 44 WHEN MAX ( ALL - 40 ) THEN 16 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5021
SELECT + COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5021
SELECT + COUNT ( * ) / + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL + MAX( ALL + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL + MAX ( ALL + 80 )
----
80

query I rowsort
SELECT ALL + ( - 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT - 38 + - SUM( + ( + ( 50 ) ) ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5024
SELECT - 38 + - SUM ( + ( + ( 50 ) ) ) AS col0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT ALL CAST( - 83 AS SIGNED ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL CAST ( - 83 AS INTEGER ) AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT CAST( - 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT CAST ( - 49 AS INTEGER )
----
-49

query I rowsort
SELECT DISTINCT - 82 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT + CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5028
SELECT + CAST ( + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL MIN( DISTINCT 58 ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL MIN ( DISTINCT 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT - ( COUNT( * ) ) + + 97 col0
----
96

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT - ( COUNT ( * ) ) + + 97 col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT + COUNT( * ) + - + 11
----
-10

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + COUNT ( * ) + - + 11
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL + SUM( 38 ) - + 80 col2
----
-42

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL + SUM ( 38 ) - + 80 col2
----
-42

query I rowsort
SELECT DISTINCT 2 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT ALL - COUNT( DISTINCT - ( 74 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - COUNT ( DISTINCT - ( 74 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + MIN( DISTINCT + + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5035
SELECT + MIN ( DISTINCT + + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL + COUNT( * ) + ( - 96 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + COUNT ( * ) + ( - 96 ) AS col0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5037
SELECT COUNT( * ) * + - CAST( NULL AS SIGNED ) * 57 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * 57 col0
----
NULL

query II rowsort
SELECT - 66 AS col1, 7
----
-66
7

query I rowsort
SELECT DISTINCT 80 col0
----
80

query I rowsort
SELECT DISTINCT 91 col1
----
91

query I rowsort
SELECT ALL 97 col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5042
SELECT DISTINCT + - NULLIF ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) * + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT + - NULLIF ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) * + 61
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5043
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL + - 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ( + - ( + - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5045
SELECT ( + - ( + - COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL + - 19 AS col1
----
-19

query I rowsort
SELECT + - 9 AS col2
----
-9

query I rowsort
SELECT + 75 col1
----
75

query I rowsort
SELECT DISTINCT + 67 col0
----
67

query I rowsort
SELECT ALL 20 + + 3
----
23

query I rowsort
SELECT 3 * - + 20
----
-60

query I rowsort
SELECT ALL - + 5 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT COUNT( + 35 ) + + 60
----
61

skipif mysql # not compatible
query I rowsort label-5053
SELECT COUNT ( + 35 ) + + 60
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT ( + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT ( + - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5055
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5055
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT ALL + 61 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-5056
SELECT ALL + 61 / + 86
----
0

query I rowsort
SELECT DISTINCT + 33 AS col2
----
33

query I rowsort
SELECT - - 7 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT AVG ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5060
SELECT ALL - 89 AS col1, - COUNT( * ) AS col2
----
-89
-1

skipif mysql # not compatible
query II rowsort label-5060
SELECT ALL - 89 AS col1, - COUNT ( * ) AS col2
----
-89
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT 28 + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-5061
SELECT 28 + COUNT ( * )
----
29

query I rowsort
SELECT ALL + ( - - ( - ( + + 8 ) ) ) AS col2
----
-8

query I rowsort
SELECT ALL + 78 * + 65 AS col0
----
5070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT DISTINCT COALESCE ( + 58, ( - CAST( NULL AS SIGNED ) ), - 44 )
----
58

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT COALESCE ( + 58, ( - CAST ( NULL AS INTEGER ) ), - 44 )
----
58

query I rowsort
SELECT ( + 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT - 72 - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-5066
SELECT - 72 - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5067
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5068
SELECT DISTINCT - CAST( 6 AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT - CAST ( 6 AS INTEGER ) AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5069
SELECT - + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT - + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT + - 3 * COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5070
SELECT + - 3 * COUNT ( * )
----
-3

query I rowsort
SELECT DISTINCT - 29 AS col0
----
-29

query I rowsort
SELECT - - 70 AS col0
----
70

query I rowsort
SELECT - + 76 * + ( 32 )
----
-2432

query I rowsort
SELECT - + 71 * 42
----
-2982

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL - 21 * + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL - 21 * + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT DISTINCT + ( - + COUNT( * ) ) + + MIN( + 69 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT + ( - + COUNT ( * ) ) + + MIN ( + 69 ) AS col1
----
68

query I rowsort
SELECT DISTINCT - ( + 8 ) AS col2
----
-8

query I rowsort
SELECT - - 16 AS col0
----
16

query I rowsort
SELECT 23 + + - 97
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT ( + MAX( DISTINCT ( - 26 ) ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5080
SELECT ( + MAX ( DISTINCT ( - 26 ) ) ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT COUNT( ALL + + 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5081
SELECT COUNT ( ALL + + 80 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 79 + + 68 AS col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT ALL ( 54 ) + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL ( 54 ) + + COUNT ( * )
----
55

query I rowsort
SELECT DISTINCT - 2 AS col1
----
-2

query II rowsort
SELECT 78 AS col0, 64
----
78
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT - MAX( - 76 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-5086
SELECT - MAX ( - 76 ) col0
----
76

query I rowsort
SELECT - ( - 36 )
----
36

query I rowsort
SELECT ALL 84 - 26 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT + SUM( - + ( - - 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-5089
SELECT + SUM ( - + ( - - 17 ) )
----
-17

query I rowsort
SELECT DISTINCT + 27 AS col0
----
27

query I rowsort
SELECT ALL + 42 col2
----
42

query I rowsort
SELECT - + 78 AS col0
----
-78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5093
SELECT DISTINCT - COALESCE ( + CAST( NULL AS SIGNED ), 70 ) + CAST( CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - COALESCE ( + CAST ( NULL AS INTEGER ), 70 ) + CAST ( CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5094
SELECT ALL 68 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL 68 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 47 col0
----
47

query I rowsort
SELECT - NULLIF ( + 47, + 0 + + 43 ) * + 63 col0
----
-2961

query I rowsort
SELECT DISTINCT ( + 39 ) AS col1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 82 * + - 38
----
-3116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5100
SELECT COUNT( + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT COUNT ( + CAST ( NULL AS REAL ) )
----
0

query I rowsort
SELECT + + 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT + COUNT( * ) * - 75
----
-75

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT + COUNT ( * ) * - 75
----
-75

query I rowsort
SELECT - 26 * - 52
----
1352

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT DISTINCT - + COUNT( * ) AS col0, MAX( DISTINCT + 8 )
----
-1
8

skipif mysql # not compatible
query II rowsort label-5104
SELECT DISTINCT - + COUNT ( * ) AS col0, MAX ( DISTINCT + 8 )
----
-1
8

query I rowsort
SELECT + 37 col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT + + MIN( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-5106
SELECT + + MIN ( 61 )
----
61

query I rowsort
SELECT + - 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL + COUNT( * ) + - 42
----
-41

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + COUNT ( * ) + - 42
----
-41

query I rowsort
SELECT - 84 * - - 4 AS col1
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT - NULLIF ( 96, - CAST( NULL AS SIGNED ) )
----
-96

skipif mysql # not compatible
query I rowsort label-5110
SELECT - NULLIF ( 96, - CAST ( NULL AS INTEGER ) )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT DISTINCT 13 + + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT 13 + + + COUNT ( * )
----
14

query I rowsort
SELECT + 24 * 65 AS col2
----
1560

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT DISTINCT COUNT( * ) - COUNT( * ) * - - 81 * + 37
----
-2996

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * - - 81 * + 37
----
-2996

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT SUM( ALL + 95 )
----
95

skipif mysql # not compatible
query I rowsort label-5114
SELECT SUM ( ALL + 95 )
----
95

query I rowsort
SELECT - 90 * - 66 + - - 74 AS col2
----
6014

query I rowsort
SELECT ALL - 15 - - - 35
----
-50

query I rowsort
SELECT + + 37 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT DISTINCT 84 * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT 84 * COUNT ( * ) AS col2
----
84

query I rowsort
SELECT DISTINCT 1 + + + 64 AS col2
----
65

query I rowsort
SELECT ALL 91 col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5121
SELECT + 2 DIV 87
----
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT + 2 / 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL + COUNT( * ) * + + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL + COUNT ( * ) * + + 39 AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5123
SELECT - COUNT ( * ) * - COUNT ( * )
----
1

query I rowsort
SELECT ALL - 68 + + + 25
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5125
SELECT COUNT( * ) DIV - - COUNT( * ) + 31
----
32

skipif mysql # not compatible
query I rowsort label-5125
SELECT COUNT ( * ) / - - COUNT ( * ) + 31
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL - 37 * - MAX( ALL + - 62 ) AS col1
----
-2294

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - 37 * - MAX ( ALL + - 62 ) AS col1
----
-2294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT 97 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT 97 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 3 + + 51
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - 17 + + COUNT( * ) + - 99
----
-115

skipif mysql # not compatible
query I rowsort label-5129
SELECT - 17 + + COUNT ( * ) + - 99
----
-115

query I rowsort
SELECT ALL - 10 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT MAX( + 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5131
SELECT MAX ( + 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - - COUNT( DISTINCT + - ( + 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5132
SELECT - - COUNT ( DISTINCT + - ( + 27 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT DISTINCT + 80 + 76 DIV 79
----
80

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT + 80 + 76 / 79
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT - MIN( 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5134
SELECT - MIN ( 33 ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT ALL + CAST( NULL AS SIGNED ) + - 3 * + 45 * - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + CAST ( NULL AS INTEGER ) + - 3 * + 45 * - + 82
----
NULL

query I rowsort
SELECT - + COALESCE ( 7, 29 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ALL + 87 + - - COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL + 87 + - - COUNT ( * ) AS col0
----
88

query I rowsort
SELECT ALL + ( 26 ) AS col0
----
26

query I rowsort
SELECT + 76 col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT + COUNT( * ) - ( + + 49 )
----
-48

skipif mysql # not compatible
query I rowsort label-5140
SELECT + COUNT ( * ) - ( + + 49 )
----
-48

query I rowsort
SELECT - - 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT DISTINCT + COUNT( * ) * - 86 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT + COUNT ( * ) * - 86 AS col2
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT ALL - AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL - AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 22 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT + 80 + - + COUNT( ALL 22 )
----
79

skipif mysql # not compatible
query I rowsort label-5145
SELECT + 80 + - + COUNT ( ALL 22 )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5146
SELECT ALL - COUNT( * ) AS col1, - COUNT( * ) col1
----
-1
-1

skipif mysql # not compatible
query II rowsort label-5146
SELECT ALL - COUNT ( * ) AS col1, - COUNT ( * ) col1
----
-1
-1

query II rowsort
SELECT - 76, 30 AS col0
----
-76
30

query I rowsort
SELECT DISTINCT 60 AS col2
----
60

query I rowsort
SELECT DISTINCT - 9 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT + MAX( DISTINCT - + 48 ) AS col1, 54 AS col0
----
-48
54

skipif mysql # not compatible
query II rowsort label-5150
SELECT + MAX ( DISTINCT - + 48 ) AS col1, 54 AS col0
----
-48
54

query I rowsort
SELECT ALL - + 86
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5152
SELECT DISTINCT COUNT( * ) * + + CAST( NULL AS SIGNED ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL + 49 * MAX( DISTINCT - + 19 ) AS col0
----
-931

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL + 49 * MAX ( DISTINCT - + 19 ) AS col0
----
-931

query I rowsort
SELECT ALL + 2 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5155
SELECT ALL COUNT( * ) DIV - 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL COUNT ( * ) / - 8 AS col1
----
0

query I rowsort
SELECT + + 89 col1
----
89

query I rowsort
SELECT ALL + ( - + 8 ) AS col2
----
-8

query I rowsort
SELECT DISTINCT - ( - - NULLIF ( + 19, - - 97 / 1 ) ) AS col0
----
-19

query I rowsort
SELECT ALL 19 + + 2 AS col2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5160
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-5160
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) AS col1
----
1
-1

query I rowsort
SELECT - ( 5 ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT - 42 - + - COUNT( * ) + - 23
----
-64

skipif mysql # not compatible
query I rowsort label-5162
SELECT - 42 - + - COUNT ( * ) + - 23
----
-64

query I rowsort
SELECT ALL 29 * - 42
----
-1218

query I rowsort
SELECT + - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT + SUM( DISTINCT 39 )
----
39

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + SUM ( DISTINCT 39 )
----
39

query I rowsort
SELECT ALL + + 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL - COUNT( * ) + + + SUM( ALL 78 ) + 77
----
154

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - COUNT ( * ) + + + SUM ( ALL 78 ) + 77
----
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5168
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) - 33 * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) - 33 * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL - 95 - - COUNT( * ) * 64 * + 11 col0
----
609

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - 95 - - COUNT ( * ) * 64 * + 11 col0
----
609

query I rowsort
SELECT DISTINCT - NULLIF ( 24, - 66 ) col1
----
-24

query I rowsort
SELECT 86 + - 56 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5172
SELECT CAST( - COUNT( * ) AS SIGNED ) * + 31
----
-31

skipif mysql # not compatible
query I rowsort label-5172
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * + 31
----
-31

query I rowsort
SELECT DISTINCT - 45 - - 30 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5174
SELECT + ( + MAX( ALL + 84 ) ) DIV + CAST( - 10 AS SIGNED ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5174
SELECT + ( + MAX ( ALL + 84 ) ) / + CAST ( - 10 AS INTEGER ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT MIN( DISTINCT - ( + 55 ) ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-5175
SELECT MIN ( DISTINCT - ( + 55 ) ) col1
----
-55

query I rowsort
SELECT - 62 col0
----
-62

query I rowsort
SELECT DISTINCT + + 15 + - 25 col2
----
-10

query I rowsort
SELECT DISTINCT + 33 AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5179
SELECT - - COUNT( * ) DIV + + 96 + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5179
SELECT - - COUNT ( * ) / + + 96 + - COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT ALL + ( + + 29 ) AS col0
----
29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5181
SELECT + CAST( NULL AS DECIMAL ) * - 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT + CAST ( NULL AS REAL ) * - 89 col1
----
NULL

query I rowsort
SELECT - ( + - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL MAX( ALL + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL MAX ( ALL + 1 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 34 col1
----
-34

query II rowsort
SELECT + - 86 AS col0, 26 * + + 69 * 57 AS col0
----
-86
102258

query I rowsort
SELECT ALL - NULLIF ( 20, ( - 36 ) )
----
-20

query I rowsort
SELECT 75 + + 21
----
96

query I rowsort
SELECT - + 6 col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT SUM( ALL + 35 ) col1
----
35

skipif mysql # not compatible
query I rowsort label-5189
SELECT SUM ( ALL + 35 ) col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT ALL - COALESCE ( - ( + - CAST( NULL AS SIGNED ) ), + - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL - COALESCE ( - ( + - CAST ( NULL AS INTEGER ) ), + - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL - - 62 * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL - - 62 * - COUNT ( * )
----
-62

query I rowsort
SELECT - + 92 AS col2
----
-92

query I rowsort
SELECT DISTINCT 89 * + 40
----
3560

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL ( + - 18 ) * - COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL ( + - 18 ) * - COUNT ( * ) AS col0
----
18

query I rowsort
SELECT - ( - + 88 ) * - - 6 col2
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT 11 + - MIN( DISTINCT + 31 ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5197
SELECT 11 + - MIN ( DISTINCT + 31 ) AS col1
----
-20

query I rowsort
SELECT ALL - + 15
----
-15

query I rowsort
SELECT + ( + 83 ) * - 24 * - 64 AS col1
----
127488

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - COUNT( * ) + + 62
----
61

skipif mysql # not compatible
query I rowsort label-5200
SELECT - COUNT ( * ) + + 62
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT - COUNT( * ) AS col1, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-5201
SELECT - COUNT ( * ) AS col1, COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT + - ( - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + 50 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + 50 * COUNT ( * )
----
50

query I rowsort
SELECT ALL 14 AS col1
----
14

query I rowsort
SELECT DISTINCT 31 AS col1
----
31

query I rowsort
SELECT + ( ( + + 9 ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL + ( + ( + + ( + COUNT( * ) ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + ( + ( + + ( + COUNT ( * ) ) ) ) AS col1
----
1

query I rowsort
SELECT 13 * + + 66 AS col0
----
858

query I rowsort
SELECT DISTINCT + 2 + + 36
----
38

query II rowsort
SELECT + 13, ( + 39 ) AS col0
----
13
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT ALL 27 + COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-5211
SELECT ALL 27 + COUNT ( * ) AS col1
----
28

query I rowsort
SELECT DISTINCT - 70 AS col0
----
-70

query I rowsort
SELECT ALL 21 col1
----
21

query I rowsort
SELECT DISTINCT 27 AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT + NULLIF ( - 98, - COUNT( * ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-5215
SELECT + NULLIF ( - 98, - COUNT ( * ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT + MIN( + - 56 ) * - + 9
----
504

skipif mysql # not compatible
query I rowsort label-5216
SELECT + MIN ( + - 56 ) * - + 9
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT - COALESCE ( + + COUNT( * ), ( - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5217
SELECT - COALESCE ( + + COUNT ( * ), ( - COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT ALL + - 7
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5219
SELECT - CAST( NULL AS SIGNED ) + - 88 / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5219
SELECT - CAST ( NULL AS INTEGER ) + - 88 / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT MIN( + 25 ) col1
----
25

skipif mysql # not compatible
query I rowsort label-5220
SELECT MIN ( + 25 ) col1
----
25

query I rowsort
SELECT DISTINCT + 85 - - 87 col0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT + COUNT( DISTINCT + 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5222
SELECT + COUNT ( DISTINCT + 31 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5223
SELECT + 90 DIV 90 * - 19
----
-19

skipif mysql # not compatible
query I rowsort label-5223
SELECT + 90 / 90 * - 19
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL COUNT( * ) * - COUNT( 24 ) + COUNT( DISTINCT - 28 )
----
0

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL COUNT ( * ) * - COUNT ( 24 ) + COUNT ( DISTINCT - 28 )
----
0

query II rowsort
SELECT - 20, + 51 AS col0
----
-20
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5226
SELECT - ( - - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT DISTINCT - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL - ( - COUNT( * ) ) + + + 61
----
62

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - ( - COUNT ( * ) ) + + + 61
----
62

query I rowsort
SELECT + ( + ( + ( + - 65 ) ) )
----
-65

query I rowsort
SELECT + 77 + - 85 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - 43 + + COUNT( * ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5232
SELECT - 43 + + COUNT ( * ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT DISTINCT COUNT( + 46 ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT COUNT ( + 46 ) + - 44
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5234
SELECT CAST( NULL AS SIGNED ) * + + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5234
SELECT CAST ( NULL AS INTEGER ) * + + 16
----
NULL

query I rowsort
SELECT ( 51 ) AS col0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT + ( 75 ) * - + 47 + - CAST( NULL AS SIGNED ) * - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT + ( 75 ) * - + 47 + - CAST ( NULL AS INTEGER ) * - + 35 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 46 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5238
SELECT ALL - COUNT( * ) DIV - CAST( 63 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL - COUNT ( * ) / - CAST ( 63 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT DISTINCT ( - - 71 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5241
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + ( 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + ( 76 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT CAST( + 27 AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-5242
SELECT CAST ( + 27 AS INTEGER )
----
27

query I rowsort
SELECT DISTINCT + 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5244
SELECT DISTINCT 28 + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT 28 + COUNT ( * ) AS col2
----
29

query I rowsort
SELECT DISTINCT - - 22
----
22

query I rowsort
SELECT ALL ( - 23 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT + 14 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT + 14 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT DISTINCT + MIN( + - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + MIN ( + - 3 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5249
SELECT CAST( NULL AS SIGNED ) - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT CAST ( NULL AS INTEGER ) - - 64 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5250
SELECT DISTINCT - 4 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT - 4 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT + 54 * 37 - COUNT( * )
----
1997

skipif mysql # not compatible
query I rowsort label-5251
SELECT + 54 * 37 - COUNT ( * )
----
1997

query I rowsort
SELECT ALL - 68 col1
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT 60 * 45 AS col0, - COUNT( * )
----
2700
-1

skipif mysql # not compatible
query II rowsort label-5253
SELECT 60 * 45 AS col0, - COUNT ( * )
----
2700
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5254
SELECT COUNT( * ) + - 77 DIV - 49 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5254
SELECT COUNT ( * ) + - 77 / - 49 AS col0
----
2

query I rowsort
SELECT DISTINCT + 62 + + 66 * 9
----
656

query I rowsort
SELECT DISTINCT + 15 col2
----
15

query I rowsort
SELECT DISTINCT + 93 + - + 75
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5258
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5258
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - ( - 93 ) AS col2
----
93

query I rowsort
SELECT ALL ( + 46 ) AS col1
----
46

query I rowsort
SELECT + - ( + 26 )
----
-26

query I rowsort
SELECT DISTINCT + 38 col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5263
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - SUM( + - 28 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-5264
SELECT - SUM ( + - 28 ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT ALL ( COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL ( COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5266
SELECT DISTINCT COUNT( * ) * - + 61 DIV + + ( - 62 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT COUNT ( * ) * - + 61 / + + ( - 62 ) AS col1
----
0

query I rowsort
SELECT ALL - - 84
----
84

query I rowsort
SELECT DISTINCT 91 + - + 66 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT - COUNT( * ) - + - 50 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - COUNT ( * ) - + - 50 AS col2
----
49

query I rowsort
SELECT ALL 64 col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL SUM( DISTINCT + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL SUM ( DISTINCT + 24 )
----
24

query I rowsort
SELECT ALL - - 91
----
91

query I rowsort
SELECT ( - 49 ) AS col0
----
-49

query I rowsort
SELECT ALL - + 57 AS col2
----
-57

query I rowsort
SELECT ALL + 28 AS col2
----
28

query I rowsort
SELECT + 70 * - 57 AS col0
----
-3990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5277
SELECT ALL SUM( DISTINCT + CAST( 17 AS SIGNED ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL SUM ( DISTINCT + CAST ( 17 AS INTEGER ) ) AS col2
----
17

query I rowsort
SELECT + + 41 AS col0
----
41

query I rowsort
SELECT - - 40 * 72
----
2880

query I rowsort
SELECT - 97 col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT - ( - 70 ) * - COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-5281
SELECT - ( - 70 ) * - COUNT ( * )
----
-70

query I rowsort
SELECT ( + ( 15 ) )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5284
SELECT + 40 DIV + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-5284
SELECT + 40 / + COUNT ( * )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5285
SELECT + COALESCE ( 30, + CAST( NULL AS SIGNED ) ) - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT + COALESCE ( 30, + CAST ( NULL AS INTEGER ) ) - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 28 AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT 35 + - + MIN( DISTINCT - 64 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT 35 + - + MIN ( DISTINCT - 64 ) AS col1
----
99

query I rowsort
SELECT DISTINCT - + 75 col0
----
-75

query I rowsort
SELECT ALL - 69 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + 57 * - COUNT( * ) + + + 22 col0
----
-35

skipif mysql # not compatible
query I rowsort label-5290
SELECT + 57 * - COUNT ( * ) + + + 22 col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT DISTINCT + 17 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT + 17 / - 64
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5292
SELECT DISTINCT - COUNT( * ) AS col0, - ( - 93 )
----
-1
93

skipif mysql # not compatible
query II rowsort label-5292
SELECT DISTINCT - COUNT ( * ) AS col0, - ( - 93 )
----
-1
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 8 * + - 20
----
-160

onlyif mysql # aggregate syntax: 
query II rowsort label-5295
SELECT - + COUNT( * ), MIN( + 0 ) AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-5295
SELECT - + COUNT ( * ), MIN ( + 0 ) AS col0
----
-1
0

query I rowsort
SELECT + - 4 col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT COUNT( ALL 51 )
----
1

skipif mysql # not compatible
query I rowsort label-5297
SELECT COUNT ( ALL 51 )
----
1

query I rowsort
SELECT 93 col2
----
93

query I rowsort
SELECT + 35 col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT DISTINCT + ( + ( + + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT + ( + ( + + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL - 72 * - MIN( - - 62 )
----
4464

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - 72 * - MIN ( - - 62 )
----
4464

query I rowsort
SELECT ALL + ( - 21 )
----
-21

query I rowsort
SELECT 1 * - 77 + + 71 * 49 AS col2
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL + - COALESCE ( COUNT( * ), 5 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + - COALESCE ( COUNT ( * ), 5 ) col0
----
-1

query I rowsort
SELECT - + 57 + + 79 AS col2
----
22

query I rowsort
SELECT - + 55 + + - ( + 51 ) AS col0
----
-106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5308
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) col0
----
1

query I rowsort
SELECT - - 3 AS col2
----
3

query I rowsort
SELECT DISTINCT - 86 * + + 98 * + - 90 AS col0
----
758520

query I rowsort
SELECT DISTINCT + ( 44 ) AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5312
SELECT + 93 DIV + + 47
----
1

skipif mysql # not compatible
query I rowsort label-5312
SELECT + 93 / + + 47
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT CAST( + + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-5313
SELECT CAST ( + + 61 AS INTEGER )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5314
SELECT ALL CAST( + + 0 AS SIGNED ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL CAST ( + + 0 AS INTEGER ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5315
SELECT CAST ( - - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + MAX( ALL + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-5316
SELECT + MAX ( ALL + 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT DISTINCT - + 85 AS col2, MAX( + 73 )
----
-85
73

skipif mysql # not compatible
query II rowsort label-5317
SELECT DISTINCT - + 85 AS col2, MAX ( + 73 )
----
-85
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT - SUM( ALL + 61 ) * 45 AS col1
----
-2745

skipif mysql # not compatible
query I rowsort label-5318
SELECT - SUM ( ALL + 61 ) * 45 AS col1
----
-2745

query II rowsort
SELECT ALL - 89, 79 AS col2
----
-89
79

query I rowsort
SELECT ALL - 97 col1
----
-97

query I rowsort
SELECT DISTINCT - 75 AS col2
----
-75

query I rowsort
SELECT DISTINCT - 20 AS col1
----
-20

query I rowsort
SELECT ALL - 35 AS col0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5324
SELECT 68 DIV COUNT( * ) + + + 32
----
100

skipif mysql # not compatible
query I rowsort label-5324
SELECT 68 / COUNT ( * ) + + + 32
----
100

query I rowsort
SELECT + 29 col2
----
29

query I rowsort
SELECT ALL - ( 86 ) + + 76
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5327
SELECT ( - CAST( - + COUNT( * ) AS SIGNED ) ) DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-5327
SELECT ( - CAST ( - + COUNT ( * ) AS INTEGER ) ) / - 96
----
0

query I rowsort
SELECT + - 0 * + 92
----
0

query I rowsort
SELECT DISTINCT - 12 * + - 75 col0
----
900

query I rowsort
SELECT DISTINCT + + 30
----
30

query I rowsort
SELECT ( + 49 )
----
49

query I rowsort
SELECT ALL 80 col1
----
80

query I rowsort
SELECT + 42 * - 95
----
-3990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 56
----
NULL

query I rowsort
SELECT ALL 74 AS col2
----
74

query I rowsort
SELECT ALL + - 97 AS col0
----
-97

query I rowsort
SELECT - 68 col2
----
-68

query I rowsort
SELECT ALL + + 63
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5339
SELECT - SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT - SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ( - 29 ) * - + 73 + 65 + + SUM( ALL + 14 ) - + - 85 * - COUNT( * ) AS col1
----
2111

skipif mysql # not compatible
query I rowsort label-5340
SELECT ( - 29 ) * - + 73 + 65 + + SUM ( ALL + 14 ) - + - 85 * - COUNT ( * ) AS col1
----
2111

query I rowsort
SELECT DISTINCT + - 31 AS col2
----
-31

query I rowsort
SELECT - 18 + - 4 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT DISTINCT 50 + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT 50 + COUNT ( * )
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5344
SELECT ALL 97 DIV - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL 97 / - COUNT ( * ) AS col0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5345
SELECT 21 * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT 21 * CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT ALL - COUNT( DISTINCT 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL - COUNT ( DISTINCT 39 ) AS col2
----
-1

query I rowsort
SELECT ALL - 82 AS col2
----
-82

query I rowsort
SELECT DISTINCT + ( 43 ) * - 97
----
-4171

query I rowsort
SELECT 71 + - 63
----
8

query I rowsort
SELECT ALL - 77 + - 90
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT DISTINCT - 33 * COUNT( * ) col0
----
-33

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - 33 * COUNT ( * ) col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT - 75 + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5352
SELECT - 75 + COUNT ( * ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT - COUNT( * ) * COUNT( * ) + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT - COUNT ( * ) * COUNT ( * ) + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT DISTINCT + COUNT( * ) + 90 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + COUNT ( * ) + 90 AS col1
----
91

query I rowsort
SELECT 7 col2
----
7

query I rowsort
SELECT - ( - 98 ) * 72
----
7056

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + COUNT( DISTINCT - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-5357
SELECT + COUNT ( DISTINCT - 9 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT - NULLIF ( 11, - COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-5358
SELECT - NULLIF ( 11, - COUNT ( * ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL + + SUM( - - 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + + SUM ( - - 42 ) AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT - - 89 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT - - 89 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + MIN( DISTINCT 17 )
----
17

skipif mysql # not compatible
query I rowsort label-5361
SELECT + MIN ( DISTINCT 17 )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-5362
SELECT + 88 AS col2, - ( + COUNT( * ) )
----
88
-1

skipif mysql # not compatible
query II rowsort label-5362
SELECT + 88 AS col2, - ( + COUNT ( * ) )
----
88
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5363
SELECT + + MIN( ALL - + CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT + + MIN ( ALL - + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 97 * - 58 * + - 45 + - 18 AS col0
----
-253188

query I rowsort
SELECT ALL - 61 + - + ( + + COALESCE ( + 67, - 17 ) ) + + 87 AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5366
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) + + - CAST( + 19 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) + + - CAST ( + 19 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + ( 52 ), + 85 col0
----
52
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT ALL + + ( - CAST( NULL AS SIGNED ) ) + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL + + ( - CAST ( NULL AS INTEGER ) ) + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5369
SELECT DISTINCT COUNT( * ) + - - ( 29 ) + COUNT( * ) DIV + 94 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT COUNT ( * ) + - - ( 29 ) + COUNT ( * ) / + 94 AS col2
----
30

query I rowsort
SELECT 12 col0
----
12

query I rowsort
SELECT ALL - 16 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT DISTINCT MIN( DISTINCT 28 ) + - 61
----
-33

skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT MIN ( DISTINCT 28 ) + - 61
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 58 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL + MAX( DISTINCT - - 12 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + MAX ( DISTINCT - - 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT + COALESCE ( 32, - COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5376
SELECT + COALESCE ( 32, - COUNT ( * ) ) AS col0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT - 90 DIV + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5377
SELECT - 90 / + 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL COUNT( ALL 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL COUNT ( ALL 27 ) AS col1
----
1

query I rowsort
SELECT - - 3 col2
----
3

query I rowsort
SELECT + ( 56 ) AS col1
----
56

query I rowsort
SELECT DISTINCT + ( - - 13 ) AS col0
----
13

query I rowsort
SELECT - + 92 AS col1
----
-92

query I rowsort
SELECT DISTINCT 41 AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT ALL CAST( 11 AS SIGNED ) + + 60
----
71

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL CAST ( 11 AS INTEGER ) + + 60
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ALL + COUNT( * ) * + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL + COUNT ( * ) * + 80 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT CAST( NULL AS SIGNED ) * - 35 + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT CAST ( NULL AS INTEGER ) * - 35 + 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
SELECT DISTINCT - 66 / 61 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT - 66 / 61 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5388
SELECT ALL - COUNT( * ) * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - COUNT ( * ) * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 96 AS col2
----
96

query I rowsort
SELECT + + 67 * - - 12
----
804

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT - 83 * + - ( + 5 ) + + COUNT( * )
----
416

skipif mysql # not compatible
query I rowsort label-5391
SELECT - 83 * + - ( + 5 ) + + COUNT ( * )
----
416

query I rowsort
SELECT - + 70
----
-70

query I rowsort
SELECT ALL + - 54
----
-54

query I rowsort
SELECT DISTINCT + 83 col1
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5395
SELECT - + 62 * - + ( - + COUNT( * ) ) AS col1, ( + - 2 )
----
-62
-2

skipif mysql # not compatible
query II rowsort label-5395
SELECT - + 62 * - + ( - + COUNT ( * ) ) AS col1, ( + - 2 )
----
-62
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5396
SELECT - CAST( NULL AS DECIMAL ) * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT - CAST ( NULL AS REAL ) * + - 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5397
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 5 * + 92
----
NULL
460

skipif mysql # not compatible
query II rowsort label-5397
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 5 * + 92
----
NULL
460

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT ALL - COUNT( * ) + + 35 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL - COUNT ( * ) + + 35 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT DISTINCT + COUNT( * ) * + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT + COUNT ( * ) * + 64 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5400
SELECT DISTINCT + COALESCE ( 32, 80 * - + COALESCE ( - COUNT( * ), CAST( + 74 AS SIGNED ), 22 ) ) * + - ( ( 80 ) ) AS col2
----
-2560

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT + COALESCE ( 32, 80 * - + COALESCE ( - COUNT ( * ), CAST ( + 74 AS INTEGER ), 22 ) ) * + - ( ( 80 ) ) AS col2
----
-2560

query I rowsort
SELECT 69 + - 29 AS col0
----
40

query I rowsort
SELECT + + 61 AS col2
----
61

query I rowsort
SELECT DISTINCT - 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL - COUNT( * ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - COUNT ( * ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT + MIN( + 22 ) - 89
----
-67

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT + MIN ( + 22 ) - 89
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + 39 + + ( + COUNT( * ) ) * - ( + + 41 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5406
SELECT + 39 + + ( + COUNT ( * ) ) * - ( + + 41 ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT 74 + + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5407
SELECT 74 + + COUNT ( * )
----
75

query I rowsort
SELECT ALL - + 72 AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL - + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - + COUNT ( * ) col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5410
SELECT + COUNT( * ) AS col2, + CAST( + 84 AS SIGNED ) AS col2
----
1
84

skipif mysql # not compatible
query II rowsort label-5410
SELECT + COUNT ( * ) AS col2, + CAST ( + 84 AS INTEGER ) AS col2
----
1
84

query I rowsort
SELECT ALL 70 - - 26 + + - 75 col2
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-5412
SELECT + COUNT( * ) AS col0, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-5412
SELECT + COUNT ( * ) AS col0, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT DISTINCT 13 AS col2
----
13

query I rowsort
SELECT ALL 65 col1
----
65

query I rowsort
SELECT DISTINCT - ( - - 31 ) AS col2
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5416
SELECT ALL + - CAST( + + COUNT( * ) AS SIGNED ) + - COUNT( * ) * - ( + + 24 )
----
23

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + - CAST ( + + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) * - ( + + 24 )
----
23

query I rowsort
SELECT ALL 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT DISTINCT ( - COUNT( * ) ) * + 2 + - 48 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT ( - COUNT ( * ) ) * + 2 + - 48 AS col0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT + SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) * - 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT + SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * - 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT DISTINCT - COUNT( * ) + + + 69
----
68

skipif mysql # not compatible
query I rowsort label-5420
SELECT DISTINCT - COUNT ( * ) + + + 69
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + COUNT( * ) + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5421
SELECT + COUNT ( * ) + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - 19 col0
----
-19

query I rowsort
SELECT ALL + 54 AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5424
SELECT - CAST( NULL AS SIGNED ) + + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT - CAST ( NULL AS INTEGER ) + + 20
----
NULL

query I rowsort
SELECT 7 - - - 23 col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT + COUNT( * ) * - 41 * - 98
----
4018

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + COUNT ( * ) * - 41 * - 98
----
4018

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT CAST( NULL AS SIGNED ) / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * )
----
NULL

query I rowsort
SELECT + + 61
----
61

query II rowsort
SELECT + 57, 62 AS col2
----
57
62

query I rowsort
SELECT ALL 89 - - 91
----
180

query I rowsort
SELECT ALL - 43 AS col1
----
-43

query I rowsort
SELECT DISTINCT 77 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT + COUNT( * ) * - - 61 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + COUNT ( * ) * - - 61 AS col0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5434
SELECT - NULLIF ( - 31, + 54 ) * + - NULLIF ( - + SUM( - CAST( 8 AS SIGNED ) ), - + COUNT( * ) )
----
-248

skipif mysql # not compatible
query I rowsort label-5434
SELECT - NULLIF ( - 31, + 54 ) * + - NULLIF ( - + SUM ( - CAST ( 8 AS INTEGER ) ), - + COUNT ( * ) )
----
-248

query I rowsort
SELECT - 15 + - + 80 AS col0
----
-95

query I rowsort
SELECT + 76 * - 23
----
-1748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5438
SELECT ALL + CASE - + 21 WHEN + ( + SUM( ALL - + CAST( NULL AS DECIMAL ) ) ) THEN NULL ELSE + 94 END AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + CASE - + 21 WHEN + ( + SUM ( ALL - + CAST ( NULL AS REAL ) ) ) THEN NULL ELSE + 94 END AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT CAST( + 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-5439
SELECT CAST ( + 85 AS INTEGER )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5440
SELECT + CAST( + + 20 AS SIGNED ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5440
SELECT + CAST ( + + 20 AS INTEGER ) AS col1
----
20

query I rowsort
SELECT ALL + 20 AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5442
SELECT DISTINCT MIN( - 55 ) DIV SUM( DISTINCT + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT MIN ( - 55 ) / SUM ( DISTINCT + 84 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT SUM( ALL 69 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5443
SELECT SUM ( ALL 69 ) AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5444
SELECT CAST( NULL AS SIGNED ) - - ( - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT CAST ( NULL AS INTEGER ) - - ( - COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 63 * - + 53 * - 29
----
96831

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT - - COALESCE ( + COUNT( * ), 65 * - + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT - - COALESCE ( + COUNT ( * ), 65 * - + 94 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT ALL - CAST( - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - CAST ( - 3 AS INTEGER )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5448
SELECT DISTINCT - + NULLIF ( + COUNT( - 21 ), + CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - + NULLIF ( + COUNT ( - 21 ), + CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT + ( MAX( DISTINCT + 44 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5449
SELECT + ( MAX ( DISTINCT + 44 ) ) AS col1
----
44

query I rowsort
SELECT ALL 29 col1
----
29

query I rowsort
SELECT DISTINCT + 49 + - 39 AS col2
----
10

query I rowsort
SELECT ALL - NULLIF ( + 86, + 56 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL - 72 * 15 * - ( - + COUNT( * ) ) AS col0
----
-1080

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - 72 * 15 * - ( - + COUNT ( * ) ) AS col0
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5454
SELECT + + CAST( - - 4 AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5454
SELECT + + CAST ( - - 4 AS INTEGER ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT - COUNT( * ) + + 55
----
54

skipif mysql # not compatible
query I rowsort label-5455
SELECT - COUNT ( * ) + + 55
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5456
SELECT + CAST( + 34 AS SIGNED ) * + 67 + - 31, + 82 col0
----
2247
82

skipif mysql # not compatible
query II rowsort label-5456
SELECT + CAST ( + 34 AS INTEGER ) * + 67 + - 31, + 82 col0
----
2247
82

query I rowsort
SELECT DISTINCT 3 * 45
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5458
SELECT - COUNT( * ) DIV + 8 - - 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5458
SELECT - COUNT ( * ) / + 8 - - 61 AS col1
----
61

query I rowsort
SELECT ALL - + 38 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-5460
SELECT ( - 99 ) AS col1, - COUNT( * ) AS col2
----
-99
-1

skipif mysql # not compatible
query II rowsort label-5460
SELECT ( - 99 ) AS col1, - COUNT ( * ) AS col2
----
-99
-1

query I rowsort
SELECT DISTINCT - - 45 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT ALL - - MAX( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL - - MAX ( 97 )
----
97

query I rowsort
SELECT + - 30 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT SUM( DISTINCT + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-5464
SELECT SUM ( DISTINCT + 34 )
----
34

query I rowsort
SELECT ALL - 4 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5466
SELECT ALL CAST( - MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL CAST ( - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT CAST( + - 28 AS SIGNED ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-5467
SELECT CAST ( + - 28 AS INTEGER ) AS col0
----
-28

query I rowsort
SELECT NULLIF ( + + NULLIF ( - 75, - 32 ), + 32 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT + SUM( ALL + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5469
SELECT + SUM ( ALL + 96 ) AS col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5470
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT SUM( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-5471
SELECT SUM ( ALL 14 )
----
14

query I rowsort
SELECT ALL 27 * - 97 col1
----
-2619

query I rowsort
SELECT - 10 + + - 7
----
-17

query II rowsort
SELECT - - 52 col0, + 7
----
52
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5475
SELECT - + CAST( COUNT( * ) AS SIGNED ) + - 0 col2
----
-1

skipif mysql # not compatible
query I rowsort label-5475
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) + - 0 col2
----
-1

query I rowsort
SELECT ALL + 30 + - 90 AS col0
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5477
SELECT ALL 55 * - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL 55 * - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT ALL MIN( + 31 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5478
SELECT ALL MIN ( + 31 ) AS col0
----
31

query I rowsort
SELECT - 54 + 11 AS col1
----
-43

query I rowsort
SELECT DISTINCT - 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-5481
SELECT ALL 23 AS col0, 2 * COUNT( * )
----
23
2

skipif mysql # not compatible
query II rowsort label-5481
SELECT ALL 23 AS col0, 2 * COUNT ( * )
----
23
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5482
SELECT + COUNT( * ) AS col1, 54 AS col1
----
1
54

skipif mysql # not compatible
query II rowsort label-5482
SELECT + COUNT ( * ) AS col1, 54 AS col1
----
1
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL + COUNT( + 2 )
----
1

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + COUNT ( + 2 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT ALL 4 DIV - 36
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL 4 / - 36
----
0

query II rowsort
SELECT ALL + 41 AS col1, - 21 AS col0
----
41
-21

query I rowsort
SELECT DISTINCT 21 * + + 10
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + - COUNT( * ) + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-5487
SELECT + - COUNT ( * ) + - 88
----
-89

query I rowsort
SELECT DISTINCT + - 71 AS col0
----
-71

query I rowsort
SELECT ( + 27 ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT - COUNT( ALL + 15 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5490
SELECT - COUNT ( ALL + 15 ) AS col1
----
-1

query I rowsort
SELECT 47 col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT + COUNT( * ) * - - ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5492
SELECT + COUNT ( * ) * - - ( - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT + SUM( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-5493
SELECT + SUM ( + 81 )
----
81

query I rowsort
SELECT ALL 74 col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT ( - MIN( + CAST( NULL AS SIGNED ) ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT ( - MIN ( + CAST ( NULL AS INTEGER ) ) ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT COUNT( * ) * 20
----
20

skipif mysql # not compatible
query I rowsort label-5496
SELECT COUNT ( * ) * 20
----
20

query I rowsort
SELECT ALL - 37 * - - 64
----
-2368

query I rowsort
SELECT DISTINCT - 23 col2
----
-23

query I rowsort
SELECT DISTINCT - - 65
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5500
SELECT 89 DIV - MAX( DISTINCT - ( + + 48 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5500
SELECT 89 / - MAX ( DISTINCT - ( + + 48 ) ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5501
SELECT ALL + - ( + CAST( NULL AS SIGNED ) ) * CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col0, COUNT( * ) col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5501
SELECT ALL + - ( + CAST ( NULL AS INTEGER ) ) * CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col0, COUNT ( * ) col2
----
NULL
1

query I rowsort
SELECT DISTINCT + + 90
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT + CAST( - ( - - SUM( 91 ) ) AS SIGNED ) * - + 36 AS col1
----
3276

skipif mysql # not compatible
query I rowsort label-5503
SELECT + CAST ( - ( - - SUM ( 91 ) ) AS INTEGER ) * - + 36 AS col1
----
3276

query I rowsort
SELECT + 50 - 44 AS col2
----
6

query I rowsort
SELECT ALL + 75 * 59 AS col0
----
4425

query I rowsort
SELECT DISTINCT + + 35 AS col1
----
35

query I rowsort
SELECT ALL + + 63 col2
----
63

query I rowsort
SELECT - 9 * - 65
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT + - COUNT( * ) + + 75 + + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5509
SELECT + - COUNT ( * ) + + 75 + + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT DISTINCT - ( + - 77 ) col1
----
77

query I rowsort
SELECT ALL - ( 34 ) AS col0
----
-34

query I rowsort
SELECT ALL 74 * 34 AS col1
----
2516

query I rowsort
SELECT - 80 * - + 36
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + + ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + + ( - COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT - 86 * - - COUNT( * ) + ( - + 1 )
----
-87

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT - 86 * - - COUNT ( * ) + ( - + 1 )
----
-87

query I rowsort
SELECT ALL + + 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT + MIN( ALL - 49 ) + - - 7
----
-42

skipif mysql # not compatible
query I rowsort label-5517
SELECT + MIN ( ALL - 49 ) + - - 7
----
-42

query I rowsort
SELECT DISTINCT - 5 * 16
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-5519
SELECT ALL + 66 col0, - COUNT( - 18 ) AS col0
----
66
-1

skipif mysql # not compatible
query II rowsort label-5519
SELECT ALL + 66 col0, - COUNT ( - 18 ) AS col0
----
66
-1

query II rowsort
SELECT ALL + 30 col1, + 69
----
30
69

query I rowsort
SELECT DISTINCT ( + 92 )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5522
SELECT - + COUNT( * ) AS col1, ( - - COUNT( * ) ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-5522
SELECT - + COUNT ( * ) AS col1, ( - - COUNT ( * ) ) AS col2
----
-1
1

query I rowsort
SELECT ALL - - 24 * + - 52 AS col1
----
-1248

query I rowsort
SELECT ALL - 49 + 76 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL + ( + ( - COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL + ( + ( - COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5526
SELECT + 16 DIV + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-5526
SELECT + 16 / + COUNT ( * )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT DISTINCT - CAST( + - 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - CAST ( + - 86 AS INTEGER )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5528
SELECT DISTINCT 9 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT 9 / - 26
----
0

query I rowsort
SELECT DISTINCT 12 AS col0
----
12

query I rowsort
SELECT - 74 col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT 21 * COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-5531
SELECT 21 * COUNT ( * ) AS col2
----
21

query I rowsort
SELECT DISTINCT + - 54 * + 69
----
-3726

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT DISTINCT COUNT( * ) * - - 87
----
87

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT COUNT ( * ) * - - 87
----
87

query I rowsort
SELECT ALL - ( + 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT 85 * COUNT( - + ( ( 14 ) ) ) * + COUNT( * ) + - - 99 col1
----
184

skipif mysql # not compatible
query I rowsort label-5535
SELECT 85 * COUNT ( - + ( ( 14 ) ) ) * + COUNT ( * ) + - - 99 col1
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5537
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER )
----
1

query II rowsort
SELECT DISTINCT - 85, - 67 AS col2
----
-85
-67

query I rowsort
SELECT + + 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT ALL + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + + COUNT ( * ) col0
----
1

query I rowsort
SELECT + ( + 11 )
----
11

query I rowsort
SELECT DISTINCT + 38 AS col1
----
38

query I rowsort
SELECT + 49 + + - 19
----
30

query II rowsort
SELECT 68, - ( + 27 ) AS col1
----
68
-27

query I rowsort
SELECT ALL + ( + 51 ) + - 43 AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5546
SELECT CAST( + 18 AS SIGNED ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5546
SELECT CAST ( + 18 AS INTEGER ) AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5547
SELECT DISTINCT - 69 * - SUM( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT - 69 * - SUM ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - 42 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT ALL COUNT( * ) * + ( - - 69 )
----
69

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL COUNT ( * ) * + ( - - 69 )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5550
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5550
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5551
SELECT CAST( 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-5551
SELECT CAST ( 30 AS INTEGER )
----
30

query I rowsort
SELECT DISTINCT - - 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT - MIN( + 79 ) * - 2 AS col0
----
158

skipif mysql # not compatible
query I rowsort label-5553
SELECT - MIN ( + 79 ) * - 2 AS col0
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL + COUNT( * ) - 82
----
-81

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL + COUNT ( * ) - 82
----
-81

query I rowsort
SELECT ALL - - 69 col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT - + ( + + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT - + ( + + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - 21 col2
----
-21

query I rowsort
SELECT ALL 96 * - 4 AS col2
----
-384

query I rowsort
SELECT ALL - + 35
----
-35

query I rowsort
SELECT + - 5
----
-5

query I rowsort
SELECT DISTINCT 33 * - 41 AS col0
----
-1353

query I rowsort
SELECT - 73 * + - 97 AS col2
----
7081

query I rowsort
SELECT DISTINCT + 86 * 25
----
2150

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5564
SELECT DISTINCT 2 DIV - CAST( 51 AS SIGNED ) col0
----
0

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT 2 / - CAST ( 51 AS INTEGER ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT - 3 * + - COUNT( * ) + - MAX( - 58 ) * - + 46
----
-2665

skipif mysql # not compatible
query I rowsort label-5565
SELECT - 3 * + - COUNT ( * ) + - MAX ( - 58 ) * - + 46
----
-2665

query I rowsort
SELECT ALL 28 * + + 25 AS col1
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT ALL - MIN( ALL + 1 ) + 78 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - MIN ( ALL + 1 ) + 78 AS col1
----
77

query I rowsort
SELECT ALL + 8 + + 26 + - - 76 AS col1
----
110

query I rowsort
SELECT - + 42
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5570
SELECT DISTINCT + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT 4 * - + 35
----
-140

query I rowsort
SELECT 94 * - 16 AS col1
----
-1504

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT COUNT( * ) * + + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5573
SELECT COUNT ( * ) * + + 88 AS col0
----
88

query I rowsort
SELECT 90 - - 53 AS col0
----
143

query I rowsort
SELECT DISTINCT - 31 col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL 67 + + COUNT( ALL + + 40 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL 67 + + COUNT ( ALL + + 40 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ALL MIN( DISTINCT - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL MIN ( DISTINCT - 6 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL ( - 40 ) * - COUNT( * ) + - + COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL ( - 40 ) * - COUNT ( * ) + - + COUNT ( * ) AS col1
----
39

query I rowsort
SELECT - 19 AS col0
----
-19

query I rowsort
SELECT + 92 * + 29
----
2668

query I rowsort
SELECT ( - 65 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT COUNT( * ) + - 31 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-5582
SELECT COUNT ( * ) + - 31 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - 41 + + 3 - COUNT( * ) - COUNT( * ) * + + 53 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5583
SELECT - 41 + + 3 - COUNT ( * ) - COUNT ( * ) * + + 53 AS col1
----
-92

query I rowsort
SELECT - + 55 AS col1
----
-55

query I rowsort
SELECT ALL - - 29 AS col2
----
29

query I rowsort
SELECT - 34 col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT COUNT( * ) * + 47 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT COUNT ( * ) * + 47 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT DISTINCT COUNT( * ) * COUNT( * ) * 36
----
36

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * 36
----
36

query I rowsort
SELECT ALL + 89 AS col1
----
89

query I rowsort
SELECT ALL + 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT + COUNT( DISTINCT 3 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5591
SELECT + COUNT ( DISTINCT 3 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5592
SELECT - 47 DIV NULLIF ( + 85, 6 )
----
0

skipif mysql # not compatible
query I rowsort label-5592
SELECT - 47 / NULLIF ( + 85, 6 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT - 59 + + SUM( ALL - 51 ) AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-5593
SELECT - 59 + + SUM ( ALL - 51 ) AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT 6 * - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT 6 * - COUNT ( * )
----
-6

query I rowsort
SELECT - 37 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT + 48 + COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT + 48 + COUNT ( * ) AS col0
----
49

query I rowsort
SELECT DISTINCT ( - 19 ) AS col0
----
-19

query I rowsort
SELECT DISTINCT 67 AS col0
----
67

query I rowsort
SELECT ALL 51 * + 54 AS col2
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT MIN( ALL 40 ) * + 59
----
2360

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT MIN ( ALL 40 ) * + 59
----
2360

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + + MAX( + 13 ) - + 1
----
12

skipif mysql # not compatible
query I rowsort label-5601
SELECT + + MAX ( + 13 ) - + 1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL - + 39 * - COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL - + 39 * - COUNT ( * ) AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5603
SELECT + - 59 DIV CAST( + 61 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT + - 59 / CAST ( + 61 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ( 35 )
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5605
SELECT ALL - ( - COUNT( * ) ) DIV + 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - ( - COUNT ( * ) ) / + 73 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT - COUNT( * ) * - 41
----
41

skipif mysql # not compatible
query I rowsort label-5606
SELECT - COUNT ( * ) * - 41
----
41

query I rowsort
SELECT DISTINCT ( + + ( ( + 34 ) ) )
----
34

query I rowsort
SELECT 54 * - + 97 col0
----
-5238

query I rowsort
SELECT 28 + 39 * 28 AS col0
----
1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT 19 + + - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT 19 + + - COUNT ( * )
----
18

query I rowsort
SELECT DISTINCT - + 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT DISTINCT 87 - NULLIF ( - 15, COUNT( * ) ) * + 4 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT 87 - NULLIF ( - 15, COUNT ( * ) ) * + 4 AS col1
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5614
SELECT ALL COUNT( * ) * - 84 * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT ALL COUNT ( * ) * - 84 * + + CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT ALL 68 AS col0, 14 AS col0
----
68
14

onlyif mysql # aggregate syntax: 
query II rowsort label-5616
SELECT ALL 26 AS col2, - COUNT( * ) AS col1
----
26
-1

skipif mysql # not compatible
query II rowsort label-5616
SELECT ALL 26 AS col2, - COUNT ( * ) AS col1
----
26
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT ALL + 78 + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL + 78 + COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT DISTINCT - - MIN( - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT - - MIN ( - 74 )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT ALL - CAST( - 69 AS SIGNED ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL - CAST ( - 69 AS INTEGER ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT DISTINCT - + COALESCE ( + MAX( + 61 ), 60 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT - + COALESCE ( + MAX ( + 61 ), 60 ) AS col1
----
-61

query I rowsort
SELECT + 57 - + 45
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT DISTINCT MAX( + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT MAX ( + 17 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT ALL - 75 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - 75 / 85
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT - ( + SUM( + - 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-5624
SELECT - ( + SUM ( + - 76 ) )
----
76

query I rowsort
SELECT DISTINCT + - 31 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT COUNT( * ) * COUNT( * ) - - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5626
SELECT COUNT ( * ) * COUNT ( * ) - - - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + 79 + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5627
SELECT + 79 + COUNT ( * ) AS col0
----
80

query I rowsort
SELECT - 91 * + 21
----
-1911

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT COUNT( DISTINCT + 57 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5629
SELECT COUNT ( DISTINCT + 57 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL SUM( DISTINCT - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL SUM ( DISTINCT - 10 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT ALL + 54 DIV - 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT ALL + 54 / - 55 AS col0
----
0

query I rowsort
SELECT ALL - + 10 AS col1
----
-10

query I rowsort
SELECT ALL - 88 * - 3 AS col0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT COUNT( * ) * 99
----
99

skipif mysql # not compatible
query I rowsort label-5634
SELECT COUNT ( * ) * 99
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT - 77 * + COUNT( * ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-5635
SELECT - 77 * + COUNT ( * ) col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + SUM( ALL - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-5636
SELECT + SUM ( ALL - 87 ) AS col1
----
-87

query I rowsort
SELECT 89 * - 39 AS col2
----
-3471

query I rowsort
SELECT ALL - 34 col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL + COUNT( * ) * - - 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + COUNT ( * ) * - - 22 AS col0
----
22

query I rowsort
SELECT - + 93 AS col1
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5641
SELECT ALL + COUNT( * ) DIV + 70
----
0

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL + COUNT ( * ) / + 70
----
0

query I rowsort
SELECT + 82 + + - 39 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT + - 4 + + COUNT( * ) - + 94 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + - 4 + + COUNT ( * ) - + 94 AS col0
----
-97

query I rowsort
SELECT - + 41 AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5645
SELECT - - 91 * + 76, CAST( NULL AS SIGNED ) AS col1
----
6916
NULL

skipif mysql # not compatible
query II rowsort label-5645
SELECT - - 91 * + 76, CAST ( NULL AS INTEGER ) AS col1
----
6916
NULL

query I rowsort
SELECT ALL ( + + 49 )
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5647
SELECT + COUNT( * ), - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-5647
SELECT + COUNT ( * ), - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - COUNT( * ) * + MAX( + + ( + 14 ) ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5648
SELECT - COUNT ( * ) * + MAX ( + + ( + 14 ) ) AS col2
----
-14

query I rowsort
SELECT ALL + ( + 35 )
----
35

query I rowsort
SELECT DISTINCT + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT COUNT( * ) * - 27
----
-27

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT COUNT ( * ) * - 27
----
-27

query I rowsort
SELECT - 81 * + 99 * - 16 + - 12
----
128292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT DISTINCT - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 8 + 43
----
51

query I rowsort
SELECT ( + 35 ) * 60 col0
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT + COUNT( * ) + 34 * + + 64
----
2177

skipif mysql # not compatible
query I rowsort label-5656
SELECT + COUNT ( * ) + 34 * + + 64
----
2177

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT DISTINCT + 63 - - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT + 63 - - COUNT ( * )
----
64

query I rowsort
SELECT ALL + 36 + - - ( - + 62 )
----
-26

query I rowsort
SELECT DISTINCT - 42 AS col2
----
-42

query I rowsort
SELECT ALL 19 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT - COUNT( * ) + 53
----
52

skipif mysql # not compatible
query I rowsort label-5661
SELECT - COUNT ( * ) + 53
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT ALL + SUM( DISTINCT - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5662
SELECT ALL + SUM ( DISTINCT - 38 ) AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT - - 24 * - + 39 * - + COUNT( * )
----
936

skipif mysql # not compatible
query I rowsort label-5664
SELECT - - 24 * - + 39 * - + COUNT ( * )
----
936

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5665
SELECT ALL + + 66, - COUNT( * ) DIV 14 AS col0
----
66
0

skipif mysql # not compatible
query II rowsort label-5665
SELECT ALL + + 66, - COUNT ( * ) / 14 AS col0
----
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - + COUNT( * ) - ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5666
SELECT - + COUNT ( * ) - ( - COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT + CAST( NULL AS SIGNED ) / + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT + CAST ( NULL AS INTEGER ) / + 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT CAST( + 58 AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5668
SELECT CAST ( + 58 AS INTEGER ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT + 78 * COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-5669
SELECT + 78 * COUNT ( * ) AS col1
----
78

query I rowsort
SELECT ALL + 33 col2
----
33

query I rowsort
SELECT DISTINCT + 41 AS col1
----
41

query I rowsort
SELECT - COALESCE ( + + 70, 20 ) * + 82
----
-5740

query I rowsort
SELECT DISTINCT ( 89 ) AS col0
----
89

query I rowsort
SELECT ALL 25 * - - 8 AS col2
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5675
SELECT ALL 92 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL 92 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5676
SELECT ALL - CAST( + - MIN( ALL 34 ) AS SIGNED ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL - CAST ( + - MIN ( ALL 34 ) AS INTEGER ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT ALL + - 47 * COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + - 47 * COUNT ( * )
----
-47

query I rowsort
SELECT DISTINCT 72 col0
----
72

query I rowsort
SELECT DISTINCT 37 AS col1
----
37

query I rowsort
SELECT 13 * - + 48
----
-624

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT COUNT( ALL + - 78 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5681
SELECT COUNT ( ALL + - 78 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 62
----
-62

query I rowsort
SELECT ALL 33 + + - 15 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5685
SELECT - CAST( NULL AS SIGNED ) * + 41 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT - CAST ( NULL AS INTEGER ) * + 41 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT DISTINCT SUM( - - 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5686
SELECT DISTINCT SUM ( - - 10 ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5687
SELECT 2 AS col1, + COUNT( * ) AS col1
----
2
1

skipif mysql # not compatible
query II rowsort label-5687
SELECT 2 AS col1, + COUNT ( * ) AS col1
----
2
1

query I rowsort
SELECT ALL + 98 col0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT + COUNT( * ), COUNT( * ) col2
----
1
1

skipif mysql # not compatible
query II rowsort label-5689
SELECT + COUNT ( * ), COUNT ( * ) col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT SUM( + - 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5690
SELECT SUM ( + - 32 ) AS col2
----
-32

query I rowsort
SELECT ALL 76 AS col2
----
76

query I rowsort
SELECT + 95 * - 16 AS col1
----
-1520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT - CAST( - 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5693
SELECT - CAST ( - 98 AS INTEGER ) AS col0
----
98

query I rowsort
SELECT ALL 60 + - 60 AS col0
----
0

query I rowsort
SELECT ALL + + 41 + 44
----
85

query I rowsort
SELECT - + 52 * - 68 AS col2
----
3536

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT ALL - COUNT( DISTINCT - 11 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL - COUNT ( DISTINCT - 11 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL - ( + COUNT( * ) ) - + COUNT( * ) * COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - ( + COUNT ( * ) ) - + COUNT ( * ) * COUNT ( * )
----
-2

query I rowsort
SELECT ALL - ( + 47 ) * - 17 AS col0
----
799

query I rowsort
SELECT - ( 10 )
----
-10

query II rowsort
SELECT ALL - 6 AS col0, + 25
----
-6
25

query II rowsort
SELECT ALL ( + - 20 ) * + 45 AS col2, + 58 AS col1
----
-900
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT - NULLIF ( + 51, + CAST( NULL AS SIGNED ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-5703
SELECT - NULLIF ( + 51, + CAST ( NULL AS INTEGER ) ) AS col1
----
-51

query II rowsort
SELECT ALL 42, + 61 AS col0
----
42
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5705
SELECT 17 AS col1, MAX( ALL CAST( NULL AS SIGNED ) ) + - COUNT( * ) AS col2
----
17
NULL

skipif mysql # not compatible
query II rowsort label-5705
SELECT 17 AS col1, MAX ( ALL CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) AS col2
----
17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL + SUM( 46 )
----
46

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + SUM ( 46 )
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5707
SELECT ALL + MIN( 91 ), 52 AS col0
----
91
52

skipif mysql # not compatible
query II rowsort label-5707
SELECT ALL + MIN ( 91 ), 52 AS col0
----
91
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT DISTINCT + 67 - MAX( ALL - 93 )
----
160

skipif mysql # not compatible
query I rowsort label-5708
SELECT DISTINCT + 67 - MAX ( ALL - 93 )
----
160

query I rowsort
SELECT - + ( 61 ) AS col1
----
-61

query I rowsort
SELECT - + 21 AS col1
----
-21

query I rowsort
SELECT - - 79 + + 37 AS col1
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT ALL - 49 * - - AVG ( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL - 49 * - - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL ( 74 )
----
74

query I rowsort
SELECT + 39 + 34
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT - 95 DIV + + COUNT( * ) + + 6 * + 85
----
415

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT - 95 / + + COUNT ( * ) + + 6 * + 85
----
415

query I rowsort
SELECT ( - 86 ) AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL - 87 * + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL - 87 * + - COUNT ( * ) AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5718
SELECT ALL + COUNT( * ), + CAST( NULL AS SIGNED ) * - 54 AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5718
SELECT ALL + COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 54 AS col2
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5719
SELECT ALL 72 DIV - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL 72 / - COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-5720
SELECT + 64, COUNT( * ) AS col0
----
64
1

skipif mysql # not compatible
query II rowsort label-5720
SELECT + 64, COUNT ( * ) AS col0
----
64
1

query I rowsort
SELECT + 91 + + 2 col0
----
93

query I rowsort
SELECT - 24 * - + 32 AS col2
----
768

query I rowsort
SELECT 45 * 47 AS col2
----
2115

query I rowsort
SELECT DISTINCT - 0 * 56 * - 79 col1
----
0

query I rowsort
SELECT DISTINCT - 47 col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL - - SUM( ALL 45 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - - SUM ( ALL 45 ) col0
----
45

query I rowsort
SELECT ALL - - 72 AS col0
----
72

query I rowsort
SELECT 48 col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5729
SELECT CAST( NULL AS SIGNED ) * - COUNT( + 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5729
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( + 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT DISTINCT COUNT( * ) + + SUM( + 87 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT COUNT ( * ) + + SUM ( + 87 ) AS col2
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5731
SELECT 86 DIV + 74 col0, - ( + COUNT( * ) ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-5731
SELECT 86 / + 74 col0, - ( + COUNT ( * ) ) AS col0
----
1
-1

query I rowsort
SELECT DISTINCT + + 38 AS col0
----
38

query I rowsort
SELECT - 30 * + 18 AS col0
----
-540

query I rowsort
SELECT ALL 25 * 84 * + 39 AS col2
----
81900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5735
SELECT + CAST( - 4 AS SIGNED )
----
-4

skipif mysql # not compatible
query I rowsort label-5735
SELECT + CAST ( - 4 AS INTEGER )
----
-4

query I rowsort
SELECT + - 15
----
-15

query I rowsort
SELECT ALL ( - - 86 )
----
86

query I rowsort
SELECT DISTINCT ( - 70 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5739
SELECT DISTINCT - COALESCE ( COUNT( * ), - COUNT( * ) + - CAST( NULL AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5739
SELECT DISTINCT - COALESCE ( COUNT ( * ), - COUNT ( * ) + - CAST ( NULL AS INTEGER ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT ALL 94 DIV + 57
----
1

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL 94 / + 57
----
1

query I rowsort
SELECT ALL - - 68
----
68

query I rowsort
SELECT + + 17 AS col2
----
17

query I rowsort
SELECT 95 * - 25
----
-2375

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT COUNT( * ) + - 1 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5744
SELECT COUNT ( * ) + - 1 AS col2
----
0

query I rowsort
SELECT DISTINCT - + 73 AS col0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5746
SELECT + SUM( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-5747
SELECT 75 AS col0, + 19 col2, + - COUNT( * ) AS col0
----
75
19
-1

skipif mysql # not compatible
query III rowsort label-5747
SELECT 75 AS col0, + 19 col2, + - COUNT ( * ) AS col0
----
75
19
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT - MIN( - - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5748
SELECT - MIN ( - - 77 ) AS col2
----
-77

query I rowsort
SELECT DISTINCT + 42 col1
----
42

query I rowsort
SELECT + ( 2 )
----
2

query I rowsort
SELECT DISTINCT + 37 col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT COUNT( - 78 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5752
SELECT COUNT ( - 78 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT DISTINCT ( 63 ) * + COUNT( * ) - + + 25
----
38

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT ( 63 ) * + COUNT ( * ) - + + 25
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5754
SELECT - - ( - 56 ) * - 98 * ( + + CAST( NULL AS SIGNED ) ) / - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT - - ( - 56 ) * - 98 * ( + + CAST ( NULL AS INTEGER ) ) / - 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT - COUNT( * ) - - COUNT( * ) * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5755
SELECT - COUNT ( * ) - - COUNT ( * ) * + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT DISTINCT + - 44
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT + 24 + + COUNT( - 97 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT + 24 + + COUNT ( - 97 ) AS col2
----
25

query I rowsort
SELECT ALL - 52 + + 87 col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT 85 + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5759
SELECT 85 + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL COUNT( DISTINCT 98 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL COUNT ( DISTINCT 98 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT ALL - ( + - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - ( + - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5762
SELECT + 52 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5762
SELECT + 52 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 79 * + 72
----
-5688

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT - 44 * COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT - 44 * COUNT ( * )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT ( - CAST( NULL AS SIGNED ) ) - - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT ( - CAST ( NULL AS INTEGER ) ) - - 59 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT ALL + COUNT( * ) + + ( + 49 ) * + ( - - 84 )
----
4117

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL + COUNT ( * ) + + ( + 49 ) * + ( - - 84 )
----
4117

query I rowsort
SELECT 79 + 90
----
169

query I rowsort
SELECT DISTINCT - 62 AS col1
----
-62

query I rowsort
SELECT ALL - 68 AS col2
----
-68

query I rowsort
SELECT DISTINCT 70 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT + 16 * + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5771
SELECT + 16 * + COUNT ( * ) AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5772
SELECT + CAST( NULL AS SIGNED ) - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5772
SELECT + CAST ( NULL AS INTEGER ) - + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT - SUM( 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5773
SELECT - SUM ( 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ( + - 71 ) * + 13 + + + 63 * + - COUNT( * )
----
-986

skipif mysql # not compatible
query I rowsort label-5774
SELECT ( + - 71 ) * + 13 + + + 63 * + - COUNT ( * )
----
-986

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT CAST( 47 AS SIGNED ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5775
SELECT CAST ( 47 AS INTEGER ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL - + 28 * + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL - + 28 * + COUNT ( * ) AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5777
SELECT ALL COUNT( * ) DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL COUNT ( * ) / 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ALL COUNT( * ) * - 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL COUNT ( * ) * - 86 AS col1
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT DISTINCT + 31 DIV + 9 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT + 31 / + 9 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT 38 * + 93 + + - COUNT( * )
----
3533

skipif mysql # not compatible
query I rowsort label-5780
SELECT 38 * + 93 + + - COUNT ( * )
----
3533

query I rowsort
SELECT ALL - 87 AS col0
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5782
SELECT ALL - 16 DIV - SUM( + + 67 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5782
SELECT ALL - 16 / - SUM ( + + 67 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT + - 31 * - - COUNT( * ) - 65 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5783
SELECT + - 31 * - - COUNT ( * ) - 65 AS col0
----
-96

query II rowsort
SELECT DISTINCT 55 AS col2, 42 AS col0
----
55
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT SUM( + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-5785
SELECT SUM ( + 82 )
----
82

query I rowsort
SELECT ALL - - 33
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5787
SELECT DISTINCT + - 62, MIN( DISTINCT + 84 ) col1
----
-62
84

skipif mysql # not compatible
query II rowsort label-5787
SELECT DISTINCT + - 62, MIN ( DISTINCT + 84 ) col1
----
-62
84

query I rowsort
SELECT ALL + 1 col0
----
1

query I rowsort
SELECT DISTINCT 48 col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5791
SELECT DISTINCT COUNT( ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT COUNT ( ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT ALL + - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT ALL - COUNT( * ) + 39
----
38

skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL - COUNT ( * ) + 39
----
38

query II rowsort
SELECT ALL 58 AS col1, + 33 AS col2
----
58
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5795
SELECT - ( - CAST( - + COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5795
SELECT - ( - CAST ( - + COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT - 7 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-5796
SELECT - 7 * - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT SUM( ALL 53 ) * + 56
----
2968

skipif mysql # not compatible
query I rowsort label-5797
SELECT SUM ( ALL 53 ) * + 56
----
2968

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT ALL - MIN( ALL + 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - MIN ( ALL + 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT + 70, - COUNT( * ) col1
----
70
-1

skipif mysql # not compatible
query II rowsort label-5799
SELECT + 70, - COUNT ( * ) col1
----
70
-1

query I rowsort
SELECT + 98 * 63 AS col2
----
6174

query I rowsort
SELECT + - 28 AS col0
----
-28

query I rowsort
SELECT DISTINCT ( - 92 ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5803
SELECT + 99, - ( - 80 ) * + COUNT( * ) + - 56 + - + 68 AS col1
----
99
-44

skipif mysql # not compatible
query II rowsort label-5803
SELECT + 99, - ( - 80 ) * + COUNT ( * ) + - 56 + - + 68 AS col1
----
99
-44

query I rowsort
SELECT 53 + - 29 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5805
SELECT + CAST( 5 AS SIGNED ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-5805
SELECT + CAST ( 5 AS INTEGER ) AS col1
----
5

query I rowsort
SELECT DISTINCT - ( + 78 ) * + 49
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT ALL + COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL + COUNT ( * ) + + 24
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT - 72 * - 98 - + 73 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT - 72 * - 98 - + 73 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT + COUNT( * ) * + - 62
----
-62

skipif mysql # not compatible
query I rowsort label-5809
SELECT + COUNT ( * ) * + - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT SUM( ALL - + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-5810
SELECT SUM ( ALL - + 39 )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT + 30 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-5811
SELECT + 30 / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT - + COUNT( * ) + - 20 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5812
SELECT - + COUNT ( * ) + - 20 AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5813
SELECT 77 DIV - - COUNT( * ) + - + 10 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5813
SELECT 77 / - - COUNT ( * ) + - + 10 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT + MAX( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT + MAX ( 4 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-5815
SELECT 67 * + - COUNT( * ), 56 AS col0
----
-67
56

skipif mysql # not compatible
query II rowsort label-5815
SELECT 67 * + - COUNT ( * ), 56 AS col0
----
-67
56

query I rowsort
SELECT ALL - 82 col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + ( MAX( 68 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5817
SELECT + ( MAX ( 68 ) )
----
68

query I rowsort
SELECT - - 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT ALL - MIN( ALL - + 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5819
SELECT ALL - MIN ( ALL - + 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5820
SELECT ALL + COUNT( * ) DIV + + ( - - 53 ) AS col0, + 63 DIV 77
----
0
0

skipif mysql # not compatible
query II rowsort label-5820
SELECT ALL + COUNT ( * ) / + + ( - - 53 ) AS col0, + 63 / 77
----
0
0

query I rowsort
SELECT 83 * 63 AS col2
----
5229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT ALL + 47 + - CAST( - 52 AS SIGNED ) col0
----
99

skipif mysql # not compatible
query I rowsort label-5822
SELECT ALL + 47 + - CAST ( - 52 AS INTEGER ) col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT - COUNT( DISTINCT 52 ) + ( COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5823
SELECT - COUNT ( DISTINCT 52 ) + ( COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - MAX( DISTINCT - + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5824
SELECT - MAX ( DISTINCT - + 2 )
----
2

query I rowsort
SELECT ALL - ( - 66 ) col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT + 25 + - COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5826
SELECT + 25 + - COUNT ( * ) AS col1
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT + COUNT( * ) DIV - 32 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5827
SELECT + COUNT ( * ) / - 32 + COUNT ( * )
----
1

query I rowsort
SELECT - ( 91 ) * - 40 AS col1
----
3640

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL + COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - + 4 AS col0
----
-4

query II rowsort
SELECT ALL + 37, 99 AS col1
----
37
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT - COUNT( + 64 ) * + 4 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5832
SELECT - COUNT ( + 64 ) * + 4 AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5833
SELECT ALL COALESCE ( + ( - + CAST( NULL AS SIGNED ) ), - MIN( 92 ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL COALESCE ( + ( - + CAST ( NULL AS INTEGER ) ), - MIN ( 92 ) ) AS col2
----
-92

query I rowsort
SELECT - + 52 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT + COUNT( ALL - 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5835
SELECT + COUNT ( ALL - 20 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT - 84 + - - COUNT( * ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-5836
SELECT - 84 + - - COUNT ( * ) AS col0
----
-83

query I rowsort
SELECT + ( - + ( - - 23 ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5838
SELECT + 56 * - 5 DIV + + COUNT( * ) - - 10 AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-5838
SELECT + 56 * - 5 / + + COUNT ( * ) - - 10 AS col1
----
-270

query I rowsort
SELECT + + 39
----
39

query I rowsort
SELECT ALL + - 28
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-5841
SELECT ( + COUNT( * ) ) col0, 51 AS col0
----
1
51

skipif mysql # not compatible
query II rowsort label-5841
SELECT ( + COUNT ( * ) ) col0, 51 AS col0
----
1
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5842
SELECT DISTINCT - - CAST( + 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT - - CAST ( + 74 AS INTEGER ) AS col2
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5843
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL - - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5844
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL - + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5845
SELECT + COUNT( * ) DIV + CAST( + - 71 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5845
SELECT + COUNT ( * ) / + CAST ( + - 71 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5846
SELECT CAST( - + 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-5846
SELECT CAST ( - + 57 AS INTEGER )
----
-57

query I rowsort
SELECT ALL + ( 95 )
----
95

query I rowsort
SELECT ALL 71 * + 97 col2
----
6887

query I rowsort
SELECT + - 21 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL COUNT( * ) * 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL COUNT ( * ) * 33 AS col1
----
33

query I rowsort
SELECT ALL - 2 * 57 * + 89
----
-10146

query I rowsort
SELECT ALL 83 * + 37
----
3071

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT - + SUM( DISTINCT - + 99 ) AS col1, - 61 col1
----
99
-61

skipif mysql # not compatible
query II rowsort label-5853
SELECT - + SUM ( DISTINCT - + 99 ) AS col1, - 61 col1
----
99
-61

query I rowsort
SELECT DISTINCT - + 30 AS col1
----
-30

query I rowsort
SELECT + - 67
----
-67

query I rowsort
SELECT DISTINCT - 19 col2
----
-19

query I rowsort
SELECT DISTINCT - 53 * + 6
----
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT COUNT( * ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-5858
SELECT COUNT ( * ) * - 21
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5859
SELECT ALL + 66 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + 66 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 79 col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT + CASE ( 96 ) WHEN + CAST( NULL AS SIGNED ) THEN + 78 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT + CASE ( 96 ) WHEN + CAST ( NULL AS INTEGER ) THEN + 78 END AS col0
----
NULL

query I rowsort
SELECT + - 72 AS col1
----
-72

query I rowsort
SELECT 71 col0
----
71

query I rowsort
SELECT ALL - 21 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT ALL SUM( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL SUM ( + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT - COUNT( 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-5866
SELECT - COUNT ( 59 )
----
-1

query I rowsort
SELECT 1 - + 48 + + 80 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL + MAX( DISTINCT + 90 ) + + NULLIF ( + - 24, - COUNT( * ) / COUNT( * ) )
----
66

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + MAX ( DISTINCT + 90 ) + + NULLIF ( + - 24, - COUNT ( * ) / COUNT ( * ) )
----
66

query II rowsort
SELECT DISTINCT - 84 AS col0, 5 AS col2
----
-84
5

query I rowsort
SELECT - - ( + - 86 )
----
-86

query I rowsort
SELECT DISTINCT + + 48
----
48

query I rowsort
SELECT + - ( + - 96 ) AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5873
SELECT DISTINCT + - COUNT( * ) col1, - 85 AS col1
----
-1
-85

skipif mysql # not compatible
query II rowsort label-5873
SELECT DISTINCT + - COUNT ( * ) col1, - 85 AS col1
----
-1
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL + ( - SUM( + + 84 ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL + ( - SUM ( + + 84 ) ) AS col1
----
-84

query I rowsort
SELECT DISTINCT + 59 AS col2
----
59

query I rowsort
SELECT DISTINCT 25 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT NULLIF ( - + COUNT( * ), 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-5877
SELECT NULLIF ( - + COUNT ( * ), 20 )
----
-1

query I rowsort
SELECT ALL + + 96 * 8 * 58 AS col0
----
44544

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT - MIN( ALL + 15 ) + - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-5879
SELECT - MIN ( ALL + 15 ) + - COUNT ( * )
----
-16

query I rowsort
SELECT ( + + 33 )
----
33

query I rowsort
SELECT + ( - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT 11 * - COUNT( * ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5882
SELECT 11 * - COUNT ( * ) AS col1
----
-11

query I rowsort
SELECT ( 69 ) * - 25 col2
----
-1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5884
SELECT DISTINCT 96 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT 96 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 63 AS col1
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT 21 DIV + 28 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5886
SELECT 21 / + 28 AS col1
----
0

query I rowsort
SELECT ALL - ( 48 ) * - 1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT DISTINCT - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5888
SELECT DISTINCT - ( + COUNT ( * ) )
----
-1

query I rowsort
SELECT + - 10
----
-10

query I rowsort
SELECT ALL - + ( 38 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL + COUNT( * ) + 22
----
23

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + COUNT ( * ) + 22
----
23

query I rowsort
SELECT DISTINCT + 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT - SUM( + 19 ) + + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-5893
SELECT - SUM ( + 19 ) + + COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT - 30 + + - 9
----
-39

query I rowsort
SELECT + 39 col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5896
SELECT DISTINCT + MIN( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT DISTINCT - 34 * - COUNT( + 6 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT - 34 * - COUNT ( + 6 ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5898
SELECT ALL CAST( 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL CAST ( 43 AS INTEGER )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5899
SELECT ALL COUNT( * ) DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL COUNT ( * ) / - 48
----
0

query I rowsort
SELECT + ( 30 ) AS col1
----
30

query I rowsort
SELECT ( - 0 ) AS col0
----
0

query I rowsort
SELECT + + 10 * + 12
----
120

query I rowsort
SELECT - - 32
----
32

query I rowsort
SELECT - - ( - + 92 ) col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL - COUNT( * ) * - ( 21 ) + 48
----
69

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - COUNT ( * ) * - ( 21 ) + 48
----
69

query I rowsort
SELECT + COALESCE ( - 79, ( + 40 ) ) AS col0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5907
SELECT ALL 57, COUNT( * ) DIV + - COUNT( * ) AS col1
----
57
-1

skipif mysql # not compatible
query II rowsort label-5907
SELECT ALL 57, COUNT ( * ) / + - COUNT ( * ) AS col1
----
57
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT COUNT( * ) - - 4 col2
----
5

skipif mysql # not compatible
query I rowsort label-5908
SELECT COUNT ( * ) - - 4 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT + COUNT( * ) * - + COUNT( 74 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( 74 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL COUNT( * ) + + 78
----
79

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL COUNT ( * ) + + 78
----
79

query I rowsort
SELECT - 95 col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT DISTINCT NULLIF ( + 12, + + COUNT( * ) ) col1
----
12

skipif mysql # not compatible
query I rowsort label-5912
SELECT DISTINCT NULLIF ( + 12, + + COUNT ( * ) ) col1
----
12

query I rowsort
SELECT COALESCE ( - + ( + 87 ), 26 * 56, 38 )
----
-87

query I rowsort
SELECT DISTINCT 15 AS col1
----
15

query I rowsort
SELECT ALL - - 63 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5916
SELECT ALL - COUNT( * ) DIV + - 71
----
0

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - COUNT ( * ) / + - 71
----
0

query I rowsort
SELECT + ( - 39 ) AS col1
----
-39

query I rowsort
SELECT DISTINCT 83 col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT - MAX( ALL 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-5919
SELECT - MAX ( ALL 71 )
----
-71

query II rowsort
SELECT 3 AS col2, + 14 AS col0
----
3
14

query I rowsort
SELECT ALL + ( + - 1 ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5922
SELECT DISTINCT - ( CAST( + 99 AS SIGNED ) ) * + 33 AS col2
----
-3267

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT - ( CAST ( + 99 AS INTEGER ) ) * + 33 AS col2
----
-3267

query I rowsort
SELECT DISTINCT 70 + 18
----
88

query I rowsort
SELECT DISTINCT + 37 AS col0
----
37

query I rowsort
SELECT - 8 + + 72
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT 71 + - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5926
SELECT 71 + - COUNT ( * ) AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5927
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 41
----
NULL
41

skipif mysql # not compatible
query II rowsort label-5927
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 41
----
NULL
41

query I rowsort
SELECT 39 * - + 23
----
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - 56 * - COUNT( + - 45 ) - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5929
SELECT - 56 * - COUNT ( + - 45 ) - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT COUNT( * ) * 38
----
38

skipif mysql # not compatible
query I rowsort label-5930
SELECT COUNT ( * ) * 38
----
38

query I rowsort
SELECT DISTINCT - ( + - ( - ( - 68 ) ) )
----
68

query I rowsort
SELECT 19 col1
----
19

query I rowsort
SELECT - + ( - 50 ) col0
----
50

query I rowsort
SELECT ALL + 55 * + 0
----
0

query I rowsort
SELECT DISTINCT - 0 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5936
SELECT - - ( + COUNT( * ) ) DIV - 81 - - + 67 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5936
SELECT - - ( + COUNT ( * ) ) / - 81 - - + 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5937
SELECT COUNT( * ) * + ( 42 ) + + ( - + COUNT( * ) ) col2, - 55 AS col1
----
41
-55

skipif mysql # not compatible
query II rowsort label-5937
SELECT COUNT ( * ) * + ( 42 ) + + ( - + COUNT ( * ) ) col2, - 55 AS col1
----
41
-55

query I rowsort
SELECT - ( + 4 ) AS col2
----
-4

query I rowsort
SELECT ALL + 8 + 27 AS col0
----
35

query I rowsort
SELECT ALL - 40 * 62
----
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT - COUNT( * ) - - 53 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5941
SELECT - COUNT ( * ) - - 53 AS col0
----
52

query I rowsort
SELECT + ( + 53 ) AS col1
----
53

query I rowsort
SELECT ALL + ( - 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT ALL + MAX( 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL + MAX ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT + COUNT( ALL + + 40 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5945
SELECT + COUNT ( ALL + + 40 ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT COUNT( * ) * - 55 * 32 AS col2
----
-1760

skipif mysql # not compatible
query I rowsort label-5946
SELECT COUNT ( * ) * - 55 * 32 AS col2
----
-1760

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT ALL - 69 DIV 63
----
-1

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - 69 / 63
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL COUNT( * ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT COUNT( * ) + - - 20
----
21

skipif mysql # not compatible
query I rowsort label-5949
SELECT COUNT ( * ) + - - 20
----
21

query I rowsort
SELECT 45 * + + 3 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT SUM( ALL + - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-5951
SELECT SUM ( ALL + - 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5952
SELECT - ( + + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5953
SELECT - NULLIF ( - COUNT( * ), 52 ) DIV 91 + + 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-5953
SELECT - NULLIF ( - COUNT ( * ), 52 ) / 91 + + 88 AS col0
----
88

query I rowsort
SELECT - ( + + 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT ALL 83 + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL 83 + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ALL 81 * + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL 81 * + COUNT ( * )
----
81

query I rowsort
SELECT + - 7
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5958
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT - 54 * - 96 AS col1
----
5184

query II rowsort
SELECT 32, 75 AS col0
----
32
75

query I rowsort
SELECT 9 + - + 76
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT DISTINCT + 75 * - COUNT( + - 50 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT + 75 * - COUNT ( + - 50 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT + - ( + ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5963
SELECT + - ( + ( + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT + + ( - 25 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT + MAX( DISTINCT + 47 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5965
SELECT + MAX ( DISTINCT + 47 ) AS col0
----
47

query I rowsort
SELECT + + 26 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT + COUNT( * ) + - - SUM( DISTINCT + 31 )
----
32

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT + COUNT ( * ) + - - SUM ( DISTINCT + 31 )
----
32

query I rowsort
SELECT ALL + 61 * + - 78 AS col0
----
-4758

query I rowsort
SELECT ALL - + 26 AS col0
----
-26

query I rowsort
SELECT ALL + 88 * - + 22
----
-1936

query I rowsort
SELECT + 77 * + + 74 col0
----
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - 42 + + - 64 + + COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-5972
SELECT - 42 + + - 64 + + COUNT ( * )
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + COUNT( * ) * - 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5973
SELECT + COUNT ( * ) * - 82 AS col0
----
-82

query I rowsort
SELECT - ( + 90 )
----
-90

query I rowsort
SELECT + - 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT + COUNT( * ) * COUNT( * ) + + - ( - COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) + + - ( - COUNT ( * ) ) AS col0
----
2

query I rowsort
SELECT DISTINCT + ( - + 54 )
----
-54

query I rowsort
SELECT - ( 75 ) col2
----
-75

query II rowsort
SELECT DISTINCT 58 AS col1, + 44
----
58
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT + COUNT( * ) * + + 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5980
SELECT + COUNT ( * ) * + + 51 AS col2
----
51

query I rowsort
SELECT DISTINCT + 7 * - 24 AS col2
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ( + - MIN( ALL + 58 ) )
----
-58

skipif mysql # not compatible
query I rowsort label-5982
SELECT ( + - MIN ( ALL + 58 ) )
----
-58

query II rowsort
SELECT DISTINCT - 76 AS col1, ( - + 0 )
----
-76
0

query I rowsort
SELECT DISTINCT - + 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5985
SELECT DISTINCT 84 - + - COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT 84 - + - COUNT ( * ) AS col2
----
85

query II rowsort
SELECT + 17 AS col1, 1 col2
----
17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL - CASE WHEN NOT + COUNT( * ) IS NOT NULL THEN + + 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - CASE WHEN NOT + COUNT ( * ) IS NOT NULL THEN + + 84 END
----
NULL

query I rowsort
SELECT 37 - - + 7
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5989
SELECT 43 * + CAST( + 63 AS SIGNED )
----
2709

skipif mysql # not compatible
query I rowsort label-5989
SELECT 43 * + CAST ( + 63 AS INTEGER )
----
2709

query I rowsort
SELECT + 17 + - 96 col0
----
-79

query I rowsort
SELECT DISTINCT + ( + 56 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT + 41 + + COUNT( * ) + + 48
----
90

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 41 + + COUNT ( * ) + + 48
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - NULLIF ( + + 77, COUNT( * ) + - 65 )
----
-77

skipif mysql # not compatible
query I rowsort label-5993
SELECT - NULLIF ( + + 77, COUNT ( * ) + - 65 )
----
-77

query I rowsort
SELECT - 0 + - - 69 + 69
----
138

query I rowsort
SELECT ALL + ( + 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT + COUNT( * ) * 91
----
91

skipif mysql # not compatible
query I rowsort label-5996
SELECT + COUNT ( * ) * 91
----
91

query I rowsort
SELECT ( 83 ) AS col2
----
83

query I rowsort
SELECT DISTINCT + 51 * - 37
----
-1887

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL + COUNT( * ) * + + 63 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL + COUNT ( * ) * + + 63 AS col0
----
63

query I rowsort
SELECT DISTINCT - ( - 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL - SUM( - + 51 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL - SUM ( - + 51 ) col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6002
SELECT ALL - COALESCE ( + + 8, + MIN( + - CAST( NULL AS SIGNED ) ) )
----
-8

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL - COALESCE ( + + 8, + MIN ( + - CAST ( NULL AS INTEGER ) ) )
----
-8

query I rowsort
SELECT ALL - + 3
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT COUNT( * ) * COALESCE ( 96, + - 76 + 65 + - COUNT( + 30 ) )
----
96

skipif mysql # not compatible
query I rowsort label-6004
SELECT COUNT ( * ) * COALESCE ( 96, + - 76 + 65 + - COUNT ( + 30 ) )
----
96

query I rowsort
SELECT ALL 19 + 11 + - 53
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT + MAX( DISTINCT 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT + MAX ( DISTINCT 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6007
SELECT - 7 - - + COUNT( * ) AS col0, - 52
----
-6
-52

skipif mysql # not compatible
query II rowsort label-6007
SELECT - 7 - - + COUNT ( * ) AS col0, - 52
----
-6
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6008
SELECT - - 48 + + - COUNT( * ) DIV - + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-6008
SELECT - - 48 + + - COUNT ( * ) / - + COUNT ( * )
----
49

query I rowsort
SELECT DISTINCT + 36 AS col2
----
36

query I rowsort
SELECT ALL ( + - 71 ) col0
----
-71

query I rowsort
SELECT DISTINCT ( - 31 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT + COUNT( * ) + - + 91 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-6012
SELECT + COUNT ( * ) + - + 91 AS col0
----
-90

query I rowsort
SELECT DISTINCT + 10 col0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT ALL - COUNT( * ) * - + MIN( - - CAST( 29 AS SIGNED ) ) + + COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - COUNT ( * ) * - + MIN ( - - CAST ( 29 AS INTEGER ) ) + + COUNT ( * ) AS col2
----
30

query I rowsort
SELECT - 40 + - - 25 AS col2
----
-15

query I rowsort
SELECT DISTINCT + 89
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT 59 * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-6017
SELECT 59 * COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT - MIN( + 5 ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT - MIN ( + 5 ) AS col2
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6019
SELECT ALL + ( + + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + ( + + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT ( - + 66 )
----
-66

query I rowsort
SELECT + + 62
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6023
SELECT ALL - COUNT( CAST( - 34 AS SIGNED ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL - COUNT ( CAST ( - 34 AS INTEGER ) ) col1
----
-1

query I rowsort
SELECT ALL - - 72 AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT ALL + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + 91 AS col2
----
91

query I rowsort
SELECT + 41 + 33 col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT MIN( ALL - 33 ) + - ( - COUNT( DISTINCT 18 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-6028
SELECT MIN ( ALL - 33 ) + - ( - COUNT ( DISTINCT 18 ) )
----
-32

query I rowsort
SELECT - ( - 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6030
SELECT CAST( - COUNT( * ) AS SIGNED ) - + + 51
----
-52

skipif mysql # not compatible
query I rowsort label-6030
SELECT CAST ( - COUNT ( * ) AS INTEGER ) - + + 51
----
-52

query I rowsort
SELECT ALL - 19 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-6032
SELECT ALL - 1 AS col1, + COUNT( * ) * - 43 col2
----
-1
-43

skipif mysql # not compatible
query II rowsort label-6032
SELECT ALL - 1 AS col1, + COUNT ( * ) * - 43 col2
----
-1
-43

query I rowsort
SELECT 5 col0
----
5

query I rowsort
SELECT 2 col0
----
2

query I rowsort
SELECT ALL + 57 col0
----
57

query I rowsort
SELECT DISTINCT + 29 AS col2
----
29

query I rowsort
SELECT DISTINCT + 38 AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT DISTINCT + 18 / - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT + 18 / - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 87 AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT DISTINCT - ( - + COUNT( * ) ) + - COUNT( * ) * + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT - ( - + COUNT ( * ) ) + - COUNT ( * ) * + COUNT ( * ) col2
----
0

query I rowsort
SELECT DISTINCT ( 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT 59 * + COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT 59 * + COUNT ( * ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT + COUNT( 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6043
SELECT + COUNT ( 22 ) AS col1
----
1

query I rowsort
SELECT ( - + 86 )
----
-86

query I rowsort
SELECT + ( + 91 ) AS col0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6046
SELECT + 5 DIV + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6046
SELECT + 5 / + COUNT ( * )
----
5

query I rowsort
SELECT ( + 32 )
----
32

query I rowsort
SELECT ( + 92 )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6049
SELECT - COUNT( * ) * COUNT( CAST( + 60 AS SIGNED ) ) + + SUM( + 42 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-6049
SELECT - COUNT ( * ) * COUNT ( CAST ( + 60 AS INTEGER ) ) + + SUM ( + 42 ) AS col2
----
41

query I rowsort
SELECT ( + 17 ) AS col1
----
17

query I rowsort
SELECT ALL + 56 AS col2
----
56

query II rowsort
SELECT DISTINCT + - 60 AS col1, - 51
----
-60
-51

query I rowsort
SELECT + + ( + 60 ) + + 92
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT CAST( + 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-6054
SELECT CAST ( + 15 AS INTEGER )
----
15

query I rowsort
SELECT + + 90 * 68 col0
----
6120

query I rowsort
SELECT ALL - NULLIF ( + + 79, - - 17 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT SUM( 13 )
----
13

skipif mysql # not compatible
query I rowsort label-6057
SELECT SUM ( 13 )
----
13

query I rowsort
SELECT DISTINCT - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6059
SELECT DISTINCT ( 50 ), + COUNT( * ) AS col0
----
50
1

skipif mysql # not compatible
query II rowsort label-6059
SELECT DISTINCT ( 50 ), + COUNT ( * ) AS col0
----
50
1

query I rowsort
SELECT 86 * 38
----
3268

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT COUNT( * ) AS col0, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6061
SELECT COUNT ( * ) AS col0, COUNT ( * )
----
1
1

query I rowsort
SELECT - + 22 * 86 + - 95
----
-1987

query I rowsort
SELECT ALL + - 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + MAX( - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-6064
SELECT + MAX ( - 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT - SUM( DISTINCT + 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6065
SELECT - SUM ( DISTINCT + 60 ) AS col1
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT - CAST( NULL AS SIGNED ) * + - 88 + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT - CAST ( NULL AS INTEGER ) * + - 88 + 30
----
NULL

query I rowsort
SELECT + 17 * + 99 AS col2
----
1683

query I rowsort
SELECT - NULLIF ( 10, - 41 ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6069
SELECT ALL COUNT( * ) DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL COUNT ( * ) / - 82
----
0

query I rowsort
SELECT ( + 4 ) AS col1
----
4

query I rowsort
SELECT ( 26 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT + CAST( 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6072
SELECT + CAST ( 4 AS INTEGER ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6073
SELECT ALL COUNT( * ) * COUNT( * ) AS col1, 71
----
1
71

skipif mysql # not compatible
query II rowsort label-6073
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1, 71
----
1
71

query I rowsort
SELECT DISTINCT - + 78
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6075
SELECT CAST( NULL AS DECIMAL ) * - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6075
SELECT CAST ( NULL AS REAL ) * - 7
----
NULL

query I rowsort
SELECT DISTINCT - - 69 AS col1
----
69

query I rowsort
SELECT ALL 25 AS col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL + COUNT( * ) * - + 17 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + COUNT ( * ) * - + 17 AS col2
----
-17

query I rowsort
SELECT + 21 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT ALL ( 0 ) + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL ( 0 ) + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT DISTINCT + 74 * + COUNT( * ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT + 74 * + COUNT ( * ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL - SUM( DISTINCT + 50 ) + - 34 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL - SUM ( DISTINCT + 50 ) + - 34 AS col0
----
-84

query I rowsort
SELECT ALL 31 col0
----
31

query I rowsort
SELECT - + 87 + - 41
----
-128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6085
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT SUM( + - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-6086
SELECT SUM ( + - 83 )
----
-83

query I rowsort
SELECT DISTINCT + ( + - 92 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT - 55 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT - 55 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL 94 col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6090
SELECT + - COUNT( * ) AS col2, 51 + - CAST( + 9 AS SIGNED ) AS col2
----
-1
42

skipif mysql # not compatible
query II rowsort label-6090
SELECT + - COUNT ( * ) AS col2, 51 + - CAST ( + 9 AS INTEGER ) AS col2
----
-1
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT - ( + ( + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT - ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT + 19 * + COUNT( * ) - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6092
SELECT + 19 * + COUNT ( * ) - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT ALL - MAX( ALL - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL - MAX ( ALL - 27 )
----
27

query I rowsort
SELECT 69 + - - 23 * - 31
----
-644

query I rowsort
SELECT - - 42 AS col2
----
42

query I rowsort
SELECT 91 * - 75
----
-6825

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT COUNT( * ) * + 34 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT COUNT ( * ) * + 34 AS col0
----
34

query II rowsort
SELECT ALL + 89 AS col1, + ( 70 ) - - - 9
----
89
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT DISTINCT + - COUNT( * ) - - 31 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6099
SELECT DISTINCT + - COUNT ( * ) - - 31 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT ALL + 84 - + - COUNT( * ) + 70
----
155

skipif mysql # not compatible
query I rowsort label-6100
SELECT ALL + 84 - + - COUNT ( * ) + 70
----
155

query I rowsort
SELECT ALL - 26 col1
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT DISTINCT CAST( - 70 AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT CAST ( - 70 AS INTEGER ) AS col0
----
-70

query I rowsort
SELECT DISTINCT + - 50 col1
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT + + 74 DIV - + 69
----
-1

skipif mysql # not compatible
query I rowsort label-6104
SELECT + + 74 / - + 69
----
-1

query I rowsort
SELECT DISTINCT + 38
----
38

query I rowsort
SELECT - 37 + - - 93
----
56

query I rowsort
SELECT ALL + - 76 * + 9 col2
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ALL - - COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL - - COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT - COUNT( * ) * - 33
----
33

skipif mysql # not compatible
query I rowsort label-6109
SELECT - COUNT ( * ) * - 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT DISTINCT - COUNT( DISTINCT 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - COUNT ( DISTINCT 87 )
----
-1

query II rowsort
SELECT ALL - 70 AS col2, 73 AS col0
----
-70
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6112
SELECT - ( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT - ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 1 * - + 23 col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6114
SELECT ALL + + CAST( + ( 58 ) AS SIGNED )
----
58

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + + CAST ( + ( 58 ) AS INTEGER )
----
58

query I rowsort
SELECT + 17 col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT + + MAX( ALL + - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6116
SELECT + + MAX ( ALL + - 50 ) AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6117
SELECT + - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT + + 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT MIN( DISTINCT + + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-6119
SELECT MIN ( DISTINCT + + 51 )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT - 11 AS col2, - COUNT( * ) AS col1
----
-11
-1

skipif mysql # not compatible
query II rowsort label-6120
SELECT - 11 AS col2, - COUNT ( * ) AS col1
----
-11
-1

query I rowsort
SELECT ALL 42 col1
----
42

query I rowsort
SELECT - ( - - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT DISTINCT + COALESCE ( + 5, - COUNT( * ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT + COALESCE ( + 5, - COUNT ( * ) ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT 94 * - COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-6124
SELECT 94 * - COUNT ( * ) AS col1
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 26
----
NULL

query I rowsort
SELECT ALL 19 * + 20
----
380

query I rowsort
SELECT + - 19
----
-19

query I rowsort
SELECT DISTINCT - - 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL - 50 * - COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - 50 * - COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT - SUM( DISTINCT + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-6130
SELECT - SUM ( DISTINCT + 33 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6131
SELECT 15 AS col0, CAST( NULL AS SIGNED ) AS col1
----
15
NULL

skipif mysql # not compatible
query II rowsort label-6131
SELECT 15 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT ALL - COALESCE ( - 33, COUNT( * ) ) + + COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL - COALESCE ( - 33, COUNT ( * ) ) + + COUNT ( * ) AS col0
----
34

query I rowsort
SELECT DISTINCT 4 + 44 AS col0
----
48

query I rowsort
SELECT ALL 95 col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT - 9 * + COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-6135
SELECT - 9 * + COUNT ( * )
----
-9

query I rowsort
SELECT - 3 - 42
----
-45

query I rowsort
SELECT DISTINCT + ( 23 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6138
SELECT - COUNT( * ) + 85 DIV - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-6138
SELECT - COUNT ( * ) + 85 / - COUNT ( * )
----
-86

query I rowsort
SELECT DISTINCT + 92 col2
----
92

query I rowsort
SELECT ALL + 40 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT + ( COUNT( DISTINCT 74 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6141
SELECT + ( COUNT ( DISTINCT 74 ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6142
SELECT CAST( NULL AS SIGNED ) * 80 + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT CAST ( NULL AS INTEGER ) * 80 + - 61
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT + 69 DIV 21
----
3

skipif mysql # not compatible
query I rowsort label-6143
SELECT + 69 / 21
----
3

query I rowsort
SELECT ALL 51 + - 88
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT DISTINCT 63 + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT 63 + COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT - - MIN( ALL + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-6146
SELECT - - MIN ( ALL + 54 )
----
54

query I rowsort
SELECT DISTINCT - 77 col0
----
-77

query I rowsort
SELECT ALL + ( + 11 )
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT ALL 53 DIV + 94 + 45 * - 32 col1
----
-1440

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL 53 / + 94 + 45 * - 32 col1
----
-1440

query I rowsort
SELECT ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL 10 + + + COUNT( * ) - + 4
----
7

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL 10 + + + COUNT ( * ) - + 4
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6152
SELECT + COUNT( * ) DIV 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6152
SELECT + COUNT ( * ) / 25 AS col0
----
0

query I rowsort
SELECT 88 col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT - MIN( - 44 ) * - 35
----
-1540

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT - MIN ( - 44 ) * - 35
----
-1540

query I rowsort
SELECT DISTINCT 82 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL - + COUNT( * ) + + - MAX( 0 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - + COUNT ( * ) + + - MAX ( 0 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT + NULLIF ( 32, COUNT( * ) + 1 ) + 23 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT + NULLIF ( 32, COUNT ( * ) + 1 ) + 23 AS col1
----
55

query II rowsort
SELECT DISTINCT - 80 AS col1, 60
----
-80
60

query II rowsort
SELECT 39 AS col0, 98 col1
----
39
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6160
SELECT DISTINCT + CAST( 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + CAST ( 78 AS INTEGER )
----
78

query I rowsort
SELECT ALL ( 68 ) * - + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT + COUNT( DISTINCT - ( + 26 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6162
SELECT + COUNT ( DISTINCT - ( + 26 ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + ( + ( + 14 ) )
----
14

query I rowsort
SELECT ALL + 23 AS col2
----
23

query I rowsort
SELECT DISTINCT - + 75 AS col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6167
SELECT 33 DIV - - MIN( - 87 )
----
0

skipif mysql # not compatible
query I rowsort label-6167
SELECT 33 / - - MIN ( - 87 )
----
0

query I rowsort
SELECT 66 + - ( - ( 17 ) ) AS col0
----
83

query I rowsort
SELECT ALL 57 col2
----
57

query I rowsort
SELECT ALL 20 AS col0
----
20

query I rowsort
SELECT + + 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT ALL + + 23 * 94 * - COUNT( * ) * 89
----
-192418

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL + + 23 * 94 * - COUNT ( * ) * 89
----
-192418

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT + - ( + MAX( - 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-6173
SELECT + - ( + MAX ( - 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT + 54 * + - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6174
SELECT + 54 * + - COUNT ( * ) AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6175
SELECT 86, - CAST( NULL AS SIGNED ) + 61 AS col0
----
86
NULL

skipif mysql # not compatible
query II rowsort label-6175
SELECT 86, - CAST ( NULL AS INTEGER ) + 61 AS col0
----
86
NULL

query I rowsort
SELECT + 64 + - - 91 AS col0
----
155

query I rowsort
SELECT ALL 56 AS col0
----
56

query I rowsort
SELECT + ( - 52 ) AS col0
----
-52

query I rowsort
SELECT ALL + 83 col1
----
83

query I rowsort
SELECT DISTINCT + + 32 AS col0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT ALL + - CAST( - 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL + - CAST ( - 76 AS INTEGER )
----
76

query I rowsort
SELECT + 51 - + 54
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT MAX( ALL 80 )
----
80

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT MAX ( ALL 80 )
----
80

query I rowsort
SELECT ALL 9 - 26 AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6185
SELECT + 59 DIV + COUNT( * ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-6185
SELECT + 59 / + COUNT ( * ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT COUNT( * ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-6186
SELECT COUNT ( * ) * - 28
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL - ( + CAST( 67 AS SIGNED ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - ( + CAST ( 67 AS INTEGER ) ) AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6188
SELECT ALL COUNT( * ) DIV - 76 col0
----
0

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL COUNT ( * ) / - 76 col0
----
0

query I rowsort
SELECT DISTINCT - - 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT DISTINCT - MIN( 0 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT - MIN ( 0 ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT + MIN( ALL + + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-6191
SELECT + MIN ( ALL + + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT ALL COUNT( * ) + 60 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL COUNT ( * ) + 60 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT + MAX( - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-6193
SELECT + MAX ( - 1 )
----
-1

query I rowsort
SELECT + + 73 AS col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT MAX( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-6195
SELECT MAX ( - 16 )
----
-16

query I rowsort
SELECT 18 col1
----
18

query I rowsort
SELECT ALL + - 76 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6198
SELECT + 82 + - COUNT( * ) * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT + 82 + - COUNT ( * ) * + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - 93 * + COUNT( * ) col2
----
-93

skipif mysql # not compatible
query I rowsort label-6199
SELECT - 93 * + COUNT ( * ) col2
----
-93

query I rowsort
SELECT ALL 15 col2
----
15

query I rowsort
SELECT DISTINCT + 11 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6202
SELECT + 64 DIV - 57 + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6202
SELECT + 64 / - 57 + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT + MIN( ALL - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-6203
SELECT + MIN ( ALL - 57 ) AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6204
SELECT CAST( NULL AS SIGNED ) AS col2, 47 AS col0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-6204
SELECT CAST ( NULL AS INTEGER ) AS col2, 47 AS col0
----
NULL
47

query I rowsort
SELECT ALL + 86 * + 33
----
2838

onlyif mysql # DIV for integer division: 
query II rowsort label-6206
SELECT DISTINCT - 82, 5 DIV - + 44 AS col0
----
-82
0

skipif mysql # not compatible
query II rowsort label-6206
SELECT DISTINCT - 82, 5 / - + 44 AS col0
----
-82
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6207
SELECT COUNT( * ) DIV - 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6207
SELECT COUNT ( * ) / - 18 AS col2
----
0

query I rowsort
SELECT 6 col1
----
6

query I rowsort
SELECT ALL - 37 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6210
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT DISTINCT 38 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT 38 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT + CAST( NULL AS SIGNED ) - + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT + CAST ( NULL AS INTEGER ) - + 87 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 74 AS col1
----
-74

query I rowsort
SELECT - + 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT MAX( DISTINCT 39 ) * + 60
----
2340

skipif mysql # not compatible
query I rowsort label-6215
SELECT MAX ( DISTINCT 39 ) * + 60
----
2340

query I rowsort
SELECT ALL - 11 AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6217
SELECT - + AVG ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT - + AVG ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - + 58 * + 79
----
-4582

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6219
SELECT + CAST( 90 AS SIGNED ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-6219
SELECT + CAST ( 90 AS INTEGER ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-6220
SELECT ( 9 ) AS col1, - COUNT( * ) AS col1
----
9
-1

skipif mysql # not compatible
query II rowsort label-6220
SELECT ( 9 ) AS col1, - COUNT ( * ) AS col1
----
9
-1

query I rowsort
SELECT ALL - 22 * - 40 + 48 AS col0
----
928

query I rowsort
SELECT ( + 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6223
SELECT COUNT( * ) AS col1, + 1
----
1
1

skipif mysql # not compatible
query II rowsort label-6223
SELECT COUNT ( * ) AS col1, + 1
----
1
1

query I rowsort
SELECT - + 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT - 64 * - MAX( - 91 ) + - 30 col2
----
-5854

skipif mysql # not compatible
query I rowsort label-6225
SELECT - 64 * - MAX ( - 91 ) + - 30 col2
----
-5854

query I rowsort
SELECT DISTINCT ( + 60 ) * 76 col1
----
4560

query I rowsort
SELECT DISTINCT - - 65 AS col0
----
65

query I rowsort
SELECT - 6 + 46
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT DISTINCT 99 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT 99 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 11 + 27
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL + 10 - + 18 + + MAX( DISTINCT 81 ) col1
----
73

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL + 10 - + 18 + + MAX ( DISTINCT 81 ) col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6232
SELECT DISTINCT - SUM( ALL - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT - SUM ( ALL - 16 )
----
16

query I rowsort
SELECT - + 50 AS col1
----
-50

query I rowsort
SELECT + - 40
----
-40

query I rowsort
SELECT - + 23 * - 70
----
1610

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT DISTINCT + + MAX( 28 )
----
28

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT + + MAX ( 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6237
SELECT DISTINCT ( - CAST( - - ( - - CAST( NULL AS SIGNED ) ) AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT ( - CAST ( - - ( - - CAST ( NULL AS INTEGER ) ) AS REAL ) )
----
NULL

query I rowsort
SELECT - 6 col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT - COUNT( - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-6239
SELECT - COUNT ( - 43 )
----
-1

query I rowsort
SELECT + 57 * + - 83
----
-4731

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6241
SELECT - CAST( + + 31 AS SIGNED ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-6241
SELECT - CAST ( + + 31 AS INTEGER ) col0
----
-31

query I rowsort
SELECT DISTINCT - 85 AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT DISTINCT 41 * + CAST( - ( - 43 ) AS SIGNED ) AS col0
----
1763

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT 41 * + CAST ( - ( - 43 ) AS INTEGER ) AS col0
----
1763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6244
SELECT DISTINCT + COUNT( * ) DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT + COUNT ( * ) / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT COUNT( * ) * + 70
----
70

skipif mysql # not compatible
query I rowsort label-6245
SELECT COUNT ( * ) * + 70
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6246
SELECT 23 DIV - 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6246
SELECT 23 / - 84 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6247
SELECT ALL - COUNT( * ) * + + COUNT( * ) DIV - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) / - + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT 10 col1
----
10

query I rowsort
SELECT DISTINCT 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT ALL + COUNT( * ) + - COUNT( * ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - 10 col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-6252
SELECT ALL - 69 * + 73 AS col1, - COUNT( * )
----
-5037
-1

skipif mysql # not compatible
query II rowsort label-6252
SELECT ALL - 69 * + 73 AS col1, - COUNT ( * )
----
-5037
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT - 48 - - - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-6253
SELECT - 48 - - - COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT ALL + + 87
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT ALL - + 58 DIV + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL - + 58 / + COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6256
SELECT DISTINCT - COUNT( * ) DIV - 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT - COUNT ( * ) / - 27 AS col0
----
0

query I rowsort
SELECT ALL + - 63 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6258
SELECT CASE - NULLIF ( + COUNT( * ), - + 32 ) WHEN + + 54 THEN - 48 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT CASE - NULLIF ( + COUNT ( * ), - + 32 ) WHEN + + 54 THEN - 48 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + ( + - 91 )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6260
SELECT SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - - 52 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL + MIN( 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + MIN ( 12 ) AS col0
----
12

query I rowsort
SELECT ALL + + 60
----
60

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6264
SELECT ALL - CAST( + - 13 AS DECIMAL ) / + ( + 40 ) / + 16 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL - CAST ( + - 13 AS REAL ) / + ( + 40 ) / + 16 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - - ( + 46 ) )
----
46

query I rowsort
SELECT - ( - 1 )
----
1

query I rowsort
SELECT DISTINCT 48 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6268
SELECT + COUNT( * ) DIV - 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT + COUNT ( * ) / - 98 AS col0
----
0

query I rowsort
SELECT ALL - ( + 25 )
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT ALL + MIN( ALL 33 ) + + CAST( + + COUNT( * ) AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL + MIN ( ALL 33 ) + + CAST ( + + COUNT ( * ) AS INTEGER )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT - 59 * - - COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-6271
SELECT - 59 * - - COUNT ( * ) AS col2
----
-59

query I rowsort
SELECT DISTINCT ( + - 62 ) + + 96
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6273
SELECT CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

query I rowsort
SELECT - 38 + - 14
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT - COUNT( * ) AS col0, 5
----
-1
5

skipif mysql # not compatible
query II rowsort label-6275
SELECT - COUNT ( * ) AS col0, 5
----
-1
5

query I rowsort
SELECT ( - 37 )
----
-37

query I rowsort
SELECT + 39 * 68 AS col0
----
2652

query I rowsort
SELECT ALL + 19 col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT + ( + CAST( ( - 54 ) AS SIGNED ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6279
SELECT + ( + CAST ( ( - 54 ) AS INTEGER ) ) AS col2
----
-54

query I rowsort
SELECT ( - 34 )
----
-34

query II rowsort
SELECT - 30 * + 33, 62 AS col0
----
-990
62

query I rowsort
SELECT ALL + 32 col2
----
32

query I rowsort
SELECT DISTINCT + + 70 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6284
SELECT DISTINCT CAST( NULL AS SIGNED ) * SUM( - 68 ) + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT CAST ( NULL AS INTEGER ) * SUM ( - 68 ) + + 42 AS col2
----
NULL

query I rowsort
SELECT ALL ( 32 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 91
----
NULL

query I rowsort
SELECT - 98 * 25 AS col2
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT DISTINCT - - SUM( 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT - - SUM ( 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL 22 * COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL 22 * COUNT ( * )
----
22

query I rowsort
SELECT 79 col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT DISTINCT CAST( NULL AS SIGNED ) * 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 64 AS col0
----
NULL

query I rowsort
SELECT + - 5 AS col2
----
-5

query I rowsort
SELECT + 18 * + 15 AS col1
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT 5 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT 5 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6295
SELECT + MAX( DISTINCT 89 ), 43 AS col0
----
89
43

skipif mysql # not compatible
query II rowsort label-6295
SELECT + MAX ( DISTINCT 89 ), 43 AS col0
----
89
43

query I rowsort
SELECT + 57 * 19 AS col0
----
1083

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL - COUNT( * ) + 94 + - - COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL - COUNT ( * ) + 94 + - - COUNT ( * ) AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL MIN( DISTINCT - 25 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL MIN ( DISTINCT - 25 ) AS col2
----
-25

query I rowsort
SELECT + + ( ( - + 99 ) )
----
-99

query I rowsort
SELECT ( - 30 )
----
-30

query I rowsort
SELECT ALL ( + ( 2 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT - 33 * - COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6302
SELECT - 33 * - COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6303
SELECT - COUNT( * ) AS col1, + 55 AS col0
----
-1
55

skipif mysql # not compatible
query II rowsort label-6303
SELECT - COUNT ( * ) AS col1, + 55 AS col0
----
-1
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6304
SELECT - CAST( NULL AS SIGNED ) AS col2, 7 AS col1
----
NULL
7

skipif mysql # not compatible
query II rowsort label-6304
SELECT - CAST ( NULL AS INTEGER ) AS col2, 7 AS col1
----
NULL
7

query I rowsort
SELECT DISTINCT + 64 * 51 AS col0
----
3264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT CAST( NULL AS SIGNED ) * - - 50 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT CAST ( NULL AS INTEGER ) * - - 50 * - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - + 39 AS col1
----
-39

query II rowsort
SELECT ALL - ( + + 16 ) AS col0, - 63
----
-16
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6309
SELECT DISTINCT + 22 + - - CAST( - 11 AS SIGNED ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT + 22 + - - CAST ( - 11 AS INTEGER ) AS col0
----
11

query I rowsort
SELECT ALL + 5 - - 29
----
34

query I rowsort
SELECT ALL - + 80 AS col1
----
-80

query I rowsort
SELECT + - 85 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL + 18 + + COUNT( * ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + 18 + + COUNT ( * ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-6314
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) AS col1
----
1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6315
SELECT ALL AVG ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT ALL AVG ( + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ( - 4 )
----
-4

query I rowsort
SELECT ALL + 64 col0
----
64

query I rowsort
SELECT DISTINCT + - 91 AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + 24 / - + ( + + ( + 70 ) ) THEN NULL ELSE - CAST( NULL AS SIGNED ) * - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + 24 / - + ( + + ( + 70 ) ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) * - 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT COUNT( DISTINCT - 50 )
----
1

skipif mysql # not compatible
query I rowsort label-6320
SELECT COUNT ( DISTINCT - 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT + SUM( - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-6321
SELECT + SUM ( - 69 )
----
-69

query I rowsort
SELECT DISTINCT - 33 * - ( - 69 )
----
-2277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT ALL CAST( 62 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL CAST ( 62 AS INTEGER ) AS col1
----
62

query I rowsort
SELECT - 52 * + - 76
----
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT - ( - COUNT( * ) ) - + COUNT( * ) + - + SUM( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-6325
SELECT - ( - COUNT ( * ) ) - + COUNT ( * ) + - + SUM ( - 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6326
SELECT CAST( + 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-6326
SELECT CAST ( + 43 AS INTEGER )
----
43

query I rowsort
SELECT - 87 + + 44 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL COUNT( * ) * 79
----
79

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL COUNT ( * ) * 79
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT + 43 DIV - 38 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6329
SELECT + 43 / - 38 AS col0
----
-1

query I rowsort
SELECT - + 37 AS col0
----
-37

query I rowsort
SELECT - + 85 AS col2
----
-85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6332
SELECT ALL + 31 * - ( - ( - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL + 31 * - ( - ( - CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL + COUNT( * ) * - 89 col1
----
-89

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL + COUNT ( * ) * - 89 col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6334
SELECT 14 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT 14 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 4 * 65 AS col0
----
260

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT DISTINCT + COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT + COUNT ( * ) + COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT - 22 + - - 13 - 8 * - + 75
----
591

query I rowsort
SELECT ALL 44 + 10
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT + 63 * COUNT( * ) col0
----
63

skipif mysql # not compatible
query I rowsort label-6339
SELECT + 63 * COUNT ( * ) col0
----
63

query I rowsort
SELECT 89 - - + 57
----
146

query I rowsort
SELECT 24 * + 22
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT MIN( + 4 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-6342
SELECT MIN ( + 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - 71 + + SUM( - - 39 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-6343
SELECT - 71 + + SUM ( - - 39 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT - COUNT( * ) - + - 42 + 12
----
53

skipif mysql # not compatible
query I rowsort label-6344
SELECT - COUNT ( * ) - + - 42 + 12
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT + COUNT( * ) + + 41 col0
----
42

skipif mysql # not compatible
query I rowsort label-6345
SELECT + COUNT ( * ) + + 41 col0
----
42

query I rowsort
SELECT DISTINCT ( + 52 )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6347
SELECT DISTINCT 10 DIV + + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT 10 / + + COUNT ( * )
----
10

query I rowsort
SELECT ALL ( 91 ) AS col1
----
91

query I rowsort
SELECT ( + - 25 ) AS col0
----
-25

query I rowsort
SELECT ( - - 77 )
----
77

query I rowsort
SELECT + 20 * + 77
----
1540

query II rowsort
SELECT DISTINCT - 89 AS col0, - 99
----
-89
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT 13 * MAX( ALL 1 )
----
13

skipif mysql # not compatible
query I rowsort label-6353
SELECT 13 * MAX ( ALL 1 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6354
SELECT ALL - 43 * - MAX( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL - 43 * - MAX ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT DISTINCT - + ( COUNT( + + 30 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT - + ( COUNT ( + + 30 ) ) AS col0
----
-1

query I rowsort
SELECT ALL 63 * 23 col0
----
1449

query I rowsort
SELECT DISTINCT 81 col0
----
81

query I rowsort
SELECT ALL 57 + - + 76 AS col1
----
-19

query I rowsort
SELECT ALL 58 col2
----
58

query I rowsort
SELECT 48 * + 22 AS col1
----
1056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6361
SELECT ALL + - 91 / + CAST( NULL AS SIGNED ) * 5 / - ( 72 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL + - 91 / + CAST ( NULL AS INTEGER ) * 5 / - ( 72 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL - 5 * - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - 5 * - COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT - COUNT( * ) + - COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6363
SELECT - COUNT ( * ) + - COUNT ( * ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT - SUM( ALL + 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6364
SELECT - SUM ( ALL + 7 ) AS col2
----
-7

query I rowsort
SELECT DISTINCT + - ( + 94 ) AS col1
----
-94

query I rowsort
SELECT 72 AS col1
----
72

query I rowsort
SELECT ALL 63 col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6368
SELECT - CAST( + 26 AS SIGNED ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-6368
SELECT - CAST ( + 26 AS INTEGER ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT DISTINCT + COUNT( * ) * 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6369
SELECT DISTINCT + COUNT ( * ) * 63 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT + 7 * COUNT( * ) - + + ( + ( - - COUNT( * ) ) )
----
6

skipif mysql # not compatible
query I rowsort label-6370
SELECT + 7 * COUNT ( * ) - + + ( + ( - - COUNT ( * ) ) )
----
6

query I rowsort
SELECT ALL + - 18
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6372
SELECT + - CAST( - COUNT( * ) AS SIGNED ) + + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-6372
SELECT + - CAST ( - COUNT ( * ) AS INTEGER ) + + - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6373
SELECT ( 76 ) AS col2, - ( + - CAST( NULL AS SIGNED ) ) AS col1
----
76
NULL

skipif mysql # not compatible
query II rowsort label-6373
SELECT ( 76 ) AS col2, - ( + - CAST ( NULL AS INTEGER ) ) AS col1
----
76
NULL

query I rowsort
SELECT + + 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT 52 * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-6375
SELECT 52 * + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT ALL + 12 DIV - - ( + NULLIF ( - COUNT( * ), + 76 + 64 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + 12 / - - ( + NULLIF ( - COUNT ( * ), + 76 + 64 ) ) AS col0
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-6377
SELECT 42 DIV - 5 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-6377
SELECT 42 / - 5 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT DISTINCT + 94 + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT + 94 + COUNT ( * )
----
95

query I rowsort
SELECT - 94 col1
----
-94

query II rowsort
SELECT + 11 AS col0, 69 col2
----
11
69

query I rowsort
SELECT + + 29 AS col0
----
29

query I rowsort
SELECT + ( - - 50 ) AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6383
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ( - - 23 ) * + - 24
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT ALL - CASE - - 49 WHEN - 97 THEN - 87 END - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL - CASE - - 49 WHEN - 97 THEN - 87 END - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6386
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 64 AS col0
----
64

query I rowsort
SELECT DISTINCT + 90 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT + COUNT( * ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-6389
SELECT + COUNT ( * ) * 49
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT - + MAX( ALL - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-6390
SELECT - + MAX ( ALL - 52 )
----
52

query I rowsort
SELECT ALL + - 37 AS col0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT ( + + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6392
SELECT ( + + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT + MIN( DISTINCT 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6393
SELECT + MIN ( DISTINCT 40 ) AS col2
----
40

query I rowsort
SELECT + ( - 82 )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6395
SELECT + CAST( NULL AS SIGNED ) AS col0, - 4
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-6395
SELECT + CAST ( NULL AS INTEGER ) AS col0, - 4
----
NULL
-4

query I rowsort
SELECT ALL + 31 col0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6397
SELECT ALL COUNT( * ) DIV + 9
----
0

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL COUNT ( * ) / + 9
----
0

query I rowsort
SELECT ALL - 28 * - - 64 - + 22 AS col1
----
-1814

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT NULLIF ( + COUNT( * ), 40 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6399
SELECT NULLIF ( + COUNT ( * ), 40 ) AS col1
----
1

query I rowsort
SELECT ALL - ( - 23 ) AS col2
----
23

query I rowsort
SELECT 58 * - 64 AS col0
----
-3712

onlyif mysql # DIV for integer division: 
query I rowsort label-6402
SELECT DISTINCT 79 DIV 11
----
7

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT 79 / 11
----
7

query I rowsort
SELECT DISTINCT - ( - + 62 ) AS col2
----
62

query I rowsort
SELECT + - 16 AS col0
----
-16

query I rowsort
SELECT ALL - - ( - 70 ) AS col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6406
SELECT ALL CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 14 AS col0
----
14

query I rowsort
SELECT ALL 98 * - - 12 AS col0
----
1176

query I rowsort
SELECT ALL - ( - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT 17 * - + COUNT( * ) + 74 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6410
SELECT 17 * - + COUNT ( * ) + 74 AS col0
----
57

query II rowsort
SELECT DISTINCT + + 40, - 20 AS col2
----
40
-20

query I rowsort
SELECT ALL + 77 AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6413
SELECT - + CAST( - 89 AS SIGNED ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6413
SELECT - + CAST ( - 89 AS INTEGER ) AS col0
----
89

query I rowsort
SELECT DISTINCT + 25 AS col1
----
25

query I rowsort
SELECT + + 82 col0
----
82

query I rowsort
SELECT + + ( 68 )
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6417
SELECT + ( - CAST( NULL AS DECIMAL ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT + ( - CAST ( NULL AS REAL ) ) col1
----
NULL

query I rowsort
SELECT ALL - 63 AS col2
----
-63

query I rowsort
SELECT ALL 27 * - ( 9 ) AS col2
----
-243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6420
SELECT DISTINCT COUNT( * ) + - CAST( 28 AS SIGNED ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT COUNT ( * ) + - CAST ( 28 AS INTEGER ) AS col0
----
-27

query I rowsort
SELECT DISTINCT - 88 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6422
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT CAST( NULL AS SIGNED ) * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT CAST ( NULL AS INTEGER ) * - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT DISTINCT + 48 - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT + 48 - COUNT ( * ) AS col1
----
47

query I rowsort
SELECT ALL 50 AS col1
----
50

query I rowsort
SELECT 95 - 92
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT ALL + COUNT( * ) + - 36 * 54
----
-1943

skipif mysql # not compatible
query I rowsort label-6427
SELECT ALL + COUNT ( * ) + - 36 * 54
----
-1943

query I rowsort
SELECT 29 col1
----
29

query I rowsort
SELECT ALL + 97 * 9
----
873

query I rowsort
SELECT ALL + 53 * - 85 col1
----
-4505

query I rowsort
SELECT 92 col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT - 66 + - COUNT( * ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6432
SELECT - 66 + - COUNT ( * ) AS col1
----
-67

query I rowsort
SELECT ALL + - 58 AS col2
----
-58

query I rowsort
SELECT ALL + 23 col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6435
SELECT + COALESCE ( + 64, CAST( NULL AS SIGNED ) )
----
64

skipif mysql # not compatible
query I rowsort label-6435
SELECT + COALESCE ( + 64, CAST ( NULL AS INTEGER ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL 86 * + - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL 86 * + - COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-6437
SELECT ALL COUNT( * ) AS col0, + COUNT( * ) * 90
----
1
90

skipif mysql # not compatible
query II rowsort label-6437
SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) * 90
----
1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT COUNT( + - 89 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6438
SELECT COUNT ( + - 89 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL COUNT( * ) + + 19 AS col0
----
20

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL COUNT ( * ) + + 19 AS col0
----
20

query I rowsort
SELECT ALL 52 col1
----
52

query I rowsort
SELECT - 43 * + - 43 AS col2
----
1849

query I rowsort
SELECT - 44 + + 16
----
-28

query I rowsort
SELECT DISTINCT - 27 + - - 21
----
-6

query I rowsort
SELECT DISTINCT + 55 + - - 54 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT 95 * - - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-6445
SELECT 95 * - - COUNT ( * )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT COUNT( * ) + SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT COUNT ( * ) + SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT ( - - 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL - 40 + - ( + MAX( 27 ) ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL - 40 + - ( + MAX ( 27 ) ) AS col1
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) / 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) / 72 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6450
SELECT 65 DIV + 25 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6450
SELECT 65 / + 25 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT 57 + MAX( ALL + 18 ) * 66 * - 0 col1
----
57

skipif mysql # not compatible
query I rowsort label-6451
SELECT 57 + MAX ( ALL + 18 ) * 66 * - 0 col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6452
SELECT COUNT( * ) * + + COUNT( * ) - + 81
----
-80

skipif mysql # not compatible
query I rowsort label-6452
SELECT COUNT ( * ) * + + COUNT ( * ) - + 81
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6453
SELECT + CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT + CAST ( 0 AS INTEGER )
----
0

query I rowsort
SELECT + 9 + - 28
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT MIN( + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT MIN ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6456
SELECT ALL CAST( + ( - 17 ) AS SIGNED ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL CAST ( + ( - 17 ) AS INTEGER ) AS col1
----
-17

query I rowsort
SELECT ( + ( + 83 ) ) AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT - COUNT( * ) * 62 - - 75 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-6458
SELECT - COUNT ( * ) * 62 - - 75 AS col2
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6459
SELECT - - COUNT( * ) DIV - - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6459
SELECT - - COUNT ( * ) / - - 88 AS col2
----
0

query I rowsort
SELECT ALL + 50 AS col0
----
50

query I rowsort
SELECT + 60 * - 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT + MAX( DISTINCT - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT + MAX ( DISTINCT - 66 ) AS col0
----
-66

query I rowsort
SELECT + + 98 + + - 16 AS col1
----
82

query I rowsort
SELECT - 0 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT ALL + 19 DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL + 19 / + 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT DISTINCT - SUM( - + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT - SUM ( - + 60 )
----
60

query I rowsort
SELECT ALL 22 AS col1
----
22

query I rowsort
SELECT ALL 30 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT DISTINCT - MIN( 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT - MIN ( 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT ALL - COUNT( ALL - - 54 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL - COUNT ( ALL - - 54 ) AS col2
----
-1

query I rowsort
SELECT ALL - + COALESCE ( - 60, - 25 * - - ( + ( 2 ) ) - 88 )
----
60

query I rowsort
SELECT ALL 58 + - + 73 * + 29
----
-2059

query I rowsort
SELECT ALL + + 97 AS col1
----
97

query I rowsort
SELECT - - 18 AS col0
----
18

query I rowsort
SELECT - - 36
----
36

query I rowsort
SELECT ALL 66 AS col2
----
66

query I rowsort
SELECT DISTINCT 34 AS col1
----
34

query I rowsort
SELECT - 37 + + 62 col0
----
25

query I rowsort
SELECT ALL 40 AS col0
----
40

query I rowsort
SELECT ( ( + 44 ) )
----
44

query I rowsort
SELECT ALL + + 69 AS col0
----
69

query I rowsort
SELECT + - 72
----
-72

query I rowsort
SELECT - - ( + 23 ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT ALL CAST( - - COUNT( DISTINCT + ( + + 50 ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6484
SELECT ALL CAST ( - - COUNT ( DISTINCT + ( + + 50 ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT - MAX( + - 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-6485
SELECT - MAX ( + - 71 ) AS col1
----
71

query I rowsort
SELECT + 43 + + NULLIF ( + 51, - 21 + - + 54 ) AS col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6487
SELECT ALL 90 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL 90 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 90 col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT + COUNT( DISTINCT 34 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6489
SELECT + COUNT ( DISTINCT 34 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 71 - + - 87
----
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT DISTINCT - + CAST( + 61 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT - + CAST ( + 61 AS INTEGER ) AS col2
----
-61

query I rowsort
SELECT ALL - + 15 col2
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6493
SELECT DISTINCT - 57 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT - 57 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - - 41 col2
----
41

query I rowsort
SELECT ALL - 75 col1
----
-75

query II rowsort
SELECT DISTINCT 14 AS col2, + ( 62 ) AS col0
----
14
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT ALL - MIN( - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL - MIN ( - 98 )
----
98

query I rowsort
SELECT DISTINCT + 54 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT + MAX( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-6499
SELECT + MAX ( - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL + + SUM( + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + + SUM ( + 96 )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6501
SELECT + COUNT( * ) + - 91, COUNT( * ) col2
----
-90
1

skipif mysql # not compatible
query II rowsort label-6501
SELECT + COUNT ( * ) + - 91, COUNT ( * ) col2
----
-90
1

query I rowsort
SELECT - 97 * - 80
----
7760

query I rowsort
SELECT - - 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT COUNT( * ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6504
SELECT COUNT ( * ) + + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT ALL 59 + 78 + - 6 * + 94
----
-427

query I rowsort
SELECT 33 * + 31 col0
----
1023

query I rowsort
SELECT DISTINCT - 67 * - 86 AS col0
----
5762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6508
SELECT ALL - 76 * MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL - 76 * MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 50 + - 13 * 46
----
-548

query I rowsort
SELECT ALL ( - + 1 )
----
-1

query I rowsort
SELECT + 96 * + - 12 AS col0
----
-1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6512
SELECT + CAST( - 60 AS SIGNED ) + + 99 * - + COUNT( * ) AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-6512
SELECT + CAST ( - 60 AS INTEGER ) + + 99 * - + COUNT ( * ) AS col1
----
-159

query I rowsort
SELECT DISTINCT + 41
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT ALL - 2 + - COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL - 2 + - COUNT ( * ) AS col0
----
-3

query I rowsort
SELECT ALL - 26 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT - 27 * + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-6516
SELECT - 27 * + + COUNT ( * )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6517
SELECT CAST( 57 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6517
SELECT CAST ( 57 AS INTEGER ) AS col0
----
57

query I rowsort
SELECT ( 76 ) AS col1
----
76

query I rowsort
SELECT ( 80 )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT + 36 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT + 36 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT - 12 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT - 12 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 30 * + 90 AS col2
----
2700

query I rowsort
SELECT - + 41 AS col1
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT - 56 * + CAST( NULL AS SIGNED ) - + - NULLIF ( - ( - - 47 ), + + 49 - + 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT - 56 * + CAST ( NULL AS INTEGER ) - + - NULLIF ( - ( - - 47 ), + + 49 - + 27 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT DISTINCT 10 * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT 10 * COUNT ( * )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT ALL + COUNT( 45 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6526
SELECT ALL + COUNT ( 45 ) AS col1
----
1

query I rowsort
SELECT ALL + + 75 * ( 5 ) + - ( + 20 )
----
355

query I rowsort
SELECT ALL - 16 - + 38 AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6529
SELECT DISTINCT + CAST( + 32 AS SIGNED ) DIV + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT + CAST ( + 32 AS INTEGER ) / + + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6530
SELECT 99 DIV COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-6530
SELECT 99 / COUNT ( * )
----
99

query I rowsort
SELECT ALL + 89 * 48
----
4272

onlyif mysql # aggregate syntax: 
query II rowsort label-6532
SELECT ALL + MAX( 28 ) AS col0, 77 * COUNT( * ) AS col1
----
28
77

skipif mysql # not compatible
query II rowsort label-6532
SELECT ALL + MAX ( 28 ) AS col0, 77 * COUNT ( * ) AS col1
----
28
77

query I rowsort
SELECT - 4 col2
----
-4

query I rowsort
SELECT ALL - - 48 AS col2
----
48

query II rowsort
SELECT - + ( - 8 ) + 90 AS col0, + ( - 45 )
----
98
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL - 28 * COALESCE ( - COUNT( * ), - - 10 )
----
28

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - 28 * COALESCE ( - COUNT ( * ), - - 10 )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6537
SELECT ALL 72, + COUNT( * ) AS col1
----
72
1

skipif mysql # not compatible
query II rowsort label-6537
SELECT ALL 72, + COUNT ( * ) AS col1
----
72
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6538
SELECT + CAST( NULL AS SIGNED ) + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6538
SELECT + CAST ( NULL AS INTEGER ) + - 38
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6539
SELECT ALL 7 DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL 7 / 24
----
0

query I rowsort
SELECT ALL + ( - + 33 ) AS col2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT + 62 DIV ( 87 )
----
0

skipif mysql # not compatible
query I rowsort label-6541
SELECT + 62 / ( 87 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ( + - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6542
SELECT ( + - COUNT ( * ) ) col2
----
-1

query II rowsort
SELECT + 81, 69 AS col1
----
81
69

query I rowsort
SELECT + ( + - 6 ) AS col0
----
-6

query I rowsort
SELECT ALL 82 col1
----
82

query I rowsort
SELECT + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL + ( - NULLIF ( - ( - 42 ), + COUNT( * ) ) ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + ( - NULLIF ( - ( - 42 ), + COUNT ( * ) ) ) AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6548
SELECT DISTINCT CAST( - 69 AS SIGNED ) DIV + 8 - + - COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT CAST ( - 69 AS INTEGER ) / + 8 - + - COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT 8 + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-6549
SELECT 8 + + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT - ( + COUNT( * ) ) + - + MIN( DISTINCT + 94 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - ( + COUNT ( * ) ) + - + MIN ( DISTINCT + 94 ) AS col0
----
-95

query II rowsort
SELECT + 17, + 2 * - 59 AS col2
----
17
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL 26 * 18 * + ( + COUNT( * ) )
----
468

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL 26 * 18 * + ( + COUNT ( * ) )
----
468

query I rowsort
SELECT - 53 * - 94 * - - 33 col2
----
164406

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6554
SELECT 17 * 42 * - 11 AS col0, CAST( NULL AS SIGNED ) AS col0
----
-7854
NULL

skipif mysql # not compatible
query II rowsort label-6554
SELECT 17 * 42 * - 11 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
-7854
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT - CAST( MIN( DISTINCT - + 30 ) AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-6555
SELECT - CAST ( MIN ( DISTINCT - + 30 ) AS INTEGER )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6556
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + - ( - 23 ) AS col0
----
23

query I rowsort
SELECT ALL + 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT SUM( - 9 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-6559
SELECT SUM ( - 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT MAX( + - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6560
SELECT MAX ( + - 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT DISTINCT 42 * - - ( - ( - + 3 ) )
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT - CAST( - 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-6563
SELECT - CAST ( - 63 AS INTEGER )
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6564
SELECT 48, 88 DIV + - COUNT( * ) AS col2
----
48
-88

skipif mysql # not compatible
query II rowsort label-6564
SELECT 48, 88 / + - COUNT ( * ) AS col2
----
48
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT - COALESCE ( COUNT( * ), COUNT( * ), - + 52 + COUNT( + + 57 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6565
SELECT - COALESCE ( COUNT ( * ), COUNT ( * ), - + 52 + COUNT ( + + 57 ) ) col0
----
-1

query I rowsort
SELECT ALL + ( - 86 ) AS col2
----
-86

query I rowsort
SELECT ALL - 18 AS col1
----
-18

query I rowsort
SELECT DISTINCT - ( + - 63 ) * + 19
----
1197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6569
SELECT + 55 DIV + - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-6569
SELECT + 55 / + - COUNT ( * )
----
-55

query I rowsort
SELECT 36 * - 14 AS col2
----
-504

query I rowsort
SELECT ALL ( - + 69 ) * - - 30 col0
----
-2070

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6572
SELECT ALL + CAST( NULL AS SIGNED ) * - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL + CAST ( NULL AS INTEGER ) * - 80 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6573
SELECT CAST( NULL AS SIGNED ) - - - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-6573
SELECT CAST ( NULL AS INTEGER ) - - - 33
----
NULL

query I rowsort
SELECT - ( ( + 66 ) ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT COUNT( * ) + - 73
----
-72

skipif mysql # not compatible
query I rowsort label-6575
SELECT COUNT ( * ) + - 73
----
-72

query I rowsort
SELECT DISTINCT ( - ( 59 ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT + MAX( ALL - - 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6577
SELECT + MAX ( ALL - - 58 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + 36 * - COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6578
SELECT + 36 * - COUNT ( * ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT + 13 - - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-6579
SELECT + 13 - - - COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT - + SUM( - - 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-6580
SELECT - + SUM ( - - 99 ) AS col0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6581
SELECT ALL ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) col1
----
-1

query I rowsort
SELECT - - 85
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6584
SELECT CAST( - 70 AS SIGNED ) AS col1, ( + CAST( NULL AS SIGNED ) ) AS col1
----
-70
NULL

skipif mysql # not compatible
query II rowsort label-6584
SELECT CAST ( - 70 AS INTEGER ) AS col1, ( + CAST ( NULL AS INTEGER ) ) AS col1
----
-70
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ( - ( + COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6585
SELECT ( - ( + COUNT ( * ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT + 25 + + 88 + + COUNT( * ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-6586
SELECT + 25 + + 88 + + COUNT ( * ) AS col2
----
114

query I rowsort
SELECT - 42 * - - 54 + - - 7
----
-2261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6588
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + + 73 + - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6589
SELECT + + 73 + - COUNT ( * )
----
72

query I rowsort
SELECT 37 + 25
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT 52 DIV ( - - 93 )
----
0

skipif mysql # not compatible
query I rowsort label-6591
SELECT 52 / ( - - 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT MIN( DISTINCT - 88 ) + 93
----
5

skipif mysql # not compatible
query I rowsort label-6592
SELECT MIN ( DISTINCT - 88 ) + 93
----
5

query I rowsort
SELECT + + 92 col0
----
92

query I rowsort
SELECT - + 40
----
-40

query II rowsort
SELECT ALL 14 AS col0, 28
----
14
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6596
SELECT ALL - COUNT( * ) AS col0, 96 AS col2
----
-1
96

skipif mysql # not compatible
query II rowsort label-6596
SELECT ALL - COUNT ( * ) AS col0, 96 AS col2
----
-1
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6597
SELECT - COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6597
SELECT - COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 22 AS col1, - ( 6 ) col1
----
22
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT - MIN( - - 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-6599
SELECT - MIN ( - - 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT + COUNT( * ) + + COALESCE ( 38, - 91 )
----
39

skipif mysql # not compatible
query I rowsort label-6600
SELECT + COUNT ( * ) + + COALESCE ( 38, - 91 )
----
39

query I rowsort
SELECT DISTINCT + 3 AS col0
----
3

query I rowsort
SELECT ALL + + 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT ALL + MIN( + - 10 ) * + ( - 83 )
----
830

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL + MIN ( + - 10 ) * + ( - 83 )
----
830

query I rowsort
SELECT 98 col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT - 20 * COUNT( * )
----
-20

skipif mysql # not compatible
query I rowsort label-6605
SELECT - 20 * COUNT ( * )
----
-20

query I rowsort
SELECT - ( - + 5 ) col1
----
5

query I rowsort
SELECT - 7 + + 76 - 63 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT + COUNT( * ) * + 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-6608
SELECT + COUNT ( * ) * + 94 + + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6609
SELECT DISTINCT - 38 DIV - + 62 - - + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT - 38 / - + 62 - - + COUNT ( * ) col0
----
1

query I rowsort
SELECT + ( - 12 ) AS col2
----
-12

query I rowsort
SELECT + + 92 AS col1
----
92

query I rowsort
SELECT DISTINCT - + 45 AS col0
----
-45

query I rowsort
SELECT 72 + + ( + + 36 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL - - ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL - - ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT + 48 col2
----
48

query I rowsort
SELECT ALL 56 + 31 AS col1
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6617
SELECT ALL - COUNT( * ) AS col1, 82 AS col2
----
-1
82

skipif mysql # not compatible
query II rowsort label-6617
SELECT ALL - COUNT ( * ) AS col1, 82 AS col2
----
-1
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6618
SELECT 12 AS col0, COUNT( * ) + 61 + + 89 AS col0
----
12
151

skipif mysql # not compatible
query II rowsort label-6618
SELECT 12 AS col0, COUNT ( * ) + 61 + + 89 AS col0
----
12
151

query I rowsort
SELECT + + 6 AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT + 71 * - COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-6620
SELECT + 71 * - COUNT ( * ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT SUM( ALL + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-6621
SELECT SUM ( ALL + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT - 0 + - - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6622
SELECT - 0 + - - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL - ( MIN( DISTINCT 71 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL - ( MIN ( DISTINCT 71 ) )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-6624
SELECT DISTINCT COUNT( * ) AS col1, + 72 col0
----
1
72

skipif mysql # not compatible
query II rowsort label-6624
SELECT DISTINCT COUNT ( * ) AS col1, + 72 col0
----
1
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6625
SELECT - 32, + ( - ( - + COUNT( * ) ) ) DIV 89 col0
----
-32
0

skipif mysql # not compatible
query II rowsort label-6625
SELECT - 32, + ( - ( - + COUNT ( * ) ) ) / 89 col0
----
-32
0

query I rowsort
SELECT ALL + 16 col2
----
16

query I rowsort
SELECT DISTINCT 42 AS col2
----
42

query I rowsort
SELECT - - 90 col0
----
90

query I rowsort
SELECT DISTINCT + 64 AS col2
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6630
SELECT - ( ( + + CAST( NULL AS DECIMAL ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT - ( ( + + CAST ( NULL AS REAL ) ) ) col0
----
NULL

query I rowsort
SELECT DISTINCT 45 AS col2
----
45

query I rowsort
SELECT - 88 col1
----
-88

query I rowsort
SELECT ALL - 56 + - 5
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL COUNT( * ) * - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL COUNT ( * ) * - COUNT ( * ) col0
----
-1

query I rowsort
SELECT ALL + 20 + - 38 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT ALL - MIN( + + ( - 75 ) ) col0
----
75

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - MIN ( + + ( - 75 ) ) col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6637
SELECT 90 DIV - ( ( 31 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-6637
SELECT 90 / - ( ( 31 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT - COUNT( * ) - + + 3
----
-4

skipif mysql # not compatible
query I rowsort label-6638
SELECT - COUNT ( * ) - + + 3
----
-4

query I rowsort
SELECT DISTINCT - + 72 * 6 AS col1
----
-432

query I rowsort
SELECT - - 68 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT + COUNT( DISTINCT - 86 )
----
1

skipif mysql # not compatible
query I rowsort label-6641
SELECT + COUNT ( DISTINCT - 86 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT ALL - COUNT( * ) * - + 53 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-6642
SELECT ALL - COUNT ( * ) * - + 53 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT - + ( - 78 ) + + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-6643
SELECT - + ( - 78 ) + + COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6644
SELECT DISTINCT - + 27 * + + SUM( + 58 )
----
-1566

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT - + 27 * + + SUM ( + 58 )
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT ( + + COUNT( + ( + ( + 2 ) ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT ( + + COUNT ( + ( + ( + 2 ) ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT ALL + COUNT( * ) + 49
----
50

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL + COUNT ( * ) + 49
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT + NULLIF ( - 51, - COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-6647
SELECT + NULLIF ( - 51, - COUNT ( * ) )
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6648
SELECT DISTINCT - 41 col1, 87 + + - ( + 92 ) * + COUNT( * ) AS col1
----
-41
-5

skipif mysql # not compatible
query II rowsort label-6648
SELECT DISTINCT - 41 col1, 87 + + - ( + 92 ) * + COUNT ( * ) AS col1
----
-41
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT + COUNT( * ) * 7
----
7

skipif mysql # not compatible
query I rowsort label-6649
SELECT + COUNT ( * ) * 7
----
7

query I rowsort
SELECT ALL 66 AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT 24 * + CAST( + 10 AS SIGNED )
----
240

skipif mysql # not compatible
query I rowsort label-6651
SELECT 24 * + CAST ( + 10 AS INTEGER )
----
240

query I rowsort
SELECT ALL - + 84 col0
----
-84

query I rowsort
SELECT DISTINCT - 17 AS col2
----
-17

query I rowsort
SELECT ALL - - 78 AS col2
----
78

query I rowsort
SELECT ALL - - 17 AS col2
----
17

query I rowsort
SELECT DISTINCT 15 AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6657
SELECT - COUNT( * ) + + - COUNT( + 28 ), 3 AS col2
----
-2
3

skipif mysql # not compatible
query II rowsort label-6657
SELECT - COUNT ( * ) + + - COUNT ( + 28 ), 3 AS col2
----
-2
3

query I rowsort
SELECT - 88 * - + 42
----
3696

query I rowsort
SELECT DISTINCT + + 24 col2
----
24

query I rowsort
SELECT DISTINCT ( + 60 )
----
60

query I rowsort
SELECT DISTINCT ( + 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT + SUM( - 94 ) + - 78 AS col2
----
-172

skipif mysql # not compatible
query I rowsort label-6662
SELECT + SUM ( - 94 ) + - 78 AS col2
----
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT COUNT( * ) * - 80 * 44
----
-3520

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT COUNT ( * ) * - 80 * 44
----
-3520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6664
SELECT + 29 DIV + ( - COUNT( * ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6664
SELECT + 29 / + ( - COUNT ( * ) ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT ALL 10 DIV - + 98
----
0

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL 10 / - + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT ALL + + COALESCE ( + 21, - ( - COUNT( * ) ), - 61 )
----
21

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL + + COALESCE ( + 21, - ( - COUNT ( * ) ), - 61 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6667
SELECT + + MIN( + ( 33 ) )
----
33

skipif mysql # not compatible
query I rowsort label-6667
SELECT + + MIN ( + ( 33 ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT 16 + + COUNT( * ) + + - COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-6668
SELECT 16 + + COUNT ( * ) + + - COUNT ( * )
----
16

query I rowsort
SELECT 36 col1
----
36

query I rowsort
SELECT ALL - - 62
----
62

query I rowsort
SELECT ALL 79 + + 62 AS col1
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT ALL - CAST( + - 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - CAST ( + - 26 AS INTEGER ) AS col2
----
26

query I rowsort
SELECT ALL - + 61 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT - 0 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT - 0 + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL - 9 + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - 9 + - COUNT ( * )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6676
SELECT 51 DIV - + 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6676
SELECT 51 / - + 91 AS col0
----
0

query I rowsort
SELECT + - 43 AS col0
----
-43

query I rowsort
SELECT DISTINCT - ( + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL COUNT( * ) * + 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL COUNT ( * ) * + 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6680
SELECT ALL 63 col0, COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-6680
SELECT ALL 63 col0, COUNT ( * )
----
63
1

query I rowsort
SELECT 66 + - + 21
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT ALL MIN( ALL - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL MIN ( ALL - 36 )
----
-36

query I rowsort
SELECT ALL - 22 * - + 29
----
638

query I rowsort
SELECT DISTINCT + 11 + 99
----
110

query I rowsort
SELECT ALL - + 95 col2
----
-95

query I rowsort
SELECT + + 22 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT COUNT( - COALESCE ( + + 92, - 24 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6687
SELECT COUNT ( - COALESCE ( + + 92, - 24 ) )
----
1

query I rowsort
SELECT + 93 AS col1
----
93

query I rowsort
SELECT + COALESCE ( - 40, + + ( - 86 ) )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT + COUNT( * ) * + 90 * - - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6690
SELECT + COUNT ( * ) * + 90 * - - 0 AS col0
----
0

query I rowsort
SELECT DISTINCT 21 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT - + ( 53 ) * CAST( - COUNT( * ) AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-6692
SELECT - + ( 53 ) * CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT - COUNT( * ) * - 35 AS col1
----
35

skipif mysql # not compatible
query I rowsort label-6693
SELECT - COUNT ( * ) * - 35 AS col1
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6694
SELECT DISTINCT 47 DIV 22 * - + 1 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT 47 / 22 * - + 1 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT ALL + + MIN( + + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + + MIN ( + + 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6696
SELECT ALL + CAST( + ( - 72 ) AS SIGNED ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL + CAST ( + ( - 72 ) AS INTEGER ) col1
----
-72

query I rowsort
SELECT ( - 73 )
----
-73

query I rowsort
SELECT ( - 59 ) col2
----
-59

query I rowsort
SELECT ( - + 42 )
----
-42

query II rowsort
SELECT - 0 + + - 24 - - + 37 AS col0, 14
----
13
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT COALESCE ( - 1, - 91 + - + COUNT( * ), - + 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-6701
SELECT COALESCE ( - 1, - 91 + - + COUNT ( * ), - + 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT + 82 * + ( + + 24 ) * - COUNT( * )
----
-1968

skipif mysql # not compatible
query I rowsort label-6702
SELECT + 82 * + ( + + 24 ) * - COUNT ( * )
----
-1968

query I rowsort
SELECT + + 22 + - 10 AS col2
----
12

query I rowsort
SELECT ALL + 62 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6705
SELECT ALL - CAST( NULL AS SIGNED ), + 78 col1
----
NULL
78

skipif mysql # not compatible
query II rowsort label-6705
SELECT ALL - CAST ( NULL AS INTEGER ), + 78 col1
----
NULL
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL + NULLIF ( 44, - - COUNT( * ) )
----
44

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + NULLIF ( 44, - - COUNT ( * ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT ALL - COALESCE ( + CAST( NULL AS SIGNED ), - - 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - COALESCE ( + CAST ( NULL AS INTEGER ), - - 50 ) AS col2
----
-50

query I rowsort
SELECT DISTINCT - 98 * - + 57
----
5586

query I rowsort
SELECT ALL ( - 35 )
----
-35

query I rowsort
SELECT ALL 4 + + - 95
----
-91

query I rowsort
SELECT DISTINCT - 46 col1
----
-46

query I rowsort
SELECT ALL + 39 - - 48 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT ALL + 49 * - COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL + 49 * - COUNT ( * ) AS col2
----
-49

query I rowsort
SELECT ALL + 77 * 12
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT - MAX( + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6715
SELECT - MAX ( + 49 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6716
SELECT - COUNT( * ) + + MIN( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT - COUNT ( * ) + + MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ( - 11 ) AS col1
----
-11

query I rowsort
SELECT + ( 5 ) AS col0
----
5

query I rowsort
SELECT DISTINCT + 7 * - 33
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT DISTINCT + - COUNT( * ) * + 23 + + ( COUNT( * ) ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-6720
SELECT DISTINCT + - COUNT ( * ) * + 23 + + ( COUNT ( * ) ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL + SUM( ALL - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + SUM ( ALL - 88 )
----
-88

query I rowsort
SELECT - - 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - COUNT( * ) + ( 19 )
----
18

skipif mysql # not compatible
query I rowsort label-6723
SELECT - COUNT ( * ) + ( 19 )
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6724
SELECT DISTINCT + CAST( NULL AS SIGNED ) - COALESCE ( COUNT( ALL 45 ), - 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - COALESCE ( COUNT ( ALL 45 ), - 18 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ALL COUNT( * ) * + 75
----
75

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL COUNT ( * ) * + 75
----
75

query I rowsort
SELECT + 0 * + + 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT DISTINCT - + ( - ( COUNT( * ) ) ) + 15 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT - + ( - ( COUNT ( * ) ) ) + 15 AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT ALL - + COUNT( * ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL - + COUNT ( * ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT DISTINCT COUNT( * ) - + 69 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT COUNT ( * ) - + 69 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT ALL + 79 * + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + 79 * + COUNT ( * ) AS col2
----
79

query I rowsort
SELECT ALL 61 col2
----
61

query I rowsort
SELECT 94 - 24
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6733
SELECT 51 AS col0, COUNT( * )
----
51
1

skipif mysql # not compatible
query II rowsort label-6733
SELECT 51 AS col0, COUNT ( * )
----
51
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT - 75 DIV + - 37
----
2

skipif mysql # not compatible
query I rowsort label-6734
SELECT - 75 / + - 37
----
2

query I rowsort
SELECT + - ( + 39 ) AS col0
----
-39

query I rowsort
SELECT ( + - 44 )
----
-44

query I rowsort
SELECT - + 59 AS col2
----
-59

query I rowsort
SELECT DISTINCT 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT ALL - COUNT( * ) + - 34 + + COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL - COUNT ( * ) + - 34 + + COUNT ( * )
----
-34

query I rowsort
SELECT ( 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT DISTINCT ( + - ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT ( + - ( + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - COUNT( * ) + - - 42
----
41

skipif mysql # not compatible
query I rowsort label-6742
SELECT - COUNT ( * ) + - - 42
----
41

query I rowsort
SELECT + 59 + + - 48 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL COUNT( * ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL COUNT ( * ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT + 5 - + 50 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6746
SELECT 79 AS col2, - ( + + COALESCE ( + COUNT( * ), + COUNT( * ) ) )
----
79
-1

skipif mysql # not compatible
query II rowsort label-6746
SELECT 79 AS col2, - ( + + COALESCE ( + COUNT ( * ), + COUNT ( * ) ) )
----
79
-1

query I rowsort
SELECT - - 92 + - + 67 - - + 67 AS col1
----
92

query I rowsort
SELECT + - 73 col0
----
-73

query I rowsort
SELECT DISTINCT + 50 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT COUNT( * ) * - 43 col0
----
-43

skipif mysql # not compatible
query I rowsort label-6750
SELECT COUNT ( * ) * - 43 col0
----
-43

query I rowsort
SELECT ALL 82 + - 51 AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT - 0 DIV 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6752
SELECT - 0 / 4 AS col2
----
0

query I rowsort
SELECT DISTINCT - + 19
----
-19

query I rowsort
SELECT 85 col2
----
85

query I rowsort
SELECT - - 69 * - - 58 AS col1
----
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL - COUNT( * ) + + 27
----
26

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL - COUNT ( * ) + + 27
----
26

query I rowsort
SELECT ( ( + 97 ) ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6758
SELECT DISTINCT + ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6759
SELECT - ( CAST( - - 59 AS SIGNED ) ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-6759
SELECT - ( CAST ( - - 59 AS INTEGER ) ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT COUNT( DISTINCT 42 ) + 16 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-6760
SELECT COUNT ( DISTINCT 42 ) + 16 AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6761
SELECT ALL - MIN( ALL - CAST( NULL AS DECIMAL ) ) + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - MIN ( ALL - CAST ( NULL AS REAL ) ) + - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT ALL + 41 * COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL + 41 * COUNT ( * )
----
41

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6763
SELECT CAST( NULL AS SIGNED ) + + - 28 + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6763
SELECT CAST ( NULL AS INTEGER ) + + - 28 + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6764
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT - MAX( + 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-6765
SELECT - MAX ( + 62 )
----
-62

query II rowsort
SELECT 47 AS col1, + 8
----
47
8

onlyif mysql # aggregate syntax: 
query II rowsort label-6767
SELECT ALL COUNT( * ), + 14 col2
----
1
14

skipif mysql # not compatible
query II rowsort label-6767
SELECT ALL COUNT ( * ), + 14 col2
----
1
14

query I rowsort
SELECT + 89 + 8 AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6769
SELECT ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6769
SELECT ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT - 28 + + + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-6770
SELECT - 28 + + + COUNT ( * ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT DISTINCT + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT + + COUNT ( * ) col2
----
1

query I rowsort
SELECT - + 76 - 30 col2
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT DISTINCT - COUNT( * ) + + COUNT( - 50 )
----
0

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT - COUNT ( * ) + + COUNT ( - 50 )
----
0

query I rowsort
SELECT - ( - 37 ) AS col1
----
37

query I rowsort
SELECT ALL + ( - 65 ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL - + COUNT( - + 37 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - + COUNT ( - + 37 ) col2
----
-1

query II rowsort
SELECT ALL - 75 AS col0, + 79 AS col2
----
-75
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT - 54 + + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-6778
SELECT - 54 + + + COUNT ( * )
----
-53

query II rowsort
SELECT DISTINCT - 16 AS col1, 40 AS col2
----
-16
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT - + CAST( + 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-6780
SELECT - + CAST ( + 37 AS INTEGER )
----
-37

query I rowsort
SELECT ALL 36 + 35
----
71

query I rowsort
SELECT DISTINCT + 96 + - + 91
----
5

query I rowsort
SELECT DISTINCT 18
----
18

query I rowsort
SELECT ALL + 79 + - NULLIF ( + 82, + 52 )
----
-3

query I rowsort
SELECT DISTINCT 46 - + 54
----
-8

query I rowsort
SELECT 50 col2
----
50

query I rowsort
SELECT + + 88
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6788
SELECT COUNT( * ) * 44 + + - 7 * 92 DIV 88
----
37

skipif mysql # not compatible
query I rowsort label-6788
SELECT COUNT ( * ) * 44 + + - 7 * 92 / 88
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT - + COALESCE ( + COUNT( * ), 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - + COALESCE ( + COUNT ( * ), 5 )
----
-1

query I rowsort
SELECT + 54 + - 53 AS col0
----
1

query I rowsort
SELECT ALL - + 94
----
-94

query I rowsort
SELECT + + 80 * - 75 + - 94 AS col1
----
-6094

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT + COUNT( * ) - + 1
----
0

skipif mysql # not compatible
query I rowsort label-6793
SELECT + COUNT ( * ) - + 1
----
0

query I rowsort
SELECT ALL 67 col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL + + ( - - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL + + ( - - COUNT ( * ) ) col2
----
1

query I rowsort
SELECT - - 3 * - 50 AS col2
----
-150

query I rowsort
SELECT + 82 col2
----
82

query II rowsort
SELECT DISTINCT + 5 * 22 AS col2, 95
----
110
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL MAX( 61 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL MAX ( 61 ) col2
----
61

query III rowsort
SELECT ALL 92 AS col0, + 73, - 81 AS col0
----
92
73
-81

query I rowsort
SELECT DISTINCT + - 91
----
-91

query I rowsort
SELECT ( - - ( - + 65 ) ) col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT DISTINCT - SUM( ALL + 2 ) * - 61 + 45 AS col2
----
167

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT - SUM ( ALL + 2 ) * - 61 + 45 AS col2
----
167

onlyif mysql # DIV for integer division: 
query I rowsort label-6804
SELECT 55 DIV - + 85 col0
----
0

skipif mysql # not compatible
query I rowsort label-6804
SELECT 55 / - + 85 col0
----
0

query I rowsort
SELECT + 90 - + - 35
----
125

query I rowsort
SELECT DISTINCT - + 31
----
-31

query I rowsort
SELECT 33 AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT DISTINCT CAST( NULL AS SIGNED ) - + - ( + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + - ( + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT DISTINCT - SUM( - + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT - SUM ( - + 95 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT DISTINCT - 17 * - - COUNT( * ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - 17 * - - COUNT ( * ) AS col0
----
-17

query I rowsort
SELECT ALL 71 + + 11
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-6812
SELECT + COUNT( * ) AS col1, - 94 * + + 60
----
1
-5640

skipif mysql # not compatible
query II rowsort label-6812
SELECT + COUNT ( * ) AS col1, - 94 * + + 60
----
1
-5640

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT DISTINCT + 92 * - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6813
SELECT DISTINCT + 92 * - - COUNT ( * )
----
92

query I rowsort
SELECT ALL 84 col1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6815
SELECT + 75 * - CAST( NULL AS SIGNED ) / + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT + 75 * - CAST ( NULL AS INTEGER ) / + + 13
----
NULL

query I rowsort
SELECT + ( 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT + COUNT( * ) * - + 10 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6817
SELECT + COUNT ( * ) * - + 10 AS col2
----
-10

query I rowsort
SELECT DISTINCT + 46 * + 32 AS col2
----
1472

query I rowsort
SELECT + - 7 + + 71 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT ALL + + 3 - + - CAST( + 94 AS SIGNED ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + + 3 - + - CAST ( + 94 AS INTEGER ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT ALL - MIN( 14 ) * - - 52 * + COUNT( * ) AS col2
----
-728

skipif mysql # not compatible
query I rowsort label-6821
SELECT ALL - MIN ( 14 ) * - - 52 * + COUNT ( * ) AS col2
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT + COALESCE ( + COUNT( * ), 15 )
----
1

skipif mysql # not compatible
query I rowsort label-6822
SELECT + COALESCE ( + COUNT ( * ), 15 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT COUNT( DISTINCT - 27 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6823
SELECT COUNT ( DISTINCT - 27 ) col0
----
1

query I rowsort
SELECT DISTINCT + 6 - + + 42 + 57
----
21

query I rowsort
SELECT - ( - - 44 ) - - - 26
----
-70

query I rowsort
SELECT ALL 93 * 95 AS col2
----
8835

query I rowsort
SELECT ALL - 13 AS col1
----
-13

query I rowsort
SELECT ALL - 21 AS col1
----
-21

query I rowsort
SELECT DISTINCT - 55 - - + COALESCE ( 48, 84 ) col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6830
SELECT CAST( NULL AS SIGNED ) + - + 53 + + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT CAST ( NULL AS INTEGER ) + - + 53 + + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - + 30 * - 18
----
540

query I rowsort
SELECT + 8 + 66 AS col2
----
74

query I rowsort
SELECT ALL 30 + - 88 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT DISTINCT 24 * + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-6835
SELECT DISTINCT 24 * + + COUNT ( * )
----
24

query I rowsort
SELECT ( - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT + ( - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6837
SELECT + ( - COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT + - 15 AS col2
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT ALL CAST( - 30 AS SIGNED ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL CAST ( - 30 AS INTEGER ) col2
----
-30

query I rowsort
SELECT + 92 * - 56 AS col0
----
-5152

query I rowsort
SELECT DISTINCT + + 52
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6842
SELECT COUNT( * ) * + - 54, COUNT( * ) AS col0
----
-54
1

skipif mysql # not compatible
query II rowsort label-6842
SELECT COUNT ( * ) * + - 54, COUNT ( * ) AS col0
----
-54
1

query I rowsort
SELECT DISTINCT - 99 col2
----
-99

query I rowsort
SELECT ALL - 12 - + 48
----
-60

query I rowsort
SELECT 20 + ( - 24 ) + + 73
----
69

query I rowsort
SELECT ALL 77 + - 96 AS col0
----
-19

query I rowsort
SELECT DISTINCT - - 89 AS col1
----
89

query I rowsort
SELECT DISTINCT - - 16
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6849
SELECT ALL + AVG ( DISTINCT + 24 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL + AVG ( DISTINCT + 24 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL SUM( ALL + + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL SUM ( ALL + + 38 )
----
38

query I rowsort
SELECT DISTINCT 4 AS col1
----
4

query I rowsort
SELECT ALL + 90 col1
----
90

query I rowsort
SELECT ALL + 80 col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6854
SELECT ALL - CAST( NULL AS SIGNED ) * - ( - 90 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( - 90 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6855
SELECT ALL + - COUNT( * ) AS col0, + 98 AS col2
----
-1
98

skipif mysql # not compatible
query II rowsort label-6855
SELECT ALL + - COUNT ( * ) AS col0, + 98 AS col2
----
-1
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT COUNT( ALL + 41 )
----
1

skipif mysql # not compatible
query I rowsort label-6856
SELECT COUNT ( ALL + 41 )
----
1

query I rowsort
SELECT DISTINCT ( + 18 )
----
18

query I rowsort
SELECT ALL ( + + 95 )
----
95

query I rowsort
SELECT - NULLIF ( + 90, + 47 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT - ( + - ( - MIN( 38 ) ) ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-6860
SELECT - ( + - ( - MIN ( 38 ) ) ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT - - 59 * - - 85 * - + COUNT( * ) AS col2
----
-5015

skipif mysql # not compatible
query I rowsort label-6861
SELECT - - 59 * - - 85 * - + COUNT ( * ) AS col2
----
-5015

query I rowsort
SELECT ALL + + 55 col0
----
55

query I rowsort
SELECT ( 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT NULLIF ( + + 6, - COUNT( * ) )
----
6

skipif mysql # not compatible
query I rowsort label-6864
SELECT NULLIF ( + + 6, - COUNT ( * ) )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT 10 + COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6865
SELECT 10 + COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT COUNT( * ) + 18 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6866
SELECT COUNT ( * ) + 18 AS col2
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6867
SELECT - COUNT( * ) AS col0, CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6867
SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL ( + COUNT( * ) ) * 83
----
83

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL ( + COUNT ( * ) ) * 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL - + MIN( 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - + MIN ( 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT + 34 * + ( + - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-6870
SELECT + 34 * + ( + - COUNT ( * ) )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT MIN( + 51 ) + 83 * 69 col0
----
5778

skipif mysql # not compatible
query I rowsort label-6871
SELECT MIN ( + 51 ) + 83 * 69 col0
----
5778

query I rowsort
SELECT ALL 64 col0
----
64

query I rowsort
SELECT ALL 51 col0
----
51

query I rowsort
SELECT + 7 * - + 33
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT MAX( - 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6875
SELECT MAX ( - 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT MAX( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-6876
SELECT MAX ( + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT MIN( + 64 ) col2
----
64

skipif mysql # not compatible
query I rowsort label-6877
SELECT MIN ( + 64 ) col2
----
64

query I rowsort
SELECT - + 3 + 85
----
82

query I rowsort
SELECT - ( + + 67 ) AS col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT DISTINCT + 58 + COALESCE ( + - COALESCE ( - 54, - COUNT( * ) ), - - COUNT( * ) )
----
112

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT + 58 + COALESCE ( + - COALESCE ( - 54, - COUNT ( * ) ), - - COUNT ( * ) )
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT - MAX( - 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-6881
SELECT - MAX ( - 98 ) AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT - - 42 DIV + - 88
----
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT - - 42 / + - 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6883
SELECT ALL + - 77 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL + - 77 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6884
SELECT ALL + COUNT( * ) AS col0, + 9
----
1
9

skipif mysql # not compatible
query II rowsort label-6884
SELECT ALL + COUNT ( * ) AS col0, + 9
----
1
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6885
SELECT 44 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6885
SELECT 44 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - + 47 AS col0
----
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6887
SELECT 58 + + AVG ( DISTINCT - + 54 ) * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT 58 + + AVG ( DISTINCT - + 54 ) * CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT COUNT( * ) * + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6888
SELECT COUNT ( * ) * + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT + + 52
----
52

query I rowsort
SELECT ALL - 3 + 81
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6891
SELECT ALL COUNT( * ) AS col0, + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-6891
SELECT ALL COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT ALL 22 col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT - COUNT( * ) * - 6
----
6

skipif mysql # not compatible
query I rowsort label-6893
SELECT - COUNT ( * ) * - 6
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6894
SELECT ( + - COUNT( * ) ) AS col0, + 15 + - + 55
----
-1
-40

skipif mysql # not compatible
query II rowsort label-6894
SELECT ( + - COUNT ( * ) ) AS col0, + 15 + - + 55
----
-1
-40

query I rowsort
SELECT + - 31
----
-31

query I rowsort
SELECT DISTINCT - ( - 78 )
----
78

query I rowsort
SELECT DISTINCT ( 5 )
----
5

query I rowsort
SELECT - ( - + 3 ) AS col0
----
3

query I rowsort
SELECT - CASE WHEN NOT ( NULL ) NOT BETWEEN NULL AND + 44 THEN 5 END
----
NULL

query I rowsort
SELECT + ( + 29 ) AS col1
----
29

query I rowsort
SELECT 48 * + 54 + + 83 - - + 65
----
2740

query I rowsort
SELECT DISTINCT - 58 * + 5 AS col1
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL + MAX( ALL - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL + MAX ( ALL - 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT ALL 1 * COUNT( * ) * COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL 1 * COUNT ( * ) * COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT DISTINCT + 34 DIV - 9
----
-3

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT + 34 / - 9
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6906
SELECT ALL 98 DIV 42
----
2

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL 98 / 42
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT + MAX( DISTINCT - - CAST( + 18 AS SIGNED ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6907
SELECT + MAX ( DISTINCT - - CAST ( + 18 AS INTEGER ) ) AS col2
----
18

query I rowsort
SELECT DISTINCT + - 94
----
-94

query I rowsort
SELECT + ( + 87 ) * ( + ( + 90 ) ) * + 43
----
336690

query I rowsort
SELECT DISTINCT + 30 * 53 col0
----
1590

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT - + 69 DIV 24
----
-2

skipif mysql # not compatible
query I rowsort label-6911
SELECT - + 69 / 24
----
-2

query I rowsort
SELECT + + 77 AS col1
----
77

query II rowsort
SELECT ALL + 82, 61 col1
----
82
61

query I rowsort
SELECT + 84 * + - 46 + 70 AS col0
----
-3794

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT NULLIF ( - - COUNT( * ), - CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6915
SELECT NULLIF ( - - COUNT ( * ), - CAST ( NULL AS INTEGER ) )
----
1

query I rowsort
SELECT ALL 67 + + ( - + 34 ) AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT DISTINCT - 68 col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT ALL - 20 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL - 20 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 37 col2
----
-37

query I rowsort
SELECT COALESCE ( + - 40, + 0, - 0 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT DISTINCT + 45 + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT + 45 + COUNT ( * )
----
46

query I rowsort
SELECT - - 63 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6924
SELECT - CAST( NULL AS SIGNED ) - + 36 + 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT - CAST ( NULL AS INTEGER ) - + 36 + 12 col1
----
NULL

query I rowsort
SELECT + ( 21 ) col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT ALL 46 * ( - COUNT( * ) ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-6926
SELECT ALL 46 * ( - COUNT ( * ) ) AS col1
----
-46

query II rowsort
SELECT ( - 56 ), 18 AS col0
----
-56
18

query I rowsort
SELECT + ( - - 46 ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6929
SELECT + 16 * + CAST( - 34 AS SIGNED )
----
-544

skipif mysql # not compatible
query I rowsort label-6929
SELECT + 16 * + CAST ( - 34 AS INTEGER )
----
-544

query I rowsort
SELECT - 22 col2
----
-22

query I rowsort
SELECT DISTINCT + 89 * 83 AS col0
----
7387

query I rowsort
SELECT 92 * 33
----
3036

query I rowsort
SELECT ( + + 22 ) + 32 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT MAX( ALL + 26 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6934
SELECT MAX ( ALL + 26 ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT COUNT( * ) * 11 + + 29 col1
----
40

skipif mysql # not compatible
query I rowsort label-6935
SELECT COUNT ( * ) * 11 + + 29 col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6936
SELECT ALL - SUM( DISTINCT 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL - SUM ( DISTINCT 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT + 90 * + - COUNT( * ) col2
----
-90

skipif mysql # not compatible
query I rowsort label-6937
SELECT + 90 * + - COUNT ( * ) col2
----
-90

query I rowsort
SELECT - 82 * - 95
----
7790

query I rowsort
SELECT DISTINCT - ( - - 42 ) AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT DISTINCT - + SUM( - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT - + SUM ( - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT DISTINCT + 69 + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-6941
SELECT DISTINCT + 69 + COUNT ( * ) AS col2
----
70

query I rowsort
SELECT DISTINCT 69 col0
----
69

query I rowsort
SELECT ALL + 62 * - + 69 - - 41 AS col1
----
-4237

query I rowsort
SELECT + - ( 75 ) AS col0
----
-75

query I rowsort
SELECT ALL + - 29 AS col0
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6946
SELECT DISTINCT - COALESCE ( 63, + + 85 ) DIV + COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT - COALESCE ( 63, + + 85 ) / + COUNT ( * ) AS col0
----
-63

query I rowsort
SELECT COALESCE ( - 87, 54 ) AS col2
----
-87

query I rowsort
SELECT DISTINCT + 30 + - 62 col0
----
-32

query I rowsort
SELECT - ( + + 25 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6950
SELECT DISTINCT - COUNT( * ) AS col1, - 56
----
-1
-56

skipif mysql # not compatible
query II rowsort label-6950
SELECT DISTINCT - COUNT ( * ) AS col1, - 56
----
-1
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6951
SELECT DISTINCT - COUNT( * ) * - + CAST( - COUNT( * ) AS SIGNED ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT - COUNT ( * ) * - + CAST ( - COUNT ( * ) AS INTEGER ) / + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT 9 col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6953
SELECT ALL CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + + 97 )
----
NULL

query I rowsort
SELECT ALL 47 + - 46 * 83
----
-3771

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT DISTINCT - + MIN( ALL - 94 ), 32 AS col0
----
94
32

skipif mysql # not compatible
query II rowsort label-6955
SELECT DISTINCT - + MIN ( ALL - 94 ), 32 AS col0
----
94
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6956
SELECT ALL - 49 + - COUNT( * ), + 63 col1
----
-50
63

skipif mysql # not compatible
query II rowsort label-6956
SELECT ALL - 49 + - COUNT ( * ), + 63 col1
----
-50
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6957
SELECT ( + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT ( + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6958
SELECT ALL 25 AS col0, SUM( ALL 64 ) AS col2
----
25
64

skipif mysql # not compatible
query II rowsort label-6958
SELECT ALL 25 AS col0, SUM ( ALL 64 ) AS col2
----
25
64

query I rowsort
SELECT DISTINCT 88 col0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-6960
SELECT COUNT( * ) AS col2, 84 AS col1
----
1
84

skipif mysql # not compatible
query II rowsort label-6960
SELECT COUNT ( * ) AS col2, 84 AS col1
----
1
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT DISTINCT + 1 + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT + 1 + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT + 49 - - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-6962
SELECT + 49 - - COUNT ( * ) AS col0
----
50

query I rowsort
SELECT - - 41
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL - 22 * + + CAST( + + 96 AS SIGNED )
----
-2112

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - 22 * + + CAST ( + + 96 AS INTEGER )
----
-2112

query I rowsort
SELECT DISTINCT + 75 col2
----
75

query I rowsort
SELECT - 75 + - + 53 AS col0
----
-128

query I rowsort
SELECT DISTINCT - ( + 78 ) - - ( - 76 + - 43 )
----
-197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6968
SELECT COUNT( * ) * + CAST( 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-6968
SELECT COUNT ( * ) * + CAST ( 28 AS INTEGER )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT 82 * COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6969
SELECT 82 * COUNT ( * ) AS col0
----
82

query I rowsort
SELECT ALL - 72 col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT ALL COUNT( * ) DIV - 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL COUNT ( * ) / - 69 AS col1
----
0

query I rowsort
SELECT ALL - ( 73 )
----
-73

query I rowsort
SELECT ALL - ( 81 )
----
-81

query I rowsort
SELECT 89 * 34
----
3026

query I rowsort
SELECT 36 + - 98 * 28 AS col2
----
-2708

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT COUNT( DISTINCT 35 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6976
SELECT COUNT ( DISTINCT 35 ) col2
----
1

query I rowsort
SELECT ALL 35 col2
----
35

query I rowsort
SELECT ( + + 26 )
----
26

query I rowsort
SELECT DISTINCT 40 * + 53
----
2120

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + COUNT( * ) * + ( - COUNT( * ) ) - - 85
----
84

skipif mysql # not compatible
query I rowsort label-6980
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) - - 85
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT + COUNT( * ) + 70
----
71

skipif mysql # not compatible
query I rowsort label-6981
SELECT + COUNT ( * ) + 70
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6982
SELECT + COUNT( * ) AS col1, 65
----
1
65

skipif mysql # not compatible
query II rowsort label-6982
SELECT + COUNT ( * ) AS col1, 65
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL + - COUNT( * ) * + 93 col0
----
-93

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL + - COUNT ( * ) * + 93 col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL - + 58 + + + COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL - + 58 + + + COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ALL - COUNT( * ) + 66 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6985
SELECT ALL - COUNT ( * ) + 66 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL - 33 * + ( - COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL - 33 * + ( - COUNT ( * ) )
----
33

query I rowsort
SELECT + + 59 AS col1
----
59

query I rowsort
SELECT + + 48 AS col2
----
48

query I rowsort
SELECT DISTINCT - + 40 AS col1
----
-40

query I rowsort
SELECT 58 * + - 76 - + 75 AS col2
----
-4483

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT DISTINCT - COUNT( * ) * COUNT( DISTINCT - + 93 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT - COUNT ( * ) * COUNT ( DISTINCT - + 93 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT - 52 - - - COUNT( * ) col2
----
-53

skipif mysql # not compatible
query I rowsort label-6992
SELECT - 52 - - - COUNT ( * ) col2
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6993
SELECT DISTINCT 93 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT 93 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 34 * - 68 col2
----
2312

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT ALL MIN( - - 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6995
SELECT ALL MIN ( - - 73 ) AS col2
----
73

query I rowsort
SELECT NULLIF ( - 31, + 76 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT + MAX( 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6997
SELECT + MAX ( 16 ) AS col0
----
16

query I rowsort
SELECT DISTINCT 22 * + 12
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6999
SELECT + ( - - 73 ) * + + COUNT( * ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT + ( - - 73 ) * + + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - ( - - 46 )
----
-46

query I rowsort
SELECT DISTINCT + 0 col1
----
0

query I rowsort
SELECT ALL + 31 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL - COUNT( * ) + - 74 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - COUNT ( * ) + - 74 AS col0
----
-75

query I rowsort
SELECT + - 76 AS col2
----
-76

query I rowsort
SELECT DISTINCT - 12 AS col1
----
-12

query I rowsort
SELECT ALL 66 col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT - SUM( ALL 38 ) col2
----
-38

skipif mysql # not compatible
query I rowsort label-7007
SELECT - SUM ( ALL 38 ) col2
----
-38

query I rowsort
SELECT ALL 31 AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT DISTINCT + SUM( ALL + ( + 22 ) ) - 40
----
-18

skipif mysql # not compatible
query I rowsort label-7009
SELECT DISTINCT + SUM ( ALL + ( + 22 ) ) - 40
----
-18

query I rowsort
SELECT DISTINCT 40 AS col0
----
40

query I rowsort
SELECT DISTINCT - + 30
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT + COUNT( 17 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7012
SELECT + COUNT ( 17 ) AS col2
----
1

query I rowsort
SELECT - ( 55 ) AS col0
----
-55

query I rowsort
SELECT ALL + + 46 + - 69 col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT ALL + 8 DIV - + 55 + + - 40 + + 9 DIV + 19
----
-40

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL + 8 / - + 55 + + - 40 + + 9 / + 19
----
-40

query I rowsort
SELECT ALL + ( + + 78 ) AS col2
----
78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7017
SELECT - CAST( NULL AS DECIMAL ) - - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT - CAST ( NULL AS REAL ) - - - 64
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7018
SELECT - ( - + 24 ), COUNT( * ) AS col2
----
24
1

skipif mysql # not compatible
query II rowsort label-7018
SELECT - ( - + 24 ), COUNT ( * ) AS col2
----
24
1

query I rowsort
SELECT + 3 + - 38
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-7020
SELECT ALL 7 + - 8 DIV 49
----
7

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL 7 + - 8 / 49
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7021
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL - + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7022
SELECT 14 * CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT 14 * CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7023
SELECT ALL - SUM( CAST( 89 AS SIGNED ) )
----
-89

skipif mysql # not compatible
query I rowsort label-7023
SELECT ALL - SUM ( CAST ( 89 AS INTEGER ) )
----
-89

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7024
SELECT - CAST( + CAST( - 29 AS DECIMAL ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-7024
SELECT - CAST ( + CAST ( - 29 AS REAL ) AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT - 22 + + ( + + ( + COUNT( * ) ) )
----
-21

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT - 22 + + ( + + ( + COUNT ( * ) ) )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT ( - 19 ) + + COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-7026
SELECT ( - 19 ) + + COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT DISTINCT - 51 AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7028
SELECT ( + 3 ) + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-7028
SELECT ( + 3 ) + + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT 49 * - - COUNT( * ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7029
SELECT 49 * - - COUNT ( * ) AS col0
----
49

query I rowsort
SELECT - + ( - 70 ) * - 56
----
-3920

query I rowsort
SELECT DISTINCT + 17 col2
----
17

query II rowsort
SELECT ALL 95 AS col0, 49
----
95
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7033
SELECT - + COUNT( ALL - CAST( + - 57 AS SIGNED ) ) AS col2, - 61 AS col2
----
-1
-61

skipif mysql # not compatible
query II rowsort label-7033
SELECT - + COUNT ( ALL - CAST ( + - 57 AS INTEGER ) ) AS col2, - 61 AS col2
----
-1
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT DISTINCT ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT ( + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL 45 * - - 12 AS col1
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT ALL CAST( - 40 AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL CAST ( - 40 AS INTEGER ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL + ( SUM( DISTINCT - 20 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL + ( SUM ( DISTINCT - 20 ) )
----
-20

query I rowsort
SELECT ALL 67 + 34 AS col2
----
101

query I rowsort
SELECT ALL - + 85 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL - - NULLIF ( + 39, - COUNT( * ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - - NULLIF ( + 39, - COUNT ( * ) ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT DISTINCT - - ( MIN( + 51 ) )
----
51

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT - - ( MIN ( + 51 ) )
----
51

query I rowsort
SELECT ALL - + 58
----
-58

query I rowsort
SELECT DISTINCT - 69 col0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7044
SELECT ALL CAST( 13 AS SIGNED ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL CAST ( 13 AS INTEGER ) AS col2
----
13

query II rowsort
SELECT DISTINCT 4 AS col2, - 90 AS col2
----
4
-90

query I rowsort
SELECT ALL + - 29
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT - ( + MAX( - + 96 ) ) col1, + 22 * + 36 AS col2
----
96
792

skipif mysql # not compatible
query II rowsort label-7047
SELECT - ( + MAX ( - + 96 ) ) col1, + 22 * + 36 AS col2
----
96
792

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT ALL + - 70 AS col2, COUNT( * ) - - + 51 col0
----
-70
52

skipif mysql # not compatible
query II rowsort label-7048
SELECT ALL + - 70 AS col2, COUNT ( * ) - - + 51 col0
----
-70
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT - ( + + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7049
SELECT - ( + + COUNT ( * ) ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT DISTINCT - MIN( - - CAST( NULL AS SIGNED ) ) * + 14 * - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT - MIN ( - - CAST ( NULL AS INTEGER ) ) * + 14 * - + 95
----
NULL

query I rowsort
SELECT 52 + 49
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT ALL 69 - - CAST( + 87 AS SIGNED )
----
156

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL 69 - - CAST ( + 87 AS INTEGER )
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7053
SELECT ( + + 26 ) DIV + - COUNT( * ) + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-7053
SELECT ( + + 26 ) / + - COUNT ( * ) + COUNT ( * )
----
-25

query I rowsort
SELECT 67 + - 33 AS col2
----
34

query I rowsort
SELECT ALL + 37 + + 70 col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL - ( - MIN( DISTINCT + 90 ) ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - ( - MIN ( DISTINCT + 90 ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT + 58 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-7057
SELECT + 58 * + COUNT ( * )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + 22 + + - COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7058
SELECT + 22 + + - COUNT ( * ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT - COUNT( * )