sqllogictest
Artifact Content
Not logged in

Artifact 0e8b56cb4edb89fe40c18c348ddcf8b1733a21ee:


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 88 - - 38
----
126

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

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

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

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

query I rowsort
SELECT ALL 33 col1
----
33

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 70 * + 8 - - 30
----
590

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

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT CAST ( NULL AS REAL ) * 98
----
NULL

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

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

query I rowsort
SELECT 22 + + + 40 + + 11
----
73

query I rowsort
SELECT ALL + + 88 * + 85 * - ( + 49 ) AS col2
----
-366520

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-15
SELECT - 62 AS col0, CAST( NULL AS DECIMAL ) AS col1
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-15
SELECT - 62 AS col0, CAST ( NULL AS REAL ) AS col1
----
-62
NULL

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

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

query I rowsort
SELECT + 1 + + - 80 col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT SUM( 63 )
----
63

skipif mysql # not compatible
query I rowsort label-18
SELECT SUM ( 63 )
----
63

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

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

query I rowsort
SELECT ALL COALESCE ( + 11, 21 )
----
11

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 27 + + + 52
----
79

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

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

query I rowsort
SELECT 94 + + 67 AS col0
----
161

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

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

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

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

query I rowsort
SELECT + 88 col1
----
88

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

query I rowsort
SELECT ALL + 41 * - 45 AS col2
----
-1845

query I rowsort
SELECT - 82 * - 19
----
1558

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

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

query I rowsort
SELECT + - 33 + - 11 + - 87
----
-131

query II rowsort
SELECT - 51, - 80 AS col2
----
-51
-80

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

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

query I rowsort
SELECT 82 * 28
----
2296

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

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

query I rowsort
SELECT 37 + 82
----
119

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT 22 DIV 4
----
5

skipif mysql # not compatible
query I rowsort label-47
SELECT 22 / 4
----
5

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-52
SELECT + COUNT( * ) + 46 AS col1, - 40
----
47
-40

skipif mysql # not compatible
query II rowsort label-52
SELECT + COUNT ( * ) + 46 AS col1, - 40
----
47
-40

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT + + 36 DIV + + 86
----
0

skipif mysql # not compatible
query I rowsort label-56
SELECT + + 36 / + + 86
----
0

query I rowsort
SELECT ALL 39 * 55 AS col2
----
2145

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-59
SELECT COALESCE ( + 6, - + CAST( NULL AS SIGNED ) - - - 22 )
----
6

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

query I rowsort
SELECT 76 * + - 32
----
-2432

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

skipif mysql # not compatible
query I rowsort label-61
SELECT MIN ( DISTINCT - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL + 36 * + - NULLIF ( - - 33, + - 30 ) - + COUNT( * ) AS col1
----
-1189

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + 36 * + - NULLIF ( - - 33, + - 30 ) - + COUNT ( * ) AS col1
----
-1189

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

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

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

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

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

query I rowsort
SELECT + 5 * ( - - 15 ) + - - 52 AS col2
----
127

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

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

query I rowsort
SELECT + + 49 * - - 41 * 0 - - + 60
----
60

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-71
SELECT + 19 * + + CAST( - 23 AS SIGNED )
----
-437

skipif mysql # not compatible
query I rowsort label-71
SELECT + 19 * + + CAST ( - 23 AS INTEGER )
----
-437

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

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

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

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

query I rowsort
SELECT - 29 * - 55
----
1595

query II rowsort
SELECT ALL + 69 AS col0, - 20 AS col2
----
69
-20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT DISTINCT MIN( DISTINCT - 80 ) * 96
----
-7680

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT MIN ( DISTINCT - 80 ) * 96
----
-7680

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT + 19 col0, + 55 AS col2
----
19
55

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

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

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

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

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

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

query I rowsort
SELECT + - 64 + 53 AS col0
----
-11

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

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

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

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

query I rowsort
SELECT ALL - 44 + - 2 AS col2
----
-46

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

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

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

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

query I rowsort
SELECT COALESCE ( + 82, - 71 )
----
82

query I rowsort
SELECT ALL - + 76 + - 82 * - 44 AS col0
----
3532

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL - 82 * + MIN( - 63 )
----
5166

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL - 82 * + MIN ( - 63 )
----
5166

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

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

query I rowsort
SELECT DISTINCT + 32 * 65 + - 70
----
2010

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT + 90 * COUNT( * ) + - - 54 + - + ( 18 ) - + 88 * + 36
----
-3042

skipif mysql # not compatible
query I rowsort label-100
SELECT + 90 * COUNT ( * ) + - - 54 + - + ( 18 ) - + 88 * + 36
----
-3042

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT DISTINCT + + 84 + + SUM( DISTINCT + ( + 18 ) ) AS col1
----
102

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT + + 84 + + SUM ( DISTINCT + ( + 18 ) ) AS col1
----
102

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

skipif mysql # not compatible
query I rowsort label-103
SELECT + ( - NULLIF ( COUNT ( * ), + 73 ) ) AS col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-105
SELECT 28 - - COUNT( * ) AS col1, - 16
----
29
-16

skipif mysql # not compatible
query II rowsort label-105
SELECT 28 - - COUNT ( * ) AS col1, - 16
----
29
-16

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

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

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

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

query I rowsort
SELECT DISTINCT - 78 col0
----
-78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT COUNT( * ) - 29 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-110
SELECT COUNT ( * ) - 29 AS col0
----
-28

query I rowsort
SELECT ALL 5 + - 42
----
-37

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

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

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

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

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

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

query I rowsort
SELECT ALL - 26 * - 8 AS col2
----
208

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

query I rowsort
SELECT DISTINCT - 35 * - 64
----
2240

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-122
SELECT - 59 * COUNT( * ) * CAST( + 54 AS SIGNED )
----
-3186

skipif mysql # not compatible
query I rowsort label-122
SELECT - 59 * COUNT ( * ) * CAST ( + 54 AS INTEGER )
----
-3186

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

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

query I rowsort
SELECT - 87 + - 39
----
-126

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

query I rowsort
SELECT + 79 * + 21 * + 28
----
46452

query I rowsort
SELECT + - 30 * - 6
----
180

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

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

query II rowsort
SELECT - 59 AS col2, 30
----
-59
30

query I rowsort
SELECT ALL - 59 * - 24 * - 5 col1
----
-7080

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 56 * - ( 2 ) AS col2
----
-112

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL - 66 * + MAX( DISTINCT - 35 ) AS col2
----
2310

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL - 66 * + MAX ( DISTINCT - 35 ) AS col2
----
2310

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT - COUNT( ALL - 91 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-156
SELECT - COUNT ( ALL - 91 ) col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL MAX ( - - 24 )
----
24

query I rowsort
SELECT + + 64 * - 67
----
-4288

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-163
SELECT + COUNT ( * ) + - + SUM ( DISTINCT + - 96 ) AS col0
----
97

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT ALL ( + + 57 ) DIV + + 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL ( + + 57 ) / + + 52 AS col2
----
1

query I rowsort
SELECT 73 * - + 61
----
-4453

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT ALL 47 + - - MIN( + 95 ) col1
----
142

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 47 + - - MIN ( + 95 ) col1
----
142

query I rowsort
SELECT DISTINCT + 3 - 44 AS col0
----
-41

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

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

query I rowsort
SELECT - - 79 AS col0
----
79

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

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

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

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

query I rowsort
SELECT 53 col1
----
53

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

query I rowsort
SELECT ALL 57 + + 83 AS col0
----
140

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

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

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

skipif mysql # not compatible
query I rowsort label-180
SELECT + - CAST ( NULL AS INTEGER ) * 18 + - 95
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT 73 * - MIN( DISTINCT + - 46 ) AS col1
----
3358

skipif mysql # not compatible
query I rowsort label-182
SELECT 73 * - MIN ( DISTINCT + - 46 ) AS col1
----
3358

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

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

query I rowsort
SELECT 5 + 46
----
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-187
SELECT ALL - COUNT( * ) + - CAST( - + 52 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-187
SELECT ALL - COUNT ( * ) + - CAST ( - + 52 AS INTEGER )
----
51

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

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

query I rowsort
SELECT DISTINCT ( - 91 ) col2
----
-91

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

query I rowsort
SELECT - - 91 * - 34
----
-3094

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-198
SELECT - MAX( 61 ), + 80 col0
----
-61
80

skipif mysql # not compatible
query II rowsort label-198
SELECT - MAX ( 61 ), + 80 col0
----
-61
80

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

query I rowsort
SELECT 58 + 37
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT DISTINCT + 18 - 99 DIV + ( 88 )
----
17

skipif mysql # not compatible
query I rowsort label-201
SELECT DISTINCT + 18 - 99 / + ( 88 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-202
SELECT ALL - 44 DIV + 87 + 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-202
SELECT ALL - 44 / + 87 + 70 col1
----
70

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

onlyif mysql # aggregate syntax: 
query II rowsort label-204
SELECT + COUNT( * ) AS col2, + 40 + - MAX( 1 ) AS col1
----
1
39

skipif mysql # not compatible
query II rowsort label-204
SELECT + COUNT ( * ) AS col2, + 40 + - MAX ( 1 ) AS col1
----
1
39

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

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

query I rowsort
SELECT ALL 70 + 60 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT DISTINCT MIN( - 21 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT MIN ( - 21 ) AS col1
----
-21

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

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

query I rowsort
SELECT + 4 + + 50 AS col2
----
54

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

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

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

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

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

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

query I rowsort
SELECT - 71 * 57 AS col1
----
-4047

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT ALL + 77 DIV + - 46 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + 77 / + - 46 AS col2
----
-1

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-220
SELECT + SUM ( + 68 )
----
68

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

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

query I rowsort
SELECT ALL - 78 * - 15 * 60 AS col1
----
70200

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

query II rowsort
SELECT ( - 14 ), 46 col0
----
-14
46

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-228
SELECT DISTINCT COUNT( + - CAST( - 35 AS SIGNED ) ) col0, - 5 AS col0
----
1
-5

skipif mysql # not compatible
query II rowsort label-228
SELECT DISTINCT COUNT ( + - CAST ( - 35 AS INTEGER ) ) col0, - 5 AS col0
----
1
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT + 35 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-229
SELECT + 35 / - 67
----
0

query I rowsort
SELECT - 34 * 23 AS col1
----
-782

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

query I rowsort
SELECT - 33 * + + 64
----
-2112

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

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL 47 + + 22 - ( 68 ) * COUNT ( * ) col2
----
1

query I rowsort
SELECT 51 + + 0 AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-235
SELECT ALL 75 DIV - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL 75 / - 91 AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT + 60 * + + 64 AS col0
----
3840

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

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

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

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

query I rowsort
SELECT + ( + 61 ) + - 74
----
-13

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT + - CAST( + + 30 AS SIGNED ) + - 9
----
-39

skipif mysql # not compatible
query I rowsort label-244
SELECT + - CAST ( + + 30 AS INTEGER ) + - 9
----
-39

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

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

query II rowsort
SELECT + ( 10 ) AS col2, 4
----
10
4

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT DISTINCT 12 DIV + ( - + 83 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT 12 / + ( - + 83 ) AS col1
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-254
SELECT NULLIF ( + 6, - CAST( NULL AS SIGNED ) ) + + MIN( ALL 76 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-254
SELECT NULLIF ( + 6, - CAST ( NULL AS INTEGER ) ) + + MIN ( ALL 76 ) AS col1
----
82

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

onlyif mysql # DIV for integer division: 
query I rowsort label-256
SELECT + + 67 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-256
SELECT + + 67 / 79
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT ALL + MIN( + 71 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + MIN ( + 71 ) AS col2
----
71

query II rowsort
SELECT + 13 AS col1, 47 AS col2
----
13
47

query I rowsort
SELECT ALL - 7 + + 15
----
8

query I rowsort
SELECT + 68 * - - 40 AS col1
----
2720

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT - 93 DIV - - 5
----
-18

skipif mysql # not compatible
query I rowsort label-265
SELECT - 93 / - - 5
----
-18

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

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

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

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

query II rowsort
SELECT - 38, 22 col2
----
-38
22

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT MIN( DISTINCT - 28 ) + - + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-269
SELECT MIN ( DISTINCT - 28 ) + - + COUNT ( * ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT DISTINCT - COUNT( * ) - 25 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT - COUNT ( * ) - 25 AS col1
----
-26

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-274
SELECT + 16 * CAST( 85 AS SIGNED ) AS col2
----
1360

skipif mysql # not compatible
query I rowsort label-274
SELECT + 16 * CAST ( 85 AS INTEGER ) AS col2
----
1360

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

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

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

query I rowsort
SELECT + + 49 * 79 AS col0
----
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-278
SELECT ALL - ( - SUM( + 50 ) ) * - 14
----
-700

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - ( - SUM ( + 50 ) ) * - 14
----
-700

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 39 + + 92
----
53

query I rowsort
SELECT - 57 * + ( - 19 )
----
1083

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

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT NULLIF ( COUNT ( * ), + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT 23 * 10
----
230

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + 87 AS col0, - 76
----
87
-76

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-299
SELECT + - MAX( ALL 6 ) + 12 - CAST( NULL AS SIGNED ) - - - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT + - MAX ( ALL 6 ) + 12 - CAST ( NULL AS INTEGER ) - - - 27
----
NULL

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

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

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

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

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

query II rowsort
SELECT 63 AS col0, + 54
----
63
54

query I rowsort
SELECT ALL - ( - 64 ) - 64 + + ( - 54 )
----
-54

query I rowsort
SELECT ALL - 67 * - 65
----
4355

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

query II rowsort
SELECT ALL ( - 82 ) col1, - 63
----
-82
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-308
SELECT - 34 DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-308
SELECT - 34 / 45 AS col2
----
0

query I rowsort
SELECT - ( - + 10 ) - + ( - 36 ) AS col1
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT COALESCE ( - MAX( ALL + 7 ), + COUNT( * ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-311
SELECT COALESCE ( - MAX ( ALL + 7 ), + COUNT ( * ) ) AS col2
----
-7

query I rowsort
SELECT - + 69 col0
----
-69

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

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

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

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

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

query I rowsort
SELECT ( + 97 ) * - 32 AS col0
----
-3104

query I rowsort
SELECT + 6 + + - 84
----
-78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT ALL - - 36 DIV + - 24 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - - 36 / + - 24 AS col1
----
-1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-323
SELECT - 39 DIV + + 65
----
0

skipif mysql # not compatible
query I rowsort label-323
SELECT - 39 / + + 65
----
0

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

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL - 1 * + MAX ( ALL + - 55 ) AS col1
----
55

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

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

query I rowsort
SELECT ALL + 92 + - 62 * + - ( - 1 ) + + 12
----
42

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

query I rowsort
SELECT 42 * + 40
----
1680

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

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

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

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

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

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

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

query I rowsort
SELECT + 96 + - 29
----
67

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - 72
----
72

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

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

query I rowsort
SELECT DISTINCT - 48 + 75 AS col2
----
27

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT 76 * + COUNT( * ) - - ( - 29 ) col0
----
47

skipif mysql # not compatible
query I rowsort label-343
SELECT 76 * + COUNT ( * ) - - ( - 29 ) col0
----
47

query I rowsort
SELECT ALL 62 + + 1 AS col0
----
63

query II rowsort
SELECT ALL 87 AS col1, 9 AS col0
----
87
9

onlyif mysql # aggregate syntax: 
query I rowsort label-346
SELECT ALL - 5 + - COUNT( * ) + + 26 * + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-346
SELECT ALL - 5 + - COUNT ( * ) + + 26 * + COUNT ( * )
----
20

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

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

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

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

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

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

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

query I rowsort
SELECT + 84 * - + 12
----
-1008

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

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

query I rowsort
SELECT - 37 * - 72 AS col1
----
2664

query I rowsort
SELECT NULLIF ( + 49, + AVG ( - 48 ) )
----
49

query I rowsort
SELECT - 23 + - + 20
----
-43

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT DISTINCT ( + + COUNT( * ) ) * + 46 + + 20
----
66

skipif mysql # not compatible
query I rowsort label-358
SELECT DISTINCT ( + + COUNT ( * ) ) * + 46 + + 20
----
66

query I rowsort
SELECT - - 48 AS col1
----
48

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-367
SELECT 55 AS col2, COUNT( * ) + 93 col2
----
55
94

skipif mysql # not compatible
query II rowsort label-367
SELECT 55 AS col2, COUNT ( * ) + 93 col2
----
55
94

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

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

query I rowsort
SELECT + COALESCE ( + + 50, - 57 ) AS col2
----
50

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( - 81 ) + - - 16
----
-65

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

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL SUM ( 60 )
----
60

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

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

query I rowsort
SELECT - 68 + - 80
----
-148

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

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

query I rowsort
SELECT - 32 + - + ( + 83 ) AS col2
----
-115

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL CAST( - 22 AS SIGNED ) * - 61
----
1342

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL CAST ( - 22 AS INTEGER ) * - 61
----
1342

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT ALL + + SUM( - 60 ) * + 25 AS col1
----
-1500

skipif mysql # not compatible
query I rowsort label-386
SELECT ALL + + SUM ( - 60 ) * + 25 AS col1
----
-1500

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

query I rowsort
SELECT ALL - - 7 col0
----
7

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-392
SELECT ALL 96 + - ( + 1 ) AS col2, COALESCE ( - 53, CAST( NULL AS SIGNED ) + - 86 )
----
95
-53

skipif mysql # not compatible
query II rowsort label-392
SELECT ALL 96 + - ( + 1 ) AS col2, COALESCE ( - 53, CAST ( NULL AS INTEGER ) + - 86 )
----
95
-53

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-394
SELECT + + ( + ( + - COALESCE ( + 26, + 73 ) ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-394
SELECT + + ( + ( + - COALESCE ( + 26, + 73 ) ) ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 14 * - 21
----
294

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT - 73 DIV + - 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-396
SELECT - 73 / + - 62 AS col1
----
1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-399
SELECT + MIN ( + - 9 )
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL + COALESCE ( - + MAX( DISTINCT 94 ), + 83 )
----
-94

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + COALESCE ( - + MAX ( DISTINCT 94 ), + 83 )
----
-94

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

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

skipif mysql # not compatible
query I rowsort label-403
SELECT - - 70 * + COUNT ( * ) + + 27 AS col1
----
97

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

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

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

query I rowsort
SELECT - + 20
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT - MAX( DISTINCT - 10 ) * 80
----
800

skipif mysql # not compatible
query I rowsort label-407
SELECT - MAX ( DISTINCT - 10 ) * 80
----
800

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT ALL MIN( - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL MIN ( - 27 ) AS col2
----
-27

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-416
SELECT COALESCE ( - ( + CAST( NULL AS SIGNED ) ), 16 ) * 38
----
608

skipif mysql # not compatible
query I rowsort label-416
SELECT COALESCE ( - ( + CAST ( NULL AS INTEGER ) ), 16 ) * 38
----
608

query I rowsort
SELECT + 67 col0
----
67

query I rowsort
SELECT 96 * - + 87 col1
----
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL + MIN( - 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL + MIN ( - 51 ) AS col0
----
-51

query I rowsort
SELECT ALL + 10 * + - 25 AS col1
----
-250

query I rowsort
SELECT ALL + 14 * + - 52 + - 55 AS col0
----
-783

query I rowsort
SELECT - 20 + - + 23
----
-43

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

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

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

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

skipif mysql # not compatible
query I rowsort label-425
SELECT + 34 + - 93 + + 50 * CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

query I rowsort
SELECT - ( 87 ) * - 11 AS col2
----
957

query I rowsort
SELECT ALL + 16 * + ( - ( 41 ) ) AS col2
----
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ( ( + MIN( ALL - + 84 ) ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-430
SELECT ( ( + MIN ( ALL - + 84 ) ) ) AS col0
----
-84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT ALL - CAST( + - 97 AS SIGNED ) * - 21
----
-2037

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL - CAST ( + - 97 AS INTEGER ) * - 21
----
-2037

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-435
SELECT MIN( + + 0 ) - - ( - + 49 ) DIV + ( - - 18 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-435
SELECT MIN ( + + 0 ) - - ( - + 49 ) / + ( - - 18 ) AS col1
----
-2

query I rowsort
SELECT DISTINCT - 74 col1
----
-74

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

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

query I rowsort
SELECT + COALESCE ( - 24, 41 ) AS col0
----
-24

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-443
SELECT - 51 DIV + + 48
----
-1

skipif mysql # not compatible
query I rowsort label-443
SELECT - 51 / + + 48
----
-1

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 67 + 49
----
116

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

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

skipif mysql # not compatible
query I rowsort label-452
SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), + + 37 )
----
NULL

query I rowsort
SELECT DISTINCT - 59 * + 57 AS col2
----
-3363

query II rowsort
SELECT + 61 AS col0, 56
----
61
56

onlyif mysql # aggregate syntax: 
query II rowsort label-455
SELECT DISTINCT - 90 * + - 76 AS col2, + COUNT( * ) AS col0
----
6840
1

skipif mysql # not compatible
query II rowsort label-455
SELECT DISTINCT - 90 * + - 76 AS col2, + COUNT ( * ) AS col0
----
6840
1

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-459
SELECT ALL - 81, + CAST( ( + 80 ) AS SIGNED ) AS col2
----
-81
80

skipif mysql # not compatible
query II rowsort label-459
SELECT ALL - 81, + CAST ( ( + 80 ) AS INTEGER ) AS col2
----
-81
80

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT DISTINCT - 91 DIV 35 * 29 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT - 91 / 35 * 29 AS col1
----
-58

query I rowsort
SELECT ALL + + 62 + - 79 col0
----
-17

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

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT SUM ( DISTINCT - 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-463
SELECT - MIN( - 48 ) + COALESCE ( + ( + 93 ), - - CAST( + 90 AS SIGNED ) ) AS col2
----
141

skipif mysql # not compatible
query I rowsort label-463
SELECT - MIN ( - 48 ) + COALESCE ( + ( + 93 ), - - CAST ( + 90 AS INTEGER ) ) AS col2
----
141

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-465
SELECT DISTINCT - 38 DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT - 38 / - + 64
----
0

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

query I rowsort
SELECT ALL 63 * - 0
----
0

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

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

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

query I rowsort
SELECT DISTINCT 48 - 62
----
-14

query I rowsort
SELECT 43 + 97 AS col0
----
140

query II rowsort
SELECT 24 AS col0, 37
----
24
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-473
SELECT DISTINCT - - 31 + - + CAST( + 11 AS SIGNED ) * - 40 AS col2
----
471

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT - - 31 + - + CAST ( + 11 AS INTEGER ) * - 40 AS col2
----
471

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT - COUNT( * ) - 88 + - + 60 + - 10 AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-475
SELECT - COUNT ( * ) - 88 + - + 60 + - 10 AS col1
----
-159

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

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

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT 57 AS col1, + 73 AS col0
----
57
73

query I rowsort
SELECT + 60 * 94 - + - 35
----
5675

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

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

query I rowsort
SELECT - 74 + + 51 + 48
----
25

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

query I rowsort
SELECT DISTINCT + 45 * 14
----
630

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

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL - + CAST ( - 72 AS INTEGER ) AS col0
----
72

query I rowsort
SELECT 93 - + + 67 + + - 67
----
-41

query I rowsort
SELECT DISTINCT 97 + - 82
----
15

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

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

query I rowsort
SELECT + 59 + - 74
----
-15

query I rowsort
SELECT 3 col0
----
3

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

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

query I rowsort
SELECT ALL 14 * 27 + + 69 AS col0
----
447

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT ALL COUNT( * ) * 60 * - 45 AS col2
----
-2700

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL COUNT ( * ) * 60 * - 45 AS col2
----
-2700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-501
SELECT - + CASE + 8 WHEN + 13 * CAST( NULL AS SIGNED ) THEN + 36 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-501
SELECT - + CASE + 8 WHEN + 13 * CAST ( NULL AS INTEGER ) THEN + 36 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 83 + + - 51 AS col2
----
32

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL + MIN( DISTINCT - + 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL + MIN ( DISTINCT - + 82 ) AS col2
----
-82

query I rowsort
SELECT + 16 * - 40 AS col1
----
-640

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

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

query II rowsort
SELECT ALL + 77 col0, 25 AS col0
----
77
25

query I rowsort
SELECT - 20 * + 22
----
-440

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

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

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

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

query I rowsort
SELECT + ( - - 49 ) * - - 52 AS col0
----
2548

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-517
SELECT ALL 26 DIV COUNT( * ) * - 46 AS col2
----
-1196

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL 26 / COUNT ( * ) * - 46 AS col2
----
-1196

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

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT + 41 + + COUNT ( * ) * + COUNT ( * ) AS col0
----
42

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

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

query I rowsort
SELECT ALL + 31 - + 21 + 46
----
56

query I rowsort
SELECT DISTINCT NULLIF ( - 31, - 76 ) col1
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT + 80 + + ( ( COUNT( * ) ) ) col1
----
81

skipif mysql # not compatible
query I rowsort label-523
SELECT + 80 + + ( ( COUNT ( * ) ) ) col1
----
81

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

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

skipif mysql # not compatible
query I rowsort label-525
SELECT + MAX ( + 49 )
----
49

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

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

query I rowsort
SELECT ALL COALESCE ( - 69, + 39 )
----
-69

query I rowsort
SELECT - 71 * 33 col1
----
-2343

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-532
SELECT MAX( + - 9 ) DIV + - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-532
SELECT MAX ( + - 9 ) / + - COUNT ( * ) AS col1
----
9

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT - SUM( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-538
SELECT - SUM ( 0 )
----
0

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

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

query I rowsort
SELECT + - 8 * + 68 AS col2
----
-544

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-541
SELECT + 70 DIV + CAST( - + 51 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-541
SELECT + 70 / + CAST ( - + 51 AS INTEGER )
----
-1

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 30 + - - 64
----
94

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

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

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

skipif mysql # not compatible
query I rowsort label-550
SELECT - + MIN ( - 77 )
----
77

query I rowsort
SELECT ALL 91 * + 81
----
7371

query I rowsort
SELECT 31 * - 46
----
-1426

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

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

query I rowsort
SELECT 70 + 96 AS col2
----
166

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

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

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

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

query I rowsort
SELECT + 81 + - 86
----
-5

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

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

query II rowsort
SELECT ALL 41, 77 AS col0
----
41
77

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-566
SELECT ALL 21 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL 21 / 51
----
0

query I rowsort
SELECT 35 * - 26 AS col1
----
-910

query I rowsort
SELECT 60 * - 75 AS col0
----
-4500

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-570
SELECT ALL + 41 + CAST( - SUM( + 47 ) AS SIGNED ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL + 41 + CAST ( - SUM ( + 47 ) AS INTEGER ) AS col1
----
-6

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

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

query I rowsort
SELECT DISTINCT + NULLIF ( 72, + 51 )
----
72

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

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

query I rowsort
SELECT ALL 93 * - 42
----
-3906

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL + 71 * COUNT( * ) + 25 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-575
SELECT ALL + 71 * COUNT ( * ) + 25 AS col1
----
96

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - 41 + + - 99
----
-140

query I rowsort
SELECT 75 + + 51 * - 55 AS col0
----
-2730

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

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

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

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

query I rowsort
SELECT DISTINCT 14 * + 21
----
294

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

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

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

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

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

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

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

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

query II rowsort
SELECT - 6, - 24 AS col2
----
-6
-24

query II rowsort
SELECT 14 AS col2, 49 AS col1
----
14
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-592
SELECT + + COUNT( ALL - 96 ) DIV + CAST( - COUNT( * ) AS SIGNED )
----
-1

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-596
SELECT + CAST ( NULL AS REAL ) AS col1, COUNT ( ALL - - 20 )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT ALL - 15 * - - COUNT( * ) + - - 9 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL - 15 * - - COUNT ( * ) + - - 9 AS col0
----
-6

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

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

query II rowsort
SELECT - 95 * 49 AS col0, - 92 AS col2
----
-4655
-92

query I rowsort
SELECT - + 85 * 91
----
-7735

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

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

query I rowsort
SELECT + 54 + - ( CASE WHEN ( NULL ) IS NOT NULL THEN NULL ELSE + + 73 END ) + 10 AS col2
----
-9

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

query I rowsort
SELECT ALL - 83 col0
----
-83

query I rowsort
SELECT ALL + ( + + 92 ) - - 37
----
129

query II rowsort
SELECT + 58, + 67 col1
----
58
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT ALL NULLIF ( + - 50, - - 73 + - COUNT( * ) ) + 16 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL NULLIF ( + - 50, - - 73 + - COUNT ( * ) ) + 16 AS col1
----
-34

query I rowsort
SELECT 38 * + 27
----
1026

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-615
SELECT - 19 DIV - - 11 AS col0, - CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-615
SELECT - 19 / - - 11 AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

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

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL + + CAST ( + 25 AS INTEGER ) AS col0
----
25

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 11 * + - 45 AS col2
----
495

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

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

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

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

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

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

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

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

query I rowsort
SELECT 38 - + 98 col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-627
SELECT - 66 * + CAST( NULL AS SIGNED ) - + 17 AS col0, 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-627
SELECT - 66 * + CAST ( NULL AS INTEGER ) - + 17 AS col0, 13 AS col2
----
NULL
13

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT COUNT( * ) + SUM( DISTINCT - + 46 )
----
-45

skipif mysql # not compatible
query I rowsort label-634
SELECT COUNT ( * ) + SUM ( DISTINCT - + 46 )
----
-45

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

skipif mysql # not compatible
query I rowsort label-635
SELECT + SUM ( 80 )
----
80

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

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

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

query I rowsort
SELECT ALL 85 + + - 71 AS col2
----
14

query II rowsort
SELECT + 13 AS col1, 68 col1
----
13
68

query I rowsort
SELECT DISTINCT NULLIF ( - ( 78 ), - - 24 )
----
-78

query I rowsort
SELECT - 92 col1
----
-92

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

skipif mysql # not compatible
query I rowsort label-642
SELECT - NULLIF ( + ( - + 65 ), - COUNT ( * ) ) col0
----
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-645
SELECT ALL + MIN( ALL 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL + MIN ( ALL 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT + + 19 + - COALESCE ( + COUNT( * ), + + 41 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-646
SELECT + + 19 + - COALESCE ( + COUNT ( * ), + + 41 ) AS col1
----
18

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-649
SELECT - 79 / + CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL + - 64 + - COUNT ( * ) AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT DISTINCT 25 DIV + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT 25 / + 71 AS col2
----
0

query I rowsort
SELECT ALL + CASE WHEN NULL NOT BETWEEN NULL AND NULL THEN ( + 62 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT MAX( 86 )
----
86

skipif mysql # not compatible
query I rowsort label-653
SELECT MAX ( 86 )
----
86

query I rowsort
SELECT - + 1 * 85 + 0
----
-85

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

skipif mysql # not compatible
query I rowsort label-655
SELECT + MIN ( - 54 )
----
-54

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-658
SELECT + 70 DIV + + 6 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-658
SELECT + 70 / + + 6 AS col0
----
11

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT DISTINCT 95 * SUM( 46 )
----
4370

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT 95 * SUM ( 46 )
----
4370

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT - MAX( - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-663
SELECT - MAX ( - 28 )
----
28

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT DISTINCT + SUM( DISTINCT 21 ) * - - 16 + - - 15 AS col1
----
351

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT + SUM ( DISTINCT 21 ) * - - 16 + - - 15 AS col1
----
351

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

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT - 48 * MIN( DISTINCT + + 60 ) AS col1
----
-2880

skipif mysql # not compatible
query I rowsort label-668
SELECT - 48 * MIN ( DISTINCT + + 60 ) AS col1
----
-2880

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-673
SELECT - 89 - + COALESCE ( + CAST( NULL AS SIGNED ), - 52 )
----
-37

skipif mysql # not compatible
query I rowsort label-673
SELECT - 89 - + COALESCE ( + CAST ( NULL AS INTEGER ), - 52 )
----
-37

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

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

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

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

query I rowsort
SELECT + 18 * + - 4
----
-72

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

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

query I rowsort
SELECT - 57 - 76 AS col1
----
-133

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

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

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

query I rowsort
SELECT - 2 * + 76 col2
----
-152

query I rowsort
SELECT NULLIF ( - 80, - ( + - 49 ) ) AS col1
----
-80

query I rowsort
SELECT NULLIF ( 55, 66 + - - 64 ) col1
----
55

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT + COUNT( ALL - NULLIF ( 84, - + NULLIF ( 69, + 12 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-687
SELECT + COUNT ( ALL - NULLIF ( 84, - + NULLIF ( 69, + 12 ) ) )
----
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-690
SELECT ( - 47 ) DIV 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-690
SELECT ( - 47 ) / 56 AS col0
----
0

query I rowsort
SELECT ALL - 58 + + 35 + 98
----
75

query I rowsort
SELECT + 29 - - 76
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT - 35 + + SUM( 33 )
----
-2

skipif mysql # not compatible
query I rowsort label-693
SELECT - 35 + + SUM ( 33 )
----
-2

query II rowsort
SELECT + 61 AS col2, 54 + 73
----
61
127

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

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

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

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

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

query II rowsort
SELECT ALL + + ( 43 ), 94 AS col2
----
43
94

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

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

query I rowsort
SELECT - 47 * ( - + 10 ) AS col0
----
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-701
SELECT - COUNT( * ) DIV COUNT( * ), COUNT( * ) + 14 col2
----
-1
15

skipif mysql # not compatible
query II rowsort label-701
SELECT - COUNT ( * ) / COUNT ( * ), COUNT ( * ) + 14 col2
----
-1
15

query I rowsort
SELECT DISTINCT + + 80
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-703
SELECT NULLIF ( - - 3, SUM( ALL - CAST( - 52 AS DECIMAL ) ) ) - 19
----
-16

skipif mysql # not compatible
query I rowsort label-703
SELECT NULLIF ( - - 3, SUM ( ALL - CAST ( - 52 AS REAL ) ) ) - 19
----
-16

query I rowsort
SELECT ALL - 67 + - 25 AS col0
----
-92

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 44 * + 94 + - 26 AS col2
----
4110

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

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

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

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

query I rowsort
SELECT - 65 * - - 85
----
-5525

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT DISTINCT - MAX( DISTINCT + - 3 ) col0
----
3

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT - MAX ( DISTINCT + - 3 ) col0
----
3

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 73 * + - 11
----
-803

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT ALL + 92 DIV ( - 91 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + 92 / ( - 91 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-730
SELECT DISTINCT - COUNT( * ) col2, + COUNT( ALL + 35 )
----
-1
1

skipif mysql # not compatible
query II rowsort label-730
SELECT DISTINCT - COUNT ( * ) col2, + COUNT ( ALL + 35 )
----
-1
1

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

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

query I rowsort
SELECT ALL + 88 * + 58
----
5104

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

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

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

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

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

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

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

query I rowsort
SELECT 5 * - 11
----
-55

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

onlyif mysql # aggregate syntax: 
query II rowsort label-739
SELECT 24 AS col0, + ( COUNT( 78 ) )
----
24
1

skipif mysql # not compatible
query II rowsort label-739
SELECT 24 AS col0, + ( COUNT ( 78 ) )
----
24
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT ALL - MIN( ALL - + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL - MIN ( ALL - + 96 ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT 33 + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-742
SELECT 33 + COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-743
SELECT + 81, - 83 + - COUNT( * ) AS col2
----
81
-84

skipif mysql # not compatible
query II rowsort label-743
SELECT + 81, - 83 + - COUNT ( * ) AS col2
----
81
-84

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

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

query I rowsort
SELECT + 12 * - - ( + 5 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT DISTINCT + MIN( ALL 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT + MIN ( ALL 12 ) AS col2
----
12

query I rowsort
SELECT ALL + 61 * + 20
----
1220

query II rowsort
SELECT + 80, - 56 AS col1
----
80
-56

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

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

query I rowsort
SELECT - - 78 + 41 AS col1
----
119

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

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

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

query I rowsort
SELECT DISTINCT 93 + - ( - + 19 )
----
112

query I rowsort
SELECT 40 + - 64
----
-24

query I rowsort
SELECT - + NULLIF ( 49, + 41 )
----
-49

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

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

query I rowsort
SELECT 68 + 91
----
159

query I rowsort
SELECT DISTINCT - - 49 col0
----
49

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL ( - MIN( ALL - ( 42 ) ) ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL ( - MIN ( ALL - ( 42 ) ) ) AS col0
----
42

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-764
SELECT - 13 col2, CAST ( NULL AS INTEGER ) col0
----
-13
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-765
SELECT COUNT( + CAST( ( 42 ) AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-765
SELECT COUNT ( + CAST ( ( 42 ) AS REAL ) )
----
1

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

query I rowsort
SELECT + 60 + + 12
----
72

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

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

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

skipif mysql # not compatible
query I rowsort label-769
SELECT NULLIF ( + COUNT ( * ), + CAST ( + 34 AS INTEGER ) ) + - - 25 AS col1
----
26

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

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

query I rowsort
SELECT ( - 19 )
----
-19

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-775
SELECT - + 10 - + - CAST( + + AVG ( - 29 ) AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-775
SELECT - + 10 - + - CAST ( + + AVG ( - 29 ) AS INTEGER ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + - 89 * - + ( + MAX( DISTINCT - 67 ) ) AS col1
----
-5963

skipif mysql # not compatible
query I rowsort label-776
SELECT + - 89 * - + ( + MAX ( DISTINCT - 67 ) ) AS col1
----
-5963

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

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

query II rowsort
SELECT DISTINCT + 84 AS col2, ( - 35 )
----
84
-35

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

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

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

skipif mysql # not compatible
query I rowsort label-780
SELECT SUM ( DISTINCT 83 )
----
83

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

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

query I rowsort
SELECT - 57 * + 99 AS col1
----
-5643

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

query I rowsort
SELECT + 77 + - 97
----
-20

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT CAST( + 82 AS SIGNED ) * - 92 - COUNT( * ) AS col2
----
-7545

skipif mysql # not compatible
query I rowsort label-786
SELECT CAST ( + 82 AS INTEGER ) * - 92 - COUNT ( * ) AS col2
----
-7545

onlyif mysql # DIV for integer division: 
query I rowsort label-787
SELECT DISTINCT + + 78 DIV 25 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT + + 78 / 25 AS col0
----
3

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

skipif mysql # not compatible
query I rowsort label-788
SELECT 68 * 40 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-789
SELECT DISTINCT + 77 DIV 28
----
2

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT + 77 / 28
----
2

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-791
SELECT DISTINCT 78 * - MAX( ALL NULLIF ( + CAST( NULL AS DECIMAL ), - 21 - 46 ) ) - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-791
SELECT DISTINCT 78 * - MAX ( ALL NULLIF ( + CAST ( NULL AS REAL ), - 21 - 46 ) ) - + 95
----
NULL

query I rowsort
SELECT + 76 + + 19
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT DISTINCT + ( COALESCE ( - COUNT( * ), COUNT( * ) ) ) + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-793
SELECT DISTINCT + ( COALESCE ( - COUNT ( * ), COUNT ( * ) ) ) + - 66
----
-67

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

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

query I rowsort
SELECT DISTINCT 96 * - 92 AS col1
----
-8832

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

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

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

query I rowsort
SELECT ALL ( 4 ) col0
----
4

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

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

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

skipif mysql # not compatible
query I rowsort label-801
SELECT DISTINCT - COUNT ( * ) / 26 * 31
----
0

query I rowsort
SELECT - - 76 * + 37 AS col2
----
2812

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-805
SELECT ALL - COUNT ( + - 34 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT ALL - COUNT( * ) * + 85 col1
----
-85

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - COUNT ( * ) * + 85 col1
----
-85

query I rowsort
SELECT DISTINCT - - ( + - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT 31, COUNT( * ) AS col2
----
31
1

skipif mysql # not compatible
query II rowsort label-808
SELECT 31, COUNT ( * ) AS col2
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT - + ( - ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT - + ( - ( - COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT + ( + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT - 26 * + + COUNT( * ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT - 26 * + + COUNT ( * ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT MIN( DISTINCT + - 77 ) * 67 AS col1
----
-5159

skipif mysql # not compatible
query I rowsort label-813
SELECT MIN ( DISTINCT + - 77 ) * 67 AS col1
----
-5159

query I rowsort
SELECT ALL - + 87 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT DISTINCT + 55 * COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT + 55 * COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL SUM( - 24 ) * - ( + - 68 )
----
-1632

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL SUM ( - 24 ) * - ( + - 68 )
----
-1632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-817
SELECT + CAST( NULL AS SIGNED ) * - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-817
SELECT + CAST ( NULL AS INTEGER ) * - 11 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT ALL + - 64 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + - 64 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 41 * - 80
----
-3280

query I rowsort
SELECT ALL + ( - 28 )
----
-28

query I rowsort
SELECT DISTINCT + 34 col1
----
34

query I rowsort
SELECT - NULLIF ( - 60, - - ( + + 81 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT DISTINCT - MAX( 30 ) + + + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT - MAX ( 30 ) + + + COUNT ( * )
----
-29

query I rowsort
SELECT - ( + + ( - + 82 ) ) col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-825
SELECT - COUNT( * ) - + 22 DIV + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-825
SELECT - COUNT ( * ) - + 22 / + COUNT ( * )
----
-23

query I rowsort
SELECT ALL - + 63 + - 76 * - 82
----
6169

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT COUNT( - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-827
SELECT COUNT ( - 82 )
----
1

query I rowsort
SELECT ALL + 79 - + 16 - 48 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT ALL SUM( + 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL SUM ( + 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL + MIN( ALL 28 )
----
28

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL + MIN ( ALL 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-831
SELECT - 76 * + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT - 76 * + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT ALL 49 + SUM( DISTINCT - - 86 )
----
135

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL 49 + SUM ( DISTINCT - - 86 )
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-833
SELECT ALL - 87 + 70 - + 88 DIV 79 * - - 56
----
-73

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL - 87 + 70 - + 88 / 79 * - - 56
----
-73

query I rowsort
SELECT 11 + 59 * + NULLIF ( 90, - + 96 )
----
5321

query II rowsort
SELECT 62 AS col1, 30
----
62
30

query I rowsort
SELECT + - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL + 82 * - COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL + 82 * - COUNT ( * )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT + CAST( - 96 AS SIGNED ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-838
SELECT + CAST ( - 96 AS INTEGER ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT - + MAX( DISTINCT + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-839
SELECT - + MAX ( DISTINCT + 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT - 55 * - ( + - COUNT( DISTINCT + 64 ) ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-840
SELECT - 55 * - ( + - COUNT ( DISTINCT + 64 ) ) AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-841
SELECT DISTINCT + COUNT( * ) * + 18 DIV - - MIN( ALL - 88 )
----
0

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT + COUNT ( * ) * + 18 / - - MIN ( ALL - 88 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT COUNT( * ) + + 94 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-842
SELECT COUNT ( * ) + + 94 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT 14 + - COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-843
SELECT 14 + - COUNT ( * ) AS col1
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-844
SELECT DISTINCT + 18 DIV - COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT + 18 / - COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT ALL + - 73 col2
----
-73

query I rowsort
SELECT - + 68 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-847
SELECT - SUM( - + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-847
SELECT - SUM ( - + 93 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-848
SELECT ALL + CAST( NULL AS SIGNED ) + + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL + CAST ( NULL AS INTEGER ) + + 84 AS col1
----
NULL

query I rowsort
SELECT + ( - + 41 ) + + - 75 AS col1
----
-116

query I rowsort
SELECT + + ( - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT + - MAX( 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-851
SELECT + - MAX ( 32 )
----
-32

query I rowsort
SELECT DISTINCT + - 46
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-853
SELECT - ( + - CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-853
SELECT - ( + - CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-854
SELECT CAST( NULL AS SIGNED ) + + + ( - + 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT CAST ( NULL AS INTEGER ) + + + ( - + 60 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT ALL - COUNT( * ) + + + 48 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL - COUNT ( * ) + + + 48 AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-856
SELECT ALL - 60 AS col2, AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-856
SELECT ALL - 60 AS col2, AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) col0
----
-60
NULL

query I rowsort
SELECT + 26 * 37 + + + 31
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT - - COUNT( 96 )
----
1

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - - COUNT ( 96 )
----
1

query I rowsort
SELECT DISTINCT - - 57
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-860
SELECT DISTINCT + + 90 * CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT + + 90 * CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-861
SELECT MAX( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT COUNT( ALL + 12 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-862
SELECT COUNT ( ALL + 12 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT COUNT( ALL - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT COUNT ( ALL - 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-864
SELECT DISTINCT 23 * COUNT( * ) * - + 27 AS col0
----
-621

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT 23 * COUNT ( * ) * - + 27 AS col0
----
-621

query I rowsort
SELECT - ( - - 20 )
----
-20

query I rowsort
SELECT + 11 * + - 13 AS col1
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL COUNT( * ) * + 67
----
67

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL COUNT ( * ) * + 67
----
67

query II rowsort
SELECT ALL + ( 46 ) AS col2, 62
----
46
62

query I rowsort
SELECT DISTINCT ( + ( - 4 ) ) AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT DISTINCT CAST( + 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT CAST ( + 89 AS INTEGER )
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT + - 34 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-871
SELECT + - 34 / - 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT DISTINCT - ( + NULLIF ( - 63, + + 50 ) ) * - - 51 * + - 36 * COUNT( * ) AS col2
----
-115668

skipif mysql # not compatible
query I rowsort label-872
SELECT DISTINCT - ( + NULLIF ( - 63, + + 50 ) ) * - - 51 * + - 36 * COUNT ( * ) AS col2
----
-115668

query I rowsort
SELECT ( + - 67 ) * - - 80 - - - 15 AS col2
----
-5375

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT - COUNT( - 94 )
----
-1

skipif mysql # not compatible
query I rowsort label-874
SELECT - COUNT ( - 94 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT MIN( DISTINCT - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-875
SELECT MIN ( DISTINCT - 59 ) AS col1
----
-59

query I rowsort
SELECT DISTINCT + 7 col1
----
7

query I rowsort
SELECT ALL ( - 2 ) * 87 AS col2
----
-174

query I rowsort
SELECT NULLIF ( - 8, 26 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT SUM( ( - 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-879
SELECT SUM ( ( - 31 ) )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT - - NULLIF ( + + COUNT( * ), - 87 )
----
1

skipif mysql # not compatible
query I rowsort label-880
SELECT - - NULLIF ( + + COUNT ( * ), - 87 )
----
1

query I rowsort
SELECT ALL - ( - - 70 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-882
SELECT - - 96 DIV - COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-882
SELECT - - 96 / - COUNT ( * )
----
-96

query I rowsort
SELECT + + 84 * - 74 AS col1
----
-6216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-884
SELECT ALL - 12 DIV - ( - - COUNT( * ) ), - COUNT( * ) AS col0
----
12
-1

skipif mysql # not compatible
query II rowsort label-884
SELECT ALL - 12 / - ( - - COUNT ( * ) ), - COUNT ( * ) AS col0
----
12
-1

query I rowsort
SELECT ALL 94 + ( + - 86 ) AS col1
----
8

query I rowsort
SELECT ALL - + 86 col2
----
-86

query I rowsort
SELECT ALL + 31 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT ALL - 22 + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-888
SELECT ALL - 22 + COUNT ( * )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT 74 + CAST( - 29 AS SIGNED ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-889
SELECT 74 + CAST ( - 29 AS INTEGER ) AS col2
----
45

query I rowsort
SELECT DISTINCT + 50 + - 63 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT ALL SUM( - 46 ) * - 50 AS col1
----
2300

skipif mysql # not compatible
query I rowsort label-891
SELECT ALL SUM ( - 46 ) * - 50 AS col1
----
2300

query I rowsort
SELECT - - 68 * - 29
----
-1972

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT ALL - 29 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL - 29 / - 32
----
0

query I rowsort
SELECT DISTINCT + + 18 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT DISTINCT + + COUNT( * ) * - + 86 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT + + COUNT ( * ) * - + 86 AS col0
----
-86

query I rowsort
SELECT + 29 - + 88
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-897
SELECT ALL ( + ( - + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL ( + ( - + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT ALL ( + MAX( DISTINCT - 40 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-898
SELECT ALL ( + MAX ( DISTINCT - 40 ) )
----
-40

query I rowsort
SELECT - 86 * 74
----
-6364

query I rowsort
SELECT ALL + - 97 AS col2
----
-97

query I rowsort
SELECT + 6 + 34
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-902
SELECT MAX( ALL 11 ), COUNT( * ) AS col0
----
11
1

skipif mysql # not compatible
query II rowsort label-902
SELECT MAX ( ALL 11 ), COUNT ( * ) AS col0
----
11
1

query I rowsort
SELECT 37 * 49
----
1813

query I rowsort
SELECT 29 * 76 * - 14
----
-30856

query I rowsort
SELECT ALL - 40 * - 66 + - 25 AS col0
----
2615

query I rowsort
SELECT DISTINCT - + 55 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT ALL 88 DIV 70
----
1

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL 88 / 70
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-908
SELECT ALL - COUNT( * ) * + SUM( CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL - COUNT ( * ) * + SUM ( CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - MAX( + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-909
SELECT - MAX ( + 53 )
----
-53

query I rowsort
SELECT ALL 27 * - 93 AS col2
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-911
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT DISTINCT COUNT( * ) * ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT COUNT ( * ) * ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + ( + - 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT DISTINCT ( + - MIN( ALL - 56 ) ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT ( + - MIN ( ALL - 56 ) ) AS col0
----
56

query II rowsort
SELECT 23 AS col1, - 87
----
23
-87

query I rowsort
SELECT ( 94 ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT ALL 94 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL 94 * - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT - - MIN( - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT - - MIN ( - - 56 )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-919
SELECT ALL - COUNT( * ) DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - COUNT ( * ) / + 24
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + - 92
----
NULL

query I rowsort
SELECT ALL + 21 * + 99
----
2079

query I rowsort
SELECT - + ( - + 45 ) AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-923
SELECT ALL - - CAST( NULL AS SIGNED ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT - 84 * + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT - 84 * + COUNT ( * )
----
-84

query I rowsort
SELECT DISTINCT 65 + - - 17
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT + + 69 + - - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-926
SELECT + + 69 + - - COUNT ( * )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT - 64 + + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-927
SELECT - 64 + + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( 49 ) AS col0
----
49

query I rowsort
SELECT ( 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-930
SELECT CAST( - - SUM( ALL + + 23 ) AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-930
SELECT CAST ( - - SUM ( ALL + + 23 ) AS INTEGER ) AS col1
----
23

query I rowsort
SELECT - - ( 76 ) AS col2
----
76

query I rowsort
SELECT DISTINCT + 7 * + 15
----
105

query I rowsort
SELECT 63 * + 40 * + + 26 AS col2
----
65520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-934
SELECT 75 DIV - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-934
SELECT 75 / - - COUNT ( * )
----
75

query I rowsort
SELECT ALL + 55 - + - 95
----
150

query I rowsort
SELECT ALL + 14 * - 12 + 95 col2
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT 33 AS col0, - COUNT( * ) AS col1
----
33
-1

skipif mysql # not compatible
query II rowsort label-937
SELECT 33 AS col0, - COUNT ( * ) AS col1
----
33
-1

query I rowsort
SELECT - ( + 3 ) col2
----
-3

query I rowsort
SELECT - 64 col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT DISTINCT + COUNT( * ) * 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT + COUNT ( * ) * 70 col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-941
SELECT DISTINCT COUNT( * ) * + 72 AS col1, 42 AS col0
----
72
42

skipif mysql # not compatible
query II rowsort label-941
SELECT DISTINCT COUNT ( * ) * + 72 AS col1, 42 AS col0
----
72
42

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT + 28 * + COUNT( DISTINCT + 71 )
----
28

skipif mysql # not compatible
query I rowsort label-942
SELECT + 28 * + COUNT ( DISTINCT + 71 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-943
SELECT + COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-943
SELECT + COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT DISTINCT 81 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT 81 / 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT - 28 + ( - 43 ) + - COUNT( * ) + - 77
----
-149

skipif mysql # not compatible
query I rowsort label-945
SELECT - 28 + ( - 43 ) + - COUNT ( * ) + - 77
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-946
SELECT - CAST( - + 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-946
SELECT - CAST ( - + 24 AS INTEGER )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT - CAST( NULL AS SIGNED ) * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-947
SELECT - CAST ( NULL AS INTEGER ) * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT COUNT( * ) + - + 29 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-948
SELECT COUNT ( * ) + - + 29 AS col2
----
-28

query I rowsort
SELECT ALL - + 9
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT + + SUM( + 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-950
SELECT + + SUM ( + 74 ) AS col1
----
74

query I rowsort
SELECT - 50 * - 46 + - ( - ( - ( + 96 ) ) ) AS col1
----
2204

query I rowsort
SELECT ALL 70 + - 67
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-953
SELECT ALL 63 * + ( - 87 ) * 88 * + CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
-482328

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL 63 * + ( - 87 ) * 88 * + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
-482328

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT COUNT( - - 31 ) * 0 col2
----
0

skipif mysql # not compatible
query I rowsort label-954
SELECT COUNT ( - - 31 ) * 0 col2
----
0

query II rowsort
SELECT 57 AS col0, + 64
----
57
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-956
SELECT DISTINCT + 59 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + 59 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 28 col2
----
28

query I rowsort
SELECT + ( 44 ) * + 5 * + 98
----
21560

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT COALESCE ( + + COUNT( * ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-959
SELECT COALESCE ( + + COUNT ( * ), COUNT ( * ) )
----
1

query II rowsort
SELECT + 84 AS col2, + 97
----
84
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT ALL + CAST( NULL AS SIGNED ) * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 26
----
NULL

query I rowsort
SELECT - - 33 AS col1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-963
SELECT CAST( + 34 AS SIGNED ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-963
SELECT CAST ( + 34 AS INTEGER ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT 91 * ( + ( - COUNT( * ) ) )
----
-91

skipif mysql # not compatible
query I rowsort label-964
SELECT 91 * ( + ( - COUNT ( * ) ) )
----
-91

query I rowsort
SELECT 78 + + 6 + + 13 - - - ( - 39 ) AS col1
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT DISTINCT - SUM( ALL + 36 ) + 33
----
-3

skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT - SUM ( ALL + 36 ) + 33
----
-3

query I rowsort
SELECT ALL - ( 94 ) AS col1
----
-94

query I rowsort
SELECT 7 + - + 49 AS col2
----
-42

query I rowsort
SELECT 96 * + 46
----
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL - COUNT( 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL - COUNT ( 62 )
----
-1

query I rowsort
SELECT ALL - 80 col0
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-972
SELECT COUNT( * ) DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT COUNT ( * ) / - 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT - MIN( ALL + 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-973
SELECT - MIN ( ALL + 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT COUNT( * ) * - - 96 * + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-974
SELECT COUNT ( * ) * - - 96 * + COUNT ( * )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-975
SELECT - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-976
SELECT DISTINCT + CAST( - ( 45 ) AS SIGNED ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-976
SELECT DISTINCT + CAST ( - ( 45 ) AS INTEGER ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-977
SELECT ALL + 56 * - - 54, + COUNT( * ) AS col2
----
3024
1

skipif mysql # not compatible
query II rowsort label-977
SELECT ALL + 56 * - - 54, + COUNT ( * ) AS col2
----
3024
1

query I rowsort
SELECT + 4 + + + 66 AS col1
----
70

query I rowsort
SELECT - 69 + - 13
----
-82

query I rowsort
SELECT DISTINCT + - 81 col0
----
-81

query I rowsort
SELECT ALL - ( + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL ( - + NULLIF ( - 1, MIN( ALL - + ( 43 ) ) ) ) + - 71 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL ( - + NULLIF ( - 1, MIN ( ALL - + ( 43 ) ) ) ) + - 71 AS col0
----
-70

query I rowsort
SELECT 91 - 4 * - 4
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL - MAX( - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL - MAX ( - 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-985
SELECT + + CAST( NULL AS SIGNED ) AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-985
SELECT + + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL MAX( DISTINCT + - 48 ) + + 6
----
-42

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL MAX ( DISTINCT + - 48 ) + + 6
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT ALL SUM( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL SUM ( 3 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-988
SELECT 25 DIV + COUNT( * ) col1
----
25

skipif mysql # not compatible
query I rowsort label-988
SELECT 25 / + COUNT ( * ) col1
----
25

query I rowsort
SELECT ALL + 69 * + 73
----
5037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT - 74 + - 91 + - + COUNT( * ) * - CAST( + 9 AS SIGNED )
----
-156

skipif mysql # not compatible
query I rowsort label-990
SELECT - 74 + - 91 + - + COUNT ( * ) * - CAST ( + 9 AS INTEGER )
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT + 56 - - COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-991
SELECT + 56 - - COUNT ( * ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT - COALESCE ( COUNT( * ), NULLIF ( + 42, + 26 + 10 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-992
SELECT - COALESCE ( COUNT ( * ), NULLIF ( + 42, + 26 + 10 ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT ( + 97 ) AS col1
----
97

query I rowsort
SELECT - 36 col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-995
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-995
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT + - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-996
SELECT + - ( - COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT - COUNT( * ) * - 4
----
4

skipif mysql # not compatible
query I rowsort label-997
SELECT - COUNT ( * ) * - 4
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-998
SELECT ALL ( ( CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-998
SELECT ALL ( ( CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

query I rowsort
SELECT - 44 * + + 31 AS col2
----
-1364

query I rowsort
SELECT DISTINCT ( - - 23 )
----
23

query I rowsort
SELECT + + 99 col2
----
99

query I rowsort
SELECT - 32 * 9 col2
----
-288

query II rowsort
SELECT ( - + 46 ) AS col0, + 56
----
-46
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ( - COUNT( * ) ) * - 93
----
93

skipif mysql # not compatible
query I rowsort label-1004
SELECT ( - COUNT ( * ) ) * - 93
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1005
SELECT ( - 86 ) / - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT ( - 86 ) / - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1006
SELECT COUNT( ALL - 22 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1006
SELECT COUNT ( ALL - 22 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 65 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT ALL - 26 + COUNT( * ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL - 26 + COUNT ( * ) AS col1
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT ALL - ( 24 ) DIV 57
----
0

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL - ( 24 ) / 57
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1010
SELECT ALL 87 DIV + 11
----
7

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL 87 / + 11
----
7

query I rowsort
SELECT DISTINCT - ( + 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT 50 + COUNT( * ) col2
----
51

skipif mysql # not compatible
query I rowsort label-1012
SELECT 50 + COUNT ( * ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT 69 + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-1013
SELECT 69 + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT DISTINCT 64 + - COUNT( * ) * - 28 AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT 64 + - COUNT ( * ) * - 28 AS col1
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1015
SELECT - 10 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT - 10 + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + + 45 * ( 1 ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1017
SELECT DISTINCT + MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT + MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1018
SELECT + CAST( NULL AS DECIMAL ) * CAST( NULL AS SIGNED ) + 52 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT + CAST ( NULL AS REAL ) * CAST ( NULL AS INTEGER ) + 52 * 70
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1019
SELECT - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1019
SELECT - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1020
SELECT DISTINCT - ( - - ( ( - CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - ( - - ( ( - CAST ( NULL AS INTEGER ) ) ) )
----
NULL

query I rowsort
SELECT + + 99 * + 60
----
5940

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1022
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT - CAST ( NULL AS REAL ) col0
----
NULL

query II rowsort
SELECT - 39 AS col1, 16 AS col1
----
-39
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT 35 + - COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-1024
SELECT 35 + - COUNT ( * )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1025
SELECT CAST( + 34 AS SIGNED )
----
34

skipif mysql # not compatible
query I rowsort label-1025
SELECT CAST ( + 34 AS INTEGER )
----
34

query I rowsort
SELECT ALL 89 * + + 91
----
8099

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT 86 - + COUNT( * ) col0
----
85

skipif mysql # not compatible
query I rowsort label-1027
SELECT 86 - + COUNT ( * ) col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL 56 * COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL 56 * COUNT ( * )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT DISTINCT + 99 DIV + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT + 99 / + COUNT ( * )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL - MAX( + + 18 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - MAX ( + + 18 ) AS col1
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1031
SELECT 83 - COUNT( * ), + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) / - 65 AS col0
----
82
NULL

skipif mysql # not compatible
query II rowsort label-1031
SELECT 83 - COUNT ( * ), + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) / - 65 AS col0
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL + COUNT( * ) * + + SUM( - ( 56 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL + COUNT ( * ) * + + SUM ( - ( 56 ) )
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT DISTINCT CAST( - 82 AS SIGNED )
----
-82

skipif mysql # not compatible
query I rowsort label-1033
SELECT DISTINCT CAST ( - 82 AS INTEGER )
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1034
SELECT - COUNT( * ) + - 5 * CAST( + 97 AS SIGNED ) * COUNT( * )
----
-486

skipif mysql # not compatible
query I rowsort label-1034
SELECT - COUNT ( * ) + - 5 * CAST ( + 97 AS INTEGER ) * COUNT ( * )
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT - COUNT( * ) * 75
----
-75

skipif mysql # not compatible
query I rowsort label-1035
SELECT - COUNT ( * ) * 75
----
-75

query I rowsort
SELECT DISTINCT + 2 + - + 46 AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1037
SELECT ALL + + COUNT( ALL + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL + + COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT + - ( + 7 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1038
SELECT + - ( + 7 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ( + + 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT + ( MAX( + ( + + 25 ) ) )
----
25

skipif mysql # not compatible
query I rowsort label-1040
SELECT + ( MAX ( + ( + + 25 ) ) )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1041
SELECT 9 * 74 + - ( + COALESCE ( + COUNT( * ), + MIN( 20 ), + 60 ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT 9 * 74 + - ( + COALESCE ( + COUNT ( * ), + MIN ( 20 ), + 60 ) ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT ALL + 18 * + - COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-1042
SELECT ALL + 18 * + - COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT DISTINCT - 36 * + ( + 99 )
----
-3564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT CAST( 7 AS SIGNED ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1044
SELECT CAST ( 7 AS INTEGER ) AS col1
----
7

query I rowsort
SELECT + COALESCE ( 42, + 58 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1046
SELECT ALL - ( - CAST( - 18 AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL - ( - CAST ( - 18 AS INTEGER ) )
----
-18

query II rowsort
SELECT DISTINCT 20 AS col1, 19 * - + 34 AS col0
----
20
-646

query II rowsort
SELECT + - 9 col0, 67 + + 14
----
-9
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1049
SELECT ALL ( - - ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL ( - - ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT ALL MAX( ALL + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL MAX ( ALL + 94 ) AS col0
----
94

query I rowsort
SELECT DISTINCT + 77 * 19
----
1463

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL COUNT( * ) + + + 2
----
3

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL COUNT ( * ) + + + 2
----
3

query I rowsort
SELECT + 55 + + 64
----
119

query I rowsort
SELECT + + 54 + - 95
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL + COUNT( * ) * + 18
----
18

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL + COUNT ( * ) * + 18
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ALL - 63 * - + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL - 63 * - + COUNT ( * ) AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT - COUNT( * ) + 10 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT - COUNT ( * ) + 10 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT ALL - - COUNT( * ) * + 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL - - COUNT ( * ) * + 13 AS col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1059
SELECT + 55 / - + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1059
SELECT + 55 / - + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT ALL - COUNT( 40 )
----
-1

skipif mysql # not compatible
query I rowsort label-1060
SELECT ALL - COUNT ( 40 )
----
-1

query II rowsort
SELECT ALL - 49 AS col0, 2
----
-49
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT - - MAX( DISTINCT 15 ) - - 50 - + - 82
----
147

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - - MAX ( DISTINCT 15 ) - - 50 - + - 82
----
147

query I rowsort
SELECT DISTINCT - - 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT COUNT( * ) + 46
----
47

skipif mysql # not compatible
query I rowsort label-1065
SELECT COUNT ( * ) + 46
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL 91 * - COUNT( * ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL 91 * - COUNT ( * ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1067
SELECT DISTINCT 20 * + 24 * + - CAST( NULL AS SIGNED ) / - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT 20 * + 24 * + - CAST ( NULL AS INTEGER ) / - 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1068
SELECT 13 - COUNT( * ) AS col2, 39
----
12
39

skipif mysql # not compatible
query II rowsort label-1068
SELECT 13 - COUNT ( * ) AS col2, 39
----
12
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1069
SELECT - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1069
SELECT - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 14 * + 45
----
630

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1071
SELECT - ( - - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1071
SELECT - ( - - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT DISTINCT + ( - COUNT( + + 5 ) ) + + - 3 - - + COUNT( * ) * - ( - + 79 )
----
75

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT + ( - COUNT ( + + 5 ) ) + + - 3 - - + COUNT ( * ) * - ( - + 79 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT COUNT( * ) - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1073
SELECT COUNT ( * ) - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - - 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT COUNT( * ) + + ( + - 70 ) + 28 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1075
SELECT COUNT ( * ) + + ( + - 70 ) + 28 AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1076
SELECT - ( MAX( DISTINCT CAST( NULL AS SIGNED ) ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT - ( MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) ) col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1077
SELECT ALL 32 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL 32 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1078
SELECT DISTINCT - COUNT( * ), - 62 AS col0
----
-1
-62

skipif mysql # not compatible
query II rowsort label-1078
SELECT DISTINCT - COUNT ( * ), - 62 AS col0
----
-1
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT MIN( - 8 ) * - - 79
----
-632

skipif mysql # not compatible
query I rowsort label-1079
SELECT MIN ( - 8 ) * - - 79
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT + COUNT( * ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1080
SELECT + COUNT ( * ) + - - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT DISTINCT ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT SUM( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT SUM ( - 78 )
----
-78

query I rowsort
SELECT ALL + 86 col1
----
86

query I rowsort
SELECT ALL - 76 * 98 + - - 18
----
-7430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1086
SELECT DISTINCT ( - 79 ) + - COUNT( * ) + - - 57 * - ( + - 74 ) * - + MIN( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT ( - 79 ) + - COUNT ( * ) + - - 57 * - ( + - 74 ) * - + MIN ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1087
SELECT - 34 * CAST( NULL AS SIGNED ) * 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT - 34 * CAST ( NULL AS INTEGER ) * 46 AS col1
----
NULL

query I rowsort
SELECT - 51 + NULLIF ( 75, 47 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT - 44 * + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-1089
SELECT - 44 * + COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1090
SELECT ALL - ( - 95 ) DIV + - 5 + - COUNT( * ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1090
SELECT ALL - ( - 95 ) / + - 5 + - COUNT ( * ) AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT + SUM( DISTINCT - ( - 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-1091
SELECT + SUM ( DISTINCT - ( - 24 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT - - NULLIF ( + + COUNT( * ), - 97 + + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1092
SELECT - - NULLIF ( + + COUNT ( * ), - 97 + + - COUNT ( * ) )
----
1

query I rowsort
SELECT 47 + - 60 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT SUM( 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1094
SELECT SUM ( 79 ) AS col0
----
79

query I rowsort
SELECT 23 - + 19
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - SUM( + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-1096
SELECT - SUM ( + 48 ) AS col1
----
-48

query I rowsort
SELECT ALL - 64 * - 53
----
3392

query I rowsort
SELECT - 14 - + ( 25 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT - COUNT( DISTINCT - 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-1099
SELECT - COUNT ( DISTINCT - 68 )
----
-1

query I rowsort
SELECT + ( 85 ) + - 53 AS col0
----
32

query I rowsort
SELECT + 37 * - ( - 6 )
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL COUNT( * ) * + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL COUNT ( * ) * + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT - ( + 49 ) + - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-1103
SELECT - ( + 49 ) + - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL - + COUNT( * ) * - ( 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL - + COUNT ( * ) * - ( 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT + 87 * - 27 + + COUNT( * )
----
-2348

skipif mysql # not compatible
query I rowsort label-1105
SELECT + 87 * - 27 + + COUNT ( * )
----
-2348

query I rowsort
SELECT - 75 + - + 38
----
-113

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT COUNT( * ) AS col1, 42 AS col2
----
1
42

skipif mysql # not compatible
query II rowsort label-1107
SELECT COUNT ( * ) AS col1, 42 AS col2
----
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT ( MAX( ALL - + 77 ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT ( MAX ( ALL - + 77 ) ) AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1109
SELECT - + CAST( NULL AS SIGNED ) * + MIN( ALL + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT - + CAST ( NULL AS INTEGER ) * + MIN ( ALL + 8 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1110
SELECT - + 92 DIV + - COUNT( * ) + 28 * + - 29 * + + 42 col0
----
-34012

skipif mysql # not compatible
query I rowsort label-1110
SELECT - + 92 / + - COUNT ( * ) + 28 * + - 29 * + + 42 col0
----
-34012

query II rowsort
SELECT + 91, - 45 AS col2
----
91
-45

query I rowsort
SELECT 41 * + - 82
----
-3362

query I rowsort
SELECT + ( 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT + - COUNT( - 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-1114
SELECT + - COUNT ( - 5 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT 43 * - - ( + MAX( DISTINCT - 6 ) )
----
-258

skipif mysql # not compatible
query I rowsort label-1115
SELECT 43 * - - ( + MAX ( DISTINCT - 6 ) )
----
-258

query II rowsort
SELECT + 42 AS col2, + 72 AS col1
----
42
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1117
SELECT 64, - MAX( DISTINCT 88 ) AS col0
----
64
-88

skipif mysql # not compatible
query II rowsort label-1117
SELECT 64, - MAX ( DISTINCT 88 ) AS col0
----
64
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT 57 * + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT 57 * + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1119
SELECT CAST( NULL AS DECIMAL ) * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1119
SELECT CAST ( NULL AS REAL ) * + 34
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1120
SELECT ALL - 38 - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL - 38 - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 72, 29 - + 53 AS col2
----
-72
-24

query I rowsort
SELECT ALL + 66 * 77
----
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT - ( + COUNT( * ) ) + 54
----
53

skipif mysql # not compatible
query I rowsort label-1123
SELECT - ( + COUNT ( * ) ) + 54
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT ALL ( - SUM( - - 3 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL ( - SUM ( - - 3 ) )
----
-3

query I rowsort
SELECT ALL - + 99 * + 81 * - 34 AS col2
----
272646

onlyif mysql # aggregate syntax: 
query II rowsort label-1126
SELECT ALL + COUNT( * ), - 88 AS col1
----
1
-88

skipif mysql # not compatible
query II rowsort label-1126
SELECT ALL + COUNT ( * ), - 88 AS col1
----
1
-88

query I rowsort
SELECT DISTINCT - 17 * - 90 AS col0
----
1530

query I rowsort
SELECT ALL + 31 * 58 + 64 AS col1
----
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT COUNT( * ) + 93 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1129
SELECT COUNT ( * ) + 93 AS col0
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1130
SELECT + COUNT( * ) DIV 19 col0
----
0

skipif mysql # not compatible
query I rowsort label-1130
SELECT + COUNT ( * ) / 19 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1131
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1132
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( + ( - - 78 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( + ( - - 78 ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 39 + + + 78 AS col2
----
117

query I rowsort
SELECT DISTINCT 3 + + + 88 - + 36 + + - 88 AS col2
----
-33

query II rowsort
SELECT ALL - - 17, + 58 AS col0
----
17
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT ALL - - COUNT( * ) * - 66
----
-66

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL - - COUNT ( * ) * - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT + 83 - + ( - COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-1137
SELECT + 83 - + ( - COUNT ( * ) )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT ALL 30 + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL 30 + + + COUNT ( * )
----
31

query I rowsort
SELECT DISTINCT + 98 + - - 29
----
127

query I rowsort
SELECT 76 * - 29
----
-2204

onlyif mysql # aggregate syntax: 
query II rowsort label-1141
SELECT DISTINCT + SUM( ALL - 78 ) AS col1, 67 AS col0
----
-78
67

skipif mysql # not compatible
query II rowsort label-1141
SELECT DISTINCT + SUM ( ALL - 78 ) AS col1, 67 AS col0
----
-78
67

query I rowsort
SELECT - - 58 col1
----
58

query I rowsort
SELECT DISTINCT - 1 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT + NULLIF ( + 3, + + AVG ( DISTINCT - - 3 ) + + - COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-1144
SELECT + NULLIF ( + 3, + + AVG ( DISTINCT - - 3 ) + + - COUNT ( * ) )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1145
SELECT DISTINCT - 31 DIV + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT - 31 / + 38 AS col1
----
0

query I rowsort
SELECT ALL + - 62 AS col1
----
-62

query I rowsort
SELECT ALL 86 + + 62 AS col0
----
148

query I rowsort
SELECT ALL - ( 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT 36 * - MIN( + ( - 91 ) )
----
3276

skipif mysql # not compatible
query I rowsort label-1149
SELECT 36 * - MIN ( + ( - 91 ) )
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT MIN( DISTINCT - 76 ) * + COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-1150
SELECT MIN ( DISTINCT - 76 ) * + COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT + COUNT( * ) * - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1151
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT CAST( NULL AS SIGNED ) - - - 56 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1152
SELECT CAST ( NULL AS INTEGER ) - - - 56 + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT + SUM( ALL - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-1153
SELECT + SUM ( ALL - 66 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1154
SELECT DISTINCT - COALESCE ( - - 80, COUNT( * ), + + 6 )
----
-80

skipif mysql # not compatible
query I rowsort label-1154
SELECT DISTINCT - COALESCE ( - - 80, COUNT ( * ), + + 6 )
----
-80

query I rowsort
SELECT DISTINCT 86 - - - 98
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT - MIN( DISTINCT + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-1156
SELECT - MIN ( DISTINCT + 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT + + 70 * + SUM( 49 ) AS col1
----
3430

skipif mysql # not compatible
query I rowsort label-1157
SELECT + + 70 * + SUM ( 49 ) AS col1
----
3430

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT - ( - ( 93 ) ) * + 13 + + COUNT( * ) AS col1
----
1210

skipif mysql # not compatible
query I rowsort label-1158
SELECT - ( - ( 93 ) ) * + 13 + + COUNT ( * ) AS col1
----
1210

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - COUNT( * ) * + + ( 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-1159
SELECT - COUNT ( * ) * + + ( 64 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1160
SELECT DISTINCT + COUNT( * ) DIV + 35 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT + COUNT ( * ) / + 35 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT + + 85 - COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-1161
SELECT + + 85 - COUNT ( * )
----
84

query I rowsort
SELECT DISTINCT + ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT ALL + MIN( 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL + MIN ( 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT 65 * COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1164
SELECT 65 * COUNT ( * ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1165
SELECT ALL - 75 AS col0, COUNT( * ) col0
----
-75
1

skipif mysql # not compatible
query II rowsort label-1165
SELECT ALL - 75 AS col0, COUNT ( * ) col0
----
-75
1

query I rowsort
SELECT + 44 - 69 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - + ( + 65 ) + + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-1167
SELECT - + ( + 65 ) + + COUNT ( * )
----
-64

query I rowsort
SELECT - 97 + + 55 AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1169
SELECT DISTINCT - 47 * + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT - 47 * + COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT + 97 * COUNT( * ) * - ( MIN( - 53 ) ) + + 11
----
5152

skipif mysql # not compatible
query I rowsort label-1170
SELECT + 97 * COUNT ( * ) * - ( MIN ( - 53 ) ) + + 11
----
5152

query I rowsort
SELECT DISTINCT + ( - 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT + MAX( - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-1172
SELECT + MAX ( - 98 )
----
-98

query I rowsort
SELECT ALL + + 7 + 63 AS col0
----
70

query I rowsort
SELECT ALL + ( 68 )
----
68

query I rowsort
SELECT DISTINCT - NULLIF ( + 53, - 25 + 51 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT ( ( COUNT( * ) ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT ( ( COUNT ( * ) ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT 91 * - + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT 91 * - + COUNT ( * ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT + COUNT( ALL 87 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1179
SELECT + COUNT ( ALL 87 ) col1
----
1

query I rowsort
SELECT + - 25 AS col0
----
-25

query I rowsort
SELECT - 47 * + 85
----
-3995

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT - COUNT( * ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1182
SELECT - COUNT ( * ) + - COUNT ( * )
----
-2

query I rowsort
SELECT - 79 + - 83 AS col2
----
-162

query I rowsort
SELECT ALL ( - 85 )
----
-85

query I rowsort
SELECT ALL + - 53 AS col0
----
-53

query I rowsort
SELECT ALL + 47 * 66 * - 13 col2
----
-40326

query I rowsort
SELECT + 56 * - 74
----
-4144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1188
SELECT COUNT( ALL CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT COUNT ( ALL CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT ALL COUNT( - + 72 )
----
1

skipif mysql # not compatible
query I rowsort label-1189
SELECT ALL COUNT ( - + 72 )
----
1

query II rowsort
SELECT - 95 AS col2, + 66 AS col0
----
-95
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT - COUNT( ALL 4 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1191
SELECT - COUNT ( ALL 4 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT COUNT( * ) + - + 54 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-1192
SELECT COUNT ( * ) + - + 54 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT 44 * COUNT( * ) + - MAX( ALL 3 )
----
41

skipif mysql # not compatible
query I rowsort label-1193
SELECT 44 * COUNT ( * ) + - MAX ( ALL 3 )
----
41

query I rowsort
SELECT + ( + 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT + - SUM( 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-1195
SELECT + - SUM ( 18 ) col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT - 25 DIV - 57 + 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1196
SELECT - 25 / - 57 + 50 AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT DISTINCT + ( 6 ) * + + ( - CAST( - 47 AS SIGNED ) ) col0
----
282

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT + ( 6 ) * + + ( - CAST ( - 47 AS INTEGER ) ) col0
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1198
SELECT ALL + COUNT( * ) DIV COUNT( * ) * 2
----
2

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL + COUNT ( * ) / COUNT ( * ) * 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT ALL + COUNT( * ) - 14
----
-13

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL + COUNT ( * ) - 14
----
-13

query I rowsort
SELECT ALL ( + ( - 91 ) ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1201
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT 98 - - - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-1202
SELECT 98 - - - COUNT ( * ) AS col0
----
97

query I rowsort
SELECT DISTINCT - 47 + 0 * - 93
----
-47

query I rowsort
SELECT 99 * 83 AS col0
----
8217

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT + MAX( + 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-1205
SELECT + MAX ( + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT - MAX( + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-1206
SELECT - MAX ( + 28 )
----
-28

query I rowsort
SELECT 7 + - 45 AS col2
----
-38

query I rowsort
SELECT ALL 89 * - + 5 AS col0
----
-445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1209
SELECT DISTINCT + COUNT( * ) + 9 + CAST( NULL AS SIGNED ) / - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT + COUNT ( * ) + 9 + CAST ( NULL AS INTEGER ) / - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT MAX( ALL ( - ( - - 7 ) ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1210
SELECT MAX ( ALL ( - ( - - 7 ) ) ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL - SUM( - + 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - SUM ( - + 55 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-1212
SELECT ALL + COUNT( * ) col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-1212
SELECT ALL + COUNT ( * ) col1, - COUNT ( * )
----
1
-1

query I rowsort
SELECT ALL + 39 - + 88 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT + CAST( NULL AS SIGNED ) / + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT + CAST ( NULL AS INTEGER ) / + - 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT DISTINCT + SUM( DISTINCT 81 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT + SUM ( DISTINCT 81 ) AS col0
----
81

query I rowsort
SELECT ( - + 45 ) AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT ALL - - 67 * + ( 61 ) + + + COUNT( * ) AS col1
----
4088

skipif mysql # not compatible
query I rowsort label-1217
SELECT ALL - - 67 * + ( 61 ) + + + COUNT ( * ) AS col1
----
4088

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1218
SELECT DISTINCT CAST( - - ( - 14 ) AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT CAST ( - - ( - 14 ) AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT 93 + + MAX( 20 )
----
113

skipif mysql # not compatible
query I rowsort label-1219
SELECT 93 + + MAX ( 20 )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT ALL COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1220
SELECT ALL COUNT ( * ) + COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT + ( - 93 ) + 72 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1222
SELECT - COUNT( * ) AS col2, + 75
----
-1
75

skipif mysql # not compatible
query II rowsort label-1222
SELECT - COUNT ( * ) AS col2, + 75
----
-1
75

query I rowsort
SELECT DISTINCT - + 25 AS col2
----
-25

query I rowsort
SELECT ALL + - 0 * 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT - MAX( + 41 ) + - 41 + + 70
----
-12

skipif mysql # not compatible
query I rowsort label-1225
SELECT - MAX ( + 41 ) + - 41 + + 70
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT MIN( - - 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT MIN ( - - 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL 96 + - + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL 96 + - + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT ALL + 9 * COUNT( * ) + + COUNT( * ) col2
----
10

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL + 9 * COUNT ( * ) + + COUNT ( * ) col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1229
SELECT + 78 * - - CAST( NULL AS SIGNED ) + - + 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1229
SELECT + 78 * - - CAST ( NULL AS INTEGER ) + - + 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT - 51 - - - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-1230
SELECT - 51 - - - COUNT ( * )
----
-52

query I rowsort
SELECT ALL COALESCE ( 59, - - 19 )
----
59

query I rowsort
SELECT DISTINCT - 99 + + 81
----
-18

query I rowsort
SELECT DISTINCT - 27 * - 87 AS col0
----
2349

query I rowsort
SELECT DISTINCT ( - 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1235
SELECT DISTINCT + COUNT( * ) - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + 17, 74 AS col1
----
17
74

query I rowsort
SELECT + 59 + 86
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT ( + CAST( 18 AS SIGNED ) ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1238
SELECT ( + CAST ( 18 AS INTEGER ) ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1239
SELECT ALL MIN( DISTINCT CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - 20
----
NULL

query I rowsort
SELECT ALL COALESCE ( 70, + 20 ) - + 70
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1241
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT - - ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT - - ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT DISTINCT - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT DISTINCT - + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT 81 * + 18 - NULLIF ( + 82, COUNT( * ) + 26 ) AS col1
----
1376

skipif mysql # not compatible
query I rowsort label-1244
SELECT 81 * + 18 - NULLIF ( + 82, COUNT ( * ) + 26 ) AS col1
----
1376

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1245
SELECT DISTINCT CAST( NULL AS DECIMAL ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1245
SELECT DISTINCT CAST ( NULL AS REAL ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT COUNT( * ) + + 69
----
70

skipif mysql # not compatible
query I rowsort label-1246
SELECT COUNT ( * ) + + 69
----
70

query I rowsort
SELECT DISTINCT - 47 + - - 60
----
13

query I rowsort
SELECT + - 59 AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1249
SELECT + - NULLIF ( 5, + SUM( ALL + ( 66 ) ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1249
SELECT + - NULLIF ( 5, + SUM ( ALL + ( 66 ) ) ) AS col0
----
-5

query I rowsort
SELECT + 34 * + 81 AS col2
----
2754

query I rowsort
SELECT ALL - + 7 + + 73
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT 26 - + COUNT( * ) * + - 22 - - 81 * 4
----
372

skipif mysql # not compatible
query I rowsort label-1252
SELECT 26 - + COUNT ( * ) * + - 22 - - 81 * 4
----
372

onlyif mysql # aggregate syntax: 
query II rowsort label-1253
SELECT - COUNT( * ) AS col2, - 89 AS col1
----
-1
-89

skipif mysql # not compatible
query II rowsort label-1253
SELECT - COUNT ( * ) AS col2, - 89 AS col1
----
-1
-89

query I rowsort
SELECT ( - 30 ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1255
SELECT ALL CAST( - + 10 AS SIGNED ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL CAST ( - + 10 AS INTEGER ) AS col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1256
SELECT + COUNT( * ) DIV MAX( DISTINCT - 28 ) * + NULLIF ( COUNT( * ), + 83 ) - + ( 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-1256
SELECT + COUNT ( * ) / MAX ( DISTINCT - 28 ) * + NULLIF ( COUNT ( * ), + 83 ) - + ( 78 ) AS col2
----
-78

query I rowsort
SELECT + + 87 col0
----
87

query II rowsort
SELECT ALL + ( - + 8 ) AS col0, 72 AS col0
----
-8
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT DISTINCT - 37 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT - 37 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1260
SELECT - 49 + - 88 DIV - 77 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1260
SELECT - 49 + - 88 / - 77 AS col2
----
-48

query I rowsort
SELECT - + 74 AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1262
SELECT CAST( + - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-1262
SELECT CAST ( + - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT ALL COUNT( * ) * + 43
----
43

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL COUNT ( * ) * + 43
----
43

query I rowsort
SELECT 96 * - 13 AS col1
----
-1248

query I rowsort
SELECT 65 * + 18
----
1170

query I rowsort
SELECT + 53 col0
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1267
SELECT 78 AS col1, COUNT( * ) AS col1
----
78
1

skipif mysql # not compatible
query II rowsort label-1267
SELECT 78 AS col1, COUNT ( * ) AS col1
----
78
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT 39 * + COUNT( * ) * - - 74
----
2886

skipif mysql # not compatible
query I rowsort label-1268
SELECT 39 * + COUNT ( * ) * - - 74
----
2886

onlyif mysql # DIV for integer division: 
query I rowsort label-1269
SELECT - 78 - + 49 DIV 74 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-1269
SELECT - 78 - + 49 / 74 AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT NULLIF ( - CAST( NULL AS SIGNED ), - ( - - COUNT( * ) ) + 42 + 69 - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1270
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), - ( - - COUNT ( * ) ) + 42 + 69 - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + 41, 15 + + - 11 ) AS col0
----
41

query I rowsort
SELECT ALL + 25 col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT + + COUNT( * ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1273
SELECT + + COUNT ( * ) * COUNT ( * )
----
1

query I rowsort
SELECT - - 39 - 40
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT MIN( + 98 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1275
SELECT MIN ( + 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT DISTINCT + COUNT( * ) * 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT + COUNT ( * ) * 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + - COUNT( * ) - - 69 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1277
SELECT + - COUNT ( * ) - - 69 AS col0
----
68

query I rowsort
SELECT - 71 * 44
----
-3124

query I rowsort
SELECT DISTINCT ( - - 88 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1280
SELECT - - SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1280
SELECT - - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT 71 + - - 0 AS col1
----
71

query I rowsort
SELECT DISTINCT 13 - + 56 AS col0
----
-43

query I rowsort
SELECT ALL - ( + 97 )
----
-97

query I rowsort
SELECT 87 * - + 81 AS col0
----
-7047

query I rowsort
SELECT - - ( - 31 ) * 7
----
-217

query I rowsort
SELECT ALL ( - 18 )
----
-18

query I rowsort
SELECT + ( - 36 ) col0
----
-36

query I rowsort
SELECT ALL + 40 + 86 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT DISTINCT - 95 + + MIN( + 64 )
----
-31

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - 95 + + MIN ( + 64 )
----
-31

query I rowsort
SELECT DISTINCT - - 7 AS col2
----
7

query I rowsort
SELECT + + ( - 87 ) AS col0
----
-87

query I rowsort
SELECT - 99 * + ( + - 40 ) AS col1
----
3960

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1293
SELECT 80 DIV - COUNT( * ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-1293
SELECT 80 / - COUNT ( * ) AS col1
----
-80

query I rowsort
SELECT ALL 42 + - - 95 AS col2
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1295
SELECT DISTINCT - - 78 - - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT - - 78 - - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1296
SELECT ALL + CAST( NULL AS SIGNED ) * - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL + CAST ( NULL AS INTEGER ) * - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT ALL - COUNT( ALL + 26 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - COUNT ( ALL + 26 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - + ( - 53 ) AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT ALL - + CAST( - + 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL - + CAST ( - + 7 AS INTEGER ) AS col0
----
7

query I rowsort
SELECT ALL 66 + 57 col0
----
123

query I rowsort
SELECT DISTINCT ( - 17 ) + - 74
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT COUNT( * ) DIV 99 col2
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT COUNT ( * ) / 99 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1303
SELECT DISTINCT SUM( - + 13 ) DIV + 29
----
0

skipif mysql # not compatible
query I rowsort label-1303
SELECT DISTINCT SUM ( - + 13 ) / + 29
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1304
SELECT + 94 DIV + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-1304
SELECT + 94 / + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT + - 47 + + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-1305
SELECT + - 47 + + COUNT ( * )
----
-46

query I rowsort
SELECT DISTINCT + + 6
----
6

query I rowsort
SELECT DISTINCT + + 58 * 24 + 4 AS col0
----
1396

query I rowsort
SELECT - 67 + + - 30 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1309
SELECT DISTINCT + COUNT( * ), + ( - + 13 ) col1
----
1
-13

skipif mysql # not compatible
query II rowsort label-1309
SELECT DISTINCT + COUNT ( * ), + ( - + 13 ) col1
----
1
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1310
SELECT + COUNT( * ) * + + CAST( 53 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1310
SELECT + COUNT ( * ) * + + CAST ( 53 AS INTEGER ) AS col0
----
53

query II rowsort
SELECT - 19 AS col2, - 90 col2
----
-19
-90

query I rowsort
SELECT + 73 * 63 - - 49 AS col2
----
4648

query I rowsort
SELECT 69 * 32
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT - COUNT( ALL - + 66 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1314
SELECT - COUNT ( ALL - + 66 ) AS col1
----
-1

query I rowsort
SELECT + 16 + - 51
----
-35

query I rowsort
SELECT - NULLIF ( 77, - 78 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ALL - SUM( - 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL - SUM ( - 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL - COUNT( * ) + + 18 col2
----
17

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - COUNT ( * ) + + 18 col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL + ( + + 15 ) * - COUNT( * ) - + COUNT( * ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + ( + + 15 ) * - COUNT ( * ) - + COUNT ( * ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1320
SELECT ALL + 53 AS col0, COUNT( * ) + + COUNT( * )
----
53
2

skipif mysql # not compatible
query II rowsort label-1320
SELECT ALL + 53 AS col0, COUNT ( * ) + + COUNT ( * )
----
53
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1321
SELECT ALL + CAST( - 64 AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + CAST ( - 64 AS INTEGER ) AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1322
SELECT ALL - COUNT( * ) DIV + ( 42 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL - COUNT ( * ) / + ( 42 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1323
SELECT + 48 DIV - 27 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1323
SELECT + 48 / - 27 AS col2
----
-1

query I rowsort
SELECT - 94 + - + 19 AS col0
----
-113

query I rowsort
SELECT DISTINCT + 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT DISTINCT - 74 + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT - 74 + - COUNT ( * )
----
-75

query I rowsort
SELECT DISTINCT + ( + 30 ) AS col0
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1328
SELECT + + CAST( NULL AS DECIMAL ) + - 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1328
SELECT + + CAST ( NULL AS REAL ) + - 0 col1
----
NULL

query I rowsort
SELECT + + 94 * + ( - - 20 ) - + 63
----
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT - COUNT( * ) + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1330
SELECT - COUNT ( * ) + COUNT ( * ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT + + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT + + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 87 col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT CAST( NULL AS SIGNED ) / - - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1333
SELECT CAST ( NULL AS INTEGER ) / - - 77
----
NULL

query I rowsort
SELECT ALL - - 61 AS col1
----
61

query I rowsort
SELECT - 20 - + 27 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT 8 * COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1336
SELECT 8 * COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT MIN( ALL + + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1337
SELECT MIN ( ALL + + 55 ) AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1338
SELECT ALL - + CAST( - 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL - + CAST ( - 78 AS INTEGER )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1339
SELECT - - COUNT( * ) + - - 6 + - CASE + 46 WHEN - - COUNT( * ) THEN CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT - - COUNT ( * ) + - - 6 + - CASE + 46 WHEN - - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT - 66 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-1340
SELECT - 66 / - 91
----
0

query I rowsort
SELECT ALL 18 * - 23 AS col2
----
-414

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT + - SUM( + 73 ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1342
SELECT + - SUM ( + 73 ) AS col2
----
-73

query I rowsort
SELECT ALL + NULLIF ( - - 85, + 38 ) AS col2
----
85

query I rowsort
SELECT ALL 95 * + 33
----
3135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1345
SELECT ALL CAST( - 91 AS SIGNED ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL CAST ( - 91 AS INTEGER ) col1
----
-91

query I rowsort
SELECT ALL ( 6 ) col1
----
6

query I rowsort
SELECT + 38 + + + 9 AS col1
----
47

query I rowsort
SELECT ALL - + 30 AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1349
SELECT ALL - CAST( - - 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL - CAST ( - - 30 AS INTEGER ) AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1350
SELECT DISTINCT ( 3 ) DIV - 19 col2
----
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT ( 3 ) / - 19 col2
----
0

query I rowsort
SELECT 49 * 41
----
2009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1352
SELECT ALL - + 93 + CAST( - + COUNT( * ) AS SIGNED ) * 75
----
-168

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL - + 93 + CAST ( - + COUNT ( * ) AS INTEGER ) * 75
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1353
SELECT 54 AS col0, ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-1353
SELECT 54 AS col0, ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col1
----
54
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT - 29 - - + CAST( - 61 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-1354
SELECT - 29 - - + CAST ( - 61 AS INTEGER )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT + ( 5 ) + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT + ( 5 ) + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT + 89 DIV + 30 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1356
SELECT + 89 / + 30 AS col2
----
2

query I rowsort
SELECT - 37 - - - 92
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1358
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ), COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1358
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ), COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT CAST( - 57 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-1359
SELECT CAST ( - 57 AS INTEGER )
----
-57

query I rowsort
SELECT ALL - 92 * + 22
----
-2024

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT + 24 DIV - + 90 * + - COUNT( * ) * + 13
----
0

skipif mysql # not compatible
query I rowsort label-1361
SELECT + 24 / - + 90 * + - COUNT ( * ) * + 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT - MAX( - 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1362
SELECT - MAX ( - 55 ) AS col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT ALL - 50 DIV + 4
----
-12

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL - 50 / + 4
----
-12

query I rowsort
SELECT 76 * + + 13
----
988

onlyif mysql # aggregate syntax: 
query II rowsort label-1365
SELECT ALL ( + SUM( - - COALESCE ( + 49, - - ( 66 ) ) ) ) * - - COUNT( * ) + COUNT( * ), 75 AS col1
----
50
75

skipif mysql # not compatible
query II rowsort label-1365
SELECT ALL ( + SUM ( - - COALESCE ( + 49, - - ( 66 ) ) ) ) * - - COUNT ( * ) + COUNT ( * ), 75 AS col1
----
50
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT ALL COUNT( * ) * - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL COUNT ( * ) * - - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1367
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1368
SELECT - 80 DIV + COUNT( * ) + - 93 AS col1
----
-173

skipif mysql # not compatible
query I rowsort label-1368
SELECT - 80 / + COUNT ( * ) + - 93 AS col1
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1369
SELECT + MAX( + ( + CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1369
SELECT + MAX ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1370
SELECT DISTINCT SUM( ( + CAST( NULL AS SIGNED ) ) ) * - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT SUM ( ( + CAST ( NULL AS INTEGER ) ) ) * - + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT + COUNT( * ) + 61 col2
----
62

skipif mysql # not compatible
query I rowsort label-1371
SELECT + COUNT ( * ) + 61 col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT + - 61 * + 98 * COUNT( * )
----
-5978

skipif mysql # not compatible
query I rowsort label-1372
SELECT + - 61 * + 98 * COUNT ( * )
----
-5978

query I rowsort
SELECT - - 56 + 60 col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT MAX( + 5 )
----
5

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT MAX ( + 5 )
----
5

query I rowsort
SELECT ( - - 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT + COUNT( * ) + - 48 col0
----
-47

skipif mysql # not compatible
query I rowsort label-1376
SELECT + COUNT ( * ) + - 48 col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT + AVG ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT + AVG ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ( + 1 )
----
1

query I rowsort
SELECT + 26 * - 88 AS col2
----
-2288

query I rowsort
SELECT DISTINCT 60 + + - 92
----
-32

query I rowsort
SELECT ALL 59 - - + 29
----
88

query I rowsort
SELECT ALL - - ( ( 70 ) ) AS col1
----
70

query I rowsort
SELECT 89 + + - 48 AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1384
SELECT DISTINCT 0 * COUNT( * ), 8 AS col1
----
0
8

skipif mysql # not compatible
query II rowsort label-1384
SELECT DISTINCT 0 * COUNT ( * ), 8 AS col1
----
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1385
SELECT CAST( NULL AS SIGNED ) + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT CAST ( NULL AS INTEGER ) + + 38
----
NULL

query I rowsort
SELECT DISTINCT - + 70 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1387
SELECT DISTINCT + 20 - + ( + COUNT( * ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + 20 - + ( + COUNT ( * ) ) AS col0
----
19

query I rowsort
SELECT ALL 24 * 63
----
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT MIN( DISTINCT - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1389
SELECT MIN ( DISTINCT - 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT DISTINCT + ( - + MIN( - 12 ) ) col0
----
12

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT + ( - + MIN ( - 12 ) ) col0
----
12

query II rowsort
SELECT ALL + + 3 AS col2, - 61
----
3
-61

query I rowsort
SELECT + ( 16 )
----
16

query I rowsort
SELECT DISTINCT ( + 2 ) AS col0
----
2

query I rowsort
SELECT ALL ( - - 10 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1395
SELECT + COUNT( * ) * - 13 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1395
SELECT + COUNT ( * ) * - 13 AS col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT 5 DIV + 13 + - 23 AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1396
SELECT 5 / + 13 + - 23 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1397
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1398
SELECT CAST( NULL AS SIGNED ) * + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-1398
SELECT CAST ( NULL AS INTEGER ) * + 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT - - MIN( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-1399
SELECT - - MIN ( 57 )
----
57

query I rowsort
SELECT ALL + ( + 31 ) AS col1
----
31

query I rowsort
SELECT ALL - 6 - - - 75
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT COUNT( * ) - COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1402
SELECT COUNT ( * ) - COUNT ( * ) col2
----
0

query I rowsort
SELECT + + 35 col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT COUNT( * ) - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1404
SELECT COUNT ( * ) - 31 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL COUNT( * ) + + 64 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL COUNT ( * ) + + 64 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL + COUNT( * ) + + - 23 * + - 24 col2
----
553

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL + COUNT ( * ) + + - 23 * + - 24 col2
----
553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1407
SELECT ( - + CAST( NULL AS SIGNED ) ) + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT ( - + CAST ( NULL AS INTEGER ) ) + + 28 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 77 * - 25 AS col0
----
-1925

query II rowsort
SELECT ALL 84 AS col0, + 14
----
84
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT COALESCE ( COUNT( * ), 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1410
SELECT COALESCE ( COUNT ( * ), 66 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT COUNT( DISTINCT 22 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1411
SELECT COUNT ( DISTINCT 22 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1412
SELECT - CAST( - - COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1412
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + ( - + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT - COUNT( * ) * + 77
----
-77

skipif mysql # not compatible
query I rowsort label-1414
SELECT - COUNT ( * ) * + 77
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1415
SELECT DISTINCT 6 AS col2, - COUNT( * ) col1
----
6
-1

skipif mysql # not compatible
query II rowsort label-1415
SELECT DISTINCT 6 AS col2, - COUNT ( * ) col1
----
6
-1

query I rowsort
SELECT 66 + - 36 + + NULLIF ( + NULLIF ( 38, 53 ), + 97 ) AS col1
----
68

query I rowsort
SELECT DISTINCT + 78 * - 97 AS col2
----
-7566

query I rowsort
SELECT + + 63 col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL - COUNT( * ) * 2
----
-2

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL - COUNT ( * ) * 2
----
-2

query I rowsort
SELECT DISTINCT + - 49 - - - 50 * + 80
----
-4049

query I rowsort
SELECT COALESCE ( 93, 53 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT + SUM( DISTINCT - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-1422
SELECT + SUM ( DISTINCT - 68 ) AS col0
----
-68

query I rowsort
SELECT 37 - - + 94
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT ALL COUNT( * ) * - 70 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL COUNT ( * ) * - 70 AS col2
----
-70

query I rowsort
SELECT ALL NULLIF ( - 44, 84 ) AS col1
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1426
SELECT 24 DIV - 3 + + - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-1426
SELECT 24 / - 3 + + - COUNT ( * )
----
-9

query I rowsort
SELECT ( - + 63 ) col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1428
SELECT ALL + COUNT( * ) + - AVG ( ALL 74 ) + + + ( CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL + COUNT ( * ) + - AVG ( ALL 74 ) + + + ( CAST ( - CAST ( NULL AS REAL ) AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT ALL - CAST( + 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL - CAST ( + 3 AS INTEGER )
----
-3

query I rowsort
SELECT - 30 * + - 14 AS col2
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + - ( + COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1431
SELECT + - ( + COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1432
SELECT DISTINCT + ( - - COUNT( * ) ) * 60 * COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT + ( - - COUNT ( * ) ) * 60 * COUNT ( * ) AS col1
----
60

query I rowsort
SELECT ALL - 70 * + 55
----
-3850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1434
SELECT ALL - SUM( DISTINCT 63 ) DIV - - 28
----
-2

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - SUM ( DISTINCT 63 ) / - - 28
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT - 54 * + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-1435
SELECT - 54 * + - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL + 74 * COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL + 74 * COUNT ( * ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT DISTINCT - 32 * + - 13 * COUNT( * ) AS col0
----
416

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT - 32 * + - 13 * COUNT ( * ) AS col0
----
416

query I rowsort
SELECT DISTINCT + - 48 AS col1
----
-48

query I rowsort
SELECT DISTINCT + + 0 * + ( - 18 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1440
SELECT - CAST( + - 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-1440
SELECT - CAST ( + - 48 AS INTEGER )
----
48

query I rowsort
SELECT ALL ( - - 32 ) col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT ALL CAST( + 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL CAST ( + 55 AS INTEGER )
----
55

query I rowsort
SELECT DISTINCT ( + + 68 ) col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT DISTINCT - CAST( + ( 71 ) AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT - CAST ( + ( 71 ) AS INTEGER )
----
-71

query I rowsort
SELECT ALL + ( - + 76 ) AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT + + 15 * - COUNT( * ) - - - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-1446
SELECT + + 15 * - COUNT ( * ) - - - COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL - COUNT( * ) * + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL - COUNT ( * ) * + COUNT ( * ) col1
----
-1

query I rowsort
SELECT ALL + 85 * - + 77 col0
----
-6545

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1449
SELECT 87 + + COUNT( * ) + + COUNT( * ) DIV + 33
----
88

skipif mysql # not compatible
query I rowsort label-1449
SELECT 87 + + COUNT ( * ) + + COUNT ( * ) / + 33
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT ALL - - ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL - - ( COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT 56 col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT 15 * 36 * - 97 + + COUNT( * )
----
-52379

skipif mysql # not compatible
query I rowsort label-1452
SELECT 15 * 36 * - 97 + + COUNT ( * )
----
-52379

query I rowsort
SELECT DISTINCT 37 col2
----
37

query I rowsort
SELECT ALL - 80 * - + 55 col1
----
4400

query I rowsort
SELECT - 45 + - 53 AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT 22 + + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-1456
SELECT 22 + + COUNT ( * )
----
23

query I rowsort
SELECT ALL ( + + 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1458
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

query I rowsort
SELECT + 58 - + NULLIF ( - 59, 48 ) AS col1
----
117

query I rowsort
SELECT - + 32 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-1461
SELECT ALL + MAX( DISTINCT + - 66 ) * - 7 AS col2, 26 AS col2
----
462
26

skipif mysql # not compatible
query II rowsort label-1461
SELECT ALL + MAX ( DISTINCT + - 66 ) * - 7 AS col2, 26 AS col2
----
462
26

query I rowsort
SELECT ALL 37 * 10 AS col0
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT - 50 * - + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-1463
SELECT - 50 * - + COUNT ( * )
----
50

query I rowsort
SELECT DISTINCT 82 + 39 AS col1
----
121

query I rowsort
SELECT DISTINCT - ( + 17 ) AS col1
----
-17

query I rowsort
SELECT DISTINCT 78 * - 55
----
-4290

query I rowsort
SELECT ALL 77 + + 65
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT + MAX( DISTINCT + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-1468
SELECT + MAX ( DISTINCT + 86 )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1469
SELECT DISTINCT + COUNT( * ) * 68 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT + COUNT ( * ) * 68 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + - 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT ALL - + 22 - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL - + 22 - COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1472
SELECT + 55 * - COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-1472
SELECT + 55 * - COUNT ( * ) col2
----
-55

query I rowsort
SELECT + - 71 + 12 * + 92 AS col2
----
1033

query I rowsort
SELECT - 27 + - 4 AS col2
----
-31

query I rowsort
SELECT - 41 + - 57
----
-98

query I rowsort
SELECT ALL + 21 + + 79 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT - MAX( DISTINCT + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-1477
SELECT - MAX ( DISTINCT + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ( + MAX( 18 ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-1478
SELECT ( + MAX ( 18 ) ) AS col0
----
18

query I rowsort
SELECT ( + + 86 )
----
86

query I rowsort
SELECT + 86 * + 36
----
3096

query I rowsort
SELECT - ( + 83 ) + 1 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1482
SELECT ALL + - ( COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL + - ( COUNT ( * ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT + + COUNT( * ) * + MAX( 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-1483
SELECT + + COUNT ( * ) * + MAX ( 27 ) AS col1
----
27

query I rowsort
SELECT - + 10 * + - 53 AS col1
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL - 62 * + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL - 62 * + COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT DISTINCT MIN( DISTINCT - - 28 )
----
28

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT MIN ( DISTINCT - - 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL SUM( - - 74 ) * + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL SUM ( - - 74 ) * + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT 63 + - 7
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT ALL - - 38 * - CAST( NULL AS SIGNED ) * - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - - 38 * - CAST ( NULL AS INTEGER ) * - 41
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT - 73 + + 19 * - COUNT( * ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-1490
SELECT - 73 + + 19 * - COUNT ( * ) AS col0
----
-92

query I rowsort
SELECT ALL - 94 + - 42
----
-136

query I rowsort
SELECT + ( 26 )
----
26

query I rowsort
SELECT + - 80 AS col2
----
-80

query I rowsort
SELECT 34 - - 32 + + 76 - + 84 AS col2
----
58

query I rowsort
SELECT 0 * 81 - - + 85
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT ALL - - CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1496
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT 17 + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-1497
SELECT 17 + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT - MIN( DISTINCT 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1498
SELECT - MIN ( DISTINCT 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1499
SELECT - 36 * + COUNT( * ) - MAX( DISTINCT 4 ) DIV + 22 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-1499
SELECT - 36 * + COUNT ( * ) - MAX ( DISTINCT 4 ) / + 22 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT + 69 - - - 11 + + + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-1500
SELECT + 69 - - - 11 + + + COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT - MIN( DISTINCT - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-1501
SELECT - MIN ( DISTINCT - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT + - COUNT( * ) + - + 21
----
-22

skipif mysql # not compatible
query I rowsort label-1502
SELECT + - COUNT ( * ) + - + 21
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL + MAX( ALL - ( - 45 ) )
----
45

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + MAX ( ALL - ( - 45 ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT + 45 + + SUM( ALL - 87 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-1504
SELECT + 45 + + SUM ( ALL - 87 ) AS col2
----
-42

query II rowsort
SELECT - 33 AS col1, + 61
----
-33
61

query I rowsort
SELECT DISTINCT 65 + - - 38
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT - MIN( ALL - 81 ) + 43
----
124

skipif mysql # not compatible
query I rowsort label-1507
SELECT - MIN ( ALL - 81 ) + 43
----
124

query II rowsort
SELECT ALL + + 77, + 28 AS col0
----
77
28

query I rowsort
SELECT + - 47 AS col0
----
-47

query I rowsort
SELECT ALL - 27 + 23
----
-4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1511
SELECT COUNT( * ) - - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1511
SELECT COUNT ( * ) - - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1512
SELECT - 53 DIV + 74 + + - 89
----
-89

skipif mysql # not compatible
query I rowsort label-1512
SELECT - 53 / + 74 + + - 89
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT DISTINCT - MIN( - 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT - MIN ( - 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT - COUNT( DISTINCT - 57 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1514
SELECT - COUNT ( DISTINCT - 57 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1515
SELECT + 49 + CASE - 0 WHEN - CAST( NULL AS SIGNED ) THEN NULL ELSE 15 END AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1515
SELECT + 49 + CASE - 0 WHEN - CAST ( NULL AS INTEGER ) THEN NULL ELSE 15 END AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-1516
SELECT COUNT( * ) AS col0, 7 + + 31 AS col0
----
1
38

skipif mysql # not compatible
query II rowsort label-1516
SELECT COUNT ( * ) AS col0, 7 + + 31 AS col0
----
1
38

query I rowsort
SELECT ALL + ( + + 3 ) AS col0
----
3

query I rowsort
SELECT ALL + ( - ( 21 ) ) col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT DISTINCT MAX( 45 ) * - COUNT( * ) + - 14 col1
----
-59

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT MAX ( 45 ) * - COUNT ( * ) + - 14 col1
----
-59

query I rowsort
SELECT - ( - ( 85 ) )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1521
SELECT + CAST( NULL AS SIGNED ) col0, NULLIF ( + ( + 13 ), - + 15 ) AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-1521
SELECT + CAST ( NULL AS INTEGER ) col0, NULLIF ( + ( + 13 ), - + 15 ) AS col2
----
NULL
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1522
SELECT CAST( NULL AS SIGNED ) AS col0, 65 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1522
SELECT CAST ( NULL AS INTEGER ) AS col0, 65 AS col0
----
NULL
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT + NULLIF ( + COUNT( * ), 84 + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT + NULLIF ( + COUNT ( * ), 84 + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT - COUNT( * ) * - + 16 * - MIN( DISTINCT - 44 ) AS col2
----
704

skipif mysql # not compatible
query I rowsort label-1524
SELECT - COUNT ( * ) * - + 16 * - MIN ( DISTINCT - 44 ) AS col2
----
704

onlyif mysql # aggregate syntax: 
query II rowsort label-1525
SELECT ALL COUNT( * ), MAX( ALL 66 ) AS col1
----
1
66

skipif mysql # not compatible
query II rowsort label-1525
SELECT ALL COUNT ( * ), MAX ( ALL 66 ) AS col1
----
1
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1526
SELECT COUNT( * ) + - CAST( - 11 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-1526
SELECT COUNT ( * ) + - CAST ( - 11 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT COUNT( * ) + - 17 col2
----
-16

skipif mysql # not compatible
query I rowsort label-1527
SELECT COUNT ( * ) + - 17 col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT MIN( ALL 67 ) AS col2, + 49
----
67
49

skipif mysql # not compatible
query II rowsort label-1528
SELECT MIN ( ALL 67 ) AS col2, + 49
----
67
49

query I rowsort
SELECT - - 23 AS col1
----
23

query I rowsort
SELECT ALL - 50 * 49 AS col2
----
-2450

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT SUM( ALL + - 95 ) + - ( 26 )
----
-121

skipif mysql # not compatible
query I rowsort label-1531
SELECT SUM ( ALL + - 95 ) + - ( 26 )
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-1532
SELECT - 66 DIV 50 + 10 * + 80 AS col0
----
799

skipif mysql # not compatible
query I rowsort label-1532
SELECT - 66 / 50 + 10 * + 80 AS col0
----
799

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT ALL - 83 DIV - 18
----
4

skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL - 83 / - 18
----
4

query I rowsort
SELECT + 34 * + 84
----
2856

query I rowsort
SELECT + + 96 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1536
SELECT ALL CAST( NULL AS SIGNED ) * - + 0 + 58 - + COUNT( * ) + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-1536
SELECT ALL CAST ( NULL AS INTEGER ) * - + 0 + 58 - + COUNT ( * ) + - 64
----
NULL

query I rowsort
SELECT ALL ( + + 64 )
----
64

query I rowsort
SELECT ALL ( 64 ) AS col0
----
64

query I rowsort
SELECT DISTINCT ( - 47 )
----
-47

query I rowsort
SELECT ALL - 34 + - 87 * - 80 col1
----
6926

query I rowsort
SELECT ALL - ( + ( + 23 ) ) AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL + 93 - + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL + 93 - + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT ALL - ( + 86 ) * - + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL - ( + 86 ) * - + COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT COUNT( * ) * 63 - ( + 42 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1544
SELECT COUNT ( * ) * 63 - ( + 42 ) AS col0
----
21

query I rowsort
SELECT 7 + + 71 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT ALL - 30 * - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1546
SELECT ALL - 30 * - COUNT ( * ) AS col1
----
30

query I rowsort
SELECT DISTINCT 82 col0
----
82

query I rowsort
SELECT DISTINCT - ( - - 83 )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT ALL 32 AS col0, - COUNT( * ) col2
----
32
-1

skipif mysql # not compatible
query II rowsort label-1549
SELECT ALL 32 AS col0, - COUNT ( * ) col2
----
32
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1550
SELECT ALL CAST( + 51 AS SIGNED ) - 93 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL CAST ( + 51 AS INTEGER ) - 93 AS col1
----
-42

query I rowsort
SELECT + 10 * 14 col2
----
140

query II rowsort
SELECT ALL + 63 AS col1, 21 + + + 74
----
63
95

onlyif mysql # aggregate syntax: 
query II rowsort label-1553
SELECT 38 AS col1, COUNT( * ) + 74
----
38
75

skipif mysql # not compatible
query II rowsort label-1553
SELECT 38 AS col1, COUNT ( * ) + 74
----
38
75

onlyif mysql # aggregate syntax: 
query II rowsort label-1554
SELECT DISTINCT + + COUNT( + 99 ), + 90 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-1554
SELECT DISTINCT + + COUNT ( + 99 ), + 90 AS col1
----
1
90

query I rowsort
SELECT ALL ( + + 75 ) AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1556
SELECT DISTINCT + COUNT( * ) DIV 28 * - 85
----
0

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT + COUNT ( * ) / 28 * - 85
----
0

query I rowsort
SELECT DISTINCT ( + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT ALL + - MAX( + 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1558
SELECT ALL + - MAX ( + 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT ALL MIN( + ( 6 ) ) * ( + + 78 )
----
468

skipif mysql # not compatible
query I rowsort label-1559
SELECT ALL MIN ( + ( 6 ) ) * ( + + 78 )
----
468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1560
SELECT ALL - MIN( + + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1560
SELECT ALL - MIN ( + + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1561
SELECT SUM( + 69 ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT SUM ( + 69 ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT COUNT( * ) + ( - - 41 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-1562
SELECT COUNT ( * ) + ( - - 41 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT COUNT( * ) * - 56 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1563
SELECT COUNT ( * ) * - 56 AS col0
----
-56

query I rowsort
SELECT 36 * 61 AS col0
----
2196

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT ALL 14 * COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-1565
SELECT ALL 14 * COUNT ( * )
----
14

query I rowsort
SELECT 59 + - + 41
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-1567
SELECT DISTINCT - COUNT( * ) AS col1, + 30 AS col2
----
-1
30

skipif mysql # not compatible
query II rowsort label-1567
SELECT DISTINCT - COUNT ( * ) AS col1, + 30 AS col2
----
-1
30

query I rowsort
SELECT DISTINCT - - NULLIF ( + 43, - 75 * + 95 )
----
43

query I rowsort
SELECT DISTINCT 16 * - - 13 AS col1
----
208

query I rowsort
SELECT 51 * + 35 col1
----
1785

query I rowsort
SELECT ( - - 56 ) - + 34 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT - COUNT( * ) * - + 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1572
SELECT - COUNT ( * ) * - + 79 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT 54 + + 58 + - - COUNT( * ) * + + 45
----
157

skipif mysql # not compatible
query I rowsort label-1573
SELECT 54 + + 58 + - - COUNT ( * ) * + + 45
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1574
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT - + 74 col2, - 57
----
-74
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT + + COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1576
SELECT + + COUNT ( * ) * COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1577
SELECT + 79 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT + 79 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1578
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( - ( - + 5 ) ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT ALL + COUNT( DISTINCT - + 3 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL + COUNT ( DISTINCT - + 3 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1581
SELECT DISTINCT + 67 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT + 67 / - 49
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1582
SELECT + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1582
SELECT + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1583
SELECT - COUNT( * ) DIV + - 30
----
0

skipif mysql # not compatible
query I rowsort label-1583
SELECT - COUNT ( * ) / + - 30
----
0

query I rowsort
SELECT DISTINCT 8 * 45 + 51
----
411

query I rowsort
SELECT 77 * + 73
----
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT ALL + COUNT( * ) * + - ( - 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL + COUNT ( * ) * + - ( - 45 ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT MIN( + + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-1587
SELECT MIN ( + + 70 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1588
SELECT ALL 68 DIV - 90 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL 68 / - 90 AS col2
----
0

query I rowsort
SELECT ( 58 ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1590
SELECT ALL + - COUNT( * ) AS col0, 90
----
-1
90

skipif mysql # not compatible
query II rowsort label-1590
SELECT ALL + - COUNT ( * ) AS col0, 90
----
-1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT - SUM( ALL + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-1591
SELECT - SUM ( ALL + 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT - COUNT( * ) * 28 AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-1592
SELECT - COUNT ( * ) * 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT - SUM( ALL + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1593
SELECT - SUM ( ALL + 48 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1594
SELECT ALL + 59 DIV 18 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + 59 / 18 AS col2
----
3

query I rowsort
SELECT DISTINCT - 45 * - - 10 col1
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT ALL COUNT( * ) + 12
----
13

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL COUNT ( * ) + 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT + - MAX( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-1597
SELECT + - MAX ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1598
SELECT ALL 26 AS col0, COUNT( * ) AS col0
----
26
1

skipif mysql # not compatible
query II rowsort label-1598
SELECT ALL 26 AS col0, COUNT ( * ) AS col0
----
26
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1599
SELECT DISTINCT + - 8 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT + - 8 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT - SUM( DISTINCT + 9 ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-1600
SELECT - SUM ( DISTINCT + 9 ) col1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1601
SELECT - CAST( NULL AS SIGNED ) * - ( - 76 ) + - ( + - 30 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT - CAST ( NULL AS INTEGER ) * - ( - 76 ) + - ( + - 30 ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ALL + SUM( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL + SUM ( + 94 )
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1603
SELECT DISTINCT + 90 * 73 * 79 AS col1, CAST( NULL AS DECIMAL ) AS col2
----
519030
NULL

skipif mysql # not compatible
query II rowsort label-1603
SELECT DISTINCT + 90 * 73 * 79 AS col1, CAST ( NULL AS REAL ) AS col2
----
519030
NULL

query II rowsort
SELECT ALL + 96 AS col2, 90 col0
----
96
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT MIN( + 68 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1605
SELECT MIN ( + 68 ) AS col0
----
68

query I rowsort
SELECT ALL ( 70 )
----
70

query I rowsort
SELECT ALL 38 * 54
----
2052

query I rowsort
SELECT ALL - 29 + 97
----
68

query I rowsort
SELECT - - 58 AS col1
----
58

query I rowsort
SELECT DISTINCT 52 + 25 col0
----
77

query I rowsort
SELECT ALL + - 79 AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1612
SELECT ALL + COUNT( * ) DIV + + 30 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL + COUNT ( * ) / + + 30 + - COUNT ( * )
----
-1

query I rowsort
SELECT + ( 37 ) AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT - CAST( NULL AS SIGNED ) * - 6 * - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-1614
SELECT - CAST ( NULL AS INTEGER ) * - 6 * - 48
----
NULL

query I rowsort
SELECT DISTINCT - 25 + + + ( + - 20 ) + 53
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1616
SELECT DISTINCT + 52 - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT + 52 - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT DISTINCT - 89 * + - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT - 89 * + - COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT 74 + - - 82 col0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-1619
SELECT ALL 16, COUNT( * ) AS col2
----
16
1

skipif mysql # not compatible
query II rowsort label-1619
SELECT ALL 16, COUNT ( * ) AS col2
----
16
1

query I rowsort
SELECT - - 72 col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT 69 DIV + 24
----
2

skipif mysql # not compatible
query I rowsort label-1621
SELECT 69 / + 24
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT 96 - COUNT( DISTINCT - 12 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-1622
SELECT 96 - COUNT ( DISTINCT - 12 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT - COUNT( * ) * - + COUNT( * ) - 57
----
-56

skipif mysql # not compatible
query I rowsort label-1623
SELECT - COUNT ( * ) * - + COUNT ( * ) - 57
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1624
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 8 + - 94 - COUNT( * ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 8 + - 94 - COUNT ( * ) * + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT + COUNT( * ) + + COUNT( * ) + - 60 - - 79 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-1625
SELECT + COUNT ( * ) + + COUNT ( * ) + - 60 - - 79 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT + + 86 * + + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-1626
SELECT + + 86 * + + COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT - 79 + - ( COUNT( * ) )
----
-80

skipif mysql # not compatible
query I rowsort label-1627
SELECT - 79 + - ( COUNT ( * ) )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL COUNT( * ) + ( + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL COUNT ( * ) + ( + COUNT ( * ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT ALL - SUM( - - 93 ) + - 24 AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - SUM ( - - 93 ) + - 24 AS col0
----
-117

query I rowsort
SELECT ALL + 83 * + 57
----
4731

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ( - - SUM( + 53 ) )
----
53

skipif mysql # not compatible
query I rowsort label-1631
SELECT ( - - SUM ( + 53 ) )
----
53

query I rowsort
SELECT ALL + + 30 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1633
SELECT 27 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT 27 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( - 17 )
----
17

query I rowsort
SELECT + + 73 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT ALL - 23 + + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-1636
SELECT ALL - 23 + + COUNT ( * )
----
-22

query I rowsort
SELECT ALL + ( + - 8 ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT COUNT( * ) + + COUNT( * ) + 74 * - + COUNT( * ) * - 47
----
3480

skipif mysql # not compatible
query I rowsort label-1638
SELECT COUNT ( * ) + + COUNT ( * ) + 74 * - + COUNT ( * ) * - 47
----
3480

query I rowsort
SELECT DISTINCT 38 * - 80 AS col0
----
-3040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1640
SELECT DISTINCT - CAST( - - 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT - CAST ( - - 41 AS INTEGER )
----
-41

query I rowsort
SELECT - 11 + + 13
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT DISTINCT MAX( DISTINCT - 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT MAX ( DISTINCT - 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT + MAX( DISTINCT + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1643
SELECT + MAX ( DISTINCT + 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL + COUNT( * ) * 74 - 64 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + COUNT ( * ) * 74 - 64 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL + + SUM( + + 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + + SUM ( + + 9 ) AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT - + 2 DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-1646
SELECT - + 2 / - 85
----
0

query I rowsort
SELECT ALL ( + + 79 ) AS col2
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT DISTINCT COUNT( * ) / - - 92 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT COUNT ( * ) / - - 92 / - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 63 + - 31 AS col1
----
-94

query I rowsort
SELECT ALL - 21 + - 7 AS col2
----
-28

query I rowsort
SELECT - 55 * + - 92 * + 18 AS col2
----
91080

query I rowsort
SELECT DISTINCT - 3 + - + 80
----
-83

query II rowsort
SELECT ALL + - 47 AS col1, 57 AS col1
----
-47
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT - MAX( + + 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-1654
SELECT - MAX ( + + 95 ) AS col2
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1655
SELECT ALL - + 99, CAST( NULL AS SIGNED ) AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-1655
SELECT ALL - + 99, CAST ( NULL AS INTEGER ) AS col0
----
-99
NULL

query I rowsort
SELECT DISTINCT 86 + + - 5 AS col2
----
81

query I rowsort
SELECT ALL + 24 * - + 67
----
-1608

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT - MAX( + 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1658
SELECT - MAX ( + 75 ) AS col2
----
-75

query II rowsort
SELECT ALL + 44 AS col0, + 48 AS col2
----
44
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL ( MAX( DISTINCT + 50 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL ( MAX ( DISTINCT + 50 ) ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT - COUNT( * ) + + 13 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1661
SELECT - COUNT ( * ) + + 13 AS col0
----
12

query I rowsort
SELECT 94 * + 81 col1
----
7614

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL + COUNT( * ) * + - 50
----
-50

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + COUNT ( * ) * + - 50
----
-50

query I rowsort
SELECT ALL ( + 17 ) col2
----
17

query I rowsort
SELECT - - 9 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL + + 28 + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL + + 28 + COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT ALL + - COUNT( * ) + + + 89
----
88

skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL + - COUNT ( * ) + + + 89
----
88

query I rowsort
SELECT 23 * + 59 col0
----
1357

query I rowsort
SELECT ALL + 12 * + 94 AS col2
----
1128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1670
SELECT + SUM( ALL - + CAST( 71 AS SIGNED ) ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-1670
SELECT + SUM ( ALL - + CAST ( 71 AS INTEGER ) ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT MIN( DISTINCT 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-1671
SELECT MIN ( DISTINCT 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT + SUM( + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-1672
SELECT + SUM ( + 28 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT + COUNT( * ) + + - 76 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT + COUNT ( * ) + + - 76 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1674
SELECT ALL + COUNT( * ) AS col0, - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-1674
SELECT ALL + COUNT ( * ) AS col0, - COUNT ( * ) AS col2
----
1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1675
SELECT - 98 DIV 32
----
-3

skipif mysql # not compatible
query I rowsort label-1675
SELECT - 98 / 32
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1676
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, 65
----
NULL
65

skipif mysql # not compatible
query II rowsort label-1676
SELECT ALL + CAST ( NULL AS REAL ) AS col2, 65
----
NULL
65

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1677
SELECT ALL + CAST( NULL AS DECIMAL ), 10 AS col2
----
NULL
10

skipif mysql # not compatible
query II rowsort label-1677
SELECT ALL + CAST ( NULL AS REAL ), 10 AS col2
----
NULL
10

query I rowsort
SELECT ALL + NULLIF ( 39, - - 54 ) AS col2
----
39

query I rowsort
SELECT + 14 * + ( - 32 )
----
-448

query II rowsort
SELECT + + 71 col0, + 3
----
71
3

query I rowsort
SELECT ALL - 41 + 89 AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1682
SELECT 99 DIV 11 DIV - ( CAST( - - 71 AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1682
SELECT 99 / 11 / - ( CAST ( - - 71 AS INTEGER ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT - 65 * + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-1683
SELECT - 65 * + COUNT ( * )
----
-65

query I rowsort
SELECT DISTINCT - + ( 11 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - COUNT( * ) + - + 96
----
-97

skipif mysql # not compatible
query I rowsort label-1685
SELECT - COUNT ( * ) + - + 96
----
-97

query I rowsort
SELECT ALL - - 66 * + 59 AS col0
----
3894

query I rowsort
SELECT DISTINCT NULLIF ( - 64, 88 ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT - MIN( 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1688
SELECT - MIN ( 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT DISTINCT - COUNT( * ) * - - 45 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT - COUNT ( * ) * - - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1690
SELECT ALL ( - 33 ) DIV - ( COUNT( * ) ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL ( - 33 ) / - ( COUNT ( * ) ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-1691
SELECT COUNT( * ) AS col1, - 23
----
1
-23

skipif mysql # not compatible
query II rowsort label-1691
SELECT COUNT ( * ) AS col1, - 23
----
1
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-1692
SELECT ALL + 92 * COUNT( * ) * + - 39 AS col1, + 5 AS col1
----
-3588
5

skipif mysql # not compatible
query II rowsort label-1692
SELECT ALL + 92 * COUNT ( * ) * + - 39 AS col1, + 5 AS col1
----
-3588
5

query I rowsort
SELECT ALL - + 5 AS col1
----
-5

query I rowsort
SELECT 26 * - 33 AS col2
----
-858

query I rowsort
SELECT - 99 + - 82 AS col0
----
-181

query I rowsort
SELECT + 81 - 61
----
20

query II rowsort
SELECT - 48 AS col1, 96 AS col2
----
-48
96

onlyif mysql # aggregate syntax: 
query II rowsort label-1698
SELECT ALL + 13 AS col0, - COUNT( * ) AS col0
----
13
-1

skipif mysql # not compatible
query II rowsort label-1698
SELECT ALL + 13 AS col0, - COUNT ( * ) AS col0
----
13
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1699
SELECT + NULLIF ( - 49, + - MAX( - ( + 76 ) ) )
----
-49

skipif mysql # not compatible
query I rowsort label-1699
SELECT + NULLIF ( - 49, + - MAX ( - ( + 76 ) ) )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT - COUNT( * ) * - 87 * 63
----
5481

skipif mysql # not compatible
query I rowsort label-1700
SELECT - COUNT ( * ) * - 87 * 63
----
5481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT DISTINCT - CAST( - + 81 AS SIGNED ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT - CAST ( - + 81 AS INTEGER ) AS col0
----
81

query I rowsort
SELECT DISTINCT 63 + - 94 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1703
SELECT + COUNT( * ) DIV + 4
----
0

skipif mysql # not compatible
query I rowsort label-1703
SELECT + COUNT ( * ) / + 4
----
0

query II rowsort
SELECT ALL - ( + - 47 ) + 13 AS col2, - 6
----
60
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT - COUNT( * ) * - 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-1705
SELECT - COUNT ( * ) * - 70 AS col2
----
70

query I rowsort
SELECT DISTINCT - ( - + 25 ) AS col0
----
25

query I rowsort
SELECT ALL 33 * + + 20
----
660

query I rowsort
SELECT - + 21 col0
----
-21

query I rowsort
SELECT ALL + + ( - ( 31 ) )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT - CAST( NULL AS SIGNED ) / 50
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT - CAST ( NULL AS INTEGER ) / 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1711
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + COUNT( * ) * 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT + 1 * + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1712
SELECT + 1 * + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT ALL 83 + 88 AS col1
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT + 95 + COUNT( * ) * + 14 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-1714
SELECT + 95 + COUNT ( * ) * + 14 AS col1
----
109

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT + 65 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-1715
SELECT + 65 / - 81
----
0

query I rowsort
SELECT + 83 * + 90 AS col1
----
7470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT - CAST( + 44 AS SIGNED )
----
-44

skipif mysql # not compatible
query I rowsort label-1717
SELECT - CAST ( + 44 AS INTEGER )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT CAST( + 77 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-1718
SELECT CAST ( + 77 AS INTEGER )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT + CAST( 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-1719
SELECT + CAST ( 52 AS INTEGER )
----
52

query I rowsort
SELECT ( 42 )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1721
SELECT DISTINCT + CAST( 91 AS SIGNED ) col1
----
91

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT + CAST ( 91 AS INTEGER ) col1
----
91

query I rowsort
SELECT - 25 * 61 AS col1
----
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT ALL + COUNT( * ) + 88
----
89

skipif mysql # not compatible
query I rowsort label-1723
SELECT ALL + COUNT ( * ) + 88
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT SUM( + 86 ) + - COUNT( * ) col2
----
85

skipif mysql # not compatible
query I rowsort label-1724
SELECT SUM ( + 86 ) + - COUNT ( * ) col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL ( - ( COUNT( - 9 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL ( - ( COUNT ( - 9 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT + COUNT( * ) * 0 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1726
SELECT + COUNT ( * ) * 0 - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1727
SELECT ALL ( + - 34 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL ( + - 34 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 55 + 96 * - 83
----
-7913

query I rowsort
SELECT ALL - + 56 + + 96 + - 13
----
27

query I rowsort
SELECT 18 + + ( - 17 ) col0
----
1

query I rowsort
SELECT 31 * - 18 AS col0
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT 8 * + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-1732
SELECT 8 * + - COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT COUNT( - ( - 11 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1733
SELECT COUNT ( - ( - 11 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1734
SELECT COUNT( CAST( 77 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1734
SELECT COUNT ( CAST ( 77 AS INTEGER ) )
----
1

query I rowsort
SELECT - 45 + + 38 col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT - 9 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT - 9 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT - 67 + + COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1737
SELECT - 67 + + COUNT ( * ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT - 84 + - COUNT( * ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-1738
SELECT - 84 + - COUNT ( * ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL + ( - MIN( DISTINCT + 65 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + ( - MIN ( DISTINCT + 65 ) )
----
-65

query I rowsort
SELECT ALL + + 98 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT - COUNT( * ) * + 39
----
-39

skipif mysql # not compatible
query I rowsort label-1742
SELECT - COUNT ( * ) * + 39
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT CAST( NULL AS SIGNED ) + - + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT CAST ( NULL AS INTEGER ) + - + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT DISTINCT - COUNT( DISTINCT - 92 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT - COUNT ( DISTINCT - 92 ) AS col0
----
-1

query I rowsort
SELECT ALL + + 95 * - 68
----
-6460

query I rowsort
SELECT + ( + 38 )
----
38

query I rowsort
SELECT DISTINCT - 20 col2
----
-20

query I rowsort
SELECT DISTINCT - 84 + - ( - - 2 )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT + 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-1749
SELECT + 76 + COUNT ( * )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT SUM( DISTINCT + 99 ) + - 65
----
34

skipif mysql # not compatible
query I rowsort label-1750
SELECT SUM ( DISTINCT + 99 ) + - 65
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1751
SELECT - 67 * - COUNT( * ) DIV - COUNT( * ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-1751
SELECT - 67 * - COUNT ( * ) / - COUNT ( * ) AS col2
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1752
SELECT - 44 DIV - + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-1752
SELECT - 44 / - + COUNT ( * ) AS col2
----
44

query I rowsort
SELECT ALL ( + 71 ) AS col0
----
71

query I rowsort
SELECT + + 47 AS col2
----
47

query I rowsort
SELECT ALL + 14 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT - 74 * + COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1756
SELECT - 74 * + COUNT ( * ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT - SUM( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT - SUM ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT - SUM( DISTINCT - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-1758
SELECT - SUM ( DISTINCT - 34 )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1759
SELECT DISTINCT - CAST( NULL AS SIGNED ) / MIN( - + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / MIN ( - + 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT 46 - 27 + + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-1760
SELECT 46 - 27 + + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-1761
SELECT - COUNT( * ) col0, - 33
----
-1
-33

skipif mysql # not compatible
query II rowsort label-1761
SELECT - COUNT ( * ) col0, - 33
----
-1
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1762
SELECT COUNT( * ) AS col2, + COUNT( * ) * + 90 * 74 * + + 54 + - - 20 col2
----
1
359660

skipif mysql # not compatible
query II rowsort label-1762
SELECT COUNT ( * ) AS col2, + COUNT ( * ) * + 90 * 74 * + + 54 + - - 20 col2
----
1
359660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT - 39 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT - 39 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT ALL COUNT( * ) * - 45 - + + 33 * + - 39 AS col1
----
1242

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL COUNT ( * ) * - 45 - + + 33 * + - 39 AS col1
----
1242

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT DISTINCT 8 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT 8 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 71 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT - - SUM( ALL ( + 38 ) )
----
38

skipif mysql # not compatible
query I rowsort label-1767
SELECT - - SUM ( ALL ( + 38 ) )
----
38

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1768
SELECT ALL + - 7 + - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL + - 7 + - + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - - 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT + COUNT( - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-1770
SELECT + COUNT ( - 57 )
----
1

query I rowsort
SELECT + 7 + + 23
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT ALL + COUNT( * ) + - 16
----
-15

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL + COUNT ( * ) + - 16
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1773
SELECT DISTINCT - MIN( DISTINCT + ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - MIN ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1774
SELECT DISTINCT - - MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1774
SELECT DISTINCT - - MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT - COUNT( + + 89 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1775
SELECT - COUNT ( + + 89 ) AS col2
----
-1

query II rowsort
SELECT 68 + + - 99 AS col0, - 7 AS col2
----
-31
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1777
SELECT - COUNT( * ), - MIN( ALL + + 73 ) AS col2
----
-1
-73

skipif mysql # not compatible
query II rowsort label-1777
SELECT - COUNT ( * ), - MIN ( ALL + + 73 ) AS col2
----
-1
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-1778
SELECT - COUNT( * ), ( + 93 ) AS col1
----
-1
93

skipif mysql # not compatible
query II rowsort label-1778
SELECT - COUNT ( * ), ( + 93 ) AS col1
----
-1
93

query I rowsort
SELECT + 66 * - 82
----
-5412

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - 40 * 45 - + COUNT( * ) AS col0
----
-1801

skipif mysql # not compatible
query I rowsort label-1780
SELECT - 40 * 45 - + COUNT ( * ) AS col0
----
-1801

query I rowsort
SELECT - 72 * + + 0 AS col1
----
0

query I rowsort
SELECT ALL + 78 + + - ( + + 53 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1783
SELECT DISTINCT + 97 DIV COUNT( * ) col2
----
97

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT + 97 / COUNT ( * ) col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT DISTINCT COUNT( * ) - + ( + - 65 )
----
66

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT COUNT ( * ) - + ( + - 65 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL - 48 * + COUNT( DISTINCT + 45 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - 48 * + COUNT ( DISTINCT + 45 ) AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT COUNT( * ) * - SUM( ALL - - 87 ) * - 54
----
4698

skipif mysql # not compatible
query I rowsort label-1786
SELECT COUNT ( * ) * - SUM ( ALL - - 87 ) * - 54
----
4698

query I rowsort
SELECT ALL + 16 + + 26 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT + COUNT( * ) * 17
----
17

skipif mysql # not compatible
query I rowsort label-1788
SELECT + COUNT ( * ) * 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT 8 + + COUNT( * ) col0
----
9

skipif mysql # not compatible
query I rowsort label-1789
SELECT 8 + + COUNT ( * ) col0
----
9

query I rowsort
SELECT - ( - ( + 63 ) ) AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1791
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT - MIN( ALL + + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-1792
SELECT - MIN ( ALL + + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT COUNT( DISTINCT - + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-1793
SELECT COUNT ( DISTINCT - + 24 )
----
1

query I rowsort
SELECT + 71 - 90
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1795
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 30 + + - 19 AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1797
SELECT - CAST( COUNT( * ) AS SIGNED ) DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-1797
SELECT - CAST ( COUNT ( * ) AS INTEGER ) / + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1798
SELECT ALL + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( - 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1800
SELECT ( CAST( NULL AS SIGNED ) ) + - - 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1800
SELECT ( CAST ( NULL AS INTEGER ) ) + - - 3 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT 99 - + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-1801
SELECT 99 - + COUNT ( * )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT COUNT( ALL 71 )
----
1

skipif mysql # not compatible
query I rowsort label-1803
SELECT COUNT ( ALL 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + SUM( 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1804
SELECT + SUM ( 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT MIN( - ( - 78 ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1805
SELECT MIN ( - ( - 78 ) ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT ALL COUNT( * ) - + 79 col1
----
-78

skipif mysql # not compatible
query I rowsort label-1806
SELECT ALL COUNT ( * ) - + 79 col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL MAX( DISTINCT - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL MAX ( DISTINCT - + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT - 91 + COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1808
SELECT - 91 + COUNT ( * ) AS col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-1809
SELECT + COUNT( * ) AS col0, - 91 * + 78
----
1
-7098

skipif mysql # not compatible
query II rowsort label-1809
SELECT + COUNT ( * ) AS col0, - 91 * + 78
----
1
-7098

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT + SUM( ALL 11 ) + - - 20
----
31

skipif mysql # not compatible
query I rowsort label-1810
SELECT + SUM ( ALL 11 ) + - - 20
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1811
SELECT + ( - CAST( NULL AS DECIMAL ) ) * - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT + ( - CAST ( NULL AS REAL ) ) * - + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL ( + COUNT( * ) ) * COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL ( + COUNT ( * ) ) * COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT COUNT( * ) * COUNT( * ) + - - 11 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-1813
SELECT COUNT ( * ) * COUNT ( * ) + - - 11 AS col0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1814
SELECT - 3 + + 98 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1814
SELECT - 3 + + 98 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 25 * - 88 * + - 77
----
-169400

query I rowsort
SELECT ALL - ( 40 ) * - - ( - 79 )
----
3160

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT 69 - COUNT( * ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-1817
SELECT 69 - COUNT ( * ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT ( COUNT( * ) ) - 30
----
-29

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT ( COUNT ( * ) ) - 30
----
-29

query I rowsort
SELECT ALL - + 61 + - + 20 AS col0
----
-81

query I rowsort
SELECT ALL - + ( + 56 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1821
SELECT ALL COUNT( * ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1822
SELECT + - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT + - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT DISTINCT + + MIN( + 38 ) AS col2, 34 AS col0
----
38
34

skipif mysql # not compatible
query II rowsort label-1823
SELECT DISTINCT + + MIN ( + 38 ) AS col2, 34 AS col0
----
38
34

query I rowsort
SELECT + - ( + - 63 ) AS col1
----
63

query I rowsort
SELECT ALL - 26 * - + 2 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1826
SELECT ALL MAX( ALL + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL MAX ( ALL + - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - - 38 + 76
----
114

query II rowsort
SELECT 17 AS col0, + 5
----
17
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1829
SELECT + CAST( NULL AS SIGNED ) - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT + CAST ( NULL AS INTEGER ) - - 76
----
NULL

query I rowsort
SELECT - 95 * - - 27
----
-2565

query I rowsort
SELECT + COALESCE ( + ( 18 ), + - ( + 28 ) ) AS col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - 19 + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - 19 + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT ALL COUNT( * ) * + 80 * + COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL COUNT ( * ) * + 80 * + COUNT ( * )
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT + CASE + 0 WHEN 41 THEN + CAST( + AVG ( DISTINCT + 73 ) AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT + CASE + 0 WHEN 41 THEN + CAST ( + AVG ( DISTINCT + 73 ) AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1836
SELECT ( + + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT + 54 + COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1837
SELECT + 54 + COUNT ( * ) AS col2
----
55

query I rowsort
SELECT DISTINCT 96 - 30 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT ALL 91 DIV - 81 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL 91 / - 81 AS col2
----
-1

query I rowsort
SELECT 2 * COALESCE ( + 75, - + 67, + 94 )
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT - 92 * COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-1841
SELECT - 92 * COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1842
SELECT ALL + 64 DIV + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL + 64 / + COUNT ( * ) AS col2
----
64

query I rowsort
SELECT DISTINCT + + 72 AS col0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1844
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 73 * - 83 AS col0
----
-6059

query I rowsort
SELECT ALL ( ( + - 90 ) ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL + 15 + - COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL + 15 + - COUNT ( * ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT + MIN( + - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT + MIN ( + - 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1849
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT ALL - SUM( ALL - 32 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - SUM ( ALL - 32 ) AS col1
----
32

query I rowsort
SELECT ALL - - 9 col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT + NULLIF ( 40, + NULLIF ( 38, - + COUNT( * ) * 92 + - 16 ) + - COUNT( * ) ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1852
SELECT + NULLIF ( 40, + NULLIF ( 38, - + COUNT ( * ) * 92 + - 16 ) + - COUNT ( * ) ) AS col0
----
40

query I rowsort
SELECT + - 74 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL + 64 * + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + 64 * + COUNT ( * ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT 41 - - + COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-1855
SELECT 41 - - + COUNT ( * ) AS col0
----
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1856
SELECT DISTINCT CAST( NULL AS DECIMAL ) + ( - 15 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT CAST ( NULL AS REAL ) + ( - 15 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT ALL COUNT( * ) * - + 26
----
-26

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL COUNT ( * ) * - + 26
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT - 90 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1858
SELECT - 90 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + + 82
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-1860
SELECT ALL + COUNT( * ), - COUNT( * ) AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-1860
SELECT ALL + COUNT ( * ), - COUNT ( * ) AS col2
----
1
-1

query I rowsort
SELECT DISTINCT + + 48 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT - - COUNT( * ) + - 91 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-1862
SELECT - - COUNT ( * ) + - 91 AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT - MIN( - 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1863
SELECT - MIN ( - 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT - MAX( DISTINCT 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT - MAX ( DISTINCT 50 )
----
-50

query I rowsort
SELECT + 63 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1866
SELECT 57 * COUNT( DISTINCT 57 )
----
57

skipif mysql # not compatible
query I rowsort label-1866
SELECT 57 * COUNT ( DISTINCT 57 )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-1867
SELECT ALL + 0 * + COUNT( * ) AS col1, 65 col1
----
0
65

skipif mysql # not compatible
query II rowsort label-1867
SELECT ALL + 0 * + COUNT ( * ) AS col1, 65 col1
----
0
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1868
SELECT - 88 + + - COUNT( * ) + + 98 DIV - 4
----
-113

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 88 + + - COUNT ( * ) + + 98 / - 4
----
-113

query I rowsort
SELECT ALL ( - 20 ) col0
----
-20

query I rowsort
SELECT DISTINCT - + 53 col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT COUNT( * ) * - 50
----
-50

skipif mysql # not compatible
query I rowsort label-1871
SELECT COUNT ( * ) * - 50
----
-50

query I rowsort
SELECT DISTINCT + - 39 + + 51 AS col2
----
12

query I rowsort
SELECT - + 79 col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1874
SELECT ALL - CAST( 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL - CAST ( 88 AS INTEGER ) AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1875
SELECT + SUM( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT + SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT + MIN( 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1876
SELECT + MIN ( 68 ) AS col1
----
68

query I rowsort
SELECT + 65 + + 53
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT ALL - 16 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - 16 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( - - 99, - 97 ) AS col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1880
SELECT + ( ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT + ( ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT + 94 col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT + SUM( ALL 76 )
----
76

skipif mysql # not compatible
query I rowsort label-1882
SELECT + SUM ( ALL 76 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT + 95 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1883
SELECT + 95 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1884
SELECT - + CAST( - + 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1884
SELECT - + CAST ( - + 46 AS INTEGER ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ( COUNT( * ) ) - 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1885
SELECT ( COUNT ( * ) ) - 64 AS col2
----
-63

query I rowsort
SELECT 91 * + 74 * + 41 AS col2
----
276094

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT + MAX( DISTINCT - 11 ) + + 43
----
32

skipif mysql # not compatible
query I rowsort label-1887
SELECT + MAX ( DISTINCT - 11 ) + + 43
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1888
SELECT COUNT( * ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-1888
SELECT COUNT ( * ) AS col2, COUNT ( * )
----
1
1

query I rowsort
SELECT ALL 93 col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL + 31 + + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + 31 + + COUNT ( * )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1891
SELECT CAST( 87 AS SIGNED ) * - 42 AS col2
----
-3654

skipif mysql # not compatible
query I rowsort label-1891
SELECT CAST ( 87 AS INTEGER ) * - 42 AS col2
----
-3654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 89
----
NULL

query I rowsort
SELECT ALL - - ( - 81 )
----
-81

query I rowsort
SELECT DISTINCT + + 20 * - + ( - - 10 )
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL + + 78 + + 25 - SUM( ALL + 72 ) * - - 43
----
-2993

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL + + 78 + + 25 - SUM ( ALL + 72 ) * - - 43
----
-2993

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL 44 + - MAX( DISTINCT + 72 ) col1
----
-28

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL 44 + - MAX ( DISTINCT + 72 ) col1
----
-28

query I rowsort
SELECT DISTINCT + + ( + 75 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1898
SELECT - + COUNT( * ) AS col1, CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1898
SELECT - + COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT - MIN( 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - MIN ( 42 )
----
-42

query I rowsort
SELECT - NULLIF ( 28, + 46 ) + 62 AS col2
----
34

query I rowsort
SELECT DISTINCT NULLIF ( - 16, - + 23 )
----
-16

query I rowsort
SELECT DISTINCT ( + 76 )
----
76

query I rowsort
SELECT 32 * 67 - 0
----
2144

query I rowsort
SELECT 50 - 15
----
35

query II rowsort
SELECT ALL 31 AS col1, 73 AS col1
----
31
73

query I rowsort
SELECT ALL 77 - 77 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT DISTINCT + COUNT( 75 )
----
1

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT + COUNT ( 75 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1908
SELECT - CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1908
SELECT - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( - 37 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1910
SELECT ALL - CAST( NULL AS SIGNED ) + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL - CAST ( NULL AS INTEGER ) + 79
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1911
SELECT ALL 87 DIV + + 12
----
7

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL 87 / + + 12
----
7

query I rowsort
SELECT ALL + 98 * + 22 AS col1
----
2156

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL + + SUM( + - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + + SUM ( + - 18 )
----
-18

query I rowsort
SELECT ( 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT - COUNT( * ) - + 84 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-1915
SELECT - COUNT ( * ) - + 84 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT DISTINCT + COUNT( * ) AS col2, + 76
----
1
76

skipif mysql # not compatible
query II rowsort label-1916
SELECT DISTINCT + COUNT ( * ) AS col2, + 76
----
1
76

query I rowsort
SELECT - 42 - - + ( - 22 ) AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1918
SELECT DISTINCT CAST( + CAST( + COUNT( * ) AS SIGNED ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT CAST ( + CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT COUNT( * ) + + 65
----
66

skipif mysql # not compatible
query I rowsort label-1919
SELECT COUNT ( * ) + + 65
----
66

query I rowsort
SELECT - ( - 25 ) + + 81
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT DISTINCT COUNT( * ) * + 55
----
55

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT COUNT ( * ) * + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT - 49 + + 22 + ( - 91 ) + + 84 * COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - 49 + + 22 + ( - 91 ) + + 84 * COUNT ( * )
----
-34

query II rowsort
SELECT ALL - 75, + 76 AS col2
----
-75
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT DISTINCT - MIN( ALL - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT - MIN ( ALL - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT DISTINCT - + SUM( - 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT - + SUM ( - 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1926
SELECT 3 DIV - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-1926
SELECT 3 / - - COUNT ( * )
----
3

query I rowsort
SELECT 4 * - - 29 AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT MIN( + - ( + - 31 ) ) col2
----
31

skipif mysql # not compatible
query I rowsort label-1928
SELECT MIN ( + - ( + - 31 ) ) col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL 41 + - + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL 41 + - + COUNT ( * )
----
40

query II rowsort
SELECT 50 AS col1, - 10 * 92 AS col0
----
50
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT - MIN( DISTINCT 28 ) + + 55 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1931
SELECT - MIN ( DISTINCT 28 ) + + 55 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT NULLIF ( - 35, - - ( + COUNT( * ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-1932
SELECT NULLIF ( - 35, - - ( + COUNT ( * ) ) )
----
-35

query I rowsort
SELECT DISTINCT + 76 col1
----
76

query I rowsort
SELECT ALL + 23 + - - 37 col2
----
60

query I rowsort
SELECT 47 * + - 96
----
-4512

query I rowsort
SELECT ALL - + 35 AS col2
----
-35

query I rowsort
SELECT - ( + + 92 ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT - MAX( DISTINCT - + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-1938
SELECT - MAX ( DISTINCT - + 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT ALL + COUNT( * ) + + + MAX( DISTINCT - 12 ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + COUNT ( * ) + + + MAX ( DISTINCT - 12 ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT SUM( - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-1940
SELECT SUM ( - 1 )
----
-1

query I rowsort
SELECT 47 * - 50 AS col0
----
-2350

query I rowsort
SELECT ALL 82 * - 33 * - 94 * - 87
----
-22129668

onlyif mysql # DIV for integer division: 
query II rowsort label-1943
SELECT - 23, + 94 DIV + + 41 AS col1
----
-23
2

skipif mysql # not compatible
query II rowsort label-1943
SELECT - 23, + 94 / + + 41 AS col1
----
-23
2

query I rowsort
SELECT ALL - - 22 col1
----
22

query I rowsort
SELECT ALL + 91 + + 27 col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL - ( + COUNT( * ) ) * + + 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL - ( + COUNT ( * ) ) * + + 1 AS col1
----
-1

query I rowsort
SELECT ALL + + 54 AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT DISTINCT + + CAST( + 74 AS SIGNED ) col0
----
74

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + + CAST ( + 74 AS INTEGER ) col0
----
74

query II rowsort
SELECT 43 AS col2, + 35 AS col2
----
43
35

query I rowsort
SELECT - 1 + 13 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT - COUNT( * ) + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT - COUNT ( * ) + COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT ALL + + 26 DIV 42 + - ( - + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + + 26 / 42 + - ( - + 92 ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1953
SELECT ALL + + 4 AS col0, - CAST( NULL AS SIGNED ) + 81
----
4
NULL

skipif mysql # not compatible
query II rowsort label-1953
SELECT ALL + + 4 AS col0, - CAST ( NULL AS INTEGER ) + 81
----
4
NULL

query I rowsort
SELECT ALL 7 * + 70
----
490

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1955
SELECT CAST( - - 0 AS SIGNED ) * + 3
----
0

skipif mysql # not compatible
query I rowsort label-1955
SELECT CAST ( - - 0 AS INTEGER ) * + 3
----
0

query I rowsort
SELECT DISTINCT - - 11 AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL - COUNT( ALL 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL - COUNT ( ALL 52 ) AS col1
----
-1

query II rowsort
SELECT ALL - 57 AS col2, 22
----
-57
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1959
SELECT CAST( NULL AS SIGNED ) - - MAX( DISTINCT + 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT CAST ( NULL AS INTEGER ) - - MAX ( DISTINCT + 46 ) AS col2
----
NULL

query I rowsort
SELECT - ( - - 25 ) * - + 1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT ALL - CAST( 79 AS SIGNED ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL - CAST ( 79 AS INTEGER ) AS col1
----
-79

query I rowsort
SELECT 28 * + 20
----
560

query I rowsort
SELECT DISTINCT COALESCE ( - 20, - 32, - 91 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + + 78 * - + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-1964
SELECT + + 78 * - + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + MIN( ALL - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-1965
SELECT + MIN ( ALL - 62 )
----
-62

query I rowsort
SELECT + 3 - 44 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT + MAX( - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-1967
SELECT + MAX ( - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT - COUNT( * ) * - 58 + + 61 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-1968
SELECT - COUNT ( * ) * - 58 + + 61 AS col0
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT ALL + CAST( 16 AS SIGNED ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL + CAST ( 16 AS INTEGER ) AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL + COUNT( + 1 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + COUNT ( + 1 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL COUNT( * ) * 61 + + 18
----
79

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL COUNT ( * ) * 61 + + 18
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT ( - + CAST( - - 44 AS SIGNED ) ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1972
SELECT ( - + CAST ( - - 44 AS INTEGER ) ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT - COALESCE ( COALESCE ( - MAX( ALL - 20 ), + ( COUNT( DISTINCT + - 2 ) ) ), + COUNT( * ) )
----
-20

skipif mysql # not compatible
query I rowsort label-1973
SELECT - COALESCE ( COALESCE ( - MAX ( ALL - 20 ), + ( COUNT ( DISTINCT + - 2 ) ) ), + COUNT ( * ) )
----
-20

query I rowsort
SELECT + 15 + + + ( - 7 ) + + 33 col2
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1975
SELECT COUNT( * ) DIV + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1975
SELECT COUNT ( * ) / + ( - COUNT ( * ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1976
SELECT CAST( NULL AS SIGNED ) * - - 10 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1976
SELECT CAST ( NULL AS INTEGER ) * - - 10 col2
----
NULL

query I rowsort
SELECT DISTINCT - 95 col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT DISTINCT - 87 + + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - 87 + + COUNT ( * ) AS col2
----
-86

query I rowsort
SELECT DISTINCT ( 23 ) AS col1
----
23

query I rowsort
SELECT ( + 68 ) AS col0
----
68

query I rowsort
SELECT - - ( 31 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1982
SELECT + 29 DIV + + 16
----
1

skipif mysql # not compatible
query I rowsort label-1982
SELECT + 29 / + + 16
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1983
SELECT ALL 7 / + - CAST( NULL AS SIGNED ) col0, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-1983
SELECT ALL 7 / + - CAST ( NULL AS INTEGER ) col0, 10
----
NULL
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT DISTINCT - CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT - CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT DISTINCT 82 * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT 82 * COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + 17 col1
----
17

skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + 17 col1
----
17

query I rowsort
SELECT DISTINCT - - 14 + 76
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL - + COUNT( * ) * - 69
----
69

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - + COUNT ( * ) * - 69
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT ALL ( - ( + - COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL ( - ( + - COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL + 98 * - MAX( - 31 ) AS col0
----
3038

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL + 98 * - MAX ( - 31 ) AS col0
----
3038

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL - SUM( ALL 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL - SUM ( ALL 42 )
----
-42

query I rowsort
SELECT + + 33 * 64
----
2112

query I rowsort
SELECT DISTINCT - 45 * - 95
----
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT ALL - 66 * - + COUNT( * ) col2
----
66

skipif mysql # not compatible
query I rowsort label-1994
SELECT ALL - 66 * - + COUNT ( * ) col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 36 + 39
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1997
SELECT + ( + CAST( NULL AS DECIMAL ) ) + - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT + ( + CAST ( NULL AS REAL ) ) + - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL - COUNT( * ) + + 92
----
91

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL - COUNT ( * ) + + 92
----
91

query I rowsort
SELECT + 39 - - 99 AS col1
----
138

query I rowsort
SELECT DISTINCT - + 37 AS col2
----
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2001
SELECT COUNT( * ) DIV + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2001
SELECT COUNT ( * ) / + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT + 49 + SUM( DISTINCT - - 37 )
----
86

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + 49 + SUM ( DISTINCT - - 37 )
----
86

query I rowsort
SELECT ( 48 ) AS col0
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2004
SELECT - MAX( DISTINCT - - 64 ) + + - COUNT( * ) * + - 99 * + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT - MAX ( DISTINCT - - 64 ) + + - COUNT ( * ) * + - 99 * + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2005
SELECT ALL + + 17 col1, + ( - - 70 ) DIV + + 63 AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-2005
SELECT ALL + + 17 col1, + ( - - 70 ) / + + 63 AS col2
----
17
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2006
SELECT ALL 68 DIV - - 20 + - 73
----
-70

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL 68 / - - 20 + - 73
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT SUM( + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-2007
SELECT SUM ( + 87 )
----
87

query I rowsort
SELECT DISTINCT - ( 45 ) * + - 27
----
1215

query I rowsort
SELECT 42 * + - 50 col2
----
-2100

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT 13 * + COUNT( + - 51 )
----
13

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT 13 * + COUNT ( + - 51 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2011
SELECT + - COUNT( * ) + - CAST( - 84 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-2011
SELECT + - COUNT ( * ) + - CAST ( - 84 AS INTEGER )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT + + 62 DIV + 59 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2012
SELECT + + 62 / + 59 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT - - 57 DIV 18 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2013
SELECT - - 57 / 18 AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT - - COUNT( * ) * + 65 + - - SUM( + 2 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-2014
SELECT - - COUNT ( * ) * + 65 + - - SUM ( + 2 ) AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2015
SELECT DISTINCT + COUNT( * ) DIV + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT + COUNT ( * ) / + + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ALL 72 * - 79 AS col2
----
-5688

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2017
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2017
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT - 31 * + 33 col2
----
-1023

query I rowsort
SELECT - 95 + 94 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2020
SELECT ALL + 61 AS col2, COUNT( * )
----
61
1

skipif mysql # not compatible
query II rowsort label-2020
SELECT ALL + 61 AS col2, COUNT ( * )
----
61
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT - COUNT( * ) + - 14 + + 58
----
43

skipif mysql # not compatible
query I rowsort label-2021
SELECT - COUNT ( * ) + - 14 + + 58
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT ALL + COUNT( * ) * + - 79 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL + COUNT ( * ) * + - 79 AS col0
----
-79

query I rowsort
SELECT - - 58
----
58

query I rowsort
SELECT ALL ( - 54 ) AS col0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT + CAST( + 17 AS SIGNED ) col0
----
17

skipif mysql # not compatible
query I rowsort label-2025
SELECT + CAST ( + 17 AS INTEGER ) col0
----
17

query II rowsort
SELECT ALL - 58 AS col0, + NULLIF ( - 23, + 91 ) AS col2
----
-58
-23

query I rowsort
SELECT ALL + 79 + 91 AS col1
----
170

onlyif mysql # aggregate syntax: 
query II rowsort label-2028
SELECT + 6, COUNT( * ) - - - MAX( - 76 ) * - 77 + - ( MAX( ALL + 75 ) ) AS col2
----
6
-5926

skipif mysql # not compatible
query II rowsort label-2028
SELECT + 6, COUNT ( * ) - - - MAX ( - 76 ) * - 77 + - ( MAX ( ALL + 75 ) ) AS col2
----
6
-5926

query I rowsort
SELECT - 6 + + + 97 col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT MIN( + - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-2030
SELECT MIN ( + - 19 ) AS col1
----
-19

query II rowsort
SELECT ALL - 66 * + - 18 * - 57 AS col2, 15
----
-67716
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT + - 33 * + + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-2032
SELECT + - 33 * + + COUNT ( * ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2033
SELECT + + 6 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2033
SELECT + + 6 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL SUM( ALL + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL SUM ( ALL + 69 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT ALL ( 48 ) * - COUNT( * ) col0
----
-48

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL ( 48 ) * - COUNT ( * ) col0
----
-48

query I rowsort
SELECT - 38 col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT + - CASE + + COUNT( * ) WHEN + - 2 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT + - CASE + + COUNT ( * ) WHEN + - 2 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT + - 83 col1
----
-83

query I rowsort
SELECT ALL - - 14 * - 50 * - 2
----
1400

query II rowsort
SELECT 68, 65 col0
----
68
65

onlyif mysql # aggregate syntax: 
query II rowsort label-2041
SELECT - COUNT( * ) col0, + 63 AS col1
----
-1
63

skipif mysql # not compatible
query II rowsort label-2041
SELECT - COUNT ( * ) col0, + 63 AS col1
----
-1
63

query I rowsort
SELECT ALL + 2 * 79
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT - COUNT( * ) * + 49
----
-49

skipif mysql # not compatible
query I rowsort label-2043
SELECT - COUNT ( * ) * + 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT + 58 * + - COUNT( * ) - + 88 col1
----
-146

skipif mysql # not compatible
query I rowsort label-2044
SELECT + 58 * + - COUNT ( * ) - + 88 col1
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT + + 68 + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-2045
SELECT + + 68 + COUNT ( * ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2046
SELECT ALL - CAST( - 73 AS SIGNED ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL - CAST ( - 73 AS INTEGER ) AS col2
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2047
SELECT - COUNT( DISTINCT + - 13 ) AS col1, - 49
----
-1
-49

skipif mysql # not compatible
query II rowsort label-2047
SELECT - COUNT ( DISTINCT + - 13 ) AS col1, - 49
----
-1
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT DISTINCT + 33 * + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT + 33 * + + COUNT ( * )
----
33

query I rowsort
SELECT 61 * - - 67 col1
----
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT DISTINCT - 48 * + COUNT( * ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT - 48 * + COUNT ( * ) AS col0
----
-48

query II rowsort
SELECT 34 AS col0, + 34 AS col0
----
34
34

query I rowsort
SELECT 7 * - 55 AS col2
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT ALL - NULLIF ( 29, + COUNT( * ) ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL - NULLIF ( 29, + COUNT ( * ) ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT ALL + 72 + MAX( ALL - + 78 )
----
-6

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + 72 + MAX ( ALL - + 78 )
----
-6

query II rowsort
SELECT ALL - + 42 * + 72, 74 AS col1
----
-3024
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL - SUM( - 98 ) col0
----
98

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL - SUM ( - 98 ) col0
----
98

query I rowsort
SELECT DISTINCT + 30 + 41
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT COUNT( ALL 48 )
----
1

skipif mysql # not compatible
query I rowsort label-2058
SELECT COUNT ( ALL 48 )
----
1

query I rowsort
SELECT - ( 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL 91 - - COUNT( DISTINCT 36 )
----
92

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL 91 - - COUNT ( DISTINCT 36 )
----
92

query I rowsort
SELECT DISTINCT - 72 - - 47
----
-25

query I rowsort
SELECT ( - 47 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL 42 * - - COUNT( * ) + 57 * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL 42 * - - COUNT ( * ) + 57 * - COUNT ( * )
----
-15

query I rowsort
SELECT NULLIF ( - + 54, + 86 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL SUM( 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL SUM ( 70 ) AS col0
----
70

query I rowsort
SELECT DISTINCT - 46 col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT ALL - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT COUNT( - - 75 )
----
1

skipif mysql # not compatible
query I rowsort label-2069
SELECT COUNT ( - - 75 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT COUNT( * ) * + 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2070
SELECT COUNT ( * ) * + 39 AS col1
----
39

query I rowsort
SELECT - + 22 * 82
----
-1804

query I rowsort
SELECT - + 39 + - + 26 AS col2
----
-65

query I rowsort
SELECT ( + ( + + 70 ) )
----
70

query I rowsort
SELECT DISTINCT + 77 * - + 23
----
-1771

query I rowsort
SELECT + 68 + + - 35
----
33

query I rowsort
SELECT - COALESCE ( - 6, - - 77 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2077
SELECT DISTINCT + CAST( + 75 AS SIGNED ) AS col0, 81 AS col2
----
75
81

skipif mysql # not compatible
query II rowsort label-2077
SELECT DISTINCT + CAST ( + 75 AS INTEGER ) AS col0, 81 AS col2
----
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL + 63 * - NULLIF ( + - COUNT( * ), 98 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + 63 * - NULLIF ( + - COUNT ( * ), 98 ) col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT - CAST( NULL AS SIGNED ) * + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT - CAST ( NULL AS INTEGER ) * + 17
----
NULL

query I rowsort
SELECT ALL 3 * + + 99 AS col0
----
297

query I rowsort
SELECT DISTINCT + 33 * + 44
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT 87 + MIN( - 1 )
----
86

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT 87 + MIN ( - 1 )
----
86

query I rowsort
SELECT DISTINCT - COALESCE ( - - 39, 10, + 27 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT COUNT( * ) * 3 + 86 col2
----
89

skipif mysql # not compatible
query I rowsort label-2084
SELECT COUNT ( * ) * 3 + 86 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT - MIN( 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-2085
SELECT - MIN ( 43 ) col0
----
-43

query I rowsort
SELECT 5 * + 74
----
370

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL 23 + + COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL 23 + + COUNT ( * ) AS col0
----
24

query I rowsort
SELECT DISTINCT - - 84 * + 56 AS col1
----
4704

query I rowsort
SELECT + 58 * + 48 + + 3 + 85
----
2872

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT - COUNT( * ) * - 95 * + + MIN( - 8 ) AS col1
----
-760

skipif mysql # not compatible
query I rowsort label-2090
SELECT - COUNT ( * ) * - 95 * + + MIN ( - 8 ) AS col1
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT - MAX( 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-2091
SELECT - MAX ( 73 )
----
-73

query I rowsort
SELECT 4 + - 57 col1
----
-53

query I rowsort
SELECT ALL + + 13 col2
----
13

query I rowsort
SELECT DISTINCT + 22 + 80
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT - 52 DIV - ( - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT - 52 / - ( - 90 )
----
0

query I rowsort
SELECT ALL + + 85 AS col1
----
85

query I rowsort
SELECT + - 56 * 7
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL COUNT( - 91 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL COUNT ( - 91 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT + - MIN( - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-2099
SELECT + - MIN ( - 1 )
----
1

query I rowsort
SELECT DISTINCT - + 31 AS col0
----
-31

query II rowsort
SELECT ALL + + 48 * 12 AS col0, + 81 AS col2
----
576
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT ALL - COUNT( ALL 15 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL - COUNT ( ALL 15 ) AS col0
----
-1

query I rowsort
SELECT + + 89 AS col1
----
89

query I rowsort
SELECT 98 * - 79 AS col2
----
-7742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT CAST( NULL AS SIGNED ) * - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT CAST ( NULL AS INTEGER ) * - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - SUM( 16 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-2106
SELECT - SUM ( 16 ) AS col1
----
-16

query I rowsort
SELECT DISTINCT ( + 80 ) col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT + 11 + - NULLIF ( + MAX( ALL + + 43 ), - 61 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT + 11 + - NULLIF ( + MAX ( ALL + + 43 ), - 61 ) AS col0
----
-32

query I rowsort
SELECT ALL - ( + 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + MIN( - + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-2110
SELECT + MIN ( - + 57 ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT - COUNT( * ) * - 75 * - 29 AS col2
----
-2175

skipif mysql # not compatible
query I rowsort label-2111
SELECT - COUNT ( * ) * - 75 * - 29 AS col2
----
-2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2112
SELECT DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 57 col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT + - 16 + - - ( + COUNT( * ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-2114
SELECT + - 16 + - - ( + COUNT ( * ) ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT DISTINCT - COUNT( * ) + 46 + + - 88 * + 11 AS col0
----
-923

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT - COUNT ( * ) + 46 + + - 88 * + 11 AS col0
----
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL - COALESCE ( + - COUNT( * ), + - 55 + - - COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - COALESCE ( + - COUNT ( * ), + - 55 + - - COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT SUM( ALL + ( + + 64 ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2117
SELECT SUM ( ALL + ( + + 64 ) ) AS col1
----
64

query I rowsort
SELECT + 42 + + - 41
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT 26 * - + COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2119
SELECT 26 * - + COUNT ( * ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT MAX( 44 )
----
44

skipif mysql # not compatible
query I rowsort label-2120
SELECT MAX ( 44 )
----
44

query I rowsort
SELECT DISTINCT - 83 + + + 79
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT DISTINCT - MIN( + 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT - MIN ( + 31 ) AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2123
SELECT DISTINCT + COUNT( * ) DIV - + 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT + COUNT ( * ) / - + 97 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT + 85 * COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT + 85 * COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT - SUM( DISTINCT + - 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-2125
SELECT - SUM ( DISTINCT + - 81 ) col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2126
SELECT DISTINCT 9 * CAST( NULL AS SIGNED ) + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT 9 * CAST ( NULL AS INTEGER ) + 55
----
NULL

query I rowsort
SELECT + COALESCE ( - - ( - + 79 ), - 38 ) AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2128
SELECT COUNT( * ) DIV 75 + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2128
SELECT COUNT ( * ) / 75 + + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL 76 * 5 - + COUNT( * ) AS col0
----
379

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL 76 * 5 - + COUNT ( * ) AS col0
----
379

query I rowsort
SELECT + 91 + 8
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT ALL COUNT( + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL COUNT ( + 77 )
----
1

query I rowsort
SELECT + 19 * 27 AS col0
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT COUNT( 71 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2133
SELECT COUNT ( 71 ) col2
----
1

query I rowsort
SELECT + 77 + + 54 col1
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT ALL 11 DIV 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL 11 / 65 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT ALL CAST( + 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL CAST ( + 49 AS INTEGER )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT - 87 DIV - 73
----
1

skipif mysql # not compatible
query I rowsort label-2137
SELECT - 87 / - 73
----
1

query I rowsort
SELECT 72 - 13 AS col2
----
59

query I rowsort
SELECT - 45 + 27 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT DISTINCT + 39 + + + COUNT( * ) * ( CAST( NULL AS SIGNED ) + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT + 39 + + + COUNT ( * ) * ( CAST ( NULL AS INTEGER ) + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 21 - - 84 * 17 AS col0
----
1449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2142
SELECT - CAST( NULL AS SIGNED ) / 10 + + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT - CAST ( NULL AS INTEGER ) / 10 + + 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT - 59 * + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-2143
SELECT - 59 * + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT + MAX( ALL 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2144
SELECT + MAX ( ALL 34 ) AS col1
----
34

query I rowsort
SELECT ALL 52 * - 49
----
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT COUNT( * ) + 24
----
25

skipif mysql # not compatible
query I rowsort label-2146
SELECT COUNT ( * ) + 24
----
25

query I rowsort
SELECT ALL + - 76
----
-76

query I rowsort
SELECT - 63 - 61 col0
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT - NULLIF ( 54, - ( COUNT( * ) ) ) + - 83
----
-137

skipif mysql # not compatible
query I rowsort label-2149
SELECT - NULLIF ( 54, - ( COUNT ( * ) ) ) + - 83
----
-137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 90 * 16 AS col0
----
-1440

query I rowsort
SELECT ALL - - ( - 21 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT COUNT( * ) * - + 52 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2153
SELECT COUNT ( * ) * - + 52 AS col0
----
-52

query II rowsort
SELECT 56, + 56 col2
----
56
56

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2155
SELECT DISTINCT - 48 col2, CAST( NULL AS DECIMAL ) AS col1
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-2155
SELECT DISTINCT - 48 col2, CAST ( NULL AS REAL ) AS col1
----
-48
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2156
SELECT 5 - ( + 27 ) * CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-2156
SELECT 5 - ( + 27 ) * CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2157
SELECT ALL - ( - - COUNT( * ) ) * + 33
----
-33

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL - ( - - COUNT ( * ) ) * + 33
----
-33

query II rowsort
SELECT + 79 AS col0, 28
----
79
28

query II rowsort
SELECT ALL 3 col1, - 58 AS col2
----
3
-58

query I rowsort
SELECT DISTINCT - + 95 AS col1
----
-95

query II rowsort
SELECT ALL - 69 AS col2, + 53 AS col1
----
-69
53

query I rowsort
SELECT + 98 + + + 7 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL COUNT( * ) + + 97 + + 48 AS col2
----
146

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL COUNT ( * ) + + 97 + + 48 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL + 1 * + - COUNT( * ) + - + 62 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL + 1 * + - COUNT ( * ) + - + 62 AS col2
----
-63

query I rowsort
SELECT ( + 78 ) AS col2
----
78

query I rowsort
SELECT ( - + 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT - 34 + COUNT( * ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-2167
SELECT - 34 + COUNT ( * ) AS col2
----
-33

query I rowsort
SELECT ( 63 ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT DISTINCT + MIN( - 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + MIN ( - 25 ) AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2170
SELECT + COUNT( * ) + + - CAST( NULL AS SIGNED ) * - 16 / - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * - 16 / - 63
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT - CAST( NULL AS SIGNED ) * 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2171
SELECT - CAST ( NULL AS INTEGER ) * 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT ALL + + COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + + COUNT ( * ) + - COUNT ( * )
----
0

query I rowsort
SELECT ALL - ( 90 ) AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2174
SELECT CAST( NULL AS SIGNED ) * - - CAST( - COUNT( * ) AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT CAST ( NULL AS INTEGER ) * - - CAST ( - COUNT ( * ) AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT - ( - MIN( - 4 ) ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT - ( - MIN ( - 4 ) ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT ALL - MIN( 53 ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2176
SELECT ALL - MIN ( 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT ALL - SUM( DISTINCT + 69 ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL - SUM ( DISTINCT + 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT MAX( 89 )
----
89

skipif mysql # not compatible
query I rowsort label-2178
SELECT MAX ( 89 )
----
89

query I rowsort
SELECT DISTINCT - ( + 79 )
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2180
SELECT ALL - ( + 8 ) / + + CAST( NULL AS DECIMAL ) AS col1, 37 AS col2
----
NULL
37

skipif mysql # not compatible
query II rowsort label-2180
SELECT ALL - ( + 8 ) / + + CAST ( NULL AS REAL ) AS col1, 37 AS col2
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT ALL + 16 + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-2181
SELECT ALL + 16 + - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL MIN( DISTINCT + - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL MIN ( DISTINCT + - 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT DISTINCT - 0 - + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT - 0 - + + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT + MIN( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-2184
SELECT + MIN ( ALL 14 )
----
14

query I rowsort
SELECT + 51 * + + 86 AS col2
----
4386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2187
SELECT + 15 DIV - + COUNT( * ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 15 / - + COUNT ( * ) col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2188
SELECT ALL + CAST( NULL AS SIGNED ), COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2188
SELECT ALL + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2189
SELECT - - CAST( 78 AS SIGNED ) * + 49 AS col2
----
3822

skipif mysql # not compatible
query I rowsort label-2189
SELECT - - CAST ( 78 AS INTEGER ) * + 49 AS col2
----
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT ALL + CAST( NULL AS SIGNED ) * 50 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + CAST ( NULL AS INTEGER ) * 50 col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + 63 ) * - 28
----
1764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT ALL COUNT( * ) DIV - + COUNT( * ) + + - 94 * + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL COUNT ( * ) / - + COUNT ( * ) + + - 94 * + COUNT ( * )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2193
SELECT CAST( - COUNT( * ) AS SIGNED ), 53 * + - 46 + + COUNT( * ) AS col2
----
-1
-2437

skipif mysql # not compatible
query II rowsort label-2193
SELECT CAST ( - COUNT ( * ) AS INTEGER ), 53 * + - 46 + + COUNT ( * ) AS col2
----
-1
-2437

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT + SUM( + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-2194
SELECT + SUM ( + 72 )
----
72

query I rowsort
SELECT ALL + 60 + + 61 AS col2
----
121

query I rowsort
SELECT 88 * - - 99 AS col0
----
8712

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT - 89 + + COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-2197
SELECT - 89 + + COUNT ( * ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT COUNT( * ) + + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2198
SELECT COUNT ( * ) + + COUNT ( * ) col0
----
2

query I rowsort
SELECT + 29 * 82 + + 27 AS col2
----
2405

query I rowsort
SELECT + + 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT DISTINCT + COUNT( DISTINCT - 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT + COUNT ( DISTINCT - 53 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 19 * 44
----
-836

query I rowsort
SELECT - 33 + - 83 AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL + ( + - ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL + ( + - ( - COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT - COUNT( - + 22 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2205
SELECT - COUNT ( - + 22 ) AS col0
----
-1

query I rowsort
SELECT ALL ( + 85 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT COUNT( * ) AS col2, ( + COUNT( * ) )
----
1
1

skipif mysql # not compatible
query II rowsort label-2207
SELECT COUNT ( * ) AS col2, ( + COUNT ( * ) )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2208
SELECT + COUNT( * ) DIV - + 27 AS col2, + 8 AS col0
----
0
8

skipif mysql # not compatible
query II rowsort label-2208
SELECT + COUNT ( * ) / - + 27 AS col2, + 8 AS col0
----
0
8

query I rowsort
SELECT ALL - 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT 9 + + COUNT( * ) + - COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2210
SELECT 9 + + COUNT ( * ) + - COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT + COUNT( * ) AS col2, 2
----
1
2

skipif mysql # not compatible
query II rowsort label-2211
SELECT + COUNT ( * ) AS col2, 2
----
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT + - 86 DIV + 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2212
SELECT + - 86 / + 52 AS col1
----
-1

query I rowsort
SELECT + ( + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT MAX( - - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-2214
SELECT MAX ( - - 31 )
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2215
SELECT 74 DIV + ( NULLIF ( 82, + 73 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2215
SELECT 74 / + ( NULLIF ( 82, + 73 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT ALL - COUNT( DISTINCT 25 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - COUNT ( DISTINCT 25 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT ALL + ( 50 ) + COUNT( * ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL + ( 50 ) + COUNT ( * ) AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT - + CAST( - 18 AS SIGNED ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-2218
SELECT - + CAST ( - 18 AS INTEGER ) AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2219
SELECT DISTINCT COUNT( * ) col1, 33
----
1
33

skipif mysql # not compatible
query II rowsort label-2219
SELECT DISTINCT COUNT ( * ) col1, 33
----
1
33

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT 58 + - - 44 DIV + 86
----
58

skipif mysql # not compatible
query I rowsort label-2220
SELECT 58 + - - 44 / + 86
----
58

query II rowsort
SELECT - 60 AS col1, + 20 AS col1
----
-60
20

query I rowsort
SELECT 0 * + - 15 AS col2
----
0

query I rowsort
SELECT DISTINCT 14 + - 27 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT + COUNT( - ( 47 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2224
SELECT + COUNT ( - ( 47 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT ALL + - COUNT( * ) * - 48 DIV - + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL + - COUNT ( * ) * - 48 / - + COUNT ( * ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT COUNT( 66 ), COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2226
SELECT COUNT ( 66 ), COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - ( 73 ) col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2228
SELECT ALL + + MIN( ALL - + 47 ) * - + CAST( - 68 AS SIGNED )
----
-3196

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + + MIN ( ALL - + 47 ) * - + CAST ( - 68 AS INTEGER )
----
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ( COUNT( * ) ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2229
SELECT ( COUNT ( * ) ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT DISTINCT 50 * - + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT 50 * - + COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT 14 * - 99
----
-1386

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2232
SELECT + CAST( NULL AS SIGNED ) / 38 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2232
SELECT + CAST ( NULL AS INTEGER ) / 38 col1
----
NULL

query I rowsort
SELECT ALL + 95 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT DISTINCT - 90 * - 13 * - ( COUNT( * ) ) AS col2
----
-1170

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT - 90 * - 13 * - ( COUNT ( * ) ) AS col2
----
-1170

query I rowsort
SELECT + + 52 + - 12 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT DISTINCT + - MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT + - MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT - 66 + + COUNT( DISTINCT + + 44 )
----
-65

skipif mysql # not compatible
query I rowsort label-2237
SELECT - 66 + + COUNT ( DISTINCT + + 44 )
----
-65

query I rowsort
SELECT + 1 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT ALL ( COUNT( * ) ) DIV + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2239
SELECT ALL ( COUNT ( * ) ) / + + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT ( + 51 )
----
51

query II rowsort
SELECT DISTINCT 83, - 53 AS col2
----
83
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2242
SELECT 59 AS col1, COUNT( * ) AS col0
----
59
1

skipif mysql # not compatible
query II rowsort label-2242
SELECT 59 AS col1, COUNT ( * ) AS col0
----
59
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2243
SELECT ALL 84 AS col2, COUNT( * )
----
84
1

skipif mysql # not compatible
query II rowsort label-2243
SELECT ALL 84 AS col2, COUNT ( * )
----
84
1

query I rowsort
SELECT + - 30 AS col0
----
-30

query I rowsort
SELECT + - 92 * 33
----
-3036

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2246
SELECT + + 15 DIV 74 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2246
SELECT + + 15 / 74 - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL - ( - 71 ) + - SUM( ALL - + 52 )
----
123

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL - ( - 71 ) + - SUM ( ALL - + 52 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL + 1 + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + 1 + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT DISTINCT 90, COUNT( * ) AS col0
----
90
1

skipif mysql # not compatible
query II rowsort label-2249
SELECT DISTINCT 90, COUNT ( * ) AS col0
----
90
1

query I rowsort
SELECT + ( - + 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT ALL - CAST( NULL AS SIGNED ) + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - CAST ( NULL AS INTEGER ) + - 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT DISTINCT - 3 - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT - 3 - COUNT ( * )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2253
SELECT DISTINCT CAST( + 29 AS SIGNED ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT CAST ( + 29 AS INTEGER ) AS col0
----
29

query I rowsort
SELECT ALL - - 3 AS col1
----
3

query I rowsort
SELECT DISTINCT ( - + 9 ) * 32
----
-288

query II rowsort
SELECT + 15 * - 60, 8 AS col0
----
-900
8

query I rowsort
SELECT - 77 * 37
----
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT - 43 * - COUNT( * ) * COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2258
SELECT - 43 * - COUNT ( * ) * COUNT ( * ) AS col0
----
43

query I rowsort
SELECT - 29 * + 8 - - + 57
----
-175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2260
SELECT - COUNT( * ) DIV - 60 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2260
SELECT - COUNT ( * ) / - 60 + - COUNT ( * )
----
-1

query I rowsort
SELECT + 73 * + 87
----
6351

onlyif mysql # aggregate syntax: 
query II rowsort label-2262
SELECT ALL 39 AS col0, + COUNT( * )
----
39
1

skipif mysql # not compatible
query II rowsort label-2262
SELECT ALL 39 AS col0, + COUNT ( * )
----
39
1

query I rowsort
SELECT DISTINCT - 68 + + 86
----
18

query I rowsort
SELECT - - ( + 0 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2265
SELECT ALL - ( - + 42 ), + COUNT( * ) AS col0
----
42
1

skipif mysql # not compatible
query II rowsort label-2265
SELECT ALL - ( - + 42 ), + COUNT ( * ) AS col0
----
42
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2266
SELECT + CAST( + - COUNT( DISTINCT + - 38 ) AS SIGNED ) - - 57
----
56

skipif mysql # not compatible
query I rowsort label-2266
SELECT + CAST ( + - COUNT ( DISTINCT + - 38 ) AS INTEGER ) - - 57
----
56

query II rowsort
SELECT ( + - 16 ) AS col1, 50
----
-16
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT + 21 + - COUNT( * ) + + 28 col2
----
48

skipif mysql # not compatible
query I rowsort label-2268
SELECT + 21 + - COUNT ( * ) + + 28 col2
----
48

query I rowsort
SELECT - ( + 53 )
----
-53

query II rowsort
SELECT ALL - 33 + - - 5 AS col1, 21 AS col1
----
-28
21

query II rowsort
SELECT ALL + 33 AS col0, 66 AS col2
----
33
66

query I rowsort
SELECT DISTINCT + + 79 AS col0
----
79

query I rowsort
SELECT 84 col0
----
84

query I rowsort
SELECT - 32 * - 38 AS col2
----
1216

query I rowsort
SELECT - 50 + + - 37
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2276
SELECT ALL 91 DIV - + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-2276
SELECT ALL 91 / - + COUNT ( * )
----
-91

query I rowsort
SELECT ALL - + 57 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT ALL + + ( - ( - - COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL + + ( - ( - - COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT - - 19 * + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-2279
SELECT - - 19 * + COUNT ( * )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2280
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2280
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2281
SELECT - COUNT( 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-2281
SELECT - COUNT ( 63 )
----
-1

query I rowsort
SELECT DISTINCT + 53 * - 87 AS col0
----
-4611

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT + NULLIF ( + - 61, 56 ) DIV 21
----
-2

skipif mysql # not compatible
query I rowsort label-2283
SELECT + NULLIF ( + - 61, 56 ) / 21
----
-2

query I rowsort
SELECT ALL + 56 col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT DISTINCT - 48 DIV + 21 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT - 48 / + 21 AS col1
----
-2

query I rowsort
SELECT + 73 + + + 45
----
118

query II rowsort
SELECT - 82 AS col0, 80 AS col0
----
-82
80

query II rowsort
SELECT + 23 AS col0, - 55
----
23
-55

query I rowsort
SELECT DISTINCT - 42 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT ALL COUNT( * ) - + 29 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL COUNT ( * ) - + 29 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT - - SUM( DISTINCT 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2291
SELECT - - SUM ( DISTINCT 20 ) AS col1
----
20

query I rowsort
SELECT ALL ( - 68 ) + + 44
----
-24

query I rowsort
SELECT DISTINCT - 72 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT ALL + 36 * + CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL + 36 * + CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT + MAX( DISTINCT + 2 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2295
SELECT + MAX ( DISTINCT + 2 ) AS col2
----
2

query I rowsort
SELECT DISTINCT - + 89 - 29 AS col1
----
-118

query I rowsort
SELECT 5 * - 69 AS col0
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT + COUNT( * ) * - - 76 * + 62 + 19 AS col1
----
4731

skipif mysql # not compatible
query I rowsort label-2298
SELECT + COUNT ( * ) * - - 76 * + 62 + 19 AS col1
----
4731

onlyif mysql # DIV for integer division: 
query I rowsort label-2299
SELECT 25 DIV - + 69
----
0

skipif mysql # not compatible
query I rowsort label-2299
SELECT 25 / - + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT COUNT( * ) * - + 71
----
-71

skipif mysql # not compatible
query I rowsort label-2300
SELECT COUNT ( * ) * - + 71
----
-71

query I rowsort
SELECT + + 24 AS col0
----
24

query I rowsort
SELECT DISTINCT - - 25 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2303
SELECT ALL - - 41 * 53 + CAST( - MIN( - - 21 ) AS SIGNED )
----
2152

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL - - 41 * 53 + CAST ( - MIN ( - - 21 ) AS INTEGER )
----
2152

query II rowsort
SELECT + 92 AS col1, 16 AS col2
----
92
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT DISTINCT MAX( DISTINCT - 59 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT MAX ( DISTINCT - 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT COUNT( * ) + - 99
----
-98

skipif mysql # not compatible
query I rowsort label-2306
SELECT COUNT ( * ) + - 99
----
-98

query I rowsort
SELECT ALL 54 * + 21
----
1134

onlyif mysql # aggregate syntax: 
query II rowsort label-2308
SELECT + + 93 * 29, COUNT( ALL - 17 ) AS col2
----
2697
1

skipif mysql # not compatible
query II rowsort label-2308
SELECT + + 93 * 29, COUNT ( ALL - 17 ) AS col2
----
2697
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - 57 + + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-2309
SELECT - 57 + + COUNT ( * )
----
-56

query I rowsort
SELECT ALL + 44 + + 23
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + 25 + SUM( + 47 )
----
72

skipif mysql # not compatible
query I rowsort label-2311
SELECT + 25 + SUM ( + 47 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT + - ( COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2312
SELECT + - ( COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT DISTINCT + 19 * - 35
----
-665

query I rowsort
SELECT ALL + 46 col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT ALL + + MAX( + 24 )
----
24

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + + MAX ( + 24 )
----
24

query I rowsort
SELECT + ( + - 21 )
----
-21

query I rowsort
SELECT + 70 + + 27 AS col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2318
SELECT ALL - + COUNT( * ) AS col0, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-2318
SELECT ALL - + COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT + CAST( - - 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-2319
SELECT + CAST ( - - 66 AS INTEGER )
----
66

query I rowsort
SELECT ALL - + 87 AS col2
----
-87

query I rowsort
SELECT DISTINCT - 1 col0
----
-1

query I rowsort
SELECT + ( - 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT ALL MAX( + - 69 ) + + - 42 * 92 * - - 29
----
-112125

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL MAX ( + - 69 ) + + - 42 * 92 * - - 29
----
-112125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2324
SELECT ALL - SUM( - 95 ) DIV + 12 + + 75
----
82

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL - SUM ( - 95 ) / + 12 + + 75
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2325
SELECT ALL + - ( + - ( CAST( COUNT( * ) AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + - ( + - ( CAST ( COUNT ( * ) AS INTEGER ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT NULLIF ( + CAST( + 72 AS SIGNED ), - + COUNT( * ) )
----
72

skipif mysql # not compatible
query I rowsort label-2326
SELECT NULLIF ( + CAST ( + 72 AS INTEGER ), - + COUNT ( * ) )
----
72

query I rowsort
SELECT ALL + + 73 + - 18 AS col2
----
55

query I rowsort
SELECT ALL ( 35 ) AS col0
----
35

query I rowsort
SELECT 25 * + + 18 AS col2
----
450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT CAST( NULL AS SIGNED ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT CAST ( NULL AS INTEGER ) + - 58
----
NULL

query I rowsort
SELECT + 11 col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2332
SELECT DISTINCT + 16 DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT + 16 / 19
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2333
SELECT COUNT( * ) DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-2333
SELECT COUNT ( * ) / + 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT COUNT( * ) * + 19
----
19

skipif mysql # not compatible
query I rowsort label-2334
SELECT COUNT ( * ) * + 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT MAX( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-2335
SELECT MAX ( 88 ) AS col1
----
88

query I rowsort
SELECT ALL 14 + ( + 37 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT DISTINCT + ( + - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + ( + - COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL 92 + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL 92 + COUNT ( * )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT COUNT( ALL + 69 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT COUNT ( ALL + 69 ) col0
----
1

query I rowsort
SELECT + 50 + 86 + - 36 AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2341
SELECT - SUM( + 86 ) * - 45
----
3870

skipif mysql # not compatible
query I rowsort label-2341
SELECT - SUM ( + 86 ) * - 45
----
3870

query I rowsort
SELECT ALL + NULLIF ( + 54, - + 93 )
----
54

query I rowsort
SELECT DISTINCT + ( + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL - MIN( + 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - MIN ( + 87 ) AS col1
----
-87

query I rowsort
SELECT + 16 * - 21 AS col2
----
-336

query I rowsort
SELECT 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT DISTINCT + MIN( DISTINCT - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT + MIN ( DISTINCT - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ALL 21 + + + SUM( ALL - 42 ) * + 55
----
-2289

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL 21 + + + SUM ( ALL - 42 ) * + 55
----
-2289

onlyif mysql # aggregate syntax: 
query II rowsort label-2349
SELECT - COUNT( * ) col1, SUM( ALL 60 ) * + 9
----
-1
540

skipif mysql # not compatible
query II rowsort label-2349
SELECT - COUNT ( * ) col1, SUM ( ALL 60 ) * + 9
----
-1
540

query I rowsort
SELECT ALL + 80 - - - 51
----
29

query I rowsort
SELECT ALL - ( - 31 ) AS col0
----
31

query I rowsort
SELECT DISTINCT NULLIF ( - + 9, + + 61 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT + COUNT( ALL + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-2353
SELECT + COUNT ( ALL + 65 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2354
SELECT ALL + - COUNT( * ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2354
SELECT ALL + - COUNT ( * ) * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 26 AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2356
SELECT - MIN( ALL 20 ) - 78 * - + ( CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2356
SELECT - MIN ( ALL 20 ) - 78 * - + ( CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL ( 32 ) AS col2
----
32

query I rowsort
SELECT ALL ( 38 )
----
38

query I rowsort
SELECT DISTINCT + 2 * + ( 64 )
----
128

query I rowsort
SELECT DISTINCT 13 + - 45
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT ALL - - COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL - - COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT ALL + CAST( NULL AS SIGNED ) - - + 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + CAST ( NULL AS INTEGER ) - - + 26 AS col2
----
NULL

query I rowsort
SELECT + - 40 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT - ( + CAST( NULL AS SIGNED ) ) + + - 15 - - 23 + - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT - ( + CAST ( NULL AS INTEGER ) ) + + - 15 - - 23 + - + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL - SUM( - 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL - SUM ( - 3 ) AS col1
----
3

query I rowsort
SELECT DISTINCT - 30 AS col2
----
-30

query I rowsort
SELECT 69 + - 59
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT 13 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT 13 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT - COUNT( ALL + 63 ) + ( - 18 )
----
-19

skipif mysql # not compatible
query I rowsort label-2369
SELECT - COUNT ( ALL + 63 ) + ( - 18 )
----
-19

query I rowsort
SELECT DISTINCT - + 32 AS col1
----
-32

query I rowsort
SELECT DISTINCT + ( 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL + ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT 85 * + - ( - 64 ) AS col1
----
5440

query I rowsort
SELECT ALL 13 - + 60 AS col0
----
-47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2375
SELECT + - COUNT( * ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT + - COUNT ( * ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + ( - - 61 ) AS col1
----
61

query I rowsort
SELECT ALL + + 78 col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT ALL + SUM( DISTINCT + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL + SUM ( DISTINCT + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT + MAX( 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-2379
SELECT + MAX ( 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT - MAX( - - 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-2380
SELECT - MAX ( - - 42 ) AS col1
----
-42

query I rowsort
SELECT ALL ( 2 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2382
SELECT DISTINCT CAST( - + 1 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT CAST ( - + 1 AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT - + 41 AS col2
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2384
SELECT + + CAST( NULL AS SIGNED ) * + 88 - + 91 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2384
SELECT + + CAST ( NULL AS INTEGER ) * + 88 - + 91 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2385
SELECT ALL 21 + + COUNT( * ) * - 59 DIV 37
----
20

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL 21 + + COUNT ( * ) * - 59 / 37
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2386
SELECT DISTINCT - AVG ( CAST( NULL AS SIGNED ) ) * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - AVG ( CAST ( NULL AS INTEGER ) ) * 47
----
NULL

query II rowsort
SELECT - - 71, - 69 * + 85 AS col1
----
71
-5865

query I rowsort
SELECT + 50 - 49 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2389
SELECT CAST( NULL AS SIGNED ) - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT CAST ( NULL AS INTEGER ) - - 58
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2390
SELECT - CAST( NULL AS SIGNED ) AS col1, - 6
----
NULL
-6

skipif mysql # not compatible
query II rowsort label-2390
SELECT - CAST ( NULL AS INTEGER ) AS col1, - 6
----
NULL
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2391
SELECT DISTINCT - MIN( DISTINCT - 67 ), + 63 AS col1
----
67
63

skipif mysql # not compatible
query II rowsort label-2391
SELECT DISTINCT - MIN ( DISTINCT - 67 ), + 63 AS col1
----
67
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL - 60 + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL - 60 + COUNT ( * )
----
-59

query I rowsort
SELECT ALL ( 78 ) AS col1
----
78

query I rowsort
SELECT DISTINCT 21 + - 8
----
13

query I rowsort
SELECT DISTINCT NULLIF ( - - 85, + 38 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL + 76 - - COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL + 76 - - COUNT ( * ) AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT + MAX( ALL - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2398
SELECT DISTINCT + CAST( 36 AS SIGNED ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT + CAST ( 36 AS INTEGER ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT + + COUNT( * ) * + 33 * + - 52 AS col1
----
-1716

skipif mysql # not compatible
query I rowsort label-2399
SELECT + + COUNT ( * ) * + 33 * + - 52 AS col1
----
-1716

query I rowsort
SELECT + - 23 + + 54 AS col2
----
31

query I rowsort
SELECT - 61 + + + 50
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2402
SELECT CAST( 27 AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2402
SELECT CAST ( 27 AS INTEGER ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2403
SELECT ALL + SUM( - + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL + SUM ( - + 18 )
----
-18

query I rowsort
SELECT 38 + + 51 AS col2
----
89

query I rowsort
SELECT DISTINCT ( 56 ) * + + 92
----
5152

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT ALL + COUNT( * ) * - + 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + COUNT ( * ) * - + 48 AS col1
----
-48

query I rowsort
SELECT - 53 - + 59
----
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2408
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 31 + 2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT - MIN( ALL - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-2410
SELECT - MIN ( ALL - 18 )
----
18

query I rowsort
SELECT + + 11 + + + 11 + - - 4
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT ALL + - COUNT( 87 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL + - COUNT ( 87 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + ( + - 54 ) col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT - MIN( + + 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-2414
SELECT - MIN ( + + 9 ) AS col0
----
-9

query I rowsort
SELECT DISTINCT + ( 90 ) AS col1
----
90

query I rowsort
SELECT DISTINCT + + 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT MAX( + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-2417
SELECT MAX ( + 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2418
SELECT ALL COUNT( - + 49 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL COUNT ( - + 49 ) AS col0
----
1

query I rowsort
SELECT 76 + + ( - 7 ) AS col1
----
69

query I rowsort
SELECT DISTINCT - 38 - + - 24 AS col1
----
-14

query I rowsort
SELECT DISTINCT ( + + 72 ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT MAX( DISTINCT + 54 )
----
54

skipif mysql # not compatible
query I rowsort label-2422
SELECT MAX ( DISTINCT + 54 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + COUNT( 94 )
----
1

skipif mysql # not compatible
query I rowsort label-2423
SELECT + COUNT ( 94 )
----
1

query I rowsort
SELECT ALL - - 77 AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT ALL COUNT( - + 10 ) * + 4
----
4

skipif mysql # not compatible
query I rowsort label-2425
SELECT ALL COUNT ( - + 10 ) * + 4
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2426
SELECT 77 col1, COUNT( * ) DIV 66
----
77
0

skipif mysql # not compatible
query II rowsort label-2426
SELECT 77 col1, COUNT ( * ) / 66
----
77
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2427
SELECT - COUNT( * ) AS col2, + COUNT( * ) * - + 85 AS col1
----
-1
-85

skipif mysql # not compatible
query II rowsort label-2427
SELECT - COUNT ( * ) AS col2, + COUNT ( * ) * - + 85 AS col1
----
-1
-85

query I rowsort
SELECT DISTINCT - ( - 74 ) * - 99 * + 40 + 11
----
-293029

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT 15 * COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT 15 * COUNT ( * ) AS col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2430
SELECT ALL - ( - + COUNT( * ) ), CAST( NULL AS SIGNED ) * + - 87 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2430
SELECT ALL - ( - + COUNT ( * ) ), CAST ( NULL AS INTEGER ) * + - 87 AS col1
----
1
NULL

query I rowsort
SELECT - ( - + 42 ) * + 67 AS col2
----
2814

query I rowsort
SELECT 86 * - 97 AS col0
----
-8342

query I rowsort
SELECT DISTINCT 69 col1
----
69

query II rowsort
SELECT DISTINCT 4 AS col2, 77
----
4
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL MAX( - 83 ) * - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL MAX ( - 83 ) * - COUNT ( * )
----
83

query I rowsort
SELECT ALL + ( - - 54 ) AS col0
----
54

query I rowsort
SELECT + - 16 * - - ( 76 ) AS col2
----
-1216

query I rowsort
SELECT + + 31 * 92
----
2852

query I rowsort
SELECT + - ( - 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT ALL - COUNT( * ) + + ( + 36 ) * + 52 AS col0
----
1871

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL - COUNT ( * ) + + ( + 36 ) * + 52 AS col0
----
1871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2441
SELECT DISTINCT CAST( 16 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-2441
SELECT DISTINCT CAST ( 16 AS INTEGER ) AS col1
----
16

query I rowsort
SELECT 91 + 81
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT COUNT( * ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-2443
SELECT COUNT ( * ) + + 19
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT COUNT( * ) DIV - 69
----
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT COUNT ( * ) / - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL - COUNT( * ) * + 59 + - ( - 73 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL - COUNT ( * ) * + 59 + - ( - 73 ) AS col2
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2446
SELECT SUM( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT - 78 - + 59 AS col1
----
-137

query I rowsort
SELECT - ( + 78 )
----
-78

query I rowsort
SELECT + + 49 * 68 - + - 38 col1
----
3370

onlyif mysql # aggregate syntax: 
query II rowsort label-2450
SELECT ALL - 47 AS col2, COUNT( * ) col2
----
-47
1

skipif mysql # not compatible
query II rowsort label-2450
SELECT ALL - 47 AS col2, COUNT ( * ) col2
----
-47
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT MIN( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-2451
SELECT MIN ( 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + COUNT( * ) - - 6
----
7

skipif mysql # not compatible
query I rowsort label-2452
SELECT + COUNT ( * ) - - 6
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL + + ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + + ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT - 85 * + ( + 17 )
----
-1445

query I rowsort
SELECT ALL ( + 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT ALL - 82 * + COUNT( * ) + - 81
----
-163

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - 82 * + COUNT ( * ) + - 81
----
-163

query I rowsort
SELECT ALL - 55 - 12 AS col2
----
-67

query I rowsort
SELECT 18 + + 61 AS col1
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2459
SELECT DISTINCT - 98 * + NULLIF ( - 64, - - CAST( NULL AS DECIMAL ) )
----
6272

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT - 98 * + NULLIF ( - 64, - - CAST ( NULL AS REAL ) )
----
6272

query II rowsort
SELECT 95 AS col0, - 28
----
95
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2461
SELECT - - 10 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT - - 10 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT - MIN( DISTINCT - 38 ) + + - COUNT( * ) + 33 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2462
SELECT - MIN ( DISTINCT - 38 ) + + - COUNT ( * ) + 33 AS col2
----
70

query I rowsort
SELECT - 0 * - 88
----
0

query I rowsort
SELECT - + 83 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL - ( SUM( + + 87 ) ) + - 46
----
-133

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - ( SUM ( + + 87 ) ) + - 46
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2466
SELECT ALL - CAST( - 10 AS SIGNED ) + + + 81 AS col1
----
91

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - CAST ( - 10 AS INTEGER ) + + + 81 AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT - MIN( ALL + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT - MIN ( ALL + 83 )
----
-83

query I rowsort
SELECT ALL + 47 * 57
----
2679

query I rowsort
SELECT ALL - - 44 AS col2
----
44

query I rowsort
SELECT ALL + - 48 + - 44
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2471
SELECT - MIN( DISTINCT + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT - MIN ( DISTINCT + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT DISTINCT - 8 DIV + - 49
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT - 8 / + - 49
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT + CAST( NULL AS SIGNED ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT + CAST ( NULL AS INTEGER ) * 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2474
SELECT + COUNT( * ) + + 68
----
69

skipif mysql # not compatible
query I rowsort label-2474
SELECT + COUNT ( * ) + + 68
----
69

query I rowsort
SELECT DISTINCT + - COALESCE ( - 83, + 77 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT - - ( - MAX( DISTINCT 46 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-2476
SELECT - - ( - MAX ( DISTINCT 46 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT MAX( 77 )
----
77

skipif mysql # not compatible
query I rowsort label-2477
SELECT MAX ( 77 )
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2478
SELECT + 7 DIV - 14 * 11
----
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT + 7 / - 14 * 11
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2479
SELECT 75 col0, - ( + - COUNT( * ) ) AS col0
----
75
1

skipif mysql # not compatible
query II rowsort label-2479
SELECT 75 col0, - ( + - COUNT ( * ) ) AS col0
----
75
1

query I rowsort
SELECT DISTINCT - - 95 AS col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT + - AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2481
SELECT + - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT 15 + - COALESCE ( - 10, ( + COUNT( * ) ) ) * - - 14 AS col0
----
155

skipif mysql # not compatible
query I rowsort label-2482
SELECT 15 + - COALESCE ( - 10, ( + COUNT ( * ) ) ) * - - 14 AS col0
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT COUNT( * ) DIV - - 60 col1
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT COUNT ( * ) / - - 60 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT ( - ( - 36 ) ) / + + 54 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT ( - ( - 36 ) ) / + + 54 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL 82 + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL 82 + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT - SUM( ALL 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-2486
SELECT - SUM ( ALL 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT COUNT( * ) * - - 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2487
SELECT COUNT ( * ) * - - 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL + 0 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL + 0 * - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL 49 + - 26
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT MAX( DISTINCT + 65 ) + 41
----
106

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT MAX ( DISTINCT + 65 ) + 41
----
106

query I rowsort
SELECT ALL - 11 - + 16 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT DISTINCT + MIN( + 33 )
----
33

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + MIN ( + 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT ALL - ( + NULLIF ( - COUNT( * ), + 18 ) ) * + COUNT( * ) + - - COALESCE ( 64, COUNT( * ) + + + COUNT( * ) + 3 ) + - 50
----
15

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL - ( + NULLIF ( - COUNT ( * ), + 18 ) ) * + COUNT ( * ) + - - COALESCE ( 64, COUNT ( * ) + + + COUNT ( * ) + 3 ) + - 50
----
15

query I rowsort
SELECT DISTINCT ( - 99 ) col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT DISTINCT - - CAST( + 72 AS SIGNED ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT - - CAST ( + 72 AS INTEGER ) AS col0
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2496
SELECT ALL - COUNT( * ) AS col1, 30
----
-1
30

skipif mysql # not compatible
query II rowsort label-2496
SELECT ALL - COUNT ( * ) AS col1, 30
----
-1
30

query II rowsort
SELECT + 78 AS col0, 49
----
78
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT - 37 - - ( - COUNT( * ) )
----
-38

skipif mysql # not compatible
query I rowsort label-2498
SELECT - 37 - - ( - COUNT ( * ) )
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL - + CAST( - + 1 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - + CAST ( - + 1 AS INTEGER ) AS col1
----
1

query I rowsort
SELECT ALL 53 * - - 45 AS col1
----
2385

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2501
SELECT - COUNT( DISTINCT - - CAST( 8 AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2501
SELECT - COUNT ( DISTINCT - - CAST ( 8 AS REAL ) )
----
-1

query I rowsort
SELECT DISTINCT + ( + - 17 ) + - - 71
----
54

query I rowsort
SELECT - - 3 + - + 63 AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2504
SELECT ALL - 48 + + SUM( ALL + - 18 ) + CAST( NULL AS SIGNED ) * 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL - 48 + + SUM ( ALL + - 18 ) + CAST ( NULL AS INTEGER ) * 98 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT + SUM( DISTINCT 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT + SUM ( DISTINCT 5 ) AS col0
----
5

query I rowsort
SELECT ( 70 ) col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2507
SELECT - CAST( NULL AS SIGNED ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2507
SELECT - CAST ( NULL AS INTEGER ) * + 56
----
NULL

query I rowsort
SELECT ALL + 84 * 86
----
7224

query I rowsort
SELECT + 41 * + + 92
----
3772

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2510
SELECT - 96, - CAST( NULL AS SIGNED ) AS col0
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-2510
SELECT - 96, - CAST ( NULL AS INTEGER ) AS col0
----
-96
NULL

query II rowsort
SELECT + 40 AS col1, 1 AS col0
----
40
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL MAX( ALL + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL MAX ( ALL + 23 )
----
23

query I rowsort
SELECT ALL + 97 * 23 AS col1
----
2231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2514
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) + + - 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + - 34 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 6 * 2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT - - ( + SUM( DISTINCT + 58 ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-2516
SELECT - - ( + SUM ( DISTINCT + 58 ) ) AS col1
----
58

query I rowsort
SELECT DISTINCT 60 + - 18
----
42

query I rowsort
SELECT ALL - 3 + - - 97
----
94

query II rowsort
SELECT 2 AS col2, 90 AS col2
----
2
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT + + CAST( 46 AS SIGNED ) col0
----
46

skipif mysql # not compatible
query I rowsort label-2520
SELECT + + CAST ( 46 AS INTEGER ) col0
----
46

query I rowsort
SELECT DISTINCT - - 85 * + 35 AS col1
----
2975

query I rowsort
SELECT + 57 * + 3
----
171

query I rowsort
SELECT - 7 * - 97 col0
----
679

onlyif mysql # aggregate syntax: 
query II rowsort label-2524
SELECT - 74 col1, - COUNT( * ) AS col2
----
-74
-1

skipif mysql # not compatible
query II rowsort label-2524
SELECT - 74 col1, - COUNT ( * ) AS col2
----
-74
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2525
SELECT + CAST( - - 61 AS SIGNED ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-2525
SELECT + CAST ( - - 61 AS INTEGER ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT + COUNT( * ) + + + COUNT( * ) * + + 77
----
78

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT + COUNT ( * ) + + + COUNT ( * ) * + + 77
----
78

query I rowsort
SELECT ALL ( - + 79 )
----
-79

query II rowsort
SELECT - 48 * - 48 AS col0, - 69 * - + 90 AS col2
----
2304
6210

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2529
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT DISTINCT + COUNT( * ) + - + 75 AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT + COUNT ( * ) + - + 75 AS col1
----
-74

query I rowsort
SELECT ALL + - 53 AS col2
----
-53

query I rowsort
SELECT DISTINCT + + 1 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT + COUNT( * ) - - + COUNT( * ) col1
----
2

skipif mysql # not compatible
query I rowsort label-2533
SELECT + COUNT ( * ) - - + COUNT ( * ) col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2534
SELECT + + 3 * + - CAST( + + 58 AS SIGNED ) col2
----
-174

skipif mysql # not compatible
query I rowsort label-2534
SELECT + + 3 * + - CAST ( + + 58 AS INTEGER ) col2
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-2535
SELECT 8 + + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2535
SELECT 8 + + COUNT ( * ) AS col1
----
9

query I rowsort
SELECT ALL + 7 + + + 70
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT ALL 18 + 59 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL 18 + 59 + COUNT ( * )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2538
SELECT 42 * MIN( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT 42 * MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 71 + + - 99 AS col2
----
-28

query I rowsort
SELECT ALL + - 91 * 80
----
-7280

query I rowsort
SELECT ALL - ( - 35 ) AS col2
----
35

query I rowsort
SELECT ALL 53 + + 71
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT ALL ( - + COUNT( * ) ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL ( - + COUNT ( * ) ) * - + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 38 col1
----
38

query I rowsort
SELECT + - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - 53 + ( - MIN( - 75 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 53 + ( - MIN ( - 75 ) ) AS col0
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT + 53 DIV + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-2547
SELECT + 53 / + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2548
SELECT + COUNT( * ) DIV - 88
----
0

skipif mysql # not compatible
query I rowsort label-2548
SELECT + COUNT ( * ) / - 88
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2549
SELECT + SUM( ALL 18 ) DIV 4
----
4

skipif mysql # not compatible
query I rowsort label-2549
SELECT + SUM ( ALL 18 ) / 4
----
4

query I rowsort
SELECT + 27 * - 5 AS col2
----
-135

query I rowsort
SELECT ( 32 ) AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT + ( CAST( ( + 86 ) AS SIGNED ) )
----
86

skipif mysql # not compatible
query I rowsort label-2552
SELECT + ( CAST ( ( + 86 ) AS INTEGER ) )
----
86

query I rowsort
SELECT - 73 + + 58 * + 99
----
5669

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL + MIN( DISTINCT - 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + MIN ( DISTINCT - 90 ) AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2555
SELECT DISTINCT + COUNT( DISTINCT + 99 ) DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT + COUNT ( DISTINCT + 99 ) / 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2556
SELECT ALL + CAST( NULL AS SIGNED ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + CAST ( NULL AS INTEGER ) * 64
----
NULL

query I rowsort
SELECT DISTINCT ( 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT - 5 * COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-2558
SELECT - 5 * COUNT ( * )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT - - COUNT( * ) * 10
----
10

skipif mysql # not compatible
query I rowsort label-2559
SELECT - - COUNT ( * ) * 10
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT ALL ( + MAX( DISTINCT ( - 79 ) ) ) * 82
----
-6478

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL ( + MAX ( DISTINCT ( - 79 ) ) ) * 82
----
-6478

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2561
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL ( - CAST ( NULL AS REAL ) ) + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2562
SELECT - COUNT( * ) DIV + 40 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2562
SELECT - COUNT ( * ) / + 40 + + COUNT ( * )
----
1

query I rowsort
SELECT ALL ( - 90 ) * 78 AS col1
----
-7020

query I rowsort
SELECT DISTINCT + 0 + + + 29
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2565
SELECT DISTINCT ( - - COUNT( ALL CAST( NULL AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT ( - - COUNT ( ALL CAST ( NULL AS INTEGER ) ) ) AS col2
----
0

query I rowsort
SELECT ALL - + 42 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ALL 30 + + COUNT( + 46 ) - 34 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL 30 + + COUNT ( + 46 ) - 34 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT ALL 12 + + - ( + + 28 ) - + COUNT( * )
----
-17

skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL 12 + + - ( + + 28 ) - + COUNT ( * )
----
-17

query II rowsort
SELECT 92 AS col1, 18
----
92
18

query I rowsort
SELECT ALL + 98 + - - 90
----
188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2571
SELECT DISTINCT - COUNT( * ) DIV + + 57
----
0

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT - COUNT ( * ) / + + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT DISTINCT - + COUNT( * ) * + 2 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT - + COUNT ( * ) * + 2 AS col1
----
-2

query I rowsort
SELECT - - 27 - 80
----
-53

query I rowsort
SELECT + ( 39 ) AS col1
----
39

query I rowsort
SELECT + + 58 + + 49 + + 57 AS col1
----
164

query I rowsort
SELECT - - 10 col0
----
10

query I rowsort
SELECT + + 4 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2578
SELECT + CASE + 72 WHEN + 6 THEN NULL ELSE + CAST( + 15 AS SIGNED ) END col0
----
15

skipif mysql # not compatible
query I rowsort label-2578
SELECT + CASE + 72 WHEN + 6 THEN NULL ELSE + CAST ( + 15 AS INTEGER ) END col0
----
15

query I rowsort
SELECT ALL - ( - 22 ) * + + 65
----
1430

query I rowsort
SELECT - ( + + 65 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT COUNT( * ) - 50
----
-49

skipif mysql # not compatible
query I rowsort label-2581
SELECT COUNT ( * ) - 50
----
-49

query II rowsort
SELECT - 60 AS col1, + 31
----
-60
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2583
SELECT ALL - CAST( - 15 AS SIGNED )
----
15

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL - CAST ( - 15 AS INTEGER )
----
15

query I rowsort
SELECT ALL - - 87 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 90 + - - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-2585
SELECT 90 + - - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT ALL COUNT( 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL COUNT ( 80 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT DISTINCT 31 * - MAX( + - 68 ) AS col0
----
2108

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT 31 * - MAX ( + - 68 ) AS col0
----
2108

query I rowsort
SELECT + 58 + + - NULLIF ( - - 17, + - 85 )
----
41

query II rowsort
SELECT 8, 56 AS col2
----
8
56

query I rowsort
SELECT DISTINCT ( - 3 ) AS col2
----
-3

query I rowsort
SELECT DISTINCT ( 47 ) col2
----
47

query I rowsort
SELECT + 34 * + + ( - - 97 ) AS col2
----
3298

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT ALL + MIN( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL + MIN ( - 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT 31 DIV 5 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2595
SELECT 31 / 5 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2597
SELECT MAX( 56 ) AS col2, - 42
----
56
-42

skipif mysql # not compatible
query II rowsort label-2597
SELECT MAX ( 56 ) AS col2, - 42
----
56
-42

query I rowsort
SELECT DISTINCT 72 * 23 AS col1
----
1656

query I rowsort
SELECT DISTINCT 29 + - + 30 AS col0
----
-1

query II rowsort
SELECT ALL - 44 AS col1, 90
----
-44
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT - COUNT( * ) + - COUNT( DISTINCT + 19 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2601
SELECT - COUNT ( * ) + - COUNT ( DISTINCT + 19 ) AS col2
----
-2

query I rowsort
SELECT - 18 * - 99
----
1782

query II rowsort
SELECT + - 48 + 99 col1, - 68 * - 2
----
51
136

onlyif mysql # aggregate syntax: 
query II rowsort label-2604
SELECT DISTINCT 87 * COUNT( * ), - ( - 62 ) AS col0
----
87
62

skipif mysql # not compatible
query II rowsort label-2604
SELECT DISTINCT 87 * COUNT ( * ), - ( - 62 ) AS col0
----
87
62

query I rowsort
SELECT DISTINCT ( - - 17 ) AS col1
----
17

query I rowsort
SELECT 50 + 33
----
83

query I rowsort
SELECT 70 + - 9 col0
----
61

query I rowsort
SELECT ALL + 60 + - 47
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2609
SELECT CAST( NULL AS SIGNED ) + 74 AS col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-2609
SELECT CAST ( NULL AS INTEGER ) + 74 AS col1, - COUNT ( * )
----
NULL
-1

query I rowsort
SELECT DISTINCT 52 * 50 AS col2
----
2600

query I rowsort
SELECT + 87 * + 39 AS col0
----
3393

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2612
SELECT ALL MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT + CAST( + 68 AS SIGNED ) + - 11 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-2613
SELECT + CAST ( + 68 AS INTEGER ) + - 11 AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT ALL - 64 + - CAST( + AVG ( - 95 ) AS SIGNED ) - - 52
----
83

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL - 64 + - CAST ( + AVG ( - 95 ) AS INTEGER ) - - 52
----
83

query I rowsort
SELECT ALL 76 + 18 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT + COALESCE ( - 10, - - 5 ) + + COUNT( * ) col2
----
-9

skipif mysql # not compatible
query I rowsort label-2616
SELECT + COALESCE ( - 10, - - 5 ) + + COUNT ( * ) col2
----
-9

query I rowsort
SELECT DISTINCT + 26 + - 71 AS col0
----
-45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2618
SELECT ALL + + CAST( NULL AS DECIMAL ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL + + CAST ( NULL AS REAL ) + + 60
----
NULL

query I rowsort
SELECT DISTINCT + 21 col1
----
21

query I rowsort
SELECT DISTINCT 35 * 89
----
3115

query II rowsort
SELECT DISTINCT + 36 AS col0, 55
----
36
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2622
SELECT ALL + CAST( NULL AS DECIMAL ) * ( 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + CAST ( NULL AS REAL ) * ( 32 )
----
NULL

query I rowsort
SELECT DISTINCT ( + 67 )
----
67

query I rowsort
SELECT - COALESCE ( + 80, + 87 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL + MAX( ( 61 ) )
----
61

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL + MAX ( ( 61 ) )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL + SUM( ALL - - ( - 53 ) ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + SUM ( ALL - - ( - 53 ) ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT COUNT( * ) * 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT COUNT ( * ) * 98 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT - 53 * + COUNT( * ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-2628
SELECT - 53 * + COUNT ( * ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT ALL + COUNT( * ) - - 92 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL + COUNT ( * ) - - 92 AS col0
----
93

query I rowsort
SELECT ( 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL - - COUNT( * ) + ( + + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - - COUNT ( * ) + ( + + COUNT ( * ) ) AS col1
----
2

query I rowsort
SELECT - + 2 + + 35
----
33

query II rowsort
SELECT + 59 AS col0, 39
----
59
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT SUM( ALL + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-2634
SELECT SUM ( ALL + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT + 32 * + COUNT( * ) col1
----
32

skipif mysql # not compatible
query I rowsort label-2635
SELECT + 32 * + COUNT ( * ) col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT - COUNT( ALL + 3 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2636
SELECT - COUNT ( ALL + 3 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT ALL - COUNT( * ) * - 67
----
67

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL - COUNT ( * ) * - 67
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT - NULLIF ( - 50, CAST( NULL AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - NULLIF ( - 50, CAST ( NULL AS INTEGER ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT 99 + - - COUNT( * ) AS col0
----
100

skipif mysql # not compatible
query I rowsort label-2639
SELECT 99 + - - COUNT ( * ) AS col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2640
SELECT ALL 41 + + + COUNT( * ) + - - 85
----
127

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL 41 + + + COUNT ( * ) + - - 85
----
127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT CAST( NULL AS SIGNED ) * - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT CAST ( NULL AS INTEGER ) * - + 64
----
NULL

query II rowsort
SELECT - 20 AS col1, 67 AS col1
----
-20
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT - COUNT( * ) * + + 92
----
-92

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - COUNT ( * ) * + + 92
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT MAX( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2644
SELECT MAX ( - 95 ) AS col0
----
-95

query I rowsort
SELECT ALL + 82 * - - 5 col2
----
410

query I rowsort
SELECT ALL 40 * 86
----
3440

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ( - SUM( ( 97 ) ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2647
SELECT ( - SUM ( ( 97 ) ) ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT MAX( + 53 ) * + + 24
----
1272

skipif mysql # not compatible
query I rowsort label-2648
SELECT MAX ( + 53 ) * + + 24
----
1272

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2649
SELECT DISTINCT 42 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT 42 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 13 - 28
----
-15

query I rowsort
SELECT 93 * 80
----
7440

query I rowsort
SELECT DISTINCT - ( + + 60 ) AS col2
----
-60

query II rowsort
SELECT 45 AS col0, - ( + 86 )
----
45
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT - COUNT( * ) + - 41
----
-42

skipif mysql # not compatible
query I rowsort label-2654
SELECT - COUNT ( * ) + - 41
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT MIN( + 62 ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT MIN ( + 62 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT ALL - - COUNT( + - 69 ) + + + 53 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL - - COUNT ( + - 69 ) + + + 53 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT DISTINCT COUNT( * ) + - 19 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT COUNT ( * ) + - 19 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT 84 * - MIN( DISTINCT 36 ) AS col1
----
-3024

skipif mysql # not compatible
query I rowsort label-2658
SELECT 84 * - MIN ( DISTINCT 36 ) AS col1
----
-3024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2659
SELECT DISTINCT COUNT( * ) * - CAST( 12 AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT COUNT ( * ) * - CAST ( 12 AS INTEGER ) AS col2
----
-12

query I rowsort
SELECT DISTINCT 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT ALL - COUNT( DISTINCT - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL - COUNT ( DISTINCT - 35 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2662
SELECT + NULLIF ( + COUNT( * ), CAST( NULL AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2662
SELECT + NULLIF ( + COUNT ( * ), CAST ( NULL AS REAL ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT - 73 * - COUNT( * ) * + + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - 73 * - COUNT ( * ) * + + COUNT ( * ) AS col0
----
73

query I rowsort
SELECT ALL + - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT + + 35 * - COUNT( * ) * COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-2665
SELECT + + 35 * - COUNT ( * ) * COUNT ( * ) AS col1
----
-35

query I rowsort
SELECT DISTINCT - 90 col2
----
-90

query I rowsort
SELECT - 47 - - 14 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + 81 * - - 57 * + COUNT( * ) AS col2
----
4617

skipif mysql # not compatible
query I rowsort label-2668
SELECT + 81 * - - 57 * + COUNT ( * ) AS col2
----
4617

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + MIN( ALL 1 )
----
1

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + MIN ( ALL 1 )
----
1

query I rowsort
SELECT + + 28 col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2671
SELECT DISTINCT CAST( 31 AS SIGNED ) col1
----
31

skipif mysql # not compatible
query I rowsort label-2671
SELECT DISTINCT CAST ( 31 AS INTEGER ) col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT MIN( ALL - + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-2672
SELECT MIN ( ALL - + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ALL - MIN( + 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL - MIN ( + 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ( + COUNT( * ) ) - - ( + ( + - 57 ) ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2674
SELECT ( + COUNT ( * ) ) - - ( + ( + - 57 ) ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL - COUNT( * ) + + 6 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL - COUNT ( * ) + + 6 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT COUNT( * ) + - COUNT( DISTINCT - 32 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2676
SELECT COUNT ( * ) + - COUNT ( DISTINCT - 32 ) col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2677
SELECT + + AVG ( CAST( NULL AS DECIMAL ) ), + 19 AS col1
----
NULL
19

skipif mysql # not compatible
query II rowsort label-2677
SELECT + + AVG ( CAST ( NULL AS REAL ) ), + 19 AS col1
----
NULL
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2678
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT CAST( NULL AS SIGNED ) + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT CAST ( NULL AS INTEGER ) + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT + 47 * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + 47 * - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-2681
SELECT 96, + COUNT( * ) AS col2
----
96
1

skipif mysql # not compatible
query II rowsort label-2681
SELECT 96, + COUNT ( * ) AS col2
----
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT - SUM( - 65 )
----
65

skipif mysql # not compatible
query I rowsort label-2682
SELECT - SUM ( - 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT - 45 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT - 45 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT + MAX( - 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + MAX ( - 84 ) AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT - - COUNT( - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-2685
SELECT - - COUNT ( - 47 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2686
SELECT + 9 * - CAST( - 23 AS SIGNED )
----
207

skipif mysql # not compatible
query I rowsort label-2686
SELECT + 9 * - CAST ( - 23 AS INTEGER )
----
207

query I rowsort
SELECT + - 63 * - ( + + 52 ) AS col2
----
3276

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL COUNT( * ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL COUNT ( * ) + 55
----
56

query I rowsort
SELECT 75 * 71
----
5325

query I rowsort
SELECT 65 * - 25
----
-1625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT + CAST( NULL AS SIGNED ) * + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT + CAST ( NULL AS INTEGER ) * + - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2692
SELECT - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2692
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + ( + 73 )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2694
SELECT CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2694
SELECT CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2695
SELECT 65 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT 65 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT DISTINCT + COUNT( * ) * 53
----
53

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT + COUNT ( * ) * 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT ALL - + MIN( 0 ) * 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL - + MIN ( 0 ) * 97 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2698
SELECT ALL + CAST( 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL + CAST ( 85 AS INTEGER )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT COALESCE ( + COUNT( * ), - ( + 46 ) + 35 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2699
SELECT COALESCE ( + COUNT ( * ), - ( + 46 ) + 35 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT + MIN( ALL - + ( 33 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-2700
SELECT + MIN ( ALL - + ( 33 ) )
----
-33

query I rowsort
SELECT DISTINCT + ( + 51 ) AS col0
----
51

query I rowsort
SELECT ALL - ( ( 7 ) )
----
-7

query I rowsort
SELECT + ( - 44 ) AS col2
----
-44

query I rowsort
SELECT ( - - 96 ) AS col0
----
96

query I rowsort
SELECT - + 62 * 31
----
-1922

query I rowsort
SELECT + 67 + - 74 * 70 AS col1
----
-5113

query I rowsort
SELECT DISTINCT + 78 * 74 AS col2
----
5772

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT + COUNT( * ) * - ( - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-2708
SELECT + COUNT ( * ) * - ( - 83 )
----
83

query I rowsort
SELECT + ( + 27 )
----
27

query I rowsort
SELECT + ( + - 63 ) col0
----
-63

query II rowsort
SELECT - 49, - ( + 73 ) AS col0
----
-49
-73

query I rowsort
SELECT ALL 63 * - 12
----
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT CAST( + 97 AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-2713
SELECT CAST ( + 97 AS INTEGER )
----
97

query I rowsort
SELECT DISTINCT + + ( - 59 ) AS col2
----
-59

query I rowsort
SELECT ALL - 64 * + - 82 AS col1
----
5248

query I rowsort
SELECT ALL + + ( 41 )
----
41

query I rowsort
SELECT + 11 * + - 27
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT DISTINCT + - COUNT( ALL + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT + - COUNT ( ALL + 59 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT SUM( - + 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT SUM ( - + 91 ) AS col1
----
-91

query I rowsort
SELECT ALL 29 * - + 24 AS col0
----
-696

query II rowsort
SELECT 23 AS col1, - 22 * 96 * + 40 - 24 AS col0
----
23
-84504

query I rowsort
SELECT DISTINCT ( + 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT DISTINCT CAST( + 86 AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT CAST ( + 86 AS INTEGER ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT - 86 * + ( + MIN( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT - 86 * + ( + MIN ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT DISTINCT ( - 10 ) * + - COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT ( - 10 ) * + - COUNT ( * )
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2726
SELECT - 88 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT - 88 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2727
SELECT DISTINCT - - 38 * - COUNT( CAST( - - 91 AS SIGNED ) )
----
-38

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT - - 38 * - COUNT ( CAST ( - - 91 AS INTEGER ) )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT - 70 * COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-2728
SELECT - 70 * COUNT ( * )
----
-70

query I rowsort
SELECT ALL 14 col2
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2730
SELECT 26 DIV - - 36
----
0

skipif mysql # not compatible
query I rowsort label-2730
SELECT 26 / - - 36
----
0

query I rowsort
SELECT DISTINCT 71 col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT - SUM( DISTINCT - + 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - SUM ( DISTINCT - + 79 ) AS col0
----
79

query I rowsort
SELECT ALL - - 52 * 34 AS col1
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2734
SELECT COUNT( * ), - ( - - CAST( - COUNT( * ) AS SIGNED ) ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-2734
SELECT COUNT ( * ), - ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col2
----
1
1

query I rowsort
SELECT ( - + 76 ) AS col2
----
-76

query II rowsort
SELECT 65 * - 11 AS col2, 35 AS col1
----
-715
35

query I rowsort
SELECT DISTINCT 70 - + 68 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT + COUNT( + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-2738
SELECT + COUNT ( + 74 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2739
SELECT ALL ( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL ( + - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT SUM( + + 34 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-2740
SELECT SUM ( + + 34 ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT DISTINCT 74 * + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT 74 * + COUNT ( * )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 89
----
NULL

query II rowsort
SELECT DISTINCT + 17 AS col0, - 70 AS col1
----
17
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-2744
SELECT ALL + 55, COUNT( * ) AS col2
----
55
1

skipif mysql # not compatible
query II rowsort label-2744
SELECT ALL + 55, COUNT ( * ) AS col2
----
55
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2745
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * - NULLIF ( COUNT( * ), + 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2745
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * - NULLIF ( COUNT ( * ), + 28 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2746
SELECT 94 DIV + - COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2746
SELECT 94 / + - COUNT ( * ) AS col0
----
-94

query I rowsort
SELECT DISTINCT - 61 col0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-2748
SELECT - MIN( DISTINCT - 78 ) AS col0, - 90
----
78
-90

skipif mysql # not compatible
query II rowsort label-2748
SELECT - MIN ( DISTINCT - 78 ) AS col0, - 90
----
78
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2749
SELECT ALL + + 34 DIV - - COUNT( * ) AS col0, 65
----
34
65

skipif mysql # not compatible
query II rowsort label-2749
SELECT ALL + + 34 / - - COUNT ( * ) AS col0, 65
----
34
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT + COUNT( * ) + - 55 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-2750
SELECT + COUNT ( * ) + - 55 AS col0
----
-54

query I rowsort
SELECT + 70 - + 89 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT DISTINCT + COUNT( * ) AS col1, 62
----
1
62

skipif mysql # not compatible
query II rowsort label-2752
SELECT DISTINCT + COUNT ( * ) AS col1, 62
----
1
62

query I rowsort
SELECT + + 42 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT ALL - COUNT( * ) + + - 37
----
-38

skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL - COUNT ( * ) + + - 37
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2755
SELECT ALL CAST( - + 17 AS SIGNED ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL CAST ( - + 17 AS INTEGER ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT COUNT( * ) * - + 74 + COUNT( * ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT COUNT ( * ) * - + 74 + COUNT ( * ) AS col1
----
-73

query I rowsort
SELECT + 87 col1
----
87

query I rowsort
SELECT DISTINCT + - 91 AS col0
----
-91

query I rowsort
SELECT ALL + ( - 26 ) AS col1
----
-26

query I rowsort
SELECT - + 36 col2
----
-36

query I rowsort
SELECT DISTINCT 88 * - 88 col0
----
-7744

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2762
SELECT ALL - COUNT( * ) DIV ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - COUNT ( * ) / ( COUNT ( * ) )
----
-1

query II rowsort
SELECT 27 AS col2, + 81
----
27
81

query I rowsort
SELECT ALL - 98 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT - MAX( ALL + ( + 14 ) ) * 28 AS col1
----
-392

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT - MAX ( ALL + ( + 14 ) ) * 28 AS col1
----
-392

query I rowsort
SELECT ALL 29 + 70
----
99

query I rowsort
SELECT - 63 * - 10 AS col0
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2768
SELECT DISTINCT - 25 DIV + COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - 25 / + COUNT ( * ) AS col2
----
-25

query I rowsort
SELECT DISTINCT ( + - 25 )
----
-25

query I rowsort
SELECT ALL - ( 39 ) * 33 + 94
----
-1193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2771
SELECT DISTINCT - CAST( + + NULLIF ( CAST( NULL AS SIGNED ), + 83 ) AS SIGNED ) / 93
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT - CAST ( + + NULLIF ( CAST ( NULL AS INTEGER ), + 83 ) AS INTEGER ) / 93
----
NULL

query I rowsort
SELECT DISTINCT - ( + 64 ) * - + 83
----
5312

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT - MIN( ALL - + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2773
SELECT - MIN ( ALL - + 20 ) AS col1
----
20

query I rowsort
SELECT ALL ( 58 )
----
58

query I rowsort
SELECT ALL ( - 20 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT ALL CAST( + 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL CAST ( + 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2777
SELECT 6 AS col0, + COUNT( * )
----
6
1

skipif mysql # not compatible
query II rowsort label-2777
SELECT 6 AS col0, + COUNT ( * )
----
6
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2778
SELECT ALL CAST( NULL AS SIGNED ), - 98 AS col2
----
NULL
-98

skipif mysql # not compatible
query II rowsort label-2778
SELECT ALL CAST ( NULL AS INTEGER ), - 98 AS col2
----
NULL
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT + COUNT( * ) AS col2, + 49 AS col2
----
1
49

skipif mysql # not compatible
query II rowsort label-2779
SELECT + COUNT ( * ) AS col2, + 49 AS col2
----
1
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2780
SELECT CAST( NULL AS SIGNED ) * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT CAST ( NULL AS INTEGER ) * ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2781
SELECT ALL ( + 76 ) DIV + - 10 + 2
----
-5

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL ( + 76 ) / + - 10 + 2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2782
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2, - 28 AS col1
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-2782
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2, - 28 AS col1
----
NULL
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT ALL - 10 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL - 10 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT ALL COUNT( DISTINCT - 24 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL COUNT ( DISTINCT - 24 ) col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2785
SELECT - ( + 88 ) DIV + 62 col0
----
-1

skipif mysql # not compatible
query I rowsort label-2785
SELECT - ( + 88 ) / + 62 col0
----
-1

query I rowsort
SELECT ALL - ( + ( 8 ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query III rowsort label-2787
SELECT DISTINCT - 67 AS col1, ( + COUNT( * ) ), + - 19 AS col0
----
-67
1
-19

skipif mysql # not compatible
query III rowsort label-2787
SELECT DISTINCT - 67 AS col1, ( + COUNT ( * ) ), + - 19 AS col0
----
-67
1
-19

query II rowsort
SELECT 87, 88 AS col0
----
87
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT + MIN( + - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-2789
SELECT + MIN ( + - 32 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2790
SELECT - - ( + - CAST( NULL AS SIGNED ) ) * 1 / - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT - - ( + - CAST ( NULL AS INTEGER ) ) * 1 / - 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2791
SELECT ALL - 66 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - 66 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 93 * + 65 AS col1
----
-6045

query II rowsort
SELECT + 94 AS col2, 56 AS col1
----
94
56

query II rowsort
SELECT 96, + 86 AS col0
----
96
86

query I rowsort
SELECT ALL ( 89 ) AS col1
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2796
SELECT - 22 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT - 22 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 79 * + 64 AS col1
----
5056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2798
SELECT 75 DIV - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-2798
SELECT 75 / - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT ALL ( + COUNT( - + 85 ) ) DIV 26
----
0

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL ( + COUNT ( - + 85 ) ) / 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT COALESCE ( 51, + 24 ) * + SUM( 12 ) AS col1
----
612

skipif mysql # not compatible
query I rowsort label-2800
SELECT COALESCE ( 51, + 24 ) * + SUM ( 12 ) AS col1
----
612

onlyif mysql # aggregate syntax: 
query II rowsort label-2801
SELECT - COUNT( * ) col0, COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-2801
SELECT - COUNT ( * ) col0, COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT ALL COUNT( * ) * 71
----
71

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL COUNT ( * ) * 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT DISTINCT + - MAX( DISTINCT 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT + - MAX ( DISTINCT 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT ALL + 76 - - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL + 76 - - - COUNT ( * )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) * ( 18 ) + + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) * ( 18 ) + + - 57
----
NULL

query I rowsort
SELECT ( 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT - + COUNT( * ) * - + 78
----
78

skipif mysql # not compatible
query I rowsort label-2807
SELECT - + COUNT ( * ) * - + 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT + MIN( DISTINCT 43 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2808
SELECT + MIN ( DISTINCT 43 ) AS col0
----
43

query I rowsort
SELECT - + ( - 83 ) * - 9 + + 69 col1
----
-678

query I rowsort
SELECT + + 21 + 2 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2811
SELECT DISTINCT + 64 DIV + + 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT + 64 / + + 82 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2812
SELECT + + COUNT( * ), MAX( - 98 ) AS col1
----
1
-98

skipif mysql # not compatible
query II rowsort label-2812
SELECT + + COUNT ( * ), MAX ( - 98 ) AS col1
----
1
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT - 94 DIV + 2 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2813
SELECT - 94 / + 2 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT 33 + COUNT( * ) * - 65
----
-32

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT 33 + COUNT ( * ) * - 65
----
-32

query I rowsort
SELECT ALL + - 48 col1
----
-48

query I rowsort
SELECT DISTINCT + - 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT 86 * - - COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT 86 * - - COUNT ( * ) AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT COUNT( - + 42 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2818
SELECT COUNT ( - + 42 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT - ( + COUNT( * ) ) * - 13
----
13

skipif mysql # not compatible
query I rowsort label-2819
SELECT - ( + COUNT ( * ) ) * - 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2820
SELECT ALL ( - - 6 ) * - ( - - 11 ) + + - COUNT( * ) + + + 53 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL ( - - 6 ) * - ( - - 11 ) + + - COUNT ( * ) + + + 53 AS col1
----
-14

query I rowsort
SELECT ALL + 57 col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2822
SELECT - SUM( ALL + ( CAST( - 69 AS SIGNED ) ) )
----
69

skipif mysql # not compatible
query I rowsort label-2822
SELECT - SUM ( ALL + ( CAST ( - 69 AS INTEGER ) ) )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT - COUNT( * ) + - 81 col2
----
-82

skipif mysql # not compatible
query I rowsort label-2823
SELECT - COUNT ( * ) + - 81 col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT DISTINCT CAST( + - ( - COUNT( * ) ) AS SIGNED ) + + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT CAST ( + - ( - COUNT ( * ) ) AS INTEGER ) + + 45 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT - ( COUNT( * ) ) - - - ( - ( 37 ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2825
SELECT - ( COUNT ( * ) ) - - - ( - ( 37 ) ) AS col0
----
36

query I rowsort
SELECT ALL - - ( + 70 ) AS col2
----
70

query I rowsort
SELECT ALL 98 - + 55 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL - COUNT( 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL - COUNT ( 34 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL + CASE - + COUNT( * ) WHEN 35 THEN + - COUNT( 28 ) WHEN - + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + CASE - + COUNT ( * ) WHEN 35 THEN + - COUNT ( 28 ) WHEN - + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT SUM( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-2830
SELECT SUM ( + 15 )
----
15

query I rowsort
SELECT - + 2 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL + 26 + - - COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + 26 + - - COUNT ( * ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT - 34 * - COALESCE ( + - COUNT( * ), - - 12 )
----
-34

skipif mysql # not compatible
query I rowsort label-2833
SELECT - 34 * - COALESCE ( + - COUNT ( * ), - - 12 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2834
SELECT ALL - CAST( - 75 AS SIGNED )
----
75

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL - CAST ( - 75 AS INTEGER )
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT ALL - CAST( NULL AS SIGNED ) + - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2836
SELECT DISTINCT + + NULLIF ( 69, + MAX( + 77 ) ) + - 27
----
42

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT + + NULLIF ( 69, + MAX ( + 77 ) ) + - 27
----
42

query I rowsort
SELECT DISTINCT - 71 - + + 64 AS col0
----
-135

query I rowsort
SELECT DISTINCT + 67 + 38 AS col1
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2839
SELECT DISTINCT + - SUM( + + 7 ) + + + CAST( 57 AS SIGNED ) col2
----
50

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT + - SUM ( + + 7 ) + + + CAST ( 57 AS INTEGER ) col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT DISTINCT + + COUNT( * ) * + NULLIF ( 26, + 35 )
----
26

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT + + COUNT ( * ) * + NULLIF ( 26, + 35 )
----
26

query I rowsort
SELECT - - 64 AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT 32 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT 32 / - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - MIN( ALL - 99 )
----
99

skipif mysql # not compatible
query I rowsort label-2843
SELECT - MIN ( ALL - 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT MAX( ALL + 87 ) * - ( 27 ) AS col0
----
-2349

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT MAX ( ALL + 87 ) * - ( 27 ) AS col0
----
-2349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2845
SELECT CASE + + 80 WHEN - CAST( NULL AS SIGNED ) THEN - COUNT( DISTINCT - 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT CASE + + 80 WHEN - CAST ( NULL AS INTEGER ) THEN - COUNT ( DISTINCT - 22 ) END
----
NULL

query I rowsort
SELECT DISTINCT + + 94 AS col2
----
94

query I rowsort
SELECT ALL - ( + - 76 ) AS col1
----
76

query I rowsort
SELECT DISTINCT ( + 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT DISTINCT MIN( + + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT MIN ( + + 65 ) AS col0
----
65

query II rowsort
SELECT ALL ( 66 ) AS col0, - ( + 66 )
----
66
-66

query II rowsort
SELECT 33 AS col2, ( 90 ) AS col1
----
33
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - MIN( ALL - 90 ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-2852
SELECT - MIN ( ALL - 90 ) AS col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2853
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) + - COUNT( * ) + + ( - 8 )
----
-10

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) + - COUNT ( * ) + + ( - 8 )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2854
SELECT CAST( + MIN( + 42 ) AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-2854
SELECT CAST ( + MIN ( + 42 ) AS INTEGER )
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2855
SELECT DISTINCT + - COUNT( * ) AS col2, + 37 AS col0
----
-1
37

skipif mysql # not compatible
query II rowsort label-2855
SELECT DISTINCT + - COUNT ( * ) AS col2, + 37 AS col0
----
-1
37

query I rowsort
SELECT ALL + + 68 * + 63 AS col0
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT DISTINCT - 18 * + 51 + + MAX( - 98 ) AS col0
----
-1016

skipif mysql # not compatible
query I rowsort label-2857
SELECT DISTINCT - 18 * + 51 + + MAX ( - 98 ) AS col0
----
-1016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2858
SELECT ALL + CAST( NULL AS SIGNED ) * + 55, 45 AS col1
----
NULL
45

skipif mysql # not compatible
query II rowsort label-2858
SELECT ALL + CAST ( NULL AS INTEGER ) * + 55, 45 AS col1
----
NULL
45

query I rowsort
SELECT DISTINCT - + 65 col2
----
-65

query I rowsort
SELECT ( - + 73 )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT ALL 74 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL 74 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 4 AS col1
----
4

query I rowsort
SELECT DISTINCT - ( 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL ( - COUNT( * ) ) + + 88 AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL ( - COUNT ( * ) ) + + 88 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2865
SELECT DISTINCT 98 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT DISTINCT 98 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT DISTINCT 15 * - - MIN( DISTINCT 15 )
----
225

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT 15 * - - MIN ( DISTINCT 15 )
----
225

query I rowsort
SELECT - 21 * 95 AS col2
----
-1995

query I rowsort
SELECT ALL 49 * 56 AS col0
----
2744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT - CAST( - ( - 61 ) AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-2869
SELECT - CAST ( - ( - 61 ) AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT + 57 + - + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2870
SELECT + 57 + - + COUNT ( * ) AS col1
----
56

query I rowsort
SELECT ALL + + 77
----
77

query I rowsort
SELECT 65 - - 11 AS col0
----
76

query I rowsort
SELECT - NULLIF ( + 8, + + 69 )
----
-8

query I rowsort
SELECT ALL ( - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL COUNT( * ) * - MIN( - + 73 ) + - + ( 54 )
----
19

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL COUNT ( * ) * - MIN ( - + 73 ) + - + ( 54 )
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT ALL - COUNT( * ) DIV 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - COUNT ( * ) / 90 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2877
SELECT ALL CAST( - + 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL CAST ( - + 51 AS INTEGER )
----
-51

query I rowsort
SELECT + - 99 * - 53
----
5247

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT ALL - 4 * - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL - 4 * - COUNT ( * ) AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT - 56 DIV + + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2880
SELECT - 56 / + + 57 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT 20 + - 98 + - COUNT( * ) + - - 53 * + ( + 79 ) AS col0
----
4108

skipif mysql # not compatible
query I rowsort label-2881
SELECT 20 + - 98 + - COUNT ( * ) + - - 53 * + ( + 79 ) AS col0
----
4108

query I rowsort
SELECT DISTINCT 3 col2
----
3

query I rowsort
SELECT 89 * ( 13 )
----
1157

query I rowsort
SELECT 94 col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2885
SELECT DISTINCT - CAST( + COUNT( * ) AS DECIMAL ) * ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT - CAST ( + COUNT ( * ) AS REAL ) * ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT MAX( 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-2886
SELECT MAX ( 21 ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT - - SUM( - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-2887
SELECT - - SUM ( - 29 )
----
-29

query I rowsort
SELECT ALL 75 * + 35
----
2625

query I rowsort
SELECT + + 93 * + 20 col1
----
1860

query I rowsort
SELECT ALL - + 62 + + + 10 AS col2
----
-52

query I rowsort
SELECT DISTINCT + 0 - + 30
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-2892
SELECT + ( + 66 ), - COUNT( * ) - + 80 AS col0
----
66
-81

skipif mysql # not compatible
query II rowsort label-2892
SELECT + ( + 66 ), - COUNT ( * ) - + 80 AS col0
----
66
-81

query II rowsort
SELECT - ( + 66 ) AS col1, + 95 col1
----
-66
95

query I rowsort
SELECT ALL + - 63 AS col2
----
-63

query I rowsort
SELECT ALL 56 * 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT ALL - COUNT( DISTINCT - 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL - COUNT ( DISTINCT - 4 )
----
-1

query I rowsort
SELECT 23 * 29
----
667

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT 1 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2898
SELECT 1 + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT 44 DIV + 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT 44 / + 75 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2900
SELECT COUNT( * ) DIV + - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2900
SELECT COUNT ( * ) / + - 48 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2901
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2902
SELECT 0 DIV COUNT( * ) + - + 39 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-2902
SELECT 0 / COUNT ( * ) + - + 39 AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2903
SELECT DISTINCT ( - + CAST( - - 20 AS SIGNED ) ) + - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT ( - + CAST ( - - 20 AS INTEGER ) ) + - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT - MAX( DISTINCT + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-2904
SELECT - MAX ( DISTINCT + 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT COUNT( * ) * - 2 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT COUNT ( * ) * - 2 AS col0
----
-2

query I rowsort
SELECT - + ( + 39 )
----
-39

query II rowsort
SELECT DISTINCT + + 74, 7 AS col1
----
74
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2908
SELECT - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2908
SELECT - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2909
SELECT ALL + + 7, - 82 * + COUNT( * ) AS col2
----
7
-82

skipif mysql # not compatible
query II rowsort label-2909
SELECT ALL + + 7, - 82 * + COUNT ( * ) AS col2
----
7
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL 73 DIV - 48 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL 73 / - 48 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2911
SELECT ALL - - CAST( + 82 AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL - - CAST ( + 82 AS INTEGER ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL + 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + 0 + - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT 92 * - 3 col0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT 80 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT 80 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( + + 91 ) AS col0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ( + ( 30 ) ) + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2916
SELECT ( + ( 30 ) ) + COUNT ( * ) AS col2
----
31

query II rowsort
SELECT 46 col1, + 60
----
46
60

query I rowsort
SELECT ALL 44 * + - 49 AS col0
----
-2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2919
SELECT - + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2919
SELECT - + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL - 13 + - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL - 13 + - COUNT ( * ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT DISTINCT + + NULLIF ( 97, + 79 ) * - 62 * COUNT( * ) * + - 55 * - COUNT( * )
----
-330770

skipif mysql # not compatible
query I rowsort label-2921
SELECT DISTINCT + + NULLIF ( 97, + 79 ) * - 62 * COUNT ( * ) * + - 55 * - COUNT ( * )
----
-330770

query I rowsort
SELECT + 67 * 3 AS col1
----
201

query I rowsort
SELECT + 96 * - 96
----
-9216

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2924
SELECT + 31 * + CAST( NULL AS DECIMAL ), 19 AS col0
----
NULL
19

skipif mysql # not compatible
query II rowsort label-2924
SELECT + 31 * + CAST ( NULL AS REAL ), 19 AS col0
----
NULL
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2925
SELECT + 20 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT + 20 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT - COUNT( * ) - - ( - 59 )
----
-60

skipif mysql # not compatible
query I rowsort label-2926
SELECT - COUNT ( * ) - - ( - 59 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT - 79 + + 30 + - ( + - MIN( + + 25 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-2927
SELECT - 79 + + 30 + - ( + - MIN ( + + 25 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL + ( - SUM( DISTINCT 90 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL + ( - SUM ( DISTINCT 90 ) )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT - 57 * COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT - 57 * COUNT ( * ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT + COUNT( + - 94 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2930
SELECT + COUNT ( + - 94 ) AS col0
----
1

query I rowsort
SELECT 2 - - - 49 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT DISTINCT COUNT( * ) * - + 82
----
-82

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT COUNT ( * ) * - + 82
----
-82

query I rowsort
SELECT + 73 col0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT ALL - COUNT( * ) AS col1, - 49
----
-1
-49

skipif mysql # not compatible
query II rowsort label-2934
SELECT ALL - COUNT ( * ) AS col1, - 49
----
-1
-49

query II rowsort
SELECT - 41 AS col1, - 8 * - 89 AS col2
----
-41
712

query I rowsort
SELECT ALL ( - + ( - 42 ) ) + - 82 AS col1
----
-40

query I rowsort
SELECT DISTINCT + - 44 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + 2 * COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2938
SELECT + 2 * COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2939
SELECT DISTINCT - COALESCE ( + COUNT( * ), ( 87 ) - + COUNT( * ) ) col1, COUNT( * ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-2939
SELECT DISTINCT - COALESCE ( + COUNT ( * ), ( 87 ) - + COUNT ( * ) ) col1, COUNT ( * ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL + COALESCE ( - 44, + + 42 * + + COUNT( * ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + COALESCE ( - 44, + + 42 * + + COUNT ( * ) ) AS col0
----
-44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2941
SELECT ALL + COUNT( * ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2942
SELECT + 2 DIV COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2942
SELECT + 2 / COUNT ( * )
----
2

query I rowsort
SELECT - 14 * - 60 AS col1
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL 84 + + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL 84 + + COUNT ( * )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT CAST( - 33 AS SIGNED ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-2945
SELECT CAST ( - 33 AS INTEGER ) AS col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 95 col0
----
95

query I rowsort
SELECT - 92 * 81 - + 27
----
-7479

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT ALL ( + MIN( + 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL ( + MIN ( + 16 ) )
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2950
SELECT + COUNT( * ) + - 78 AS col1, + 76
----
-77
76

skipif mysql # not compatible
query II rowsort label-2950
SELECT + COUNT ( * ) + - 78 AS col1, + 76
----
-77
76

query I rowsort
SELECT DISTINCT ( - 79 )
----
-79

query II rowsort
SELECT - 96 * + 10 AS col0, 56 * ( + 22 ) AS col0
----
-960
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL COUNT( * ) * - 93 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL COUNT ( * ) * - 93 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL - - COUNT( * ) - + 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL - - COUNT ( * ) - + 30 AS col1
----
-29

query I rowsort
SELECT ALL ( - 38 ) * - 39
----
1482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2956
SELECT - COUNT( * ) * + 57 DIV + + 70 + + 38 - + 0 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-2956
SELECT - COUNT ( * ) * + 57 / + + 70 + + 38 - + 0 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT 66 + COUNT( * ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-2957
SELECT 66 + COUNT ( * ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT DISTINCT - COUNT( DISTINCT + 15 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - COUNT ( DISTINCT + 15 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT MAX( ALL + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-2959
SELECT MAX ( ALL + 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT 67 - - COUNT( * ) * COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2960
SELECT 67 - - COUNT ( * ) * COUNT ( * )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT - COUNT( * ) - + + 49
----
-50

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - COUNT ( * ) - + + 49
----
-50

query I rowsort
SELECT DISTINCT 27 col1
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-2963
SELECT ALL - + ( + - COUNT( * ) ) * - 1 AS col0, + COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-2963
SELECT ALL - + ( + - COUNT ( * ) ) * - 1 AS col0, + COUNT ( * )
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - COUNT( - 50 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2964
SELECT - COUNT ( - 50 ) col1
----
-1

query I rowsort
SELECT ALL + 77 * 58 AS col0
----
4466

query I rowsort
SELECT - + 93 * - 74 + - 44
----
6838

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL COUNT( * ) + + + 84
----
85

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) + + + 84
----
85

query II rowsort
SELECT DISTINCT 79 AS col2, 0 AS col1
----
79
0

query II rowsort
SELECT DISTINCT + 80, - 20 AS col1
----
80
-20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2970
SELECT + + CAST( NULL AS DECIMAL ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT + + CAST ( NULL AS REAL ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 61 )
----
-61

query I rowsort
SELECT DISTINCT ( 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT - + SUM( DISTINCT 27 ) col1
----
-27

skipif mysql # not compatible
query I rowsort label-2973
SELECT - + SUM ( DISTINCT 27 ) col1
----
-27

query I rowsort
SELECT + 40 - - - 64 + 62 AS col2
----
38

query I rowsort
SELECT ALL 86 * + 89 AS col2
----
7654

query I rowsort
SELECT - + 58 AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2977
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 4 - 76 col2
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2979
SELECT + 23 DIV COUNT( * ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-2979
SELECT + 23 / COUNT ( * ) AS col1
----
23

query I rowsort
SELECT ALL 38 - + + 78 AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2981
SELECT + AVG ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT + AVG ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2982
SELECT ALL - 49 DIV - + 64 col2
----
0

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - 49 / - + 64 col2
----
0

query I rowsort
SELECT DISTINCT 98 * 29 AS col1
----
2842

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + 43 - + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2984
SELECT + 43 - + COUNT ( * ) AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT DISTINCT ( 85 ) DIV - 55 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT ( 85 ) / - 55 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT MIN( 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2986
SELECT MIN ( 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT + COUNT( * ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-2987
SELECT + COUNT ( * ) * 75
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2988
SELECT DISTINCT 10 DIV - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT 10 / - COUNT ( * )
----
-10

query I rowsort
SELECT + 75 + - 42
----
33

query I rowsort
SELECT - 81 * 75 AS col1
----
-6075

query I rowsort
SELECT ALL ( 61 ) AS col1
----
61

query I rowsort
SELECT ALL 9 * 13
----
117

query I rowsort
SELECT - 11 * - 7 - 38 AS col0
----
39

query I rowsort
SELECT - 95 * - 13
----
1235

query I rowsort
SELECT DISTINCT + + 69 AS col1
----
69

query I rowsort
SELECT ALL ( NULLIF ( 40, + 78 ) ) AS col2
----
40

query I rowsort
SELECT 92 * 38 AS col1
----
3496

query I rowsort
SELECT + 30 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT - COUNT( + ( + 5 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2999
SELECT - COUNT ( + ( + 5 ) )
----
-1

query I rowsort
SELECT ALL - + 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT - + SUM( DISTINCT - - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-3001
SELECT - + SUM ( DISTINCT - - 88 )
----
-88

query I rowsort
SELECT ALL ( + - 60 ) + - 53 * 89 AS col2
----
-4777

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT COUNT( * ) - + 69 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-3003
SELECT COUNT ( * ) - + 69 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ( + ( COUNT( * ) ) ) + 18 * 82 AS col0
----
1477

skipif mysql # not compatible
query I rowsort label-3004
SELECT ( + ( COUNT ( * ) ) ) + 18 * 82 AS col0
----
1477

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT MAX( - - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-3005
SELECT MAX ( - - 35 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT - + CAST( NULLIF ( - 91, - 98 ) AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3006
SELECT - + CAST ( NULLIF ( - 91, - 98 ) AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( + 27 ) AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3008
SELECT DISTINCT + 60 DIV CAST( 18 AS SIGNED ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT + 60 / CAST ( 18 AS INTEGER ) AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT ALL 60 * - + CAST( - 17 AS SIGNED )
----
1020

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL 60 * - + CAST ( - 17 AS INTEGER )
----
1020

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3010
SELECT - MIN( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT + COUNT( * ) * + 53 - - + 57
----
110

skipif mysql # not compatible
query I rowsort label-3011
SELECT + COUNT ( * ) * + 53 - - + 57
----
110

query I rowsort
SELECT - ( + ( - 80 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT - COUNT( * ) * + + 71 * + - 48 AS col0
----
3408

skipif mysql # not compatible
query I rowsort label-3013
SELECT - COUNT ( * ) * + + 71 * + - 48 AS col0
----
3408

query II rowsort
SELECT + - 82 AS col2, - 51 * + 32
----
-82
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT - 20 + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-3015
SELECT - 20 + COUNT ( * )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 59
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL ( + 69 ) + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL ( + 69 ) + COUNT ( * )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT CAST( NULL AS SIGNED ) / - 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT CAST ( NULL AS INTEGER ) / - 58 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT DISTINCT + 7 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + 7 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL ( 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL - COUNT( ALL 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - COUNT ( ALL 8 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT + CAST( + 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-3022
SELECT + CAST ( + 99 AS INTEGER )
----
99

query I rowsort
SELECT 76 * + - 37
----
-2812

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT + SUM( ALL + - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3024
SELECT + SUM ( ALL + - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT COALESCE ( - + COUNT( * ), + 99, - 61 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT COALESCE ( - + COUNT ( * ), + 99, - 61 ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3026
SELECT - MIN( ALL - CAST( + 97 AS SIGNED ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3026
SELECT - MIN ( ALL - CAST ( + 97 AS INTEGER ) ) AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3027
SELECT DISTINCT + CASE WHEN CAST( NULL AS SIGNED ) IS NULL THEN + + 34 * + COUNT( * ) ELSE NULL END col1
----
34

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT + CASE WHEN CAST ( NULL AS INTEGER ) IS NULL THEN + + 34 * + COUNT ( * ) ELSE NULL END col1
----
34

query I rowsort
SELECT DISTINCT - 43 * - 43
----
1849

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT SUM( ALL + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3029
SELECT SUM ( ALL + 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT COUNT( * ) AS col0, 62
----
1
62

skipif mysql # not compatible
query II rowsort label-3030
SELECT COUNT ( * ) AS col0, 62
----
1
62

query II rowsort
SELECT DISTINCT 42 AS col1, - 99 AS col0
----
42
-99

query I rowsort
SELECT DISTINCT - ( - 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL COUNT( * ) - + 32 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL COUNT ( * ) - + 32 AS col0
----
-31

query I rowsort
SELECT - + 35 AS col1
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3035
SELECT DISTINCT + 5 * + 15 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + 5 * + 15 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 15 + + 64 * + 97
----
6223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3037
SELECT + 55 DIV 70 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3037
SELECT + 55 / 70 + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3038
SELECT ALL COUNT( * ) AS col0, ( + 80 )
----
1
80

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL COUNT ( * ) AS col0, ( + 80 )
----
1
80

query I rowsort
SELECT - + 98 AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT ALL - 84 + COALESCE ( 73, - COUNT( * ) )
----
-11

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL - 84 + COALESCE ( 73, - COUNT ( * ) )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT - COUNT( * ) * - + 43 * - + ( NULLIF ( 5, - ( - + NULLIF ( 45, 87 * 61 ) ) ) ) AS col0
----
-215

skipif mysql # not compatible
query I rowsort label-3041
SELECT - COUNT ( * ) * - + 43 * - + ( NULLIF ( 5, - ( - + NULLIF ( 45, 87 * 61 ) ) ) ) AS col0
----
-215

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3042
SELECT CAST( NULL AS DECIMAL ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT CAST ( NULL AS REAL ) * + 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT ALL + COUNT( * ) - + 94 + + 15 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL + COUNT ( * ) - + 94 + + 15 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL - COUNT( * ) * 40 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL - COUNT ( * ) * 40 AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT DISTINCT - NULLIF ( COUNT( * ), + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT - NULLIF ( COUNT ( * ), + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 57 col2
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3047
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) * + 64
----
NULL

query I rowsort
SELECT DISTINCT - 22 col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT - - 95 * - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - - 95 * - COUNT ( * )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL + CAST( - 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL + CAST ( - 47 AS INTEGER )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT - COUNT( DISTINCT + 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-3051
SELECT - COUNT ( DISTINCT + 0 )
----
-1

query I rowsort
SELECT DISTINCT - - 31
----
31

query I rowsort
SELECT DISTINCT + - 44 AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3054
SELECT - CAST( NULL AS SIGNED ) / COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 98 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - NULLIF ( + - 76, - COUNT( * ) )
----
76

skipif mysql # not compatible
query I rowsort label-3056
SELECT - NULLIF ( + - 76, - COUNT ( * ) )
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3057
SELECT ALL COUNT( * ) * - ( - + CAST( - 26 AS SIGNED ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL COUNT ( * ) * - ( - + CAST ( - 26 AS INTEGER ) ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL + COUNT( * ) + COUNT( * ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL + COUNT ( * ) + COUNT ( * ) * COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL + + ( COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL + + ( COUNT ( * ) ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT + 77 * + COUNT( * ) * + - 21 * - + 16 AS col2
----
25872

skipif mysql # not compatible
query I rowsort label-3060
SELECT + 77 * + COUNT ( * ) * + - 21 * - + 16 AS col2
----
25872

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL + MAX( ALL - 94 ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + MAX ( ALL - 94 ) AS col0
----
-94

query I rowsort
SELECT ALL ( + ( 98 ) )
----
98

query I rowsort
SELECT DISTINCT + 99 + - ( + 44 ) AS col1
----
55

query II rowsort
SELECT 25 col2, 90 AS col2
----
25
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT ALL CAST( + 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-3065
SELECT ALL CAST ( + 83 AS INTEGER )
----
83

query II rowsort
SELECT - 24 AS col0, 20
----
-24
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3067
SELECT + COUNT( * ) DIV + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3067
SELECT + COUNT ( * ) / + 61 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3068
SELECT ALL 17 + + + 51 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL 17 + + + 51 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 41 * + NULLIF ( + 23, + 16 ) AS col1
----
-943

query I rowsort
SELECT DISTINCT - 35 col2
----
-35

query I rowsort
SELECT ALL - + 42 AS col1
----
-42

query I rowsort
SELECT ALL - + 56 AS col1
----
-56

query I rowsort
SELECT 51 + + + 66
----
117

query I rowsort
SELECT - 48 * - 29
----
1392

onlyif mysql # DIV for integer division: 
query I rowsort label-3075
SELECT 9 DIV 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3075
SELECT 9 / 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT DISTINCT 71 * + - COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-3076
SELECT DISTINCT 71 * + - COUNT ( * ) AS col1
----
-71

query I rowsort
SELECT ALL 89 * - + 22 AS col0
----
-1958

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT ALL - 89 DIV + 32 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - 89 / + 32 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT - MAX( ALL - - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-3079
SELECT - MAX ( ALL - - 32 )
----
-32

query I rowsort
SELECT + - ( 49 ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3081
SELECT ALL + - CAST( - + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL + - CAST ( - + 10 AS INTEGER )
----
10

query I rowsort
SELECT DISTINCT ( + + 11 ) AS col1
----
11

query I rowsort
SELECT + 41 - - - 16
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL + CASE + 33 WHEN - ( + COUNT( * ) ) THEN - + 79 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + CASE + 33 WHEN - ( + COUNT ( * ) ) THEN - + 79 END AS col1
----
NULL

query I rowsort
SELECT + - 45 + + 31
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3086
SELECT DISTINCT + CAST( + 5 AS SIGNED )
----
5

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + CAST ( + 5 AS INTEGER )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT DISTINCT - SUM( DISTINCT + 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT - SUM ( DISTINCT + 90 )
----
-90

query II rowsort
SELECT ALL - 80 AS col0, - 92 * - 21 AS col2
----
-80
1932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT CAST( NULL AS SIGNED ) * 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT CAST ( NULL AS INTEGER ) * 8
----
NULL

query II rowsort
SELECT 58 AS col0, 79
----
58
79

query II rowsort
SELECT 9 AS col2, 32 * 49 AS col0
----
9
1568

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3092
SELECT + 39 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3092
SELECT + 39 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT + 8 DIV 68 * - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3093
SELECT + 8 / 68 * - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + MAX( - + 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3094
SELECT + MAX ( - + 58 ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT SUM( - 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3095
SELECT SUM ( - 8 ) AS col2
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3096
SELECT ALL - ( + 27 ) * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL - ( + 27 ) * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 16 col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT ALL CAST( + + 53 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL CAST ( + + 53 AS INTEGER ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT + MIN( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-3099
SELECT + MIN ( - 38 )
----
-38

query I rowsort
SELECT - 30 * 81 AS col0
----
-2430

onlyif mysql # aggregate syntax: 
query II rowsort label-3101
SELECT + COUNT( * ), - ( - COUNT( * ) ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3101
SELECT + COUNT ( * ), - ( - COUNT ( * ) ) AS col1
----
1
1

query I rowsort
SELECT ( - 68 ) AS col2
----
-68

query I rowsort
SELECT + - 78 - 43 AS col0
----
-121

query I rowsort
SELECT ALL + ( 10 ) AS col2
----
10

query I rowsort
SELECT + - 28 + 8
----
-20

query I rowsort
SELECT - 24 - - 91 + - 95 * - ( - 93 )
----
-8768

query I rowsort
SELECT ALL + 30 - + - 66
----
96

query I rowsort
SELECT 74 * + 74 AS col2
----
5476

query I rowsort
SELECT DISTINCT - + 44
----
-44

query I rowsort
SELECT DISTINCT - - 71 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT + CAST( NULL AS SIGNED ) + - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT + CAST ( NULL AS INTEGER ) + - 45 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT MAX( ALL + 5 ) col2
----
5

skipif mysql # not compatible
query I rowsort label-3113
SELECT MAX ( ALL + 5 ) col2
----
5

query I rowsort
SELECT + 14 col0
----
14

query I rowsort
SELECT - + 89 AS col2
----
-89

query II rowsort
SELECT 64, ( + 30 ) col1
----
64
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + NULLIF ( - COUNT( * ), + + 22 ) + + 51 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-3117
SELECT + NULLIF ( - COUNT ( * ), + + 22 ) + + 51 AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3118
SELECT - COUNT( * ) AS col1, 72 AS col2
----
-1
72

skipif mysql # not compatible
query II rowsort label-3118
SELECT - COUNT ( * ) AS col1, 72 AS col2
----
-1
72

query I rowsort
SELECT + 0 * - 38 * + - 21 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT SUM( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-3120
SELECT SUM ( + 4 )
----
4

query I rowsort
SELECT ALL CASE + 63 WHEN - 74 + - 26 * - 44 THEN 69 ELSE NULL END
----
NULL

query I rowsort
SELECT - 19 * - 45 AS col1
----
855

query I rowsort
SELECT ALL ( + 34 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3124
SELECT ALL + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) / + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT COUNT( * ) + - 42 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3125
SELECT COUNT ( * ) + - 42 AS col2
----
-41

query I rowsort
SELECT DISTINCT - 21 + + - 78 AS col2
----
-99

query I rowsort
SELECT - - ( + ( 52 ) ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT + COUNT( * ) + - COUNT( * ) + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-3128
SELECT + COUNT ( * ) + - COUNT ( * ) + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT COUNT( * ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3129
SELECT COUNT ( * ) * + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3130
SELECT COUNT( * ) DIV + MAX( - + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-3130
SELECT COUNT ( * ) / + MAX ( - + 88 )
----
0

query I rowsort
SELECT 98 col1
----
98

query I rowsort
SELECT DISTINCT 30 * - 32 AS col1
----
-960

query I rowsort
SELECT ALL NULLIF ( + ( 34 ), 34 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3134
SELECT + - COUNT( * ) DIV - + 72
----
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT + - COUNT ( * ) / - + 72
----
0

query I rowsort
SELECT - - 56 AS col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT + ( + 53 ) DIV + + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3136
SELECT + ( + 53 ) / + + 79 AS col2
----
0

query I rowsort
SELECT - + 10 * 95 + - 73 - - + 16 AS col2
----
-1007

query I rowsort
SELECT - 98 * 10 AS col1
----
-980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3139
SELECT + + CAST( + AVG ( 7 ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-3139
SELECT + + CAST ( + AVG ( 7 ) AS INTEGER )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3140
SELECT ALL COUNT( * ) * + + 99 * - + 84 DIV + - 7
----
1188

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL COUNT ( * ) * + + 99 * - + 84 / + - 7
----
1188

query I rowsort
SELECT - 7 + + 95 AS col0
----
88

query I rowsort
SELECT ALL + 0 - 95
----
-95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3143
SELECT ALL CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL - 34 * 34 AS col0
----
-1156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3145
SELECT CAST( 5 AS SIGNED ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3145
SELECT CAST ( 5 AS INTEGER ) AS col0
----
5

query I rowsort
SELECT 85 + ( - 2 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT DISTINCT COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 94 * - 36 AS col0
----
3384

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3149
SELECT ( + 87 ) * - ( - + 29 ) - - MAX( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT ( + 87 ) * - ( - + 29 ) - - MAX ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3150
SELECT ALL 12 * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL 12 * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT SUM( - 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3151
SELECT SUM ( - 66 ) AS col2
----
-66

query I rowsort
SELECT - - ( + 96 ) AS col1
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3153
SELECT - - 50 + COUNT( * ) DIV 59 AS col1, + 71 AS col2
----
50
71

skipif mysql # not compatible
query II rowsort label-3153
SELECT - - 50 + COUNT ( * ) / 59 AS col1, + 71 AS col2
----
50
71

query I rowsort
SELECT DISTINCT + 63 col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT ALL + 32 * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + 32 * COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT DISTINCT + 45 * 96 + - 68 + 83 + COUNT( * ) AS col2
----
4336

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT + 45 * 96 + - 68 + 83 + COUNT ( * ) AS col2
----
4336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3157
SELECT DISTINCT 2 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT 2 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT - 28 - + COUNT( * ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - 28 - + COUNT ( * ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT ALL + SUM( ALL - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + SUM ( ALL - 50 )
----
-50

query I rowsort
SELECT 97 * - 64 AS col1
----
-6208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3161
SELECT COUNT( * ) DIV - + 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT COUNT ( * ) / - + 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT ALL 90 * + COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL 90 * + COUNT ( * ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3163
SELECT COUNT( * ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT SUM( + + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-3164
SELECT SUM ( + + 17 )
----
17

query I rowsort
SELECT ALL - + ( 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT ALL - - COUNT( * ), 33 AS col0
----
1
33

skipif mysql # not compatible
query II rowsort label-3166
SELECT ALL - - COUNT ( * ), 33 AS col0
----
1
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT + ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3167
SELECT + ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT 48 + - 63 AS col2
----
-15

query I rowsort
SELECT - ( - 44 ) + - - 76 AS col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT + COUNT( * ) + + 57 + - ( - + 86 ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-3170
SELECT + COUNT ( * ) + + 57 + - ( - + 86 ) AS col1
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) AS col1, 45 + COUNT( * ) + - COUNT( * )
----
-1
45

skipif mysql # not compatible
query II rowsort label-3171
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) AS col1, 45 + COUNT ( * ) + - COUNT ( * )
----
-1
45

query I rowsort
SELECT DISTINCT + - 19 AS col0
----
-19

query I rowsort
SELECT DISTINCT + 53 col0
----
53

query I rowsort
SELECT ALL + + 12 AS col2
----
12

query I rowsort
SELECT DISTINCT - 32 + 3
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3176
SELECT 70, CAST( NULL AS SIGNED ) + - 64 AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-3176
SELECT 70, CAST ( NULL AS INTEGER ) + - 64 AS col0
----
70
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3177
SELECT + - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3177
SELECT + - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT ALL + - ( ( - + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + - ( ( - + COUNT ( * ) ) )
----
1

query I rowsort
SELECT - - 85 col0
----
85

query I rowsort
SELECT ALL - 77 * + 90
----
-6930

query I rowsort
SELECT ALL ( - 73 ) + - 13 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT + MIN( ALL 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3182
SELECT + MIN ( ALL 67 ) AS col2
----
67

query I rowsort
SELECT 15 + + + 26 * 91
----
2381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT CAST( NULL AS SIGNED ) * - + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3184
SELECT CAST ( NULL AS INTEGER ) * - + 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL MIN( NULLIF ( - 65, - + 33 ) )
----
-65

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL MIN ( NULLIF ( - 65, - + 33 ) )
----
-65

query I rowsort
SELECT ALL - - 78 * - 46
----
-3588

query II rowsort
SELECT + - 2 AS col1, 70 AS col1
----
-2
70

query I rowsort
SELECT + - ( - ( - + 27 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + MIN( - - ( + 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-3189
SELECT + MIN ( - - ( + 26 ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT - ( COUNT( * ) ) * + 80
----
-80

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT - ( COUNT ( * ) ) * + 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT DISTINCT - COUNT( DISTINCT + - 79 ) + + - COUNT( * ) + MAX( 51 )
----
49

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT - COUNT ( DISTINCT + - 79 ) + + - COUNT ( * ) + MAX ( 51 )
----
49

query I rowsort
SELECT DISTINCT - 66 + - 59 AS col0
----
-125

query I rowsort
SELECT DISTINCT + ( + 73 ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3194
SELECT ALL + SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT DISTINCT + CAST( 93 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + CAST ( 93 AS INTEGER )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT + 6 * - + 76 - + - COUNT( * ) * + - 0 * - 52 AS col1
----
-456

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT + 6 * - + 76 - + - COUNT ( * ) * + - 0 * - 52 AS col1
----
-456

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL 54 - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL 54 - + COUNT ( * )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT CAST( - 40 AS SIGNED ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3198
SELECT CAST ( - 40 AS INTEGER ) AS col2
----
-40

query I rowsort
SELECT 30 - + 14 AS col2
----
16

query I rowsort
SELECT DISTINCT + 78 * + ( - 80 )
----
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT + CAST( + + 26 AS SIGNED ) - + - COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-3201
SELECT + CAST ( + + 26 AS INTEGER ) - + - COUNT ( * ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT + + COALESCE ( COUNT( * ), + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-3202
SELECT + + COALESCE ( COUNT ( * ), + 76 )
----
1

query II rowsort
SELECT 78 AS col1, 67 + + + 4 AS col0
----
78
71

onlyif mysql # DIV for integer division: 
query I rowsort label-3204
SELECT DISTINCT + 58 DIV - + 50
----
-1

skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT + 58 / - + 50
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT ALL AVG ( - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL AVG ( - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT 3, 63 AS col1
----
3
63

query I rowsort
SELECT + 40 + 8 AS col0
----
48

query I rowsort
SELECT ALL ( + 96 ) col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT ALL CAST( + - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL CAST ( + - 74 AS INTEGER )
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3210
SELECT - 23 AS col1, + COUNT( * ) * - - ( + 98 ) AS col0
----
-23
98

skipif mysql # not compatible
query II rowsort label-3210
SELECT - 23 AS col1, + COUNT ( * ) * - - ( + 98 ) AS col0
----
-23
98

query I rowsort
SELECT ALL ( - - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT ALL - + NULLIF ( + MAX( ALL - 40 ), 74 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-3212
SELECT ALL - + NULLIF ( + MAX ( ALL - 40 ), 74 ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3213
SELECT DISTINCT - - CAST( 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - - CAST ( 50 AS INTEGER )
----
50

query I rowsort
SELECT ALL ( 38 ) AS col0
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT - CAST( - COUNT( ALL + 5 ) AS SIGNED ) * 83
----
83

skipif mysql # not compatible
query I rowsort label-3215
SELECT - CAST ( - COUNT ( ALL + 5 ) AS INTEGER ) * 83
----
83

query I rowsort
SELECT ALL 42 + + + ( - 99 ) + - 89 AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT - 88 * COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-3217
SELECT - 88 * COUNT ( * )
----
-88

query I rowsort
SELECT - - 5 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT DISTINCT + + 3 * COUNT( * ) + 70
----
73

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT + + 3 * COUNT ( * ) + 70
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT DISTINCT + ( - MAX( DISTINCT + 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT + ( - MAX ( DISTINCT + 52 ) )
----
-52

query I rowsort
SELECT DISTINCT - - 49
----
49

query I rowsort
SELECT 75 + + 88
----
163

query I rowsort
SELECT 10 + + 60 * + 93
----
5590

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL - COUNT( 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - COUNT ( 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT COUNT( * ) - + 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3225
SELECT COUNT ( * ) - + 55 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT DISTINCT - MIN( ALL 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT - MIN ( ALL 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT 4 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3227
SELECT 4 * - COUNT ( * )
----
-4

query I rowsort
SELECT DISTINCT - 32 col2
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3229
SELECT ALL 76 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL 76 / - 94 AS col2
----
0

query I rowsort
SELECT COALESCE ( + 9, 33 ) + - 39 * - 30
----
1179

query I rowsort
SELECT DISTINCT + 54 col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT ( MIN( - 29 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3232
SELECT ( MIN ( - 29 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT + MAX( DISTINCT 86 )
----
86

skipif mysql # not compatible
query I rowsort label-3233
SELECT + MAX ( DISTINCT 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT COUNT( * ) + 65
----
66

skipif mysql # not compatible
query I rowsort label-3234
SELECT COUNT ( * ) + 65
----
66

query I rowsort
SELECT - 99 - + 10
----
-109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3236
SELECT + COUNT( * ) * 85 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT + COUNT ( * ) * 85 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT + NULLIF ( - 6, CAST( NULL AS SIGNED ) )
----
-6

skipif mysql # not compatible
query I rowsort label-3237
SELECT + NULLIF ( - 6, CAST ( NULL AS INTEGER ) )
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3238
SELECT - CAST( NULL AS SIGNED ) / COUNT( ALL - CAST( 7 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( ALL - CAST ( 7 AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT + COUNT( * ) + 62
----
63

skipif mysql # not compatible
query I rowsort label-3239
SELECT + COUNT ( * ) + 62
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3240
SELECT DISTINCT + 3 DIV - ( + 53 )
----
0

skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT + 3 / - ( + 53 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT ALL + 22 / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL + 22 / CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - 22 * - 76 AS col1
----
1672

query I rowsort
SELECT ALL + ( + 68 ) * + 69 col1
----
4692

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3244
SELECT ALL CAST( NULL AS SIGNED ), + 43 AS col2
----
NULL
43

skipif mysql # not compatible
query II rowsort label-3244
SELECT ALL CAST ( NULL AS INTEGER ), + 43 AS col2
----
NULL
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3245
SELECT ALL COUNT( * ) DIV CAST( + MAX( - 75 ) AS SIGNED ) + + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL COUNT ( * ) / CAST ( + MAX ( - 75 ) AS INTEGER ) + + COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL 7 + COUNT( ALL + CAST( NULL AS SIGNED ) )
----
7

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL 7 + COUNT ( ALL + CAST ( NULL AS INTEGER ) )
----
7

query I rowsort
SELECT ALL 24 * + 60 col2
----
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT CAST( NULL AS SIGNED ) * 98 * + NULLIF ( - 99, 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT CAST ( NULL AS INTEGER ) * 98 * + NULLIF ( - 99, 59 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT 45 * + + COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-3249
SELECT 45 * + + COUNT ( * ) AS col1
----
45

query I rowsort
SELECT DISTINCT - 60 AS col2
----
-60

query I rowsort
SELECT ALL + 30 + - 19
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT DISTINCT COUNT( * ) + + 45 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT COUNT ( * ) + + 45 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL - MIN( ALL + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - MIN ( ALL + 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT ALL 11 * COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL 11 * COUNT ( * ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3255
SELECT CAST( NULL AS DECIMAL ) * 60 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT CAST ( NULL AS REAL ) * 60 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT COUNT( + + 73 )
----
1

skipif mysql # not compatible
query I rowsort label-3256
SELECT COUNT ( + + 73 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3257
SELECT ALL + + 97, CAST( NULL AS DECIMAL ) AS col2
----
97
NULL

skipif mysql # not compatible
query II rowsort label-3257
SELECT ALL + + 97, CAST ( NULL AS REAL ) AS col2
----
97
NULL

query I rowsort
SELECT - + 31 AS col2
----
-31

query I rowsort
SELECT ALL ( 9 )
----
9

query I rowsort
SELECT - 87 + - + 36 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT ALL + COALESCE ( + 63, + 64 * - 26, + + COUNT( * ) + - - ( - COUNT( * ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL + COALESCE ( + 63, + 64 * - 26, + + COUNT ( * ) + - - ( - COUNT ( * ) ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL + MIN( - 88 ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL + MIN ( - 88 ) col2
----
-88

query I rowsort
SELECT ALL + ( 54 ) col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT + ( + 59 ) - + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3264
SELECT + ( + 59 ) - + COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT ALL + 91 * COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL + 91 * COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT ( 36 ) * + 36 AS col0
----
1296

query I rowsort
SELECT ALL + - 89 * + - 93
----
8277

query I rowsort
SELECT ALL - - 16 col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT + 76 DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-3269
SELECT + 76 / + 55
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3270
SELECT ALL CAST( NULL AS SIGNED ) + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL CAST ( NULL AS INTEGER ) + 58
----
NULL

query I rowsort
SELECT ALL + ( 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL + SUM( + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + SUM ( + 97 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3273
SELECT - COUNT( * ) + + 73 / + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT - COUNT ( * ) + + 73 / + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL 87 + + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL 87 + + - COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT - SUM( ALL - + 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-3276
SELECT - SUM ( ALL - + 22 ) AS col0
----
22

query I rowsort
SELECT ALL ( + 41 ) col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT + COUNT( * ) * + 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-3278
SELECT + COUNT ( * ) * + 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT 38 * - COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3279
SELECT 38 * - COUNT ( * ) AS col0
----
-38

query I rowsort
SELECT DISTINCT + 13 * + 49 AS col2
----
637

onlyif mysql # aggregate syntax: 
query II rowsort label-3281
SELECT ALL - 68, COUNT( * ) AS col1
----
-68
1

skipif mysql # not compatible
query II rowsort label-3281
SELECT ALL - 68, COUNT ( * ) AS col1
----
-68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT ALL - + 70 * COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL - + 70 * COUNT ( * )
----
-70

query I rowsort
SELECT 12 * - 91
----
-1092

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT + MIN( + - ( - 41 ) ), - 20 AS col2
----
41
-20

skipif mysql # not compatible
query II rowsort label-3284
SELECT + MIN ( + - ( - 41 ) ), - 20 AS col2
----
41
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + SUM( DISTINCT 96 )
----
96

skipif mysql # not compatible
query I rowsort label-3285
SELECT + SUM ( DISTINCT 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT COUNT( ALL + 52 )
----
1

skipif mysql # not compatible
query I rowsort label-3286
SELECT COUNT ( ALL + 52 )
----
1

query I rowsort
SELECT + + 97 - - 47
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3288
SELECT DISTINCT + 9 + - COUNT( * ) DIV - 33 AS col1, - 54 AS col0
----
9
-54

skipif mysql # not compatible
query II rowsort label-3288
SELECT DISTINCT + 9 + - COUNT ( * ) / - 33 AS col1, - 54 AS col0
----
9
-54

query I rowsort
SELECT ALL + ( - 83 ) col2
----
-83

query I rowsort
SELECT ( - - 17 )
----
17

query I rowsort
SELECT + 78 * 73 * + 59
----
335946

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT - 70 * 70 - - COUNT( * )
----
-4899

skipif mysql # not compatible
query I rowsort label-3292
SELECT - 70 * 70 - - COUNT ( * )
----
-4899

query I rowsort
SELECT DISTINCT - 70 * - 5 AS col2
----
350

query II rowsort
SELECT + 98 col0, - 36 AS col0
----
98
-36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3295
SELECT ALL + + ( - CAST( NULL AS SIGNED ) ) / - 13 / + CAST( 76 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + + ( - CAST ( NULL AS INTEGER ) ) / - 13 / + CAST ( 76 AS REAL )
----
NULL

query I rowsort
SELECT + - 81 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT - 19 AS col1, 80 + - COUNT( * )
----
-19
79

skipif mysql # not compatible
query II rowsort label-3297
SELECT - 19 AS col1, 80 + - COUNT ( * )
----
-19
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT MAX( ALL + 65 )
----
65

skipif mysql # not compatible
query I rowsort label-3298
SELECT MAX ( ALL + 65 )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3299
SELECT + COUNT( - - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT + COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT MIN( ALL 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3300
SELECT MIN ( ALL 49 ) AS col2
----
49

query I rowsort
SELECT ALL - ( + 64 )
----
-64

query I rowsort
SELECT ALL ( + + ( - 92 ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT - - MAX( + ( 21 ) ) * - 21
----
-441

skipif mysql # not compatible
query I rowsort label-3303
SELECT - - MAX ( + ( 21 ) ) * - 21
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT ( + ( MIN( DISTINCT - 20 ) ) )
----
-20

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT ( + ( MIN ( DISTINCT - 20 ) ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT ALL COUNT( * ) + + 25 col2
----
26

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL COUNT ( * ) + + 25 col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT + COUNT( 7 )
----
1

skipif mysql # not compatible
query I rowsort label-3306
SELECT + COUNT ( 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT + COUNT( * ) + - COUNT( * ) * - + 86 + + + 55
----
142

skipif mysql # not compatible
query I rowsort label-3307
SELECT + COUNT ( * ) + - COUNT ( * ) * - + 86 + + + 55
----
142

query I rowsort
SELECT + + 36 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3309
SELECT ALL - 21 + - CAST( NULL AS SIGNED ) * + SUM( - 68 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL - 21 + - CAST ( NULL AS INTEGER ) * + SUM ( - 68 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT - COALESCE ( - 2, + 94 ) + - COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - COALESCE ( - 2, + 94 ) + - COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT DISTINCT + COUNT( * ) * 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT + COUNT ( * ) * 49 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL + ( + - COUNT( * ) ) * 93
----
-93

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + ( + - COUNT ( * ) ) * 93
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT DISTINCT - SUM( + 3 ) + + - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT - SUM ( + 3 ) + + - COUNT ( * )
----
-4

query II rowsort
SELECT DISTINCT - - 14 AS col0, 1 AS col0
----
14
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT 25 * - + MAX( + - 11 ) + ( + 9 ) AS col1
----
284

skipif mysql # not compatible
query I rowsort label-3315
SELECT 25 * - + MAX ( + - 11 ) + ( + 9 ) AS col1
----
284

query I rowsort
SELECT - ( 25 ) AS col1
----
-25

query I rowsort
SELECT DISTINCT 42 * + 56 AS col1
----
2352

onlyif mysql # aggregate syntax: 
query II rowsort label-3318
SELECT - COUNT( * ), + MAX( - - 76 ) - - MIN( ALL ( 98 ) ) col2
----
-1
174

skipif mysql # not compatible
query II rowsort label-3318
SELECT - COUNT ( * ), + MAX ( - - 76 ) - - MIN ( ALL ( 98 ) ) col2
----
-1
174

query I rowsort
SELECT - + 48 + + 34
----
-14

query I rowsort
SELECT + 11 * 90
----
990

onlyif mysql # aggregate syntax: 
query II rowsort label-3321
SELECT - COUNT( * ), + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-3321
SELECT - COUNT ( * ), + COUNT ( * ) AS col1
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL ( - COUNT( * ) ) * + 90
----
-90

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL ( - COUNT ( * ) ) * + 90
----
-90

query I rowsort
SELECT ALL + 72 * + 45 AS col1
----
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT + 22 * COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3324
SELECT + 22 * COUNT ( * ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3325
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3325
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col2
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT + 31 + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3326
SELECT + 31 + COUNT ( * ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - + 63 + - COUNT( * ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-3327
SELECT - + 63 + - COUNT ( * ) col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3328
SELECT - - COUNT( * ) * + - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3328
SELECT - - COUNT ( * ) * + - ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT ALL + - SUM( DISTINCT - 41 ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + - SUM ( DISTINCT - 41 ) AS col2
----
41

query I rowsort
SELECT ( + - 50 ) col2
----
-50

query I rowsort
SELECT DISTINCT + 85 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL + COUNT( * ) * 10 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + COUNT ( * ) * 10 AS col2
----
10

query I rowsort
SELECT 32 + + 10
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT 17 - + COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-3334
SELECT 17 - + COUNT ( * )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3335
SELECT DISTINCT - MIN( ALL + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT - MIN ( ALL + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT COUNT( ALL - 12 )
----
1

skipif mysql # not compatible
query I rowsort label-3336
SELECT COUNT ( ALL - 12 )
----
1

query I rowsort
SELECT ALL + 45 * + 7 AS col1
----
315

query I rowsort
SELECT DISTINCT + ( + 38 )
----
38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3339
SELECT ALL + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + ( + - 75 )
----
-75

query I rowsort
SELECT + 28 * - + 86
----
-2408

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT + - 9 DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-3342
SELECT + - 9 / - 47
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT - + 3 / + CAST( NULL AS SIGNED ) * + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT - + 3 / + CAST ( NULL AS INTEGER ) * + 2 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT - COUNT( - + 12 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - COUNT ( - + 12 ) AS col1
----
-1

query II rowsort
SELECT DISTINCT - 22 AS col2, - 68 AS col2
----
-22
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT DISTINCT - CAST( + ( - ( + SUM( - 54 ) ) ) AS SIGNED ) + - - 44 * + - 70 AS col0
----
-3134

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT - CAST ( + ( - ( + SUM ( - 54 ) ) ) AS INTEGER ) + - - 44 * + - 70 AS col0
----
-3134

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL - 24 * + - SUM( ALL 10 ) AS col1
----
240

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL - 24 * + - SUM ( ALL 10 ) AS col1
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT + COUNT( * ) * - 79 col1
----
-79

skipif mysql # not compatible
query I rowsort label-3348
SELECT + COUNT ( * ) * - 79 col1
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-3349
SELECT DISTINCT 81, - COUNT( * ) - - 19 * - 43 col0
----
81
-818

skipif mysql # not compatible
query II rowsort label-3349
SELECT DISTINCT 81, - COUNT ( * ) - - 19 * - 43 col0
----
81
-818

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3350
SELECT COUNT( * ) - + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT COUNT ( * ) - + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT - MIN( + + ( 49 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-3351
SELECT - MIN ( + + ( 49 ) )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT 19 DIV + + COUNT( * ) - 14 col0
----
5

skipif mysql # not compatible
query I rowsort label-3352
SELECT 19 / + + COUNT ( * ) - 14 col0
----
5

query I rowsort
SELECT ( 95 ) * - 8 AS col1
----
-760

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT ALL - MAX( + + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - MAX ( + + 21 )
----
-21

query I rowsort
SELECT ALL - 31 * - 7 AS col2
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL + - MAX( - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL + - MAX ( - 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT + 10 * + CAST( + 58 AS SIGNED ) AS col1
----
580

skipif mysql # not compatible
query I rowsort label-3358
SELECT + 10 * + CAST ( + 58 AS INTEGER ) AS col1
----
580

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT 71 + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-3359
SELECT 71 + COUNT ( * ) AS col0
----
72

query I rowsort
SELECT ALL - + 45
----
-45

query I rowsort
SELECT ALL - - 11 AS col2
----
11

query I rowsort
SELECT 54 * + + 74
----
3996

query I rowsort
SELECT 95 + - + ( + ( - 93 ) )
----
188

query I rowsort
SELECT DISTINCT - + 34 + - 90
----
-124

query I rowsort
SELECT DISTINCT + 52 + 97
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT + COUNT( * ) + - 30 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-3366
SELECT + COUNT ( * ) + - 30 AS col1
----
-29

query I rowsort
SELECT ALL + 58 - 42 AS col2
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3368
SELECT DISTINCT - - 84 AS col2, + CAST( NULL AS SIGNED )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-3368
SELECT DISTINCT - - 84 AS col2, + CAST ( NULL AS INTEGER )
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT ALL 18 - - + MAX( - 70 ) + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL 18 - - + MAX ( - 70 ) + COUNT ( * )
----
-51

query II rowsort
SELECT ALL 22, + 87 + + 23 AS col1
----
22
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3371
SELECT DISTINCT - 12 * COUNT( * ) DIV + COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - 12 * COUNT ( * ) / + COUNT ( * ) AS col0
----
-12

query II rowsort
SELECT ALL + 21 AS col1, - 1 AS col1
----
21
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT + + COUNT( ALL + - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-3373
SELECT + + COUNT ( ALL + - 59 )
----
1

query I rowsort
SELECT DISTINCT + COALESCE ( + - 77, - - 71 ) col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT ALL + - 68 * - - COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + - 68 * - - COUNT ( * )
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3376
SELECT ALL + - MAX( ALL + 17 ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL + - MAX ( ALL + 17 ) / - 61
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT + 74 DIV COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-3377
SELECT + 74 / COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT + COUNT( ALL 37 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3378
SELECT + COUNT ( ALL 37 ) col1
----
1

query I rowsort
SELECT - 28 * - 26
----
728

query I rowsort
SELECT ALL ( + 24 ) + 55 AS col0
----
79

query I rowsort
SELECT 11 * - - 79
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL + COUNT( * ) - + - NULLIF ( 37, + 8 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL + COUNT ( * ) - + - NULLIF ( 37, + 8 ) AS col1
----
38

query I rowsort
SELECT DISTINCT 9 - - - 15
----
-6

query I rowsort
SELECT ALL - 71 * ( - 94 ) * + 8 col2
----
53392

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL - 92 * + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-3385
SELECT ALL - 92 * + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT ( COUNT( DISTINCT - 70 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3386
SELECT ( COUNT ( DISTINCT - 70 ) )
----
1

query I rowsort
SELECT - - ( - + 85 ) AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT + COUNT( * ) * 87
----
87

skipif mysql # not compatible
query I rowsort label-3388
SELECT + COUNT ( * ) * 87
----
87

query I rowsort
SELECT DISTINCT - 96 + 11
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT SUM( DISTINCT 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3390
SELECT SUM ( DISTINCT 91 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3391
SELECT ALL 75 DIV 65 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL 75 / 65 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT MAX( + - 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3392
SELECT MAX ( + - 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL - - 30 + + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL - - 30 + + COUNT ( * ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT DISTINCT COUNT( * ) * - + 90 AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT COUNT ( * ) * - + 90 AS col1
----
-90

query I rowsort
SELECT ( + - 1 ) AS col1
----
-1

query I rowsort
SELECT + ( 56 ) col1
----
56

query II rowsort
SELECT - + 85 AS col2, + 81 col0
----
-85
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3398
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( ( 56 ) )
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3400
SELECT CAST( NULL AS DECIMAL ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT CAST ( NULL AS REAL ) * - 40
----
NULL

query I rowsort
SELECT + 68 col2
----
68

query I rowsort
SELECT ALL 80 * + 47 AS col0
----
3760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3403
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 75 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT + + CAST( NULL AS SIGNED ) + + - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT + + CAST ( NULL AS INTEGER ) + + - 48
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT + CAST( - 61 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3405
SELECT + CAST ( - 61 AS INTEGER ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT + 75 * + - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-3406
SELECT + 75 * + - COUNT ( * ) AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3407
SELECT + 92 DIV COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3407
SELECT + 92 / COUNT ( * ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL ( - ( COUNT( * ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL ( - ( COUNT ( * ) ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 3 * + 70 AS col1
----
210

query I rowsort
SELECT ALL + - 51
----
-51

query I rowsort
SELECT ALL + + 90
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3412
SELECT ALL CAST( 58 AS SIGNED ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL CAST ( 58 AS INTEGER ) AS col1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3413
SELECT - 80 DIV + - 74
----
1

skipif mysql # not compatible
query I rowsort label-3413
SELECT - 80 / + - 74
----
1

query I rowsort
SELECT DISTINCT + - 57 AS col1
----
-57

query I rowsort
SELECT DISTINCT - 21 col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3416
SELECT DISTINCT - - CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3416
SELECT DISTINCT - - CAST ( COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3417
SELECT + COUNT( * ) AS col0, COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-3417
SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT COUNT( 56 ) + - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT COUNT ( 56 ) + - 55 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - MAX( + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-3419
SELECT - MAX ( + 51 )
----
-51

query I rowsort
SELECT DISTINCT + + 68 col1
----
68

query II rowsort
SELECT - 15, - 39 col0
----
-15
-39

query I rowsort
SELECT ( + - 57 ) AS col0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3423
SELECT + CAST( NULL AS SIGNED ) AS col2, + 24 AS col0
----
NULL
24

skipif mysql # not compatible
query II rowsort label-3423
SELECT + CAST ( NULL AS INTEGER ) AS col2, + 24 AS col0
----
NULL
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ( 11 ) col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT 77 * - COUNT( * ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3427
SELECT 77 * - COUNT ( * ) AS col2
----
-77

query I rowsort
SELECT DISTINCT - ( - 38 ) AS col2
----
38

query II rowsort
SELECT + 65 AS col0, - 93
----
65
-93

query I rowsort
SELECT ALL - NULLIF ( + 30, - 83 ) AS col0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT CAST( NULL AS SIGNED ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT CAST ( NULL AS INTEGER ) * - 3
----
NULL

query I rowsort
SELECT ALL + ( + 13 ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-3433
SELECT ALL COUNT( * ) AS col0, 19 col2
----
1
19

skipif mysql # not compatible
query II rowsort label-3433
SELECT ALL COUNT ( * ) AS col0, 19 col2
----
1
19

query II rowsort
SELECT + 46, + 47 AS col2
----
46
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3435
SELECT ALL - 97 AS col0, + COUNT( * )
----
-97
1

skipif mysql # not compatible
query II rowsort label-3435
SELECT ALL - 97 AS col0, + COUNT ( * )
----
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT SUM( DISTINCT + + 56 ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-3436
SELECT SUM ( DISTINCT + + 56 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3437
SELECT + - MAX( - 98 ) + + + COUNT( * ) col1
----
99

skipif mysql # not compatible
query I rowsort label-3437
SELECT + - MAX ( - 98 ) + + + COUNT ( * ) col1
----
99

query I rowsort
SELECT DISTINCT - 28 + - 7 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT COUNT( * ) + - 44
----
-43

skipif mysql # not compatible
query I rowsort label-3439
SELECT COUNT ( * ) + - 44
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT ALL 20 * + MAX( - 19 ) AS col1
----
-380

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL 20 * + MAX ( - 19 ) AS col1
----
-380

query I rowsort
SELECT DISTINCT + 91 * 53
----
4823

query II rowsort
SELECT - 38 col2, 33
----
-38
33

query I rowsort
SELECT ( + 39 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3444
SELECT ALL NULLIF ( COUNT( * ), - 77 ) DIV ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL NULLIF ( COUNT ( * ), - 77 ) / ( COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT + SUM( - 49 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT + SUM ( - 49 ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - COUNT( ALL 16 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3446
SELECT - COUNT ( ALL 16 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3447
SELECT - 56 DIV + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-3447
SELECT - 56 / + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + 41 + COUNT( * ) * 73 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-3448
SELECT + 41 + COUNT ( * ) * 73 AS col1
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3449
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) DIV + 70 + 78
----
78

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) / + 70 + 78
----
78

query I rowsort
SELECT + + 21 AS col1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT 21 - + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-3452
SELECT 21 - + COUNT ( * ) AS col2
----
20

query I rowsort
SELECT DISTINCT 76 col1
----
76

query I rowsort
SELECT ALL + - 86 - ( + ( 45 ) ) AS col0
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT - CAST( + 1 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3455
SELECT - CAST ( + 1 AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL - + 65 AS col1
----
-65

query I rowsort
SELECT + ( 56 ) + - 26
----
30

query II rowsort
SELECT ALL 13 AS col0, - 21 * + 26
----
13
-546

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3459
SELECT - AVG ( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT - AVG ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT DISTINCT AVG ( DISTINCT - 85 ) + 20 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT AVG ( DISTINCT - 85 ) + 20 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT - - 34 + - + SUM( - ( 56 ) ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-3461
SELECT - - 34 + - + SUM ( - ( 56 ) ) AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3462
SELECT - CAST( NULL AS SIGNED ) * 97 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT - CAST ( NULL AS INTEGER ) * 97 + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( + NULLIF ( + - 20, + 93 ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT COUNT( 2 )
----
1

skipif mysql # not compatible
query I rowsort label-3464
SELECT COUNT ( 2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT + COUNT( DISTINCT - + ( + - 94 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3465
SELECT + COUNT ( DISTINCT - + ( + - 94 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3466
SELECT ALL 18 * + CAST( + 9 AS SIGNED ) + + 32 DIV 33 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL 18 * + CAST ( + 9 AS INTEGER ) + + 32 / 33 AS col0
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3467
SELECT + + COUNT( * ) + COUNT( * ) + + 80 DIV - + 94 * 86 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3467
SELECT + + COUNT ( * ) + COUNT ( * ) + + 80 / - + 94 * 86 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3468
SELECT + + 5 / CAST( NULL AS SIGNED ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3468
SELECT + + 5 / CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT - 78 * - + 90
----
7020

query I rowsort
SELECT + COALESCE ( ( - - 18 ), + + 2 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT DISTINCT + CASE - COUNT( * ) WHEN 55 THEN - MIN( DISTINCT + 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT + CASE - COUNT ( * ) WHEN 55 THEN - MIN ( DISTINCT + 10 ) END
----
NULL

query I rowsort
SELECT - ( - - 99 )
----
-99

query I rowsort
SELECT - + 0 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT ALL - CASE + 78 WHEN + ( - ( - 66 ) ) THEN CAST( 36 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - CASE + 78 WHEN + ( - ( - 66 ) ) THEN CAST ( 36 AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL - COUNT( 61 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL - COUNT ( 61 ) AS col1
----
-1

query II rowsort
SELECT 4 AS col2, - 11 col0
----
4
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3477
SELECT ALL - + 27 DIV + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL - + 27 / + COUNT ( * )
----
-27

query I rowsort
SELECT ALL + 52 * 45
----
2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3479
SELECT - MIN( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT - MIN ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT 12 * - MIN( DISTINCT + 73 )
----
-876

skipif mysql # not compatible
query I rowsort label-3480
SELECT 12 * - MIN ( DISTINCT + 73 )
----
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT SUM( - + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-3481
SELECT SUM ( - + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - - MIN( + - 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3482
SELECT - - MIN ( + - 76 ) AS col1
----
-76

query I rowsort
SELECT DISTINCT + NULLIF ( + 38, + 32 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT - - 99 + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-3484
SELECT - - 99 + COUNT ( * )
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3486
SELECT ALL COUNT( * ) DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL COUNT ( * ) / + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL CASE COUNT( * ) WHEN + - 64 THEN NULL ELSE - - 58 END AS col0
----
58

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL CASE COUNT ( * ) WHEN + - 64 THEN NULL ELSE - - 58 END AS col0
----
58

query I rowsort
SELECT ( + + NULLIF ( - - 66, + 69 ) ) col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT + - 72 * - - COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3489
SELECT + - 72 * - - COUNT ( * ) AS col2
----
-72

query I rowsort
SELECT ALL + 63 col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT + AVG ( - 9 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3491
SELECT + AVG ( - 9 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3492
SELECT + + 45 - + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT + + 45 - + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 75 + + 7
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL - NULLIF ( ( - - COUNT( * ) ), - 32 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - NULLIF ( ( - - COUNT ( * ) ), - 32 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL - MAX( ALL - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL - MAX ( ALL - 6 )
----
6

query I rowsort
SELECT ALL 85 * - 43 col2
----
-3655

query I rowsort
SELECT DISTINCT - - 87 col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - SUM( + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3498
SELECT - SUM ( + 28 ) AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3499
SELECT CAST( NULL AS SIGNED ) + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT CAST ( NULL AS INTEGER ) + 81 AS col1
----
NULL

query II rowsort
SELECT ALL - + 53, + 8 col1
----
-53
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3501
SELECT + - CAST( + 65 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3501
SELECT + - CAST ( + 65 AS INTEGER ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL + 96 * COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL + 96 * COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT 34 AS col1, COUNT( * ) col2
----
34
1

skipif mysql # not compatible
query II rowsort label-3503
SELECT 34 AS col1, COUNT ( * ) col2
----
34
1

query I rowsort
SELECT + 27 * - 51 AS col0
----
-1377

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT + 56 + - 0, COUNT( * ) AS col2
----
56
1

skipif mysql # not compatible
query II rowsort label-3505
SELECT + 56 + - 0, COUNT ( * ) AS col2
----
56
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3506
SELECT ALL - - 65 * + ( 5 ) * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT ALL - - 65 * + ( 5 ) * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3507
SELECT + - COUNT( * ) DIV + COUNT( * ) + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3507
SELECT + - COUNT ( * ) / + COUNT ( * ) + + COUNT ( * )
----
0

query I rowsort
SELECT + + 70 * 54 AS col2
----
3780

query I rowsort
SELECT ALL + ( + - 73 ) AS col1
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3510
SELECT DISTINCT CAST( + 56 AS SIGNED ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT CAST ( + 56 AS INTEGER ) AS col1
----
56

query I rowsort
SELECT + - 37 * + - 77
----
2849

query I rowsort
SELECT ALL + - COALESCE ( - 36, + 30 ) AS col1
----
36

query I rowsort
SELECT ALL + + 92 AS col0
----
92

query I rowsort
SELECT ALL + + 31 AS col0
----
31

query I rowsort
SELECT + - 10 * + + 33
----
-330

query II rowsort
SELECT ALL - 94 AS col2, 69 AS col2
----
-94
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3517
SELECT ALL + COUNT( DISTINCT - - 63 ) + 62 DIV 97 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL + COUNT ( DISTINCT - - 63 ) + 62 / 97 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL + 44 - - COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL + 44 - - COUNT ( * ) AS col0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT + + COUNT( 50 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3519
SELECT + + COUNT ( 50 ) col2
----
1

query I rowsort
SELECT ALL 43 + - 36
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT ( + + ( - MIN( 63 ) ) ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-3521
SELECT ( + + ( - MIN ( 63 ) ) ) col0
----
-63

query I rowsort
SELECT DISTINCT + 8 * - 10 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT COUNT( DISTINCT - - 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3523
SELECT COUNT ( DISTINCT - - 27 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3524
SELECT + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL MIN( DISTINCT 37 )
----
37

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL MIN ( DISTINCT 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - COUNT( * ) * + - 6
----
6

skipif mysql # not compatible
query I rowsort label-3526
SELECT - COUNT ( * ) * + - 6
----
6

query I rowsort
SELECT ALL + ( + 32 ) AS col2
----
32

query I rowsort
SELECT ( 56 ) AS col1
----
56

query I rowsort
SELECT DISTINCT 28 col0
----
28

query II rowsort
SELECT DISTINCT + ( 70 ) AS col1, + 0 * + 27
----
70
0

query II rowsort
SELECT ALL - 45 AS col0, + 39 col1
----
-45
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT ALL - NULLIF ( + 75, COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - NULLIF ( + 75, COUNT ( * ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT + 14 * 18 + + 97 + + - COUNT( * ) AS col0
----
348

skipif mysql # not compatible
query I rowsort label-3533
SELECT + 14 * 18 + + 97 + + - COUNT ( * ) AS col0
----
348

query I rowsort
SELECT - ( + 18 ) AS col2
----
-18

query I rowsort
SELECT ALL ( + 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL + NULLIF ( - COUNT( * ), - COUNT( * ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + NULLIF ( - COUNT ( * ), - COUNT ( * ) ) col0
----
NULL

query I rowsort
SELECT - 69 - 14 AS col2
----
-83

query I rowsort
SELECT ALL - 15 + + 26 AS col0
----
11

query I rowsort
SELECT DISTINCT 64 * - + 24 AS col2
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT - MIN( DISTINCT - - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-3540
SELECT - MIN ( DISTINCT - - 74 )
----
-74

query I rowsort
SELECT 74 * - 86 AS col2
----
-6364

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3542
SELECT DISTINCT - MAX( + CAST( NULL AS DECIMAL ) ) / + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - MAX ( + CAST ( NULL AS REAL ) ) / + 41 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT 20 DIV + + 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT 20 / + + 91 AS col1
----
0

query I rowsort
SELECT ALL - - ( - 88 ) col1
----
-88

query I rowsort
SELECT 90 * - 86 * - 24 AS col2
----
185760

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT 15 * - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT 15 * - + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL MIN( ALL + 11 ) * 10 * + - COUNT( * ) AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL MIN ( ALL + 11 ) * 10 * + - COUNT ( * ) AS col1
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3548
SELECT + CAST( NULL AS SIGNED ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT + CAST ( NULL AS INTEGER ) + - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3549
SELECT ALL + - COUNT( * ) * - 67 + CAST( COUNT( * ) AS SIGNED ) col1
----
68

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL + - COUNT ( * ) * - 67 + CAST ( COUNT ( * ) AS INTEGER ) col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3550
SELECT ALL + 83 DIV + 16
----
5

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL + 83 / + 16
----
5

query I rowsort
SELECT ALL + 56 * + 87
----
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT ALL - 84 * + + ( - - COUNT( * ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - 84 * + + ( - - COUNT ( * ) ) AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT ALL CAST( 84 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL CAST ( 84 AS INTEGER ) AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3554
SELECT - CAST( NULL AS SIGNED ) AS col0, - 73
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-3554
SELECT - CAST ( NULL AS INTEGER ) AS col0, - 73
----
NULL
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL 24 DIV - 89 + + + 33 + 14 col2
----
47

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL 24 / - 89 + + + 33 + 14 col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + COUNT( * ) * - 4 + - 49 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-3556
SELECT + COUNT ( * ) * - 4 + - 49 AS col0
----
-53

query I rowsort
SELECT + 9 + - 23 * - 77 AS col1
----
1780

query I rowsort
SELECT ALL - 57 col0
----
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3559
SELECT CAST( NULL AS DECIMAL ) * 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT CAST ( NULL AS REAL ) * 28
----
NULL

query I rowsort
SELECT 69 + 19
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3561
SELECT ALL - + COUNT( * ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3561
SELECT ALL - + COUNT ( * ) / + COUNT ( * )
----
-1

query I rowsort
SELECT ALL - + 40 + + 45
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT - SUM( + 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-3563
SELECT - SUM ( + 18 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT - 4 DIV - + 93 * 40 col0
----
0

skipif mysql # not compatible
query I rowsort label-3564
SELECT - 4 / - + 93 * 40 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT DISTINCT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT + 43 * COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-3566
SELECT + 43 * COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT MIN( - 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-3567
SELECT MIN ( - 26 ) AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT + MIN( - 87 ) + COUNT( * ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT + MIN ( - 87 ) + COUNT ( * ) col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT - MIN( + ( - - 52 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-3569
SELECT - MIN ( + ( - - 52 ) )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT + + 71 + - COUNT( * ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3570
SELECT + + 71 + - COUNT ( * ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT DISTINCT - ( + + COUNT( * ) ) * + - 9 + - 18
----
-9

skipif mysql # not compatible
query I rowsort label-3571
SELECT DISTINCT - ( + + COUNT ( * ) ) * + - 9 + - 18
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT DISTINCT COUNT( * ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3572
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT DISTINCT - ( + - AVG ( DISTINCT + + CAST( NULL AS SIGNED ) ) ) * COALESCE ( - + ( 90 ), - - 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT DISTINCT - ( + - AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) * COALESCE ( - + ( 90 ), - - 70 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT - COUNT( DISTINCT - 20 )
----
-1

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT - COUNT ( DISTINCT - 20 )
----
-1

query II rowsort
SELECT ALL 25 AS col1, + 37 AS col1
----
25
37

query I rowsort
SELECT - 85 * - 56
----
4760

query I rowsort
SELECT DISTINCT + - 12 AS col1
----
-12

query I rowsort
SELECT - + 59 * 18 * 50
----
-53100

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT - MIN( - 36 )
----
36

skipif mysql # not compatible
query I rowsort label-3579
SELECT - MIN ( - 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT + 61 * + + COUNT( * ) * - + 44 * + 12 AS col1
----
-32208

skipif mysql # not compatible
query I rowsort label-3580
SELECT + 61 * + + COUNT ( * ) * - + 44 * + 12 AS col1
----
-32208

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT ALL 76 * 45 * + - COUNT( * ) - - - 85
----
-3505

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL 76 * 45 * + - COUNT ( * ) - - - 85
----
-3505

query I rowsort
SELECT + - COALESCE ( - 14, + 22 )
----
14

query I rowsort
SELECT ALL ( + 65 ) AS col0
----
65

query I rowsort
SELECT ALL ( + 71 ) AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT CAST( - 9 AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-3585
SELECT CAST ( - 9 AS INTEGER ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT COUNT( * ) * MAX( DISTINCT - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-3586
SELECT COUNT ( * ) * MAX ( DISTINCT - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT - COUNT( * ) + - 59
----
-60

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT - COUNT ( * ) + - 59
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT - CAST( + 40 AS SIGNED ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT - CAST ( + 40 AS INTEGER ) AS col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT - 63 DIV - 7
----
9

skipif mysql # not compatible
query I rowsort label-3589
SELECT - 63 / - 7
----
9

query I rowsort
SELECT + + 57 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT COUNT( * ) + 6 col0
----
7

skipif mysql # not compatible
query I rowsort label-3591
SELECT COUNT ( * ) + 6 col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3592
SELECT + ( - 85 ) DIV 22
----
-3

skipif mysql # not compatible
query I rowsort label-3592
SELECT + ( - 85 ) / 22
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT ALL - COUNT( * ) DIV - - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - COUNT ( * ) / - - 78 AS col0
----
0

query I rowsort
SELECT ALL 33 * - 31 AS col0
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + SUM( - 26 ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-3595
SELECT + SUM ( - 26 ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT ALL + - MIN( ALL + - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL + - MIN ( ALL + - 31 ) AS col2
----
31

query I rowsort
SELECT ALL + + 8 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT COUNT( * ) + 0 - + 79 * 2
----
-157

skipif mysql # not compatible
query I rowsort label-3598
SELECT COUNT ( * ) + 0 - + 79 * 2
----
-157

query I rowsort
SELECT DISTINCT + 35 col1
----
35

query I rowsort
SELECT DISTINCT - ( + 91 ) AS col1
----
-91

query I rowsort
SELECT + 39 * - 48
----
-1872

onlyif mysql # aggregate syntax: 
query II rowsort label-3602
SELECT 84, - COUNT( ALL + + 43 ) AS col2
----
84
-1

skipif mysql # not compatible
query II rowsort label-3602
SELECT 84, - COUNT ( ALL + + 43 ) AS col2
----
84
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3603
SELECT + COUNT( * ) / - COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT + COUNT ( * ) / - COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 64 + - 86 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + COUNT( * ) - - 58
----
59

skipif mysql # not compatible
query I rowsort label-3605
SELECT + COUNT ( * ) - - 58
----
59

query I rowsort
SELECT DISTINCT 7 col2
----
7

query I rowsort
SELECT ALL - 27 * + 32 AS col1
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT + + 64 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3608
SELECT + + 64 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT - - ( COUNT( * ) ) * - - 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3609
SELECT - - ( COUNT ( * ) ) * - - 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL + ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL + ( - - COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT ALL - CAST( NULL AS SIGNED ) / - 35 - - + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - CAST ( NULL AS INTEGER ) / - 35 - - + 27
----
NULL

query I rowsort
SELECT - 50 + 27
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT DISTINCT + 29 AS col1, COUNT( * ) col2
----
29
1

skipif mysql # not compatible
query II rowsort label-3613
SELECT DISTINCT + 29 AS col1, COUNT ( * ) col2
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT 66 + - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3614
SELECT 66 + - COUNT ( * ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL - COUNT( * ) * + 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - COUNT ( * ) * + 13 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL + COUNT( * ) * + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL + COUNT ( * ) * + - 22
----
-22

query I rowsort
SELECT ALL 83 + + 27 AS col2
----
110

query I rowsort
SELECT 0 * + 10
----
0

query I rowsort
SELECT 6 + - 79
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT 90 DIV 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3620
SELECT 90 / 49 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT DISTINCT 90 * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT 90 * COUNT ( * )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3622
SELECT COUNT( * ) DIV + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3622
SELECT COUNT ( * ) / + 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT DISTINCT - COUNT( + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT - COUNT ( + 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT MIN( - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-3624
SELECT MIN ( - 59 )
----
-59

query I rowsort
SELECT ( - - 0 ) AS col2
----
0

query I rowsort
SELECT ALL + 90 col0
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3627
SELECT ALL COUNT( * ) DIV + ( + 36 ) * 45 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL COUNT ( * ) / + ( + 36 ) * 45 * COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3628
SELECT ALL CAST( NULL AS SIGNED ) + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL CAST ( NULL AS INTEGER ) + - 23
----
NULL

query I rowsort
SELECT + - ( 80 ) AS col0
----
-80

query I rowsort
SELECT ALL - 9 * - 41 AS col1
----
369

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT - - 79 + - COUNT( * ) * - 39
----
118

skipif mysql # not compatible
query I rowsort label-3631
SELECT - - 79 + - COUNT ( * ) * - 39
----
118

query I rowsort
SELECT DISTINCT NULLIF ( + 68, ( - 30 ) )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3633
SELECT - 68 + + COUNT( * ) AS col0, - 38 AS col0
----
-67
-38

skipif mysql # not compatible
query II rowsort label-3633
SELECT - 68 + + COUNT ( * ) AS col0, - 38 AS col0
----
-67
-38

query I rowsort
SELECT - 14 + + 90 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT - 54 * COUNT( ALL + 76 ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3635
SELECT - 54 * COUNT ( ALL + 76 ) AS col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT - + SUM( ALL - 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT - + SUM ( ALL - 70 ) AS col1
----
70

query II rowsort
SELECT - 46 * - + 16 AS col0, + 37 AS col0
----
736
37

query I rowsort
SELECT + 13 * + 80
----
1040

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT SUM( ALL - ( 80 ) ) * + 54 + - - 45
----
-4275

skipif mysql # not compatible
query I rowsort label-3639
SELECT SUM ( ALL - ( 80 ) ) * + 54 + - - 45
----
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT ALL + COUNT( * ) * - - 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + COUNT ( * ) * - - 33 AS col2
----
33

query I rowsort
SELECT 35 - 26
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL - MIN( DISTINCT + - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - MIN ( DISTINCT + - 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT CAST( NULL AS SIGNED ) + + 17 + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT CAST ( NULL AS INTEGER ) + + 17 + 75 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3645
SELECT ALL 60 DIV + ( 7 )
----
8

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL 60 / + ( 7 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT MAX( ALL + 18 ) col2
----
18

skipif mysql # not compatible
query I rowsort label-3646
SELECT MAX ( ALL + 18 ) col2
----
18

query I rowsort
SELECT DISTINCT + + 58 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + MIN( ALL - 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3648
SELECT + MIN ( ALL - 1 ) AS col2
----
-1

query I rowsort
SELECT ALL 73 * - 56
----
-4088

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT - MAX( ALL + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-3650
SELECT - MAX ( ALL + 20 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-3651
SELECT DISTINCT 42, + COUNT( * ) AS col1
----
42
1

skipif mysql # not compatible
query II rowsort label-3651
SELECT DISTINCT 42, + COUNT ( * ) AS col1
----
42
1

query I rowsort
SELECT - ( + 69 ) AS col0
----
-69

query I rowsort
SELECT DISTINCT ( + 64 ) + - 69
----
-5

query I rowsort
SELECT ALL 43 * - 71 AS col2
----
-3053

query I rowsort
SELECT 75 * - + 2
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT ALL CAST( + SUM( ALL - - 26 ) AS SIGNED ) * CAST( + 69 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL CAST ( + SUM ( ALL - - 26 ) AS INTEGER ) * CAST ( + 69 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3657
SELECT MAX( DISTINCT + + NULLIF ( 36, - ( + CAST( NULL AS SIGNED ) ) ) )
----
36

skipif mysql # not compatible
query I rowsort label-3657
SELECT MAX ( DISTINCT + + NULLIF ( 36, - ( + CAST ( NULL AS INTEGER ) ) ) )
----
36

query I rowsort
SELECT DISTINCT 77 + + 33
----
110

query I rowsort
SELECT + 62 * 34 * 94
----
198152

query I rowsort
SELECT + 83 col2
----
83

query I rowsort
SELECT - + 24 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT DISTINCT - COUNT( * ), + 40 AS col0
----
-1
40

skipif mysql # not compatible
query II rowsort label-3662
SELECT DISTINCT - COUNT ( * ), + 40 AS col0
----
-1
40

query I rowsort
SELECT ALL - 26 * 10
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT DISTINCT + SUM( DISTINCT 1 )
----
1

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT + SUM ( DISTINCT 1 )
----
1

query I rowsort
SELECT ALL 41 * + + 20 + + - 84
----
736

query I rowsort
SELECT DISTINCT - ( - + 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT - 68 * + COUNT( * ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-3667
SELECT - 68 * + COUNT ( * ) AS col1
----
-68

query I rowsort
SELECT 34 * + - 68 col2
----
-2312

query I rowsort
SELECT ALL - ( 46 ) col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT 94 DIV 45 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3670
SELECT 94 / 45 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT 0 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT 0 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 35 + - 53 * 67
----
-3516

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3673
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3673
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT DISTINCT + - 33 * + CAST( CAST( - 80 AS SIGNED ) AS SIGNED ) AS col0
----
2640

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + - 33 * + CAST ( CAST ( - 80 AS INTEGER ) AS INTEGER ) AS col0
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT DISTINCT - - ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - - ( COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3676
SELECT DISTINCT + - 91 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT + - 91 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - + 54 + + 29 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT - SUM( - 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3678
SELECT - SUM ( - 50 ) AS col2
----
50

query I rowsort
SELECT + ( + 58 ) AS col2
----
58

query I rowsort
SELECT COALESCE ( - 81, ( 57 ) )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT - 98 + - MIN( 49 )
----
-147

skipif mysql # not compatible
query I rowsort label-3681
SELECT - 98 + - MIN ( 49 )
----
-147

query I rowsort
SELECT + ( + - 96 ) + - 87
----
-183

query I rowsort
SELECT + 45 - + - 95 - 36
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT - SUM( ALL 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-3684
SELECT - SUM ( ALL 65 ) AS col2
----
-65

query I rowsort
SELECT + 72 + + 56 AS col0
----
128

query I rowsort
SELECT ( + 0 ) + - - 20 AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3687
SELECT ALL - 69 DIV + - 19
----
3

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - 69 / + - 19
----
3

query I rowsort
SELECT 19 + - 31
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL + + 27 * - COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL + + 27 * - COUNT ( * )
----
-27

query I rowsort
SELECT ALL - - 14 + 97 AS col2
----
111

query I rowsort
SELECT ALL - + ( - 87 ) AS col0
----
87

query I rowsort
SELECT DISTINCT - - 91 AS col0
----
91

query I rowsort
SELECT DISTINCT - + 71 col0
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT ALL 55 DIV - 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL 55 / - 55 AS col2
----
-1

query I rowsort
SELECT 78 * + 19
----
1482

query I rowsort
SELECT DISTINCT 96 + + - 16
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3697
SELECT DISTINCT - 27 * + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-3697
SELECT DISTINCT - 27 * + COUNT ( * )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT - + 41 + + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-3698
SELECT - + 41 + + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT MIN( DISTINCT ( - + 20 ) ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-3699
SELECT MIN ( DISTINCT ( - + 20 ) ) col1
----
-20

query I rowsort
SELECT - ( + + 96 ) * + 6 col2
----
-576

query I rowsort
SELECT ALL + 87 * - 76 AS col0
----
-6612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT ALL ( CAST( NULL AS SIGNED ) ) + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + - 84
----
NULL

query I rowsort
SELECT DISTINCT 33 col2
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT DISTINCT - 68 + + - 31 DIV + - 18 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT - 68 + + - 31 / + - 18 AS col0
----
-67

query I rowsort
SELECT + 82 * - 66
----
-5412

query I rowsort
SELECT DISTINCT 97 * - - 5
----
485

query I rowsort
SELECT DISTINCT 65 * - + 92 + 20
----
-5960

query I rowsort
SELECT - ( - 50 ) + 5
----
55

query I rowsort
SELECT ALL - 11 + - COALESCE ( + + 35, 75 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT - ( + MIN( - 75 ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3710
SELECT - ( + MIN ( - 75 ) ) AS col1
----
75

query I rowsort
SELECT ALL 32 + + 76
----
108

query I rowsort
SELECT ALL 79 + + 81
----
160

query I rowsort
SELECT ALL 96 + + 82 AS col2
----
178

onlyif mysql # DIV for integer division: 
query I rowsort label-3714
SELECT 84 DIV - - 8 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-3714
SELECT 84 / - - 8 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT 29 * - COUNT( * ) col2
----
-29

skipif mysql # not compatible
query I rowsort label-3715
SELECT 29 * - COUNT ( * ) col2
----
-29

query I rowsort
SELECT ALL 89 * + 91
----
8099

query II rowsort
SELECT DISTINCT 92 AS col0, + 36 AS col0
----
92
36

query I rowsort
SELECT DISTINCT - 40 + + + 45 col0
----
5

query I rowsort
SELECT ALL - + ( - - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT MIN( ALL + 71 ) AS col0, - 70 AS col0
----
71
-70

skipif mysql # not compatible
query II rowsort label-3720
SELECT MIN ( ALL + 71 ) AS col0, - 70 AS col0
----
71
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT + AVG ( DISTINCT ( CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT + AVG ( DISTINCT ( CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT COUNT( - - ( - + 22 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3722
SELECT COUNT ( - - ( - + 22 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + 77 * + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3723
SELECT + 77 * + COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT + MIN( DISTINCT 99 )
----
99

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT + MIN ( DISTINCT 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT - COUNT( * ) + - 23
----
-24

skipif mysql # not compatible
query I rowsort label-3725
SELECT - COUNT ( * ) + - 23
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT - - MAX( DISTINCT - + 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3726
SELECT - - MAX ( DISTINCT - + 24 ) AS col1
----
-24

query I rowsort
SELECT DISTINCT + - 31 + ( + 1 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3728
SELECT ALL + + 80 + + 20 AS col0, CAST( NULL AS SIGNED )
----
100
NULL

skipif mysql # not compatible
query II rowsort label-3728
SELECT ALL + + 80 + + 20 AS col0, CAST ( NULL AS INTEGER )
----
100
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT ALL CAST( + 86 AS SIGNED ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL CAST ( + 86 AS INTEGER ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT + NULLIF ( + COUNT( * ), - - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-3730
SELECT + NULLIF ( + COUNT ( * ), - - 17 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3731
SELECT 97 DIV - ( 13 ) + - - 99 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3731
SELECT 97 / - ( 13 ) + - - 99 AS col0
----
92

query I rowsort
SELECT + ( - 12 )
----
-12

query I rowsort
SELECT 29 * 93 AS col1
----
2697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3734
SELECT COUNT( * ) DIV - + 61 * + 34
----
0

skipif mysql # not compatible
query I rowsort label-3734
SELECT COUNT ( * ) / - + 61 * + 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3735
SELECT 38 DIV MIN( + - 65 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3735
SELECT 38 / MIN ( + - 65 ) AS col0
----
0

query I rowsort
SELECT ( - - 74 )
----
74

query I rowsort
SELECT 46 + - 38 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + COUNT( ALL - ( 22 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3738
SELECT + COUNT ( ALL - ( 22 ) ) AS col1
----
1

query I rowsort
SELECT ALL 15 col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT MAX( + ( + 38 ) ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-3740
SELECT MAX ( + ( + 38 ) ) AS col1
----
38

query I rowsort
SELECT + + 66 AS col0
----
66

query I rowsort
SELECT + ( + 29 ) AS col2
----
29

query I rowsort
SELECT + ( 17 )
----
17

query I rowsort
SELECT - - 23 * - + 68
----
-1564

query I rowsort
SELECT DISTINCT + + ( - 66 ) col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT DISTINCT MIN( DISTINCT + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT MIN ( DISTINCT + 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT - 25 * CASE + + COUNT( * ) WHEN + + 13 THEN + 99 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3747
SELECT - 25 * CASE + + COUNT ( * ) WHEN + + 13 THEN + 99 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT ( - AVG ( ALL - CASE WHEN NOT ( NULL ) IS NULL THEN + 28 ELSE NULL END ) ) / - MAX( ALL + 70 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT ( - AVG ( ALL - CASE WHEN NOT ( NULL ) IS NULL THEN + 28 ELSE NULL END ) ) / - MAX ( ALL + 70 ) AS col1
----
NULL

query I rowsort
SELECT 15 * - 78
----
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT - COUNT( * ) + - 74 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3750
SELECT - COUNT ( * ) + - 74 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT ALL + SUM( ALL + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + SUM ( ALL + 71 )
----
71

query I rowsort
SELECT ( 62 ) AS col1
----
62

query I rowsort
SELECT ALL + ( 50 )
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3754
SELECT ALL ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT DISTINCT - COUNT( * ) + + SUM( ALL + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT - COUNT ( * ) + + SUM ( ALL + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 45 AS col0, 77 AS col2
----
45
77

query I rowsort
SELECT ALL 25 * - 6
----
-150

query I rowsort
SELECT ( 63 ) * + 20
----
1260

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3759
SELECT MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT MAX ( DISTINCT + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3760
SELECT CAST( NULL AS SIGNED ) / - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT CAST ( NULL AS INTEGER ) / - 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT MAX( ALL 40 )
----
40

skipif mysql # not compatible
query I rowsort label-3761
SELECT MAX ( ALL 40 )
----
40

query I rowsort
SELECT - 91 + - - 25
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL + SUM( 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL + SUM ( 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3764
SELECT - 48, + COUNT( * ) AS col1
----
-48
1

skipif mysql # not compatible
query II rowsort label-3764
SELECT - 48, + COUNT ( * ) AS col1
----
-48
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3765
SELECT ALL COUNT( * ) DIV - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL COUNT ( * ) / - 16 AS col1
----
0

query II rowsort
SELECT - 24 AS col0, + 23
----
-24
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3767
SELECT DISTINCT CAST( - + 56 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT CAST ( - + 56 AS INTEGER ) AS col0
----
-56

query I rowsort
SELECT ALL + 65 * - 9 AS col1
----
-585

query II rowsort
SELECT ALL - + 63 * + 53 AS col2, 79 AS col2
----
-3339
79

query I rowsort
SELECT ALL 2 + - - 80
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT - 57 AS col0, - COUNT( * )
----
-57
-1

skipif mysql # not compatible
query II rowsort label-3771
SELECT - 57 AS col0, - COUNT ( * )
----
-57
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT MAX( ALL + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-3772
SELECT MAX ( ALL + 91 )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3773
SELECT DISTINCT - COUNT( * ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-3773
SELECT DISTINCT - COUNT ( * ), - COUNT ( * )
----
-1
-1

query I rowsort
SELECT 25 * - 86 AS col0
----
-2150

query I rowsort
SELECT ALL + + 15 * 42 col2
----
630

query II rowsort
SELECT ALL 25 + - ( + ( + + 45 ) ) AS col1, + 72
----
-20
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3777
SELECT DISTINCT COUNT( * ) DIV - MIN( ALL - 31 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT COUNT ( * ) / - MIN ( ALL - 31 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT ALL - COUNT( * ) * - ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL - COUNT ( * ) * - ( COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + + 54 AS col2
----
54

query I rowsort
SELECT DISTINCT + + 93 AS col2
----
93

query I rowsort
SELECT ALL + - 0 col1
----
0

query II rowsort
SELECT - ( 31 ) + + 7 AS col0, - 88
----
-24
-88

query I rowsort
SELECT + 47 * - 37
----
-1739

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT + 65 + - + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3784
SELECT + 65 + - + COUNT ( * ) AS col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3785
SELECT DISTINCT COUNT( * ) * - + 71 * - COUNT( * ) * + 3 * - - CAST( NULL AS DECIMAL ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT COUNT ( * ) * - + 71 * - COUNT ( * ) * + 3 * - - CAST ( NULL AS REAL ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3786
SELECT + CAST( NULL AS SIGNED ) - + MIN( 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT + CAST ( NULL AS INTEGER ) - + MIN ( 72 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT 11 + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-3787
SELECT 11 + + COUNT ( * )
----
12

query I rowsort
SELECT 51 + - + 58 AS col2
----
-7

query I rowsort
SELECT 26 * - + 62
----
-1612

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL + 82 + + - COUNT( * ) * + + 70 * - MAX( ALL - 11 ) AS col1
----
-688

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + 82 + + - COUNT ( * ) * + + 70 * - MAX ( ALL - 11 ) AS col1
----
-688

query I rowsort
SELECT DISTINCT 7 * - 48 AS col0
----
-336

query I rowsort
SELECT - - 28 col1
----
28

query I rowsort
SELECT 10 * - - 96 - 58
----
902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT + + 29 - + + MAX( ALL 37 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT + + 29 - + + MAX ( ALL 37 ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 78 AS col1
----
78

query II rowsort
SELECT DISTINCT + 70 AS col0, - 12
----
70
-12

query I rowsort
SELECT - ( - - 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT COUNT( * ) * + + COUNT( * ) * + - ( + 55 ) - - 40 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-3798
SELECT COUNT ( * ) * + + COUNT ( * ) * + - ( + 55 ) - - 40 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3799
SELECT - 47 DIV + 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3799
SELECT - 47 / + 99 AS col2
----
0

query I rowsort
SELECT - 29 * + - 19 AS col1
----
551

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL + COUNT( * ) * + 28 + + + 71
----
99

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL + COUNT ( * ) * + 28 + + + 71
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT MAX( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-3802
SELECT MAX ( ALL 14 )
----
14

query I rowsort
SELECT - ( 76 ) AS col2
----
-76

query I rowsort
SELECT DISTINCT - 81 col1
----
-81

query I rowsort
SELECT ALL - ( - + 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT COUNT( * ) + 14 + + + 53
----
68

skipif mysql # not compatible
query I rowsort label-3806
SELECT COUNT ( * ) + 14 + + + 53
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ALL - SUM( ALL + 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL - SUM ( ALL + 44 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT - SUM( 32 ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - SUM ( 32 ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT MIN( + 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3809
SELECT MIN ( + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT SUM( ALL - - ( + + 65 ) )
----
65

skipif mysql # not compatible
query I rowsort label-3810
SELECT SUM ( ALL - - ( + + 65 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT MAX( DISTINCT 98 )
----
98

skipif mysql # not compatible
query I rowsort label-3811
SELECT MAX ( DISTINCT 98 )
----
98

query I rowsort
SELECT ALL + + 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - 61 * - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3813
SELECT - 61 * - COUNT ( * ) AS col1
----
61

query I rowsort
SELECT - + 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT - ( + MIN( ALL 57 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3815
SELECT - ( + MIN ( ALL 57 ) ) AS col1
----
-57

query II rowsort
SELECT - 37 AS col2, + 11
----
-37
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3817
SELECT DISTINCT + CAST( - - ( - 54 ) AS SIGNED ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-3817
SELECT DISTINCT + CAST ( - - ( - 54 ) AS INTEGER ) AS col0
----
-54

query II rowsort
SELECT + 52 + + 97 AS col0, + 57
----
149
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3819
SELECT ALL CAST( NULL AS SIGNED ) + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL CAST ( NULL AS INTEGER ) + - 33 AS col2
----
NULL

query I rowsort
SELECT ALL ( + - 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL 54 * - COUNT( DISTINCT 41 )
----
-54

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL 54 * - COUNT ( DISTINCT 41 )
----
-54

query I rowsort
SELECT + + 80 col1
----
80

query II rowsort
SELECT - 49, - 49 col2
----
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT ALL CAST( NULL AS SIGNED ) - - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL CAST ( NULL AS INTEGER ) - - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT COUNT( * ) * + - 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3825
SELECT COUNT ( * ) * + - 38 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT 83 + COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3826
SELECT 83 + COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3827
SELECT ALL + + 56 + - 33 DIV - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + + 56 + - 33 / - COUNT ( * )
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3829
SELECT DISTINCT CAST( 65 AS SIGNED ) * + - 15 col0
----
-975

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT CAST ( 65 AS INTEGER ) * + - 15 col0
----
-975

query I rowsort
SELECT ALL + ( + - 85 ) AS col2
----
-85

query I rowsort
SELECT DISTINCT ( - + 29 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT ALL CAST( NULL AS SIGNED ) + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL CAST ( NULL AS INTEGER ) + 87
----
NULL

query I rowsort
SELECT + 3 + - + 8 * - 31 AS col1
----
251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3834
SELECT + - COUNT( DISTINCT - 24 ) DIV - - 57 - 67 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-3834
SELECT + - COUNT ( DISTINCT - 24 ) / - - 57 - 67 AS col1
----
-67

query I rowsort
SELECT ALL - 8 col1
----
-8

query I rowsort
SELECT + 3 * + 33 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT ALL COUNT( * ) + 28 col1
----
29

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL COUNT ( * ) + 28 col1
----
29

query I rowsort
SELECT DISTINCT 87 * - 94 col2
----
-8178

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT ALL SUM( + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-3839
SELECT ALL SUM ( + 60 )
----
60

query I rowsort
SELECT DISTINCT + ( 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT MAX( ALL - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-3841
SELECT MAX ( ALL - 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT ALL COUNT( * ) DIV - 83
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL COUNT ( * ) / - 83
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3843
SELECT DISTINCT COUNT( * ) - + + 46, 78 + + + COUNT( * ) AS col0
----
-45
79

skipif mysql # not compatible
query II rowsort label-3843
SELECT DISTINCT COUNT ( * ) - + + 46, 78 + + + COUNT ( * ) AS col0
----
-45
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT + 93 * + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3844
SELECT + 93 * + COUNT ( * ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT - - COUNT( DISTINCT + - 4 )
----
1

skipif mysql # not compatible
query I rowsort label-3845
SELECT - - COUNT ( DISTINCT + - 4 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT + 3 * + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + 3 * + COUNT ( * )
----
3

query I rowsort
SELECT ALL + 86 * 5
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT + 69 * COUNT( * ) col2
----
69

skipif mysql # not compatible
query I rowsort label-3848
SELECT + 69 * COUNT ( * ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT DISTINCT MAX( - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3849
SELECT DISTINCT MAX ( - 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - NULLIF ( + SUM( ALL + - 94 ), - + 54 )
----
94

skipif mysql # not compatible
query I rowsort label-3850
SELECT - NULLIF ( + SUM ( ALL + - 94 ), - + 54 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL - ( SUM( ALL + - 85 ) )
----
85

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - ( SUM ( ALL + - 85 ) )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3852
SELECT 70 + + CAST( + - 54 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3852
SELECT 70 + + CAST ( + - 54 AS INTEGER ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT - + SUM( 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-3853
SELECT - + SUM ( 74 ) AS col2
----
-74

query I rowsort
SELECT 14 * - + 92 col1
----
-1288

query I rowsort
SELECT ALL + 38 + + 36 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT + COUNT( * ) + + 45 col1
----
46

skipif mysql # not compatible
query I rowsort label-3856
SELECT + COUNT ( * ) + + 45 col1
----
46

query I rowsort
SELECT ( 32 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3858
SELECT + 10 * + + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT + 10 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + ( 40 ) AS col2
----
40

query I rowsort
SELECT ALL - - 97 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT ALL COUNT( * ) + 83
----
84

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL COUNT ( * ) + 83
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT 13 * + SUM( ALL 20 )
----
260

skipif mysql # not compatible
query I rowsort label-3862
SELECT 13 * + SUM ( ALL 20 )
----
260

onlyif mysql # aggregate syntax: 
query II rowsort label-3863
SELECT ALL - 59, COALESCE ( - COUNT( * ), 87 ) AS col1
----
-59
-1

skipif mysql # not compatible
query II rowsort label-3863
SELECT ALL - 59, COALESCE ( - COUNT ( * ), 87 ) AS col1
----
-59
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ( - MAX( ALL - 98 ) ) * + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3864
SELECT ( - MAX ( ALL - 98 ) ) * + COUNT ( * ) AS col2
----
98

query II rowsort
SELECT ALL 68 AS col2, 18
----
68
18

query I rowsort
SELECT + 52 + - 31
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) * 16
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) * 16
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT COUNT( 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3868
SELECT COUNT ( 19 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT DISTINCT - COUNT( * ) * - 70 col1
----
70

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - COUNT ( * ) * - 70 col1
----
70

query I rowsort
SELECT ALL 10 * - 13
----
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT + - NULLIF ( 16, - COUNT( * ) ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + - NULLIF ( 16, - COUNT ( * ) ) AS col2
----
-16

query I rowsort
SELECT DISTINCT + - 75 * 1 col2
----
-75

query I rowsort
SELECT 51 * 60 AS col1
----
3060

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT + 60 DIV 28 * - + 4
----
-8

skipif mysql # not compatible
query I rowsort label-3874
SELECT + 60 / 28 * - + 4
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT ALL - + 98 + COUNT( * ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL - + 98 + COUNT ( * ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL - 86 * - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL - 86 * - COUNT ( * )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT + 27 DIV + 12 + 9 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-3877
SELECT + 27 / + 12 + 9 AS col1
----
11

query I rowsort
SELECT DISTINCT - + 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL ( + 98 ) * - COUNT( * ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL ( + 98 ) * - COUNT ( * ) col2
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3880
SELECT CAST( NULL AS SIGNED ) / + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-3880
SELECT CAST ( NULL AS INTEGER ) / + 17
----
NULL

query I rowsort
SELECT 62 + + 71 col2
----
133

query I rowsort
SELECT DISTINCT - 63 + - 17 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT - + SUM( DISTINCT + - 94 )
----
94

skipif mysql # not compatible
query I rowsort label-3883
SELECT - + SUM ( DISTINCT + - 94 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ( - 15 ) * - SUM( - - 71 )
----
1065

skipif mysql # not compatible
query I rowsort label-3884
SELECT ( - 15 ) * - SUM ( - - 71 )
----
1065

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + MIN( + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3885
SELECT + MIN ( + 7 ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT - 51 DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3886
SELECT - 51 / 78 AS col1
----
0

query I rowsort
SELECT ALL 33 + 94 * + 92
----
8681

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + COUNT( * ) - COUNT( * ) * 94 col2
----
-93

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + COUNT ( * ) - COUNT ( * ) * 94 col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT DISTINCT - COUNT( DISTINCT - 7 ) * + 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT - COUNT ( DISTINCT - 7 ) * + 25 AS col1
----
-25

query I rowsort
SELECT - 72 + - 67
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + MIN( ALL 10 ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-3891
SELECT + MIN ( ALL 10 ) AS col1
----
10

query I rowsort
SELECT ALL + ( - 12 ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + SUM( ALL + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-3893
SELECT + SUM ( ALL + 44 )
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3894
SELECT ALL + CAST( NULL AS DECIMAL ) * 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL + CAST ( NULL AS REAL ) * 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT DISTINCT 38 * 73 + - COUNT( * )
----
2773

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT 38 * 73 + - COUNT ( * )
----
2773

query I rowsort
SELECT - + 65 AS col0
----
-65

query I rowsort
SELECT DISTINCT 13 * + + 68
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT COUNT( * ) + + + 48
----
49

skipif mysql # not compatible
query I rowsort label-3898
SELECT COUNT ( * ) + + + 48
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL COUNT( * ) + COUNT( * ) * 16
----
17

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL COUNT ( * ) + COUNT ( * ) * 16
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-3900
SELECT DISTINCT + 99 DIV + 30 col0
----
3

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + 99 / + 30 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL - 67 - + 98 * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL - 67 - + 98 * - COUNT ( * )
----
31

query I rowsort
SELECT ALL + 52 * + 92 AS col0
----
4784

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT ALL 3 * + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL 3 * + COUNT ( * )
----
3

query I rowsort
SELECT - 77 + - 9 AS col0
----
-86

query I rowsort
SELECT DISTINCT + ( - + 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-3906
SELECT + COUNT( * ) AS col2, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3906
SELECT + COUNT ( * ) AS col2, COUNT ( * ) AS col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT SUM( ALL - 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3907
SELECT SUM ( ALL - 42 ) AS col2
----
-42

query I rowsort
SELECT DISTINCT 57 * + + 26
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT + - COUNT( 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-3909
SELECT + - COUNT ( 42 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT - 17 + - - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3910
SELECT - 17 + - - COUNT ( * )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT ALL - CAST( + + 32 AS SIGNED ) + - 33
----
-65

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - CAST ( + + 32 AS INTEGER ) + - 33
----
-65

query I rowsort
SELECT DISTINCT 59 * + 29 AS col2
----
1711

query I rowsort
SELECT ALL 77 + - 11
----
66

query I rowsort
SELECT ( - 91 ) AS col1
----
-91

query I rowsort
SELECT ALL - 57 + - 65 * - 98
----
6313

onlyif mysql # aggregate syntax: 
query II rowsort label-3916
SELECT 6 AS col2, COUNT( * ) AS col2
----
6
1

skipif mysql # not compatible
query II rowsort label-3916
SELECT 6 AS col2, COUNT ( * ) AS col2
----
6
1

query I rowsort
SELECT ALL ( - + 98 )
----
-98

query I rowsort
SELECT DISTINCT + ( - 22 ) AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + COUNT( - ( - - 25 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3919
SELECT + COUNT ( - ( - - 25 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3920
SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT( - 61 + + CAST( 82 AS SIGNED ) ) AS col2
----
3393
91

skipif mysql # not compatible
query II rowsort label-3920
SELECT + 39 * 88 + - 39 AS col2, ( - 91 ) * - COUNT ( - 61 + + CAST ( 82 AS INTEGER ) ) AS col2
----
3393
91

query I rowsort
SELECT DISTINCT + + 62 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT SUM( - + ( + - ( 77 ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-3922
SELECT SUM ( - + ( + - ( 77 ) ) )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL - COUNT( * ) + + 9
----
8

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - COUNT ( * ) + + 9
----
8

query II rowsort
SELECT + - 24 AS col1, + 51 AS col2
----
-24
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT 87 * - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-3925
SELECT 87 * - COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT 77 * + COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3926
SELECT 77 * + COUNT ( * ) AS col2
----
77

query I rowsort
SELECT ALL 89 col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT ALL - - 10 + + 79 * + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - - 10 + + 79 * + + COUNT ( * )
----
89

query I rowsort
SELECT DISTINCT + ( + 25 ) AS col1
----
25

query I rowsort
SELECT - + 80 + + - 4
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3931
SELECT 46 AS col1, SUM( ALL + + ( + - 19 ) )
----
46
-19

skipif mysql # not compatible
query II rowsort label-3931
SELECT 46 AS col1, SUM ( ALL + + ( + - 19 ) )
----
46
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT - ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3932
SELECT - ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL - 31 * 55 * 99
----
-168795

query I rowsort
SELECT NULLIF ( - 67, - 94 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT DISTINCT ( - + COUNT( * ) ) AS col0, 25
----
-1
25

skipif mysql # not compatible
query II rowsort label-3935
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0, 25
----
-1
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT ALL MAX( - + 14 ) + + + 63 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL MAX ( - + 14 ) + + + 63 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3937
SELECT DISTINCT 6 DIV COUNT( * ) * 13 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT 6 / COUNT ( * ) * 13 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL COUNT( + 20 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL COUNT ( + 20 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - ( + - 60 )
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3940
SELECT ALL + CAST( NULL AS DECIMAL ) + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + CAST ( NULL AS REAL ) + + 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3941
SELECT DISTINCT 17 col2, CAST( NULL AS SIGNED )
----
17
NULL

skipif mysql # not compatible
query II rowsort label-3941
SELECT DISTINCT 17 col2, CAST ( NULL AS INTEGER )
----
17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT - CAST( + + 55 AS SIGNED ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3942
SELECT - CAST ( + + 55 AS INTEGER ) AS col0
----
-55

query I rowsort
SELECT - 37 + 41
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT SUM( + - 37 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3944
SELECT SUM ( + - 37 ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3945
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3946
SELECT ALL - CAST( - MAX( DISTINCT + 76 ) AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL - CAST ( - MAX ( DISTINCT + 76 ) AS INTEGER )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT + MIN( ALL - 3 ) col0
----
-3

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT + MIN ( ALL - 3 ) col0
----
-3

query I rowsort
SELECT - + 81 * + 80 col2
----
-6480

query I rowsort
SELECT + 24 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT + 83 + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3950
SELECT + 83 + - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT DISTINCT COUNT( * ) + + 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT COUNT ( * ) + + 4 AS col2
----
5

query I rowsort
SELECT - - ( + - 1 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT - ( + 19 ), - MIN( DISTINCT + 4 ) col0
----
-19
-4

skipif mysql # not compatible
query II rowsort label-3953
SELECT - ( + 19 ), - MIN ( DISTINCT + 4 ) col0
----
-19
-4

query I rowsort
SELECT ALL - ( - + 51 )
----
51

query I rowsort
SELECT - ( + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT - COUNT( * ) + - SUM( 91 )
----
-92

skipif mysql # not compatible
query I rowsort label-3956
SELECT - COUNT ( * ) + - SUM ( 91 )
----
-92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3957
SELECT DISTINCT + 98 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT + 98 * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT ALL 77 - + + 66 col2, + ( + 60 )
----
11
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT MAX( + - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3959
SELECT MAX ( + - 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3960
SELECT CAST( NULL AS SIGNED ) * + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT CAST ( NULL AS INTEGER ) * + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT MIN( 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-3961
SELECT MIN ( 83 ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT SUM( DISTINCT + + 49 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT SUM ( DISTINCT + + 49 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT + COUNT( * ) + + 31 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3963
SELECT + COUNT ( * ) + + 31 AS col1
----
32

query II rowsort
SELECT + + 36 AS col0, + 90 * - 54
----
36
-4860

query II rowsort
SELECT - 10 AS col2, - 84
----
-10
-84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3966
SELECT - MAX( - - 66 ) + + CAST( NULL AS DECIMAL ) + + + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3966
SELECT - MAX ( - - 66 ) + + CAST ( NULL AS REAL ) + + + 75 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3967
SELECT + 69 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT + 69 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 29 * 66
----
-1914

query II rowsort
SELECT ALL - + 60, - 59 AS col1
----
-60
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT - + ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3970
SELECT - + ( - COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT CAST( NULL AS SIGNED ) / + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT CAST ( NULL AS INTEGER ) / + + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT COUNT( * ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-3972
SELECT COUNT ( * ) + + 55
----
56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3973
SELECT ALL - + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - + 33 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT + MIN( + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-3975
SELECT + MIN ( + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT ALL - COUNT( * ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL - COUNT ( * ) + - COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL - COUNT( * ) * + 27
----
-27

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - COUNT ( * ) * + 27
----
-27

query I rowsort
SELECT DISTINCT + - 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT SUM( - + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-3979
SELECT SUM ( - + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + 29 * - COUNT( * ) * + 54
----
-1566

skipif mysql # not compatible
query I rowsort label-3980
SELECT + 29 * - COUNT ( * ) * + 54
----
-1566

query I rowsort
SELECT DISTINCT ( - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT ALL 81 * + - COUNT( * ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL 81 * + - COUNT ( * ) col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL MIN( DISTINCT + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL MIN ( DISTINCT + 13 )
----
13

query I rowsort
SELECT - ( - + 94 ) AS col0
----
94

query I rowsort
SELECT ( - 66 )
----
-66

query I rowsort
SELECT - 51 * + - 93 AS col2
----
4743

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL MIN( DISTINCT - 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL MIN ( DISTINCT - 92 ) AS col2
----
-92

query I rowsort
SELECT 66 * + 15 AS col0
----
990

query I rowsort
SELECT + - 15 AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT COUNT( * ) * + + 88
----
88

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT COUNT ( * ) * + + 88
----
88

query I rowsort
SELECT ALL - 35 - + - 74 AS col0
----
39

query II rowsort
SELECT - 46 AS col1, - 48 AS col2
----
-46
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3993
SELECT DISTINCT - COUNT( * ) AS col0, - ( 87 )
----
-1
-87

skipif mysql # not compatible
query II rowsort label-3993
SELECT DISTINCT - COUNT ( * ) AS col0, - ( 87 )
----
-1
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT ALL 22 DIV - 17
----
-1

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL 22 / - 17
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT DISTINCT 80 + + + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT 80 + + + COUNT ( * )
----
81

query I rowsort
SELECT DISTINCT 15 col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3998
SELECT ALL + 3 AS col2, - COUNT( * ) - + MAX( ALL + + 38 ) + + 3 DIV - + 81
----
3
-39

skipif mysql # not compatible
query II rowsort label-3998
SELECT ALL + 3 AS col2, - COUNT ( * ) - + MAX ( ALL + + 38 ) + + 3 / - + 81
----
3
-39

query I rowsort
SELECT + ( - 90 ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4000
SELECT MAX( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT MAX ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT ALL - MAX( ALL + - 10 )
----
10

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - MAX ( ALL + - 10 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4002
SELECT - 23 DIV COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-4002
SELECT - 23 / COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT - SUM( DISTINCT 29 ) + + COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-4003
SELECT - SUM ( DISTINCT 29 ) + + COUNT ( * ) AS col2
----
-28

query I rowsort
SELECT ALL - + 54 col1
----
-54

query I rowsort
SELECT ALL 63 + + 1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + COUNT( - 76 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4006
SELECT + COUNT ( - 76 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT - MAX( + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT - MAX ( + 9 )
----
-9

query I rowsort
SELECT ALL - - 34 - + 38
----
-4

query I rowsort
SELECT + ( 36 ) * + + 14 - + 36
----
468

query I rowsort
SELECT ( + 59 )
----
59

query II rowsort
SELECT ALL - 39 AS col1, + 23
----
-39
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - - MIN( - - 86 )
----
86

skipif mysql # not compatible
query I rowsort label-4012
SELECT - - MIN ( - - 86 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT - COUNT( * ) DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT - COUNT ( * ) / + 96
----
0

query I rowsort
SELECT ALL 23 + + - 40 + 8 * - 17 AS col0
----
-153

query I rowsort
SELECT - 18 col2
----
-18

query I rowsort
SELECT ALL 52 * - - 46
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT + COUNT( + + 42 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4017
SELECT + COUNT ( + + 42 ) col2
----
1

query I rowsort
SELECT ALL + - 11 * + + 43
----
-473

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT + - COUNT( * ) + - - 47 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4019
SELECT + - COUNT ( * ) + - - 47 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT - 82 + + 33 * + + MAX( + + 98 )
----
3152

skipif mysql # not compatible
query I rowsort label-4020
SELECT - 82 + + 33 * + + MAX ( + + 98 )
----
3152

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL - 31 - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - 31 - COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL COALESCE ( COUNT( * ), COUNT( * ) ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL COALESCE ( COUNT ( * ), COUNT ( * ) ) * - 72
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT + 9 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT + 9 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 35 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + 5 + - - ( - COUNT( DISTINCT - 94 ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4025
SELECT + 5 + - - ( - COUNT ( DISTINCT - 94 ) ) AS col2
----
4

query I rowsort
SELECT ALL 51 + + 33
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4027
SELECT 72 AS col1, MAX( DISTINCT + 98 ) + + CAST( - 97 AS SIGNED )
----
72
1

skipif mysql # not compatible
query II rowsort label-4027
SELECT 72 AS col1, MAX ( DISTINCT + 98 ) + + CAST ( - 97 AS INTEGER )
----
72
1

query II rowsort
SELECT ALL + 47 AS col0, - 1
----
47
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4029
SELECT ALL CAST( NULL AS SIGNED ) * + + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL CAST ( NULL AS INTEGER ) * + + 61 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL + COUNT( * ) * 83
----
83

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + COUNT ( * ) * 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT + 70 + + + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT + 70 + + + COUNT ( * ) AS col0
----
71

query I rowsort
SELECT DISTINCT - 64 col0
----
-64

query I rowsort
SELECT ALL + ( 46 ) col2
----
46

query I rowsort
SELECT - 93 - + - 0 + - 26
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT COUNT( ALL + - 6 )
----
1

skipif mysql # not compatible
query I rowsort label-4035
SELECT COUNT ( ALL + - 6 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT SUM( - 17 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4036
SELECT SUM ( - 17 ) AS col2
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT DISTINCT 63 DIV + 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT 63 / + 95 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4038
SELECT + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4038
SELECT + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4039
SELECT DISTINCT - 54 DIV COUNT( * ) * - - 25, COUNT( * ) AS col0
----
-1350
1

skipif mysql # not compatible
query II rowsort label-4039
SELECT DISTINCT - 54 / COUNT ( * ) * - - 25, COUNT ( * ) AS col0
----
-1350
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4040
SELECT DISTINCT - - MIN( ALL + 82 ) * - 10, CAST( NULL AS SIGNED ) * 35 * 82 + - + 91 AS col1
----
-820
NULL

skipif mysql # not compatible
query II rowsort label-4040
SELECT DISTINCT - - MIN ( ALL + 82 ) * - 10, CAST ( NULL AS INTEGER ) * 35 * 82 + - + 91 AS col1
----
-820
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT + 51 * + 9 + COUNT( * )
----
460

skipif mysql # not compatible
query I rowsort label-4041
SELECT + 51 * + 9 + COUNT ( * )
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT DISTINCT - COUNT( * ) * 65
----
-65

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT - COUNT ( * ) * 65
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT DISTINCT + ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT - 63 DIV - + 53 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4044
SELECT - 63 / - + 53 AS col1
----
1

query I rowsort
SELECT ALL + 41 + + 23
----
64

query I rowsort
SELECT ( + 42 )
----
42

query II rowsort
SELECT - 4, 23 AS col0
----
-4
23

query I rowsort
SELECT DISTINCT + 97 * 46 AS col1
----
4462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4049
SELECT ALL - 27, - COALESCE ( + CAST( NULL AS SIGNED ), - COALESCE ( 11, 0 + + ( 83 ) * - 74 ) ) AS col1
----
-27
11

skipif mysql # not compatible
query II rowsort label-4049
SELECT ALL - 27, - COALESCE ( + CAST ( NULL AS INTEGER ), - COALESCE ( 11, 0 + + ( 83 ) * - 74 ) ) AS col1
----
-27
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT + 88 * - + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT + 88 * - + COUNT ( * )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4051
SELECT 12 AS col2, - COUNT( * ) + 94 AS col1
----
12
93

skipif mysql # not compatible
query II rowsort label-4051
SELECT 12 AS col2, - COUNT ( * ) + 94 AS col1
----
12
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4052
SELECT 30 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4052
SELECT 30 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( + + 27 ) * - 21 AS col0
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT + 56 + COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4054
SELECT + 56 + COUNT ( * )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4055
SELECT ALL - 37 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT ALL - 37 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4056
SELECT - + CAST( NULL AS SIGNED ) * 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT - + CAST ( NULL AS INTEGER ) * 55 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - - COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4057
SELECT - - COUNT ( * ) * - COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT ( + 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL COUNT( * ) * + 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL COUNT ( * ) * + 36 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4060
SELECT ALL - 27 / CAST( NULL AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - 27 / CAST ( NULL AS INTEGER ) - + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4061
SELECT ALL + + COUNT( * ) DIV - 45 - + 64
----
-64

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + + COUNT ( * ) / - 45 - + 64
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + + MAX( + 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-4062
SELECT + + MAX ( + 84 ) AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT ALL - - 65 * + 18 + 33 + + ( + COUNT( * ) ) AS col1
----
1204

skipif mysql # not compatible
query I rowsort label-4063
SELECT ALL - - 65 * + 18 + 33 + + ( + COUNT ( * ) ) AS col1
----
1204

query II rowsort
SELECT ALL 85 AS col1, + 49
----
85
49

query I rowsort
SELECT ALL - 84 + 35 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - 41 * + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-4066
SELECT - 41 * + + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4067
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL - - 1 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT ALL + + CAST( NULL AS SIGNED ) * + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + + CAST ( NULL AS INTEGER ) * + - 72
----
NULL

query I rowsort
SELECT ( - + 26 ) AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4071
SELECT + CAST( NULL AS SIGNED ) * AVG ( ALL + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + CAST ( NULL AS INTEGER ) * AVG ( ALL + 72 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4072
SELECT - - 7 * - + COUNT( DISTINCT + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4072
SELECT - - 7 * - + COUNT ( DISTINCT + CAST ( NULL AS REAL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + + 53 + + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4073
SELECT + + 53 + + COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT + + COUNT( ALL - 85 )
----
1

skipif mysql # not compatible
query I rowsort label-4074
SELECT + + COUNT ( ALL - 85 )
----
1

query I rowsort
SELECT ( + - 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT DISTINCT + COALESCE ( 0, + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + COALESCE ( 0, + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + ( - 79 )
----
-79

query I rowsort
SELECT DISTINCT 35 col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL - CAST( - 84 AS SIGNED ) + 52 AS col0
----
136

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL - CAST ( - 84 AS INTEGER ) + 52 AS col0
----
136

query I rowsort
SELECT DISTINCT 11 + + 64 AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4081
SELECT ( COUNT( * ) ), - 1 AS col2
----
1
-1

skipif mysql # not compatible
query II rowsort label-4081
SELECT ( COUNT ( * ) ), - 1 AS col2
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ALL - 39 - + - SUM( - 67 )
----
-106

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - 39 - + - SUM ( - 67 )
----
-106

query I rowsort
SELECT COALESCE ( - - 84, - - 89 )
----
84

query I rowsort
SELECT ALL - + ( + - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL 69 * - MAX( ALL - 90 )
----
6210

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL 69 * - MAX ( ALL - 90 )
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT ALL - MIN( DISTINCT 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - MIN ( DISTINCT 54 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT COUNT( + + ( 61 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4087
SELECT COUNT ( + + ( 61 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT ALL - + 27 + ( COUNT( * ) ) * - - 39 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL - + 27 + ( COUNT ( * ) ) * - - 39 AS col1
----
12

query I rowsort
SELECT + ( - 87 )
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4090
SELECT - CAST( + COUNT( * ) AS SIGNED ) * - - ( 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-4090
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * - - ( 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT - MIN( 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-4091
SELECT - MIN ( 47 )
----
-47

query I rowsort
SELECT ALL COALESCE ( - + 96, + 43 ) * 4
----
-384

query I rowsort
SELECT ( + - 21 ) col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT + 55 DIV COUNT( ALL - 69 )
----
55

skipif mysql # not compatible
query I rowsort label-4094
SELECT + 55 / COUNT ( ALL - 69 )
----
55

query I rowsort
SELECT DISTINCT ( + 63 )
----
63

query I rowsort
SELECT ALL 75 * + - COALESCE ( - - 95, + 61 ) - 75 AS col0
----
-7200

query I rowsort
SELECT ALL + 8 * + + 71 col1
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL + 2 + - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + 2 + - - COUNT ( * )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT + COALESCE ( + - 0, + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT + COALESCE ( + - 0, + COUNT ( * ) )
----
0

query I rowsort
SELECT 3 * + + 48 + + 58 AS col0
----
202

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT DISTINCT + - COUNT( * ) * ( 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4101
SELECT DISTINCT + - COUNT ( * ) * ( 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT DISTINCT + COALESCE ( COUNT( * ), - + ( - 78 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4102
SELECT DISTINCT + COALESCE ( COUNT ( * ), - + ( - 78 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4103
SELECT - 51, COUNT( * ) AS col1
----
-51
1

skipif mysql # not compatible
query II rowsort label-4103
SELECT - 51, COUNT ( * ) AS col1
----
-51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT COUNT( * ) * - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) col2
----
-1

query I rowsort
SELECT DISTINCT 45 + 91
----
136

query I rowsort
SELECT ALL - - 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT 56 * COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4107
SELECT 56 * COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT DISTINCT MAX( ALL + 77 ) + 38 col0, - COUNT( * ) * 5 * + 7 AS col0
----
115
-35

skipif mysql # not compatible
query II rowsort label-4108
SELECT DISTINCT MAX ( ALL + 77 ) + 38 col0, - COUNT ( * ) * 5 * + 7 AS col0
----
115
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT ALL 50 * MIN( - 41 )
----
-2050

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL 50 * MIN ( - 41 )
----
-2050

query I rowsort
SELECT ALL + 79 col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4111
SELECT - 78 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4111
SELECT - 78 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL + ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL + ( - + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT ALL - - 21 + - 21
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT ALL ( ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL ( ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT ALL CAST( + 23 AS SIGNED ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL CAST ( + 23 AS INTEGER ) AS col0
----
23

query I rowsort
SELECT + 49 + + 9
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT ALL + CAST( + 76 AS SIGNED )
----
76

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + CAST ( + 76 AS INTEGER )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT ALL COUNT( * ) * + 64
----
64

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL COUNT ( * ) * + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL ( - COUNT( * ) ) * ( - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL ( - COUNT ( * ) ) * ( - 78 )
----
78

query I rowsort
SELECT 34 - - 34 col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT DISTINCT - + CAST( 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT - + CAST ( 25 AS INTEGER )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT ALL - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT + MAX( - 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4123
SELECT + MAX ( - 82 ) AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4124
SELECT + 44 DIV CAST( 1 AS SIGNED ) * 17 AS col1
----
748

skipif mysql # not compatible
query I rowsort label-4124
SELECT + 44 / CAST ( 1 AS INTEGER ) * 17 AS col1
----
748

query I rowsort
SELECT - 63 + + 55 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL SUM( ALL - 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL SUM ( ALL - 44 ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT COUNT( ALL 37 )
----
1

skipif mysql # not compatible
query I rowsort label-4127
SELECT COUNT ( ALL 37 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT - 50 - CAST( - 18 AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-4128
SELECT - 50 - CAST ( - 18 AS INTEGER ) AS col1
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-4129
SELECT ALL + COUNT( * ) AS col0, 59
----
1
59

skipif mysql # not compatible
query II rowsort label-4129
SELECT ALL + COUNT ( * ) AS col0, 59
----
1
59

query II rowsort
SELECT ALL - 98, 96 AS col1
----
-98
96

query I rowsort
SELECT + 16 * - 89 AS col0
----
-1424

query I rowsort
SELECT ALL - ( + 20 ) AS col1
----
-20

query I rowsort
SELECT ( - 26 ) + - 31 AS col0
----
-57

query I rowsort
SELECT DISTINCT - ( + - 64 ) AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-4135
SELECT ALL + 83 DIV 1
----
83

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL + 83 / 1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT - CAST( NULL AS SIGNED ) + + 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT - CAST ( NULL AS INTEGER ) + + 50 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4137
SELECT CAST( NULL AS DECIMAL ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4137
SELECT CAST ( NULL AS REAL ) + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4138
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT + MIN( + + 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4139
SELECT + MIN ( + + 69 ) AS col2
----
69

query I rowsort
SELECT DISTINCT - + 94 AS col2
----
-94

query I rowsort
SELECT DISTINCT + 61 - + 95
----
-34

query I rowsort
SELECT DISTINCT + 70 * - 88
----
-6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT - + CAST( + 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4143
SELECT - + CAST ( + 87 AS INTEGER ) AS col2
----
-87

query I rowsort
SELECT - - 73 - - 7 col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT - - COUNT( * ) + - - 40
----
41

skipif mysql # not compatible
query I rowsort label-4145
SELECT - - COUNT ( * ) + - - 40
----
41

query I rowsort
SELECT ALL 42 + + + 46
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT + MIN( ALL + + ( 15 ) )
----
15

skipif mysql # not compatible
query I rowsort label-4148
SELECT + MIN ( ALL + + ( 15 ) )
----
15

query I rowsort
SELECT + 61 + + 95
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT + - 77 DIV - ( - COUNT( * ) ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4150
SELECT + - 77 / - ( - COUNT ( * ) ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4151
SELECT - COUNT( * ), 24 AS col0
----
-1
24

skipif mysql # not compatible
query II rowsort label-4151
SELECT - COUNT ( * ), 24 AS col0
----
-1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT ALL COUNT( * ) + - MIN( ALL - + 84 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL COUNT ( * ) + - MIN ( ALL - + 84 ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL + 79 + + COUNT( * ) + - 24
----
56

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + 79 + + COUNT ( * ) + - 24
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT 88 - + 99 + - 99 + + COUNT( * )
----
-109

skipif mysql # not compatible
query I rowsort label-4154
SELECT 88 - + 99 + - 99 + + COUNT ( * )
----
-109

query I rowsort
SELECT ALL - 99 + 72
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT + CAST( NULL AS SIGNED ) * - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4156
SELECT + CAST ( NULL AS INTEGER ) * - + 74
----
NULL

query I rowsort
SELECT ALL + 12 * + 86 col1
----
1032

query I rowsort
SELECT ALL 43 + + 24 AS col0
----
67

query I rowsort
SELECT DISTINCT ( - 80 ) + + - 0
----
-80

query I rowsort
SELECT ( + 83 ) col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4161
SELECT - + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT - + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL + + COUNT( * ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + + COUNT ( * ) * - 28
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4163
SELECT ALL - 53 DIV + 47 col1
----
-1

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - 53 / + 47 col1
----
-1

query I rowsort
SELECT - 75 * - 47 AS col1
----
3525

onlyif mysql # aggregate syntax: 
query II rowsort label-4165
SELECT + COUNT( * ) col2, + COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4165
SELECT + COUNT ( * ) col2, + COUNT ( * ) AS col0
----
1
1

query I rowsort
SELECT ALL - ( - 56 ) col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4167
SELECT 85 - COUNT( * ) * - + CAST( + COUNT( * ) AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-4167
SELECT 85 - COUNT ( * ) * - + CAST ( + COUNT ( * ) AS INTEGER )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT ALL NULLIF ( COUNT( * ), 30 )
----
1

skipif mysql # not compatible
query I rowsort label-4168
SELECT ALL NULLIF ( COUNT ( * ), 30 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4169
SELECT ALL - 46 col0, + COUNT( * ) AS col1
----
-46
1

skipif mysql # not compatible
query II rowsort label-4169
SELECT ALL - 46 col0, + COUNT ( * ) AS col1
----
-46
1

query I rowsort
SELECT DISTINCT 57 * + + 70 + + 21 AS col2
----
4011

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT MIN( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-4171
SELECT MIN ( DISTINCT - 66 )
----
-66

query I rowsort
SELECT ALL 81 col0
----
81

query I rowsort
SELECT - 31 * - 82 AS col1
----
2542

query II rowsort
SELECT 61 col0, + 89 + + 28 AS col2
----
61
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT + COUNT( DISTINCT 52 )
----
1

skipif mysql # not compatible
query I rowsort label-4175
SELECT + COUNT ( DISTINCT 52 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4176
SELECT MAX( ALL + - 77 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4176
SELECT MAX ( ALL + - 77 ) AS col2
----
-77

query I rowsort
SELECT + 53 - + - 33 * 81
----
2726

query I rowsort
SELECT - + 9 AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 56 * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 56 * + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT - MIN( ALL - 98 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT - MIN ( ALL - 98 ) AS col0
----
98

query I rowsort
SELECT ALL 91 - - 43 AS col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL - ( 15 ) - COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL - ( 15 ) - COUNT ( * )
----
-16

query I rowsort
SELECT ALL + 36 * 1 AS col1
----
36

query I rowsort
SELECT ALL - ( + 47 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT 77 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT 77 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( - 25 )
----
25

query I rowsort
SELECT ( + - 44 ) * 51
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT + MIN( + 18 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4188
SELECT + MIN ( + 18 ) AS col2
----
18

query I rowsort
SELECT DISTINCT + - 80 + + 13 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT + COUNT( * ) * + NULLIF ( - COUNT( * ), 82 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4190
SELECT + COUNT ( * ) * + NULLIF ( - COUNT ( * ), 82 ) col0
----
-1

query I rowsort
SELECT DISTINCT NULLIF ( + + 84, 95 ) AS col2
----
84

query I rowsort
SELECT + - 11 * 1
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL + COUNT( CAST( - 15 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL + COUNT ( CAST ( - 15 AS INTEGER ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - - 29 + + ( - COUNT( * ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-4194
SELECT - - 29 + + ( - COUNT ( * ) ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL ( + - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL ( + - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT - COUNT( * ) DIV - - 13
----
0

skipif mysql # not compatible
query I rowsort label-4196
SELECT - COUNT ( * ) / - - 13
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4197
SELECT - COUNT( * ) DIV - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4197
SELECT - COUNT ( * ) / - + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT - + 70
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT CAST( NULL AS SIGNED ) / + - ( + + 75 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT CAST ( NULL AS INTEGER ) / + - ( + + 75 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4200
SELECT DISTINCT - + CAST( MAX( ALL 70 ) AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4200
SELECT DISTINCT - + CAST ( MAX ( ALL 70 ) AS INTEGER ) AS col2
----
-70

query I rowsort
SELECT + + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT ALL COUNT( * ) + - 16
----
-15

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL COUNT ( * ) + - 16
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL COUNT( * ) + - 22 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL COUNT ( * ) + - 22 AS col0
----
-21

query I rowsort
SELECT ( + 50 ) + 25
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - + 66 * - COUNT( * ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-4205
SELECT - + 66 * - COUNT ( * ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT - 56 + COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-4206
SELECT - 56 + COUNT ( * ) AS col1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4207
SELECT 71 AS col0, + CAST( NULL AS SIGNED )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-4207
SELECT 71 AS col0, + CAST ( NULL AS INTEGER )
----
71
NULL

query I rowsort
SELECT - ( + 91 )
----
-91

query I rowsort
SELECT + 84 + - - 25 * + + 24 AS col2
----
684

query II rowsort
SELECT ALL + 71 AS col2, + ( + 38 ) AS col2
----
71
38

query II rowsort
SELECT + - 30, - 38 AS col2
----
-30
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT - - 26 * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT - - 26 * COUNT ( * )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4213
SELECT DISTINCT - - SUM( DISTINCT + - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT - - SUM ( DISTINCT + - 50 )
----
-50

query II rowsort
SELECT DISTINCT 73 AS col0, - 60
----
73
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4215
SELECT - COUNT( * ) / - COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT - COUNT ( * ) / - COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4216
SELECT ALL - 22 / + CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL - 22 / + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 37 col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT COUNT( * ) + 1 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT COUNT ( * ) + 1 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL - COUNT( 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - COUNT ( 72 ) AS col2
----
-1

query I rowsort
SELECT 95 col1
----
95

query I rowsort
SELECT DISTINCT + - 51
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-4222
SELECT DISTINCT + COUNT( * ) AS col1, + 77
----
1
77

skipif mysql # not compatible
query II rowsort label-4222
SELECT DISTINCT + COUNT ( * ) AS col1, + 77
----
1
77

query II rowsort
SELECT + 44 col1, - 11 col2
----
44
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT DISTINCT + MAX( 39 ) col0
----
39

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT + MAX ( 39 ) col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT SUM( + - 15 ) col1
----
-15

skipif mysql # not compatible
query I rowsort label-4225
SELECT SUM ( + - 15 ) col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL COUNT( + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL COUNT ( + 17 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 7 + + - 35 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL - COUNT( * ) + - ( + COUNT( * ) ) * - - 2 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - COUNT ( * ) + - ( + COUNT ( * ) ) * - - 2 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4229
SELECT ALL 46, ( + COUNT( * ) ) AS col0
----
46
1

skipif mysql # not compatible
query II rowsort label-4229
SELECT ALL 46, ( + COUNT ( * ) ) AS col0
----
46
1

query I rowsort
SELECT DISTINCT + 76 * + - 46 * + 64
----
-223744

query I rowsort
SELECT ALL - ( - - 93 )
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT + CAST( + + AVG ( 36 ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-4232
SELECT + CAST ( + + AVG ( 36 ) AS INTEGER )
----
36

query I rowsort
SELECT DISTINCT - - ( - 31 ) * + 69 AS col2
----
-2139

query I rowsort
SELECT ALL COALESCE ( - + 55, + 50, 43 ) AS col1
----
-55

query I rowsort
SELECT + ( - 27 )
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT + 20 + - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + 20 + - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT DISTINCT ( - + MAX( + + 57 ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4237
SELECT DISTINCT ( - + MAX ( + + 57 ) ) AS col1
----
-57

query I rowsort
SELECT + - 20 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT DISTINCT + + MAX( ALL + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4239
SELECT DISTINCT + + MAX ( ALL + 52 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT DISTINCT - 95 / - + CAST( NULL AS SIGNED ) * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT - 95 / - + CAST ( NULL AS INTEGER ) * + 66
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4241
SELECT ( + - 31 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4241
SELECT ( + - 31 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4242
SELECT ALL 21 + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL 21 + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT ALL 85 * COUNT( * ) * SUM( 73 ) AS col0
----
6205

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL 85 * COUNT ( * ) * SUM ( 73 ) AS col0
----
6205

query II rowsort
SELECT 21 col1, + 40
----
21
40

query I rowsort
SELECT ALL + - 47 + 44 + 47 * 70 * - 8 AS col0
----
-26323

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT + - COUNT( * ) DIV - - COUNT( * ) + + 84 + - 68
----
15

skipif mysql # not compatible
query I rowsort label-4246
SELECT + - COUNT ( * ) / - - COUNT ( * ) + + 84 + - 68
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4247
SELECT 85 DIV - COALESCE ( + + COUNT( * ), + + ( - - 12 ) )
----
-85

skipif mysql # not compatible
query I rowsort label-4247
SELECT 85 / - COALESCE ( + + COUNT ( * ), + + ( - - 12 ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ( - 18 ) - + 32 * COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-4248
SELECT ( - 18 ) - + 32 * COUNT ( * )
----
-50

query I rowsort
SELECT ALL + - 39 AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL NULLIF ( + + COUNT( + 40 ), - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL NULLIF ( + + COUNT ( + 40 ), - COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4252
SELECT DISTINCT + + ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + + ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4253
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4253
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

query II rowsort
SELECT - 99, - 5 AS col0
----
-99
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT - MAX( ALL - 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4255
SELECT - MAX ( ALL - 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL + SUM( - + 47 ) col2
----
-47

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + SUM ( - + 47 ) col2
----
-47

query I rowsort
SELECT 81 * + 6
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT 55 - ( - COUNT( * ) ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-4258
SELECT 55 - ( - COUNT ( * ) ) AS col1
----
56

query I rowsort
SELECT 26 + - + 48 AS col0
----
-22

query I rowsort
SELECT ALL - - 18
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4261
SELECT COUNT( * ) AS col1, 90 DIV - 67 AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-4261
SELECT COUNT ( * ) AS col1, 90 / - 67 AS col0
----
1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT 94 DIV + ( + SUM( - 38 ) ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4262
SELECT 94 / + ( + SUM ( - 38 ) ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT MIN( + + 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-4263
SELECT MIN ( + + 37 ) AS col1
----
37

query I rowsort
SELECT ALL 73 + + 65
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT CAST( NULL AS SIGNED ) * 17 / - 65 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT CAST ( NULL AS INTEGER ) * 17 / - 65 col1
----
NULL

query I rowsort
SELECT - 83 * + 49 AS col1
----
-4067

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4267
SELECT + - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT + - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT - 9 * - - MAX( - - ( - - 37 ) )
----
-333

skipif mysql # not compatible
query I rowsort label-4268
SELECT - 9 * - - MAX ( - - ( - - 37 ) )
----
-333

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + MAX( - + 35 ) col0
----
-35

skipif mysql # not compatible
query I rowsort label-4269
SELECT + MAX ( - + 35 ) col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4270
SELECT ALL - 27 * + ( - - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL - 27 * + ( - - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT + 96 * + 15
----
1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4272
SELECT + COUNT( * ) DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-4272
SELECT + COUNT ( * ) / - 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT + COUNT( * ) + + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-4273
SELECT + COUNT ( * ) + + - 62
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4274
SELECT DISTINCT 35 + + CAST( NULL AS DECIMAL ) * - ( - 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT 35 + + CAST ( NULL AS REAL ) * - ( - 38 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL + ( - 53 ) + - + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL + ( - 53 ) + - + COUNT ( * )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4276
SELECT - 68 * CAST( - COUNT( * ) AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-4276
SELECT - 68 * CAST ( - COUNT ( * ) AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT ALL + + ( 57 ) + COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + + ( 57 ) + COUNT ( * ) AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT CAST( NULL AS SIGNED ) + - - 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT CAST ( NULL AS INTEGER ) + - - 14 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT 44 + + COUNT( ALL 65 ) col0
----
45

skipif mysql # not compatible
query I rowsort label-4279
SELECT 44 + + COUNT ( ALL 65 ) col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT + CAST( NULL AS SIGNED ) * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT + CAST ( NULL AS INTEGER ) * - 54
----
NULL

query I rowsort
SELECT - + CASE + 78 WHEN - 45 THEN NULL WHEN - - 21 THEN + 59 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL + 69 * 13 - COUNT( * ) AS col2
----
896

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + 69 * 13 - COUNT ( * ) AS col2
----
896

query I rowsort
SELECT ALL ( + 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT - MIN( ALL + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4284
SELECT - MIN ( ALL + 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4285
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT + MIN( DISTINCT + 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4286
SELECT + MIN ( DISTINCT + 47 ) AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4287
SELECT CAST( - + 50 AS SIGNED ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-4287
SELECT CAST ( - + 50 AS INTEGER ) AS col1
----
-50

query I rowsort
SELECT ( - 4 ) AS col0
----
-4

query I rowsort
SELECT 29 * - 65
----
-1885

query II rowsort
SELECT ALL 26 + 43 AS col2, + 87
----
69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT ALL - 43 + + 94 + + COUNT( * ) * + ( - + 23 )
----
28

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL - 43 + + 94 + + COUNT ( * ) * + ( - + 23 )
----
28

query I rowsort
SELECT 89 + - 55
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL ( - COUNT( * ) ) - MIN( DISTINCT - 52 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL ( - COUNT ( * ) ) - MIN ( DISTINCT - 52 ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT + + NULLIF ( COUNT( * ), + 39 )
----
1

skipif mysql # not compatible
query I rowsort label-4294
SELECT + + NULLIF ( COUNT ( * ), + 39 )
----
1

query I rowsort
SELECT ALL 6 * + 64 col2
----
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4296
SELECT + - SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT + - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT COUNT( * ) * 17
----
17

skipif mysql # not compatible
query I rowsort label-4297
SELECT COUNT ( * ) * 17
----
17

query I rowsort
SELECT ALL + + 93 * + ( 83 ) AS col1
----
7719

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT - + COUNT( * ) + 69
----
68

skipif mysql # not compatible
query I rowsort label-4299
SELECT - + COUNT ( * ) + 69
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4300
SELECT ALL 26 * - CAST( + - MIN( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL 26 * - CAST ( + - MIN ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + ( 75 ) + + - 18 AS col1
----
57

query I rowsort
SELECT ALL - ( 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT - - 13 + + CAST( NULL AS SIGNED ) - ( - 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT - - 13 + + CAST ( NULL AS INTEGER ) - ( - 91 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT SUM( ALL - 73 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-4304
SELECT SUM ( ALL - 73 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT MIN( ALL 37 )
----
37

skipif mysql # not compatible
query I rowsort label-4305
SELECT MIN ( ALL 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - ( COUNT( DISTINCT - 56 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4306
SELECT - ( COUNT ( DISTINCT - 56 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT COUNT( * ) + + ( - 4 ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-4308
SELECT COUNT ( * ) + + ( - 4 ) AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT ALL - COUNT( * ) AS col1, - SUM( + + 32 )
----
-1
-32

skipif mysql # not compatible
query II rowsort label-4309
SELECT ALL - COUNT ( * ) AS col1, - SUM ( + + 32 )
----
-1
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4310
SELECT 8 / + + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT 8 / + + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 81 * - + 93 AS col0
----
7533

query I rowsort
SELECT ALL - 15 + + + 94 AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL + + COUNT( * ) * - - 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL + + COUNT ( * ) * - - 3 AS col1
----
3

query I rowsort
SELECT - 29 - 2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT + + ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4315
SELECT + + ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT COUNT( ALL - 49 )
----
1

skipif mysql # not compatible
query I rowsort label-4316
SELECT COUNT ( ALL - 49 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT MAX( ALL - + 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-4317
SELECT MAX ( ALL - + 17 )
----
-17

query I rowsort
SELECT ALL 60 * - - 3 AS col0
----
180

query I rowsort
SELECT - + ( + ( 21 ) ) col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4320
SELECT ALL - 25 - - COUNT( * ) DIV + COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - 25 - - COUNT ( * ) / + COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL + COUNT( * ) + + 1
----
2

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL + COUNT ( * ) + + 1
----
2

query I rowsort
SELECT - - 52 + - + 71 + - 8
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL + - 27 * + 23 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + - 27 * + 23 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT ALL CAST( + 61 AS SIGNED ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL CAST ( + 61 AS INTEGER ) AS col2
----
61

query I rowsort
SELECT ALL + 47 col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT ALL + SUM( DISTINCT - 91 ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + SUM ( DISTINCT - 91 ) AS col2
----
-91

query II rowsort
SELECT + + 45, + 23 col0
----
45
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL SUM( + + 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL SUM ( + + 82 ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4329
SELECT + 6 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4329
SELECT + 6 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL - + ( 25 ) - + + MAX( 63 ) + + - COUNT( * ) * - 81
----
-7

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL - + ( 25 ) - + + MAX ( 63 ) + + - COUNT ( * ) * - 81
----
-7

query I rowsort
SELECT DISTINCT 43 * + 44 AS col2
----
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL + COUNT( 12 )
----
1

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + COUNT ( 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT DISTINCT + COUNT( - 28 )
----
1

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT + COUNT ( - 28 )
----
1

query I rowsort
SELECT + 83 * 5
----
415

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT COUNT( ALL - 58 ) * 35 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT COUNT ( ALL - 58 ) * 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT COUNT( * ) * 33 + 78 AS col0
----
111

skipif mysql # not compatible
query I rowsort label-4336
SELECT COUNT ( * ) * 33 + 78 AS col0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT CAST( NULL AS SIGNED ) * - 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT CAST ( NULL AS INTEGER ) * - 62 AS col2
----
NULL

query I rowsort
SELECT 36 * - 24
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT 52 + - + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4339
SELECT 52 + - + COUNT ( * )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT ALL 70 * ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT ALL 70 * ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT + - ( - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4341
SELECT + - ( - COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL - + SUM( DISTINCT - + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL - + SUM ( DISTINCT - + 65 ) AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT - 7 * + 89 - COUNT( * ) AS col0
----
-624

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT - 7 * + 89 - COUNT ( * ) AS col0
----
-624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT ( - NULLIF ( + ( - + 1 ), CAST( NULL AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4344
SELECT ( - NULLIF ( + ( - + 1 ), CAST ( NULL AS INTEGER ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT DISTINCT - ( + COUNT( * ) ) * + 6
----
-6

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT - ( + COUNT ( * ) ) * + 6
----
-6

query I rowsort
SELECT ALL + + ( 45 )
----
45

query I rowsort
SELECT DISTINCT + + 20
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT MIN( DISTINCT 21 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4348
SELECT MIN ( DISTINCT 21 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL - COUNT( * ) * + 85
----
-85

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - COUNT ( * ) * + 85
----
-85

query I rowsort
SELECT ALL - ( - + 51 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT - ( + + COUNT( * ) ) + - 25 * - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4351
SELECT - ( + + COUNT ( * ) ) + - 25 * - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL MIN( DISTINCT + + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL MIN ( DISTINCT + + 98 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT - CAST( + - 84 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-4353
SELECT - CAST ( + - 84 AS INTEGER )
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4354
SELECT COALESCE ( NULLIF ( 44, + - COALESCE ( + 74, - CAST( + 47 AS SIGNED ) * - 73 ) ), - COUNT( * ), 31, - 9 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4354
SELECT COALESCE ( NULLIF ( 44, + - COALESCE ( + 74, - CAST ( + 47 AS INTEGER ) * - 73 ) ), - COUNT ( * ), 31, - 9 ) AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT + - 24 DIV 69 - + 14 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-4355
SELECT + - 24 / 69 - + 14 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT ALL CAST( - + MAX( - - 91 ) AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL CAST ( - + MAX ( - - 91 ) AS INTEGER ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT + 73 - MIN( + 22 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-4357
SELECT + 73 - MIN ( + 22 ) col1
----
51

query I rowsort
SELECT DISTINCT + ( + 65 ) AS col1
----
65

query I rowsort
SELECT DISTINCT - ( - 4 ) AS col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT + COUNT( * ) DIV + + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4360
SELECT + COUNT ( * ) / + + 36 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4361
SELECT DISTINCT + 57 + - - MAX( 1 ) * + + 68 AS col1, COUNT( * ) AS col1
----
125
1

skipif mysql # not compatible
query II rowsort label-4361
SELECT DISTINCT + 57 + - - MAX ( 1 ) * + + 68 AS col1, COUNT ( * ) AS col1
----
125
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4362
SELECT DISTINCT + COUNT( * ) DIV + - 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT + COUNT ( * ) / + - 86 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT DISTINCT - + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT - + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - - 78 AS col0
----
78

query II rowsort
SELECT ALL 29, - 32 * + 42 AS col1
----
29
-1344

query II rowsort
SELECT + 75 AS col2, + 32 - - 33 AS col1
----
75
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4367
SELECT - + 69 DIV + CAST( + 69 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4367
SELECT - + 69 / + CAST ( + 69 AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4368
SELECT + CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT + CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT - COALESCE ( - CAST( - 17 AS SIGNED ), + 99 )
----
-17

skipif mysql # not compatible
query I rowsort label-4369
SELECT - COALESCE ( - CAST ( - 17 AS INTEGER ), + 99 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT + MIN( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-4370
SELECT + MIN ( 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL + MIN( ALL - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL + MIN ( ALL - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL + ( - - MAX( DISTINCT + + 50 ) ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + ( - - MAX ( DISTINCT + + 50 ) ) AS col0
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4373
SELECT DISTINCT + 48 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT DISTINCT + 48 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT + + 30 AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4375
SELECT COUNT( * ) + COUNT( * ) - + + COUNT( * ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4375
SELECT COUNT ( * ) + COUNT ( * ) - + + COUNT ( * ) / + COUNT ( * )
----
1

query I rowsort
SELECT + ( + 24 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4377
SELECT + COUNT( * ) col1, 21 + + - ( + - 35 ) AS col0
----
1
56

skipif mysql # not compatible
query II rowsort label-4377
SELECT + COUNT ( * ) col1, 21 + + - ( + - 35 ) AS col0
----
1
56

query II rowsort
SELECT ALL + 34 AS col0, 37 AS col0
----
34
37

query I rowsort
SELECT DISTINCT 17 * + 55 + - 18
----
917

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL + MAX( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL + MAX ( 2 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT DISTINCT + CAST( - 24 AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-4381
SELECT DISTINCT + CAST ( - 24 AS INTEGER )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT - COUNT( * ) + + 12 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4382
SELECT - COUNT ( * ) + + 12 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT + COUNT( * ) * + 21 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4383
SELECT + COUNT ( * ) * + 21 AS col1
----
21

query I rowsort
SELECT ALL - 45 - - + 91 AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4385
SELECT DISTINCT - MIN( ALL + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT - MIN ( ALL + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT COUNT( * ) * + + COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4386
SELECT COUNT ( * ) * + + COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT ALL - ( + COUNT( * ) ) * - 91 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL - ( + COUNT ( * ) ) * - 91 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT - COUNT( * ) * - - 18 col1
----
-18

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT - COUNT ( * ) * - - 18 col1
----
-18

query I rowsort
SELECT DISTINCT 13 - 22 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT ALL - MAX( DISTINCT - 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL - MAX ( DISTINCT - 95 ) AS col2
----
95

query II rowsort
SELECT DISTINCT - 92, 93 * - 36 AS col1
----
-92
-3348

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT 73 - - ( + COUNT( * ) ) - 36
----
38

skipif mysql # not compatible
query I rowsort label-4392
SELECT 73 - - ( + COUNT ( * ) ) - 36
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT ALL - - 78 * - + COUNT( * ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-4393
SELECT ALL - - 78 * - + COUNT ( * ) col2
----
-78

query I rowsort
SELECT DISTINCT - + 36 * - 17 AS col0
----
612

onlyif mysql # aggregate syntax: 
query II rowsort label-4395
SELECT ALL + COUNT( * ), 63 col0
----
1
63

skipif mysql # not compatible
query II rowsort label-4395
SELECT ALL + COUNT ( * ), 63 col0
----
1
63

query I rowsort
SELECT ( 83 )
----
83

query I rowsort
SELECT DISTINCT - 67 * 62
----
-4154

query I rowsort
SELECT ALL + ( + 92 ) AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL - COUNT( DISTINCT + - 64 ) * - 97
----
97

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - COUNT ( DISTINCT + - 64 ) * - 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT ALL + MIN( ALL 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL + MIN ( ALL 94 ) AS col0
----
94

query I rowsort
SELECT + NULLIF ( 54, 40 ) AS col1
----
54

query I rowsort
SELECT + 11 * + 52
----
572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT + CAST( - 25 AS SIGNED ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4403
SELECT + CAST ( - 25 AS INTEGER ) AS col1
----
-25

query I rowsort
SELECT + + 74 * + 25
----
1850

query I rowsort
SELECT ALL ( - ( 87 ) )
----
-87

query I rowsort
SELECT - 96 * + - 24 AS col2
----
2304

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4407
SELECT ALL CAST( + AVG ( ALL - CAST( - - 65 AS DECIMAL ) ) AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL CAST ( + AVG ( ALL - CAST ( - - 65 AS REAL ) ) AS INTEGER )
----
-65

query II rowsort
SELECT DISTINCT + 56, - 38 AS col1
----
56
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT + ( - + ( CAST( + 53 AS SIGNED ) ) )
----
-53

skipif mysql # not compatible
query I rowsort label-4409
SELECT + ( - + ( CAST ( + 53 AS INTEGER ) ) )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT + MAX( ( + + 78 ) ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-4410
SELECT + MAX ( ( + + 78 ) ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4411
SELECT + CAST( + + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4411
SELECT + CAST ( + + COUNT ( * ) AS INTEGER )
----
1

query I rowsort
SELECT ( - 21 )
----
-21

query I rowsort
SELECT 62 + + 49
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4414
SELECT DISTINCT ( + 61 ) + + CAST( + COUNT( * ) AS SIGNED ) col2
----
62

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT ( + 61 ) + + CAST ( + COUNT ( * ) AS INTEGER ) col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-4415
SELECT DISTINCT - 91 AS col1, - ( - MIN( + 80 ) )
----
-91
80

skipif mysql # not compatible
query II rowsort label-4415
SELECT DISTINCT - 91 AS col1, - ( - MIN ( + 80 ) )
----
-91
80

query I rowsort
SELECT + 6 * + 46
----
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4417
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + 93 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT + 38 * - - COUNT( * ) * - 78 * 3 + COUNT( * ) AS col2
----
-8891

skipif mysql # not compatible
query I rowsort label-4418
SELECT + 38 * - - COUNT ( * ) * - 78 * 3 + COUNT ( * ) AS col2
----
-8891

query I rowsort
SELECT ALL + - 67 * - ( + - 21 )
----
-1407

query I rowsort
SELECT - + 38 col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT 17 + + + COUNT( * ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4421
SELECT 17 + + + COUNT ( * ) AS col0
----
18

query I rowsort
SELECT ( 98 ) + + - 41
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-4423
SELECT DISTINCT + COUNT( * ) * + 37, 73 AS col1
----
37
73

skipif mysql # not compatible
query II rowsort label-4423
SELECT DISTINCT + COUNT ( * ) * + 37, 73 AS col1
----
37
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4424
SELECT ALL - MIN( 22 ) DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - MIN ( 22 ) / - 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT - - 89 * + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4425
SELECT - - 89 * + + COUNT ( * )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT - MIN( DISTINCT - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4426
SELECT - MIN ( DISTINCT - 56 ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT CAST( 33 AS SIGNED ) col2
----
33

skipif mysql # not compatible
query I rowsort label-4427
SELECT CAST ( 33 AS INTEGER ) col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL - 35 + + COUNT( * ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - 35 + + COUNT ( * ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL - COUNT( * ) * 15
----
-15

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - COUNT ( * ) * 15
----
-15

query I rowsort
SELECT + + 92 AS col2
----
92

query II rowsort
SELECT ALL + 23 AS col0, 99 col2
----
23
99

query II rowsort
SELECT 87, + 25 col0
----
87
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT - COUNT( DISTINCT - + 96 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4434
SELECT - COUNT ( DISTINCT - + 96 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4435
SELECT + 23 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT + 23 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4436
SELECT - - COUNT( + - NULLIF ( + ( - 37 ), + - CAST( NULL AS SIGNED ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4436
SELECT - - COUNT ( + - NULLIF ( + ( - 37 ), + - CAST ( NULL AS INTEGER ) ) ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT DISTINCT - ( - 67 ) DIV + 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT - ( - 67 ) / + 83 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL - + ( COUNT( * ) ) * + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - + ( COUNT ( * ) ) * + COUNT ( * )
----
-1

query I rowsort
SELECT ( + + 88 )
----
88

query I rowsort
SELECT 44 * + 52 AS col2
----
2288

query II rowsort
SELECT 84, 71 AS col2
----
84
71

query I rowsort
SELECT 69 + + + 68
----
137

query I rowsort
SELECT ALL - + 27 AS col2
----
-27

query I rowsort
SELECT ALL - 88 * - 62
----
5456

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT DISTINCT - - 60 * - COUNT( * ) + - + ( - COUNT( * ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT - - 60 * - COUNT ( * ) + - + ( - COUNT ( * ) ) AS col2
----
-59

query I rowsort
SELECT - - 90 * 86 AS col2
----
7740

query I rowsort
SELECT ALL 41 * + 48
----
1968

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT + SUM( ALL + + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4448
SELECT + SUM ( ALL + + 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL ( - COUNT( * ) ) * - 26 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL ( - COUNT ( * ) ) * - 26 AS col0
----
26

query I rowsort
SELECT DISTINCT + - ( + + 53 ) col2
----
-53

query I rowsort
SELECT ALL 93 * 52
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT - 53 - - COUNT( * ) col2
----
-52

skipif mysql # not compatible
query I rowsort label-4452
SELECT - 53 - - COUNT ( * ) col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT CAST( - + 23 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4453
SELECT CAST ( - + 23 AS INTEGER ) AS col2
----
-23

query I rowsort
SELECT ALL + 53 * 82 AS col0
----
4346

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT - MIN( - - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-4455
SELECT - MIN ( - - 62 )
----
-62

query I rowsort
SELECT ALL 18 * 25 AS col1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT 96 + MAX( ALL 47 ) * + + 47
----
2305

skipif mysql # not compatible
query I rowsort label-4457
SELECT 96 + MAX ( ALL 47 ) * + + 47
----
2305

query I rowsort
SELECT + + ( - 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT - COUNT( * ) * + + 50
----
-50

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT - COUNT ( * ) * + + 50
----
-50

query I rowsort
SELECT + - ( 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT - COUNT( DISTINCT - 62 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4461
SELECT - COUNT ( DISTINCT - 62 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4462
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 32 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT DISTINCT CAST ( NULL AS REAL ) * 32 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + + 23 col2
----
23

query II rowsort
SELECT 37 * + + ( - 12 ), 23 AS col2
----
-444
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT 96 * - ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT 96 * - ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4466
SELECT + - AVG ( ALL - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT + - AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ( - 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT MIN( - - 92 )
----
92

skipif mysql # not compatible
query I rowsort label-4468
SELECT MIN ( - - 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT - - 90 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4469
SELECT - - 90 + COUNT ( * )
----
91

onlyif mysql # DIV for integer division: 
query II rowsort label-4470
SELECT + 0 DIV 14, + 7 col0
----
0
7

skipif mysql # not compatible
query II rowsort label-4470
SELECT + 0 / 14, + 7 col0
----
0
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4471
SELECT - 98 * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT - 98 * CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4472
SELECT ALL CAST( NULL AS SIGNED ) * 74
----
NULL

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL CAST ( NULL AS INTEGER ) * 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + COUNT( - 27 ) - + + 30 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-4473
SELECT + COUNT ( - 27 ) - + + 30 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - - 42 - ( - 24 ) - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4474
SELECT - - 42 - ( - 24 ) - COUNT ( * )
----
65

query II rowsort
SELECT DISTINCT + 62 * - 63, + 97 AS col0
----
-3906
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL - ( + COUNT( * ) ) + - 77
----
-78

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - ( + COUNT ( * ) ) + - 77
----
-78

query I rowsort
SELECT ALL - 2 col2
----
-2

query I rowsort
SELECT 47 * + 75
----
3525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4479
SELECT - COUNT( ALL - + 2 ) * + CAST( NULL AS SIGNED ) * - ( + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT - COUNT ( ALL - + 2 ) * + CAST ( NULL AS INTEGER ) * - ( + 58 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL 44 + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL 44 + COUNT ( * )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4481
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4481
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + - 0
----
NULL

query I rowsort
SELECT DISTINCT - 67 + 22
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL SUM( DISTINCT 68 ) - + COUNT( * ) * + + NULLIF ( - COUNT( * ), - 88 ) col2
----
69

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL SUM ( DISTINCT 68 ) - + COUNT ( * ) * + + NULLIF ( - COUNT ( * ), - 88 ) col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT ALL - MAX( 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL - MAX ( 16 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT 75 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT 75 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 50 col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT + 64 * 70 DIV 59 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-4487
SELECT + 64 * 70 / 59 AS col1
----
75

query I rowsort
SELECT + ( 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT - - SUM( ALL - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-4489
SELECT - - SUM ( ALL - 47 ) AS col1
----
-47

query I rowsort
SELECT - + 42 * 76 AS col2
----
-3192

query I rowsort
SELECT - ( 29 )
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4492
SELECT + CAST( + 84 AS SIGNED ) * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-4492
SELECT + CAST ( + 84 AS INTEGER ) * COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + COUNT( * ) * - + 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-4493
SELECT + COUNT ( * ) * - + 25 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT COUNT( * ) - 12
----
-11

skipif mysql # not compatible
query I rowsort label-4494
SELECT COUNT ( * ) - 12
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL COUNT( * ) * 45 * + ( + MAX( + 40 ) )
----
1800

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL COUNT ( * ) * 45 * + ( + MAX ( + 40 ) )
----
1800

query I rowsort
SELECT + 36 - - 83 AS col0
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT ALL + MIN( 40 ) * - + 44
----
-1760

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + MIN ( 40 ) * - + 44
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT SUM( DISTINCT + 26 ) + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4498
SELECT SUM ( DISTINCT + 26 ) + COUNT ( * ) AS col1
----
27

query I rowsort
SELECT DISTINCT + 41 + + - 95
----
-54

query I rowsort
SELECT 16 * + ( + - 92 ) AS col0
----
-1472

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - COUNT( * ) + + 1
----
0

skipif mysql # not compatible
query I rowsort label-4501
SELECT - COUNT ( * ) + + 1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT DISTINCT + CAST( 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + CAST ( 57 AS INTEGER )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT + 81 * - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-4503
SELECT + 81 * - + COUNT ( * )
----
-81

query I rowsort
SELECT ALL - + 97 * + - ( + 48 ) AS col0
----
4656

query I rowsort
SELECT ALL 31 * + 31 + 63
----
1024

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT - COUNT( * ) + + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-4506
SELECT - COUNT ( * ) + + - 88
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4507
SELECT DISTINCT - - COUNT( * ) DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - - COUNT ( * ) / - 94
----
0

query I rowsort
SELECT ALL - ( - - 99 )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT + + 77 DIV - + 66 + + + 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-4509
SELECT + + 77 / - + 66 + + + 8 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL - COUNT( * ) * ( 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL - COUNT ( * ) * ( 57 )
----
-57

query I rowsort
SELECT + ( - 92 ) col0
----
-92

query I rowsort
SELECT + 9 col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4513
SELECT + 18 + 71 + COUNT( * ) DIV - - 3 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-4513
SELECT + 18 + 71 + COUNT ( * ) / - - 3 AS col2
----
89

query I rowsort
SELECT 70 col1
----
70

query I rowsort
SELECT - 86 * + - 56 col2
----
4816

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT ALL + - COUNT( * ) + 61 * - + 13 AS col2
----
-794

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL + - COUNT ( * ) + 61 * - + 13 AS col2
----
-794

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT MAX( + 31 ) col1
----
31

skipif mysql # not compatible
query I rowsort label-4517
SELECT MAX ( + 31 ) col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT ALL COUNT( * ) + + + COUNT( DISTINCT + 25 )
----
2

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL COUNT ( * ) + + + COUNT ( DISTINCT + 25 )
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4519
SELECT + + 65 DIV + - CAST( 20 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4519
SELECT + + 65 / + - CAST ( 20 AS INTEGER ) AS col2
----
-3

query I rowsort
SELECT - + 66 col0
----
-66

query I rowsort
SELECT - 50 * - 79 - + 74 * - - 25
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT COUNT( * ) + 58
----
59

skipif mysql # not compatible
query I rowsort label-4522
SELECT COUNT ( * ) + 58
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4523
SELECT 75 DIV COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-4523
SELECT 75 / COUNT ( * )
----
75

query I rowsort
SELECT 59 * - 52 AS col2
----
-3068

onlyif mysql # DIV for integer division: 
query I rowsort label-4525
SELECT 65 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4525
SELECT 65 / - 83 AS col0
----
0

query I rowsort
SELECT ALL 88 * 34 AS col0
----
2992

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL 82 + - COUNT( * ) * 94 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL 82 + - COUNT ( * ) * 94 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL - COUNT( + 99 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL - COUNT ( + 99 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - + 92 * 96 col2
----
-8832

query I rowsort
SELECT - 62 * - 25
----
1550

query I rowsort
SELECT 10 * 76 AS col1
----
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4533
SELECT CASE + + COUNT( * ) WHEN CAST( 93 AS SIGNED ) THEN NULL ELSE COUNT( * ) * 8 END AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4533
SELECT CASE + + COUNT ( * ) WHEN CAST ( 93 AS INTEGER ) THEN NULL ELSE COUNT ( * ) * 8 END AS col0
----
8

query I rowsort
SELECT + - 7 col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT SUM( ALL + 61 ) col1
----
61

skipif mysql # not compatible
query I rowsort label-4535
SELECT SUM ( ALL + 61 ) col1
----
61

query I rowsort
SELECT + - ( + 16 )
----
-16

query I rowsort
SELECT ALL + + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL 71 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL 71 * - COUNT ( * )
----
-71

query I rowsort
SELECT ALL ( - 87 ) col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4540
SELECT ALL ( SUM( ALL + - 73 ) ) DIV + 30
----
-2

skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL ( SUM ( ALL + - 73 ) ) / + 30
----
-2

query I rowsort
SELECT DISTINCT + ( + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT + MIN( DISTINCT + + 52 ) * ( + 74 )
----
3848

skipif mysql # not compatible
query I rowsort label-4542
SELECT + MIN ( DISTINCT + + 52 ) * ( + 74 )
----
3848

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4543
SELECT + CAST( + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4543
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4544
SELECT - COUNT( * ) col1, ( COUNT( * ) ) AS col2
----
-1
1

skipif mysql # not compatible
query II rowsort label-4544
SELECT - COUNT ( * ) col1, ( COUNT ( * ) ) AS col2
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT - + MIN( + 30 ) col2
----
-30

skipif mysql # not compatible
query I rowsort label-4545
SELECT - + MIN ( + 30 ) col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4546
SELECT ALL + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - 13 + + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-4547
SELECT - 13 + + + COUNT ( * )
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4548
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 25 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 25 col1
----
NULL

query I rowsort
SELECT - + 88 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL 53 - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL 53 - COUNT ( * )
----
52

query I rowsort
SELECT - 60 * 32 AS col2
----
-1920

query II rowsort
SELECT ALL + + 79 col1, 83 AS col2
----
79
83

query I rowsort
SELECT ALL + - 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT + SUM( ALL 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4554
SELECT + SUM ( ALL 47 )
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4555
SELECT + COUNT( * ), ( - CAST( + COUNT( * ) AS SIGNED ) ) AS col1
----
1
-1

skipif mysql # not compatible
query II rowsort label-4555
SELECT + COUNT ( * ), ( - CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1
----
1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT ALL + + CAST( + + 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL + + CAST ( + + 1 AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT - 82 - - + MIN( 45 )
----
-37

skipif mysql # not compatible
query I rowsort label-4557
SELECT - 82 - - + MIN ( 45 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4558
SELECT ALL + CAST( - 77 AS SIGNED ) + + 75
----
-2

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL + CAST ( - 77 AS INTEGER ) + + 75
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4559
SELECT COUNT( * ) DIV COUNT( * ) col2, 23 AS col2
----
1
23

skipif mysql # not compatible
query II rowsort label-4559
SELECT COUNT ( * ) / COUNT ( * ) col2, 23 AS col2
----
1
23

onlyif mysql # aggregate syntax: 
query II rowsort label-4560
SELECT ALL 26, COUNT( * ) AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-4560
SELECT ALL 26, COUNT ( * ) AS col1
----
26
1

query I rowsort
SELECT + ( 87 ) AS col2
----
87

query I rowsort
SELECT - ( + 73 ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT NULLIF ( + 67, - ( ( + 92 ) ) * COUNT( * ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT NULLIF ( + 67, - ( ( + 92 ) ) * COUNT ( * ) ) AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL + MIN( - - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + MIN ( - - 79 )
----
79

query I rowsort
SELECT + 41 + + 28 - - 59 AS col1
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT - COUNT( NULLIF ( + 74, CAST( NULL AS SIGNED ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4566
SELECT - COUNT ( NULLIF ( + 74, CAST ( NULL AS INTEGER ) ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4567
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - 26 / + 64 + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT CAST ( NULL AS REAL ) + - 26 / + 64 + 66
----
NULL

query I rowsort
SELECT DISTINCT 69 col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT ALL - 40 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL - 40 / + + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT COUNT( + - 23 ) + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-4570
SELECT COUNT ( + - 23 ) + ( COUNT ( * ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT + + COUNT( DISTINCT + + 8 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4571
SELECT + + COUNT ( DISTINCT + + 8 ) AS col0
----
1

query I rowsort
SELECT 60 + + + 9
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT DISTINCT - MAX( DISTINCT 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - MAX ( DISTINCT 8 ) AS col2
----
-8

query I rowsort
SELECT DISTINCT - ( + 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT 71 * - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-4575
SELECT 71 * - COUNT ( * )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ( + MIN( DISTINCT - 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-4576
SELECT ( + MIN ( DISTINCT - 60 ) )
----
-60

query I rowsort
SELECT 37 * 42
----
1554

query I rowsort
SELECT ALL 28 * + 99 col0
----
2772

query I rowsort
SELECT DISTINCT 29 * + + 40 AS col2
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4580
SELECT CAST( + 57 AS SIGNED ) col1
----
57

skipif mysql # not compatible
query I rowsort label-4580
SELECT CAST ( + 57 AS INTEGER ) col1
----
57

query I rowsort
SELECT ALL + ( - ( + + ( + + 44 ) ) ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT - + ( + COUNT( + 16 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4582
SELECT - + ( + COUNT ( + 16 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL - 60 + - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL - 60 + - - COUNT ( * )
----
-59

query I rowsort
SELECT DISTINCT + 97 + + + 37 AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT ALL - + MAX( DISTINCT 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - + MAX ( DISTINCT 55 ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4586
SELECT ALL - + COUNT( ALL CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL - + COUNT ( ALL CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL 98 * + + 37 * + + COALESCE ( - - 29, MAX( ALL - 41 ) ) + - 10 AS col1
----
105144

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL 98 * + + 37 * + + COALESCE ( - - 29, MAX ( ALL - 41 ) ) + - 10 AS col1
----
105144

query I rowsort
SELECT ALL - 28 + + ( + - 29 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL 52 + - + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL 52 + - + COUNT ( * )
----
51

query I rowsort
SELECT ALL 91 col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT - COUNT( * ) + - 19
----
-20

skipif mysql # not compatible
query I rowsort label-4592
SELECT - COUNT ( * ) + - 19
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT - COUNT( 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-4593
SELECT - COUNT ( 82 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - COUNT( * ) + + 86 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-4594
SELECT - COUNT ( * ) + + 86 AS col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4595
SELECT + ( - - 63 ) AS col2, - COUNT( * ) AS col0
----
63
-1

skipif mysql # not compatible
query II rowsort label-4595
SELECT + ( - - 63 ) AS col2, - COUNT ( * ) AS col0
----
63
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT + ( - + MIN( 31 ) )
----
-31

skipif mysql # not compatible
query I rowsort label-4596
SELECT + ( - + MIN ( 31 ) )
----
-31

query I rowsort
SELECT + + 18 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT DISTINCT 26 AS col2, - COUNT( * ) AS col1
----
26
-1

skipif mysql # not compatible
query II rowsort label-4598
SELECT DISTINCT 26 AS col2, - COUNT ( * ) AS col1
----
26
-1

query I rowsort
SELECT ALL - 71 * 64
----
-4544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4600
SELECT - 95 DIV COUNT( * ) * - 20 AS col0, - COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
1900
0

skipif mysql # not compatible
query II rowsort label-4600
SELECT - 95 / COUNT ( * ) * - 20 AS col0, - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
1900
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT - 61 DIV + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 61 / + COUNT ( * )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT 17 * COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4602
SELECT 17 * COUNT ( * ) AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT 53 + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-4603
SELECT 53 + - COUNT ( * ) AS col0
----
52

query I rowsort
SELECT 10 * ( + + 89 ) col2
----
890

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL - COUNT( + 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - COUNT ( + 15 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT COUNT( * ) * - 91 * + + COUNT( ALL - - 26 )
----
-91

skipif mysql # not compatible
query I rowsort label-4606
SELECT COUNT ( * ) * - 91 * + + COUNT ( ALL - - 26 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - NULLIF ( + - 53, - - MIN( DISTINCT ( + + 60 ) ) + COUNT( * ) )
----
53

skipif mysql # not compatible
query I rowsort label-4607
SELECT - NULLIF ( + - 53, - - MIN ( DISTINCT ( + + 60 ) ) + COUNT ( * ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT + COALESCE ( COUNT( * ), + 54 ) + + 67 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT + COALESCE ( COUNT ( * ), + 54 ) + + 67 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT + 10 * COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4609
SELECT + 10 * COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT ALL COUNT( * ) * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL COUNT ( * ) * - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL - ( - 72 ) + - - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL - ( - 72 ) + - - COUNT ( * )
----
73

query I rowsort
SELECT + NULLIF ( - 59, ( + + 60 ) ) + + 26
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - COUNT( * ) + 46 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-4613
SELECT - COUNT ( * ) + 46 AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4614
SELECT ( - 81 ) / - COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT ( - 81 ) / - COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 39 * + 19
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT 76 * + - COUNT( * ) + + - 32 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-4616
SELECT 76 * + - COUNT ( * ) + + - 32 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT - MAX( DISTINCT 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT - MAX ( DISTINCT 81 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT 51 * + COUNT( * ) col1
----
51

skipif mysql # not compatible
query I rowsort label-4618
SELECT 51 * + COUNT ( * ) col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT + MAX( ALL + + ( + 59 ) ) * COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-4619
SELECT + MAX ( ALL + + ( + 59 ) ) * COUNT ( * )
----
59

query I rowsort
SELECT ALL - + 70 AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4621
SELECT 45 DIV - COUNT( * ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-4621
SELECT 45 / - COUNT ( * ) col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT - MAX( ALL + ( 36 ) )
----
-36

skipif mysql # not compatible
query I rowsort label-4622
SELECT - MAX ( ALL + ( 36 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT + MAX( - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4623
SELECT + MAX ( - 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT COALESCE ( COUNT( * ), - + 47 * ( + 33 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4624
SELECT COALESCE ( COUNT ( * ), - + 47 * ( + 33 ) )
----
1

query I rowsort
SELECT ALL + + 4 col2
----
4

query I rowsort
SELECT + 28 - 90 AS col2
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT CAST( + 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-4627
SELECT CAST ( + 79 AS INTEGER )
----
79

query I rowsort
SELECT + ( 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL + - ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + - ( + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4630
SELECT ALL - COUNT( * ) DIV + 82
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL - COUNT ( * ) / + 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT DISTINCT + - SUM( DISTINCT + 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + - SUM ( DISTINCT + 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT + 95 * COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + 95 * COUNT ( * ) AS col0
----
95

query I rowsort
SELECT 69 * 66 * - 68 AS col0
----
-309672

query I rowsort
SELECT DISTINCT - + 63
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT + SUM( DISTINCT + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4635
SELECT + SUM ( DISTINCT + 14 )
----
14

query II rowsort
SELECT 28 AS col1, 81 AS col2
----
28
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT ( CAST( NULL AS SIGNED ) ) * + - ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT ( CAST ( NULL AS INTEGER ) ) * + - ( 91 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4638
SELECT DISTINCT ( + + 37 ) * + AVG ( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT DISTINCT ( + + 37 ) * + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL 11 - - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL 11 - - COUNT ( * )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4640
SELECT 56 AS col1, CAST( 42 AS SIGNED )
----
56
42

skipif mysql # not compatible
query II rowsort label-4640
SELECT 56 AS col1, CAST ( 42 AS INTEGER )
----
56
42

query II rowsort
SELECT 80 AS col1, 75 AS col2
----
80
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - SUM( - - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-4642
SELECT - SUM ( - - 30 )
----
-30

query I rowsort
SELECT - 47 + 46 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + MIN( - 5 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-4644
SELECT + MIN ( - 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT DISTINCT + SUM( - + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT + SUM ( - + 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-4646
SELECT 76 AS col2, - MAX( DISTINCT - 82 ) AS col2
----
76
82

skipif mysql # not compatible
query II rowsort label-4646
SELECT 76 AS col2, - MAX ( DISTINCT - 82 ) AS col2
----
76
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT - - COUNT( * ) * + COUNT( * ) + + 34 + - COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4647
SELECT - - COUNT ( * ) * + COUNT ( * ) + + 34 + - COUNT ( * ) AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT ALL + ( + 97 ) col1, COUNT( * ) AS col2
----
97
1

skipif mysql # not compatible
query II rowsort label-4648
SELECT ALL + ( + 97 ) col1, COUNT ( * ) AS col2
----
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT + 81 * - + COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4649
SELECT + 81 * - + COUNT ( * ) AS col1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT + 99 DIV + - 12 col0
----
-8

skipif mysql # not compatible
query I rowsort label-4650
SELECT + 99 / + - 12 col0
----
-8

query I rowsort
SELECT COALESCE ( + 7, + - 20 )
----
7

query I rowsort
SELECT - 45 * + - ( 38 )
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT - SUM( 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4653
SELECT - SUM ( 24 ) AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT DISTINCT + ( + COUNT( * ) ) + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT + ( + COUNT ( * ) ) + - 7
----
-6

query II rowsort
SELECT - ( - 85 ) col0, 30
----
85
30

query I rowsort
SELECT + 61 - - 41 col0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT COUNT( * ) * CAST( + ( 53 ) AS SIGNED ) + + MAX( - 10 )
----
43

skipif mysql # not compatible
query I rowsort label-4657
SELECT COUNT ( * ) * CAST ( + ( 53 ) AS INTEGER ) + + MAX ( - 10 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT COUNT( * ) + - 49 col0
----
-48

skipif mysql # not compatible
query I rowsort label-4658
SELECT COUNT ( * ) + - 49 col0
----
-48

query I rowsort
SELECT + 58 + - 59
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4660
SELECT ALL CAST( NULL AS SIGNED ) + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL CAST ( NULL AS INTEGER ) + 45 AS col0
----
NULL

query II rowsort
SELECT ALL - 5, 64 + + - 81 AS col0
----
-5
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT + SUM( 8 ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-4662
SELECT + SUM ( 8 ) AS col1
----
8

query II rowsort
SELECT 4 AS col1, 44 AS col1
----
4
44

query II rowsort
SELECT - - 45 AS col0, - 37 AS col2
----
45
-37

query I rowsort
SELECT DISTINCT + ( 31 ) col2
----
31

query I rowsort
SELECT DISTINCT 76 * 29
----
2204

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL - 90 + + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - 90 + + - COUNT ( * )
----
-91

query I rowsort
SELECT DISTINCT 22 * + 13
----
286

query I rowsort
SELECT - - ( - 12 )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 5 - - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-4670
SELECT 5 - - COUNT ( * )
----
6

query I rowsort
SELECT ALL 45 * + + 17
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT COUNT( * ) * - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT COUNT ( * ) * - 51 AS col1
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4673
SELECT ALL + COUNT( * ) DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + COUNT ( * ) / - 78
----
0

query I rowsort
SELECT + ( + + 96 )
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4675
SELECT ALL - 93 * + CAST( NULL AS SIGNED ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL - 93 * + CAST ( NULL AS INTEGER ) * + 73
----
NULL

query I rowsort
SELECT ALL + 66 - - 54 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - 67 * - COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-4677
SELECT - 67 * - COUNT ( * ) AS col1
----
67

query I rowsort
SELECT - ( - 92 ) AS col0
----
92

query I rowsort
SELECT + 99 + - 12 AS col2
----
87

query I rowsort
SELECT + - ( + 20 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4681
SELECT ALL CAST( + 28 AS SIGNED ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL CAST ( + 28 AS INTEGER ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL + ( + - COUNT( * ) ) * + 12
----
-12

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL + ( + - COUNT ( * ) ) * + 12
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-4683
SELECT COUNT( * ) - - + 88, - COUNT( * ) AS col1
----
89
-1

skipif mysql # not compatible
query II rowsort label-4683
SELECT COUNT ( * ) - - + 88, - COUNT ( * ) AS col1
----
89
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT ALL CAST( NULL AS SIGNED ) * - 28 / + 17 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL CAST ( NULL AS INTEGER ) * - 28 / + 17 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL - MIN( DISTINCT 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - MIN ( DISTINCT 43 ) AS col2
----
-43

query I rowsort
SELECT 4 * - 85 AS col1
----
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT ALL - MAX( ALL 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - MAX ( ALL 65 ) AS col1
----
-65

query I rowsort
SELECT DISTINCT 98 + + 55 AS col2
----
153

query I rowsort
SELECT + 73 * 94
----
6862

query I rowsort
SELECT + 91 + + - 55
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL + COUNT( * ) * - 42 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL + COUNT ( * ) * - 42 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT ALL + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4693
SELECT + COUNT( * ) DIV - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4693
SELECT + COUNT ( * ) / - COUNT ( * )
----
-1

query I rowsort
SELECT ALL ( - + 87 ) col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4695
SELECT SUM( + 94 ) + - - 24 + - ( + - CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-4695
SELECT SUM ( + 94 ) + - - 24 + - ( + - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
119

query I rowsort
SELECT DISTINCT ( 18 ) AS col1
----
18

query I rowsort
SELECT + + ( - 82 ) AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT + + CAST( - + AVG ( 77 ) AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-4698
SELECT + + CAST ( - + AVG ( 77 ) AS INTEGER )
----
-77

query II rowsort
SELECT DISTINCT 57 + - 15 col1, 47 AS col0
----
42
47

query I rowsort
SELECT - + 96
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT + 41 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT + 41 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4702
SELECT - COUNT( * ) AS col1, 87 * COUNT( * ) AS col0
----
-1
87

skipif mysql # not compatible
query II rowsort label-4702
SELECT - COUNT ( * ) AS col1, 87 * COUNT ( * ) AS col0
----
-1
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL - - 60 - + ( + + COUNT( DISTINCT ( 42 ) ) ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - - 60 - + ( + + COUNT ( DISTINCT ( 42 ) ) ) AS col0
----
59

query I rowsort
SELECT DISTINCT ( - 28 )
----
-28

query I rowsort
SELECT DISTINCT ( + + 35 )
----
35

query I rowsort
SELECT - 33 * + - 8
----
264

query I rowsort
SELECT DISTINCT - ( 43 ) col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT - MIN( 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT - MIN ( 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT COUNT( * ) * - 93 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4709
SELECT COUNT ( * ) * - 93 AS col1
----
-93

query I rowsort
SELECT ( + + 73 ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT MIN( - + 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-4711
SELECT MIN ( - + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - MAX( + 33 ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-4712
SELECT - MAX ( + 33 ) col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4713
SELECT - COUNT( * ) AS col1, - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4713
SELECT - COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4714
SELECT - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4714
SELECT - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT - + 13 + + ( + + COUNT( + + 69 ) ) * + SUM( ALL - 43 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4715
SELECT - + 13 + + ( + + COUNT ( + + 69 ) ) * + SUM ( ALL - 43 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-4716
SELECT + 5, + COUNT( * ) AS col2
----
5
1

skipif mysql # not compatible
query II rowsort label-4716
SELECT + 5, + COUNT ( * ) AS col2
----
5
1

query I rowsort
SELECT + + 65 col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT - 39 - - ( 68 ) * - - CAST( + + COUNT( * ) AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-4718
SELECT - 39 - - ( 68 ) * - - CAST ( + + COUNT ( * ) AS INTEGER )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4719
SELECT ALL 62 * + 69, - COUNT( * ) AS col2
----
4278
-1

skipif mysql # not compatible
query II rowsort label-4719
SELECT ALL 62 * + 69, - COUNT ( * ) AS col2
----
4278
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4720
SELECT + CAST( NULL AS SIGNED ) + - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT + CAST ( NULL AS INTEGER ) + - + 24
----
NULL

query II rowsort
SELECT ALL + + 26 * - + 37, - 99 AS col1
----
-962
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT - COUNT( * ) * 30
----
-30

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - COUNT ( * ) * 30
----
-30

query I rowsort
SELECT + 56 * 19 AS col1
----
1064

query I rowsort
SELECT DISTINCT - - 44 * - + 56 AS col0
----
-2464

onlyif mysql # aggregate syntax: 
query II rowsort label-4725
SELECT - 58, COUNT( * ) AS col2
----
-58
1

skipif mysql # not compatible
query II rowsort label-4725
SELECT - 58, COUNT ( * ) AS col2
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ( + COUNT( DISTINCT 33 ) ) * + ( 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-4726
SELECT ( + COUNT ( DISTINCT 33 ) ) * + ( 45 ) AS col1
----
45

query I rowsort
SELECT 18 * + 93
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT DISTINCT + MIN( - - 25 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + MIN ( - - 25 ) AS col0
----
25

query I rowsort
SELECT + - 58 AS col2
----
-58

query I rowsort
SELECT ALL - - 63
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-4731
SELECT DISTINCT + 36 + + - 44 AS col1, - 87 DIV + ( 76 ) AS col2
----
-8
-1

skipif mysql # not compatible
query II rowsort label-4731
SELECT DISTINCT + 36 + + - 44 AS col1, - 87 / + ( 76 ) AS col2
----
-8
-1

query I rowsort
SELECT + 85 * + 22
----
1870

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT - 60 * + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-4733
SELECT - 60 * + COUNT ( * ) AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT + CAST( NULL AS SIGNED ) + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT + CAST ( NULL AS INTEGER ) + 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT ALL 62 - + COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL 62 - + COUNT ( * ) AS col2
----
61

query I rowsort
SELECT + ( 67 )
----
67

query I rowsort
SELECT + 81 * - 24
----
-1944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT DISTINCT - COUNT( * ) * - CAST( 76 - + 91 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT - COUNT ( * ) * - CAST ( 76 - + 91 AS INTEGER )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL - ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4740
SELECT CAST( + - COUNT( * ) AS SIGNED ) + - ( + COUNT( * ) )
----
-2

skipif mysql # not compatible
query I rowsort label-4740
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) + - ( + COUNT ( * ) )
----
-2

query I rowsort
SELECT + 92 - + + 41 AS col1
----
51

query II rowsort
SELECT 20 AS col2, 42 col1
----
20
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4743
SELECT COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) * + 4 col2
----
4

skipif mysql # not compatible
query I rowsort label-4743
SELECT COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) * + 4 col2
----
4

query I rowsort
SELECT 36 * + - ( + 61 )
----
-2196

query I rowsort
SELECT 28 * 38 * + 53
----
56392

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT - SUM( ALL + - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4746
SELECT - SUM ( ALL + - 73 )
----
73

query I rowsort
SELECT + NULLIF ( 6, + - 19 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT SUM( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT SUM ( 65 )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4749
SELECT + + 18 DIV + - 46 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4749
SELECT + + 18 / + - 46 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - + COUNT( - - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-4750
SELECT - + COUNT ( - - 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT + COUNT( * ) + - ( 58 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT + COUNT ( * ) + - ( 58 ) AS col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4752
SELECT ALL + 96 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + 96 / 55
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT - CAST( NULL AS SIGNED ) + + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT - CAST ( NULL AS INTEGER ) + + - 3
----
NULL

query I rowsort
SELECT + 44 * + 37
----
1628

query I rowsort
SELECT DISTINCT + + ( - 4 ) col1
----
-4

query I rowsort
SELECT ALL - 67 + 80
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4757
SELECT DISTINCT - 18 DIV - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT - 18 / - COUNT ( * )
----
18

query I rowsort
SELECT 18 + + 68
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT ALL + NULLIF ( + 82, + ( - + 55 ) ) + + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL + NULLIF ( + 82, + ( - + 55 ) ) + + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL + 10 - + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL + 10 - + + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4761
SELECT DISTINCT - 78 AS col1, MIN( DISTINCT 34 ) - - 22
----
-78
56

skipif mysql # not compatible
query II rowsort label-4761
SELECT DISTINCT - 78 AS col1, MIN ( DISTINCT 34 ) - - 22
----
-78
56

query I rowsort
SELECT ALL ( + 65 ) + 87
----
152

query I rowsort
SELECT DISTINCT 17 + + + 42 - + + 99 col0
----
-40

query II rowsort
SELECT 53 col2, 39 AS col0
----
53
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT DISTINCT COUNT( * ) - + 11, + 68 AS col1
----
-10
68

skipif mysql # not compatible
query II rowsort label-4765
SELECT DISTINCT COUNT ( * ) - + 11, + 68 AS col1
----
-10
68

query I rowsort
SELECT 11 * 21 AS col2
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT ALL 90 DIV + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL 90 / + COUNT ( * )
----
90

query I rowsort
SELECT DISTINCT + + 42
----
42

query I rowsort
SELECT + 78 * - + 69
----
-5382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4770
SELECT + 43 DIV + - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-4770
SELECT + 43 / + - COUNT ( * )
----
-43

query I rowsort
SELECT ALL + - 8 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT - COUNT( ALL ( - - 57 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4772
SELECT - COUNT ( ALL ( - - 57 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT ALL + 51 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL + 51 * COUNT ( * )
----
51

query I rowsort
SELECT ALL - 79 * - - 73 AS col0
----
-5767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL CAST( + 55 AS SIGNED ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL CAST ( + 55 AS INTEGER ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT + SUM( - - ( + 88 ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4776
SELECT + SUM ( - - ( + 88 ) ) AS col0
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4777
SELECT CAST( NULL AS DECIMAL ) / - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT CAST ( NULL AS REAL ) / - 95 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ALL - - MAX( DISTINCT - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL - - MAX ( DISTINCT - 34 ) AS col0
----
-34

query I rowsort
SELECT DISTINCT - - 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL + - COUNT( * ) * - 28 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + - COUNT ( * ) * - 28 AS col0
----
28

query I rowsort
SELECT DISTINCT + - 53 * + 39
----
-2067

query II rowsort
SELECT + 0 AS col0, + 32
----
0
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT DISTINCT - 91, COUNT( * ) AS col2
----
-91
1

skipif mysql # not compatible
query II rowsort label-4783
SELECT DISTINCT - 91, COUNT ( * ) AS col2
----
-91
1

query I rowsort
SELECT - COALESCE ( 40, + 79 ) AS col2
----
-40

query I rowsort
SELECT ALL ( + 11 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4786
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL ( 41 ) * + 24 + - ( ( + COUNT( * ) ) )
----
983

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL ( 41 ) * + 24 + - ( ( + COUNT ( * ) ) )
----
983

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + 96 + - MIN( - - 87 )
----
9

skipif mysql # not compatible
query I rowsort label-4788
SELECT + 96 + - MIN ( - - 87 )
----
9

query I rowsort
SELECT ALL NULLIF ( + 0, - 65 )
----
0

query I rowsort
SELECT - - 24 AS col2
----
24

query I rowsort
SELECT DISTINCT - ( + 50 ) AS col2
----
-50

query I rowsort
SELECT ALL - ( - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL - COUNT( * ) * - 44 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL - COUNT ( * ) * - 44 AS col1
----
44

query I rowsort
SELECT ALL + 26 * 67
----
1742

query II rowsort
SELECT DISTINCT + 16 AS col0, - 81
----
16
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT - CAST( NULL AS SIGNED ) + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT - CAST ( NULL AS INTEGER ) + 31
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT ALL 72 DIV 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL 72 / 79 AS col2
----
0

query I rowsort
SELECT DISTINCT + 89 - + 1 * - 5 * + 4 col0
----
109

query I rowsort
SELECT ALL ( + 11 ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT DISTINCT CAST( 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT CAST ( 13 AS INTEGER )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - SUM( ALL + - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4801
SELECT - SUM ( ALL + - 61 ) AS col0
----
61

query I rowsort
SELECT DISTINCT + ( + 15 )
----
15

query I rowsort
SELECT ALL + ( + + 76 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT CAST( 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-4804
SELECT CAST ( 39 AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT ALL - - 73 * COUNT( * ) + + 39
----
112

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL - - 73 * COUNT ( * ) + + 39
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT + COUNT( * ) - + 2 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4806
SELECT + COUNT ( * ) - + 2 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT - + 67 + + + 97 + + + 70 DIV + 57
----
31

skipif mysql # not compatible
query I rowsort label-4807
SELECT - + 67 + + + 97 + + + 70 / + 57
----
31

query I rowsort
SELECT + + 56 + - 84 AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4809
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 96
----
NULL

query I rowsort
SELECT + - 29 * - 38 AS col1
----
1102

query I rowsort
SELECT ALL - 75 col2
----
-75

query I rowsort
SELECT ( - + 58 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4813
SELECT ALL 72 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL 72 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 78 * - 76 col1
----
5928

query I rowsort
SELECT DISTINCT - 67 col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL 53 * + 62 + + - COUNT( * ) * - 87
----
3373

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL 53 * + 62 + + - COUNT ( * ) * - 87
----
3373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT DISTINCT + COALESCE ( + - 68, - CAST( NULL AS SIGNED ) ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-4817
SELECT DISTINCT + COALESCE ( + - 68, - CAST ( NULL AS INTEGER ) ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT - ( + COUNT( * ) ) + + 92 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-4818
SELECT - ( + COUNT ( * ) ) + + 92 AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4819
SELECT - 77 AS col1, COUNT( * )
----
-77
1

skipif mysql # not compatible
query II rowsort label-4819
SELECT - 77 AS col1, COUNT ( * )
----
-77
1

query I rowsort
SELECT - ( - ( - 6 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT DISTINCT COUNT( * ) - - - 72 * + 87 AS col2
----
-6263

skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT COUNT ( * ) - - - 72 * + 87 AS col2
----
-6263

query I rowsort
SELECT - 12 + - 96 AS col1
----
-108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4823
SELECT ALL + COUNT( * ) + CAST( - COUNT( * ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT 83 DIV + 8 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-4824
SELECT 83 / + 8 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT 28 + + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-4825
SELECT 28 + + + COUNT ( * ) AS col0
----
29

query I rowsort
SELECT 18 * - 79
----
-1422

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT - SUM( + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-4827
SELECT - SUM ( + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT + 95 + ( + 41 ) + SUM( + + 55 ) + + 98 AS col1
----
289

skipif mysql # not compatible
query I rowsort label-4828
SELECT + 95 + ( + 41 ) + SUM ( + + 55 ) + + 98 AS col1
----
289

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL + 85 + + COUNT( DISTINCT - 40 ) - - 71
----
157

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL + 85 + + COUNT ( DISTINCT - 40 ) - - 71
----
157

query I rowsort
SELECT - ( + - 18 ) * 62 AS col0
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT MAX( ALL + + 32 )
----
32

skipif mysql # not compatible
query I rowsort label-4831
SELECT MAX ( ALL + + 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT DISTINCT COUNT( * ) + 26 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT COUNT ( * ) + 26 AS col1
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4833
SELECT - + 66 col1, - CAST( NULL AS SIGNED ) AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-4833
SELECT - + 66 col1, - CAST ( NULL AS INTEGER ) AS col2
----
-66
NULL

query I rowsort
SELECT ALL 36 + + + 20 AS col0
----
56

query I rowsort
SELECT DISTINCT + 12 col0
----
12

query I rowsort
SELECT ALL + ( 70 ) AS col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4837
SELECT 24 DIV + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4837
SELECT 24 / + 96 AS col2
----
0

query II rowsort
SELECT ALL ( 72 ) * + 69 * - 49 * - - 95 col1, 85 AS col0
----
-23126040
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT DISTINCT ( + 40 ) + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-4839
SELECT DISTINCT ( + 40 ) + + COUNT ( * )
----
41

query I rowsort
SELECT DISTINCT - 56 + - 37 AS col2
----
-93

query I rowsort
SELECT 31 * - 31
----
-961

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT - MIN( ALL + + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-4842
SELECT - MIN ( ALL + + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT + 76 + - + COALESCE ( + + COUNT( * ), - 77 )
----
75

skipif mysql # not compatible
query I rowsort label-4843
SELECT + 76 + - + COALESCE ( + + COUNT ( * ), - 77 )
----
75

query I rowsort
SELECT - 78 * + + 62
----
-4836

query I rowsort
SELECT DISTINCT ( + 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - - COUNT( * ) * + COUNT( * ) + - 60
----
-59

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) + - 60
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT - COUNT( * ) - - 69 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-4847
SELECT - COUNT ( * ) - - 69 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4848
SELECT ALL - 1 + COUNT( * ), - 62 - - 36 AS col2
----
0
-26

skipif mysql # not compatible
query II rowsort label-4848
SELECT ALL - 1 + COUNT ( * ), - 62 - - 36 AS col2
----
0
-26

query I rowsort
SELECT + 26 * - 94 AS col2
----
-2444

query I rowsort
SELECT ( - - 54 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4851
SELECT ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4851
SELECT ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT DISTINCT - SUM( + + 77 ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-4852
SELECT DISTINCT - SUM ( + + 77 ) col2
----
-77

query I rowsort
SELECT ALL - 97 + + - 70 * + 98 AS col0
----
-6957

onlyif mysql # aggregate syntax: 
query II rowsort label-4854
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) + - 5 AS col1
----
-1
-4

skipif mysql # not compatible
query II rowsort label-4854
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) + - 5 AS col1
----
-1
-4

query I rowsort
SELECT ALL - + 87 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT - 79 * - + ( - COUNT( * ) )
----
-79

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 79 * - + ( - COUNT ( * ) )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + COUNT( * ) * + MAX( + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4857
SELECT + COUNT ( * ) * + MAX ( + 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4858
SELECT ALL COUNT( * ), 94 AS col0
----
1
94

skipif mysql # not compatible
query II rowsort label-4858
SELECT ALL COUNT ( * ), 94 AS col0
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL 78 + + 52 * - + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL 78 + + 52 * - + COUNT ( * )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4860
SELECT ALL + 3 * - - COUNT( * ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL + 3 * - - COUNT ( * ) / - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT ALL MIN( DISTINCT 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL MIN ( DISTINCT 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4862
SELECT ALL + COUNT( * ), - 48 * + - 57 col2
----
1
2736

skipif mysql # not compatible
query II rowsort label-4862
SELECT ALL + COUNT ( * ), - 48 * + - 57 col2
----
1
2736

query I rowsort
SELECT - + 16 + + 97 col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL + 27 + ( COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL + 27 + ( COUNT ( * ) )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4865
SELECT DISTINCT - 12, ( - COUNT( * ) ) + COUNT( * ) AS col2
----
-12
0

skipif mysql # not compatible
query II rowsort label-4865
SELECT DISTINCT - 12, ( - COUNT ( * ) ) + COUNT ( * ) AS col2
----
-12
0

query I rowsort
SELECT 87 + - 81
----
6

query I rowsort
SELECT ALL + 44 + + 32 * - 34 + + 26 AS col1
----
-1018

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT 77 + + - 88 - - COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4868
SELECT 77 + + - 88 - - COUNT ( * ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL COUNT( + + ( + 80 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL COUNT ( + + ( + 80 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT DISTINCT + + 48 + ( + - COUNT( * ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + + 48 + ( + - COUNT ( * ) ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT DISTINCT - - MAX( DISTINCT + + 54 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT - - MAX ( DISTINCT + + 54 ) AS col1
----
54

query I rowsort
SELECT ALL - 13 + - 86
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT 12 * COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4873
SELECT 12 * COUNT ( * )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT - COUNT( * ) + - 43 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4874
SELECT - COUNT ( * ) + - 43 AS col1
----
-44

query I rowsort
SELECT - 21 + - 51 * - - 0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4876
SELECT ALL COUNT( * ) AS col1, + ( + 83 )
----
1
83

skipif mysql # not compatible
query II rowsort label-4876
SELECT ALL COUNT ( * ) AS col1, + ( + 83 )
----
1
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4877
SELECT - - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT - - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + - COUNT( * ) + - 31 + 3 AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-4878
SELECT + - COUNT ( * ) + - 31 + 3 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL + - MAX( ALL + - 36 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + - MAX ( ALL + - 36 ) col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT DISTINCT + + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT + + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + + ( + 61 ) * - + 64 AS col0
----
-3904

query I rowsort
SELECT ( - + 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT MIN( DISTINCT - 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT MIN ( DISTINCT - 14 )
----
-14

query I rowsort
SELECT DISTINCT + + 5 * 5
----
25

query I rowsort
SELECT + + 30 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + COUNT( ALL - 69 )
----
1

skipif mysql # not compatible
query I rowsort label-4886
SELECT + COUNT ( ALL - 69 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4887
SELECT + 1 AS col0, - CAST( - - 81 AS SIGNED )
----
1
-81

skipif mysql # not compatible
query II rowsort label-4887
SELECT + 1 AS col0, - CAST ( - - 81 AS INTEGER )
----
1
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT + 66 AS col2, COUNT( * ) AS col2
----
66
1

skipif mysql # not compatible
query II rowsort label-4888
SELECT + 66 AS col2, COUNT ( * ) AS col2
----
66
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT - CAST( - - 65 AS SIGNED ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4889
SELECT - CAST ( - - 65 AS INTEGER ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT - + ( + SUM( - 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-4890
SELECT - + ( + SUM ( - 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4891
SELECT DISTINCT - 73 AS col0, COUNT( * ) AS col2
----
-73
1

skipif mysql # not compatible
query II rowsort label-4891
SELECT DISTINCT - 73 AS col0, COUNT ( * ) AS col2
----
-73
1

query I rowsort
SELECT ALL - ( - 17 ) col1
----
17

query I rowsort
SELECT ALL - 96 * + - 82
----
7872

query I rowsort
SELECT - + 21 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4895
SELECT 86, - COUNT( * ) AS col1
----
86
-1

skipif mysql # not compatible
query II rowsort label-4895
SELECT 86, - COUNT ( * ) AS col1
----
86
-1

query I rowsort
SELECT ALL 96 col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT SUM( ALL + 26 ) + + 43
----
69

skipif mysql # not compatible
query I rowsort label-4898
SELECT SUM ( ALL + 26 ) + + 43
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4899
SELECT ALL COUNT( * ) DIV + 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL COUNT ( * ) / + 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT 69 * + 6 + ( SUM( DISTINCT 50 ) ) AS col2
----
464

skipif mysql # not compatible
query I rowsort label-4900
SELECT 69 * + 6 + ( SUM ( DISTINCT 50 ) ) AS col2
----
464

query I rowsort
SELECT + + 57 AS col2
----
57

query I rowsort
SELECT + 27 + + 36 * + 14 col1
----
531

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT - + COUNT( * ) + 40 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4903
SELECT - + COUNT ( * ) + 40 AS col0
----
39

query I rowsort
SELECT - + ( + ( - 23 ) ) + + + 74 AS col1
----
97

query I rowsort
SELECT DISTINCT 67 - - 46 col0
----
113

query I rowsort
SELECT DISTINCT ( - 0 ) col1
----
0

query I rowsort
SELECT DISTINCT ( + 50 ) AS col1
----
50

query I rowsort
SELECT ALL ( + 1 ) AS col1
----
1

query II rowsort
SELECT - 97 col1, - 65 AS col2
----
-97
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT DISTINCT ( - ( - ( - COALESCE ( + 90, CAST( NULL AS SIGNED ) + 55 ) ) ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT ( - ( - ( - COALESCE ( + 90, CAST ( NULL AS INTEGER ) + 55 ) ) ) ) AS col0
----
-90

query I rowsort
SELECT ( 64 ) AS col0
----
64

query I rowsort
SELECT DISTINCT ( + - 40 )
----
-40

query I rowsort
SELECT 22 * 74
----
1628

query I rowsort
SELECT ALL - + ( 66 ) col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4915
SELECT ALL - - ( - CAST( NULL AS SIGNED ) ) AS col2, + 78 - - COUNT( * ) AS col0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-4915
SELECT ALL - - ( - CAST ( NULL AS INTEGER ) ) AS col2, + 78 - - COUNT ( * ) AS col0
----
NULL
79

query I rowsort
SELECT 5 * - 80
----
-400

query I rowsort
SELECT ( - + 61 ) * - ( + 26 )
----
1586

query II rowsort
SELECT ALL 61 AS col1, + 57 - - 30 AS col0
----
61
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT - - 36 DIV 32
----
1

skipif mysql # not compatible
query I rowsort label-4919
SELECT - - 36 / 32
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4920
SELECT DISTINCT + - 5 DIV + - ( 22 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4920
SELECT DISTINCT + - 5 / + - ( 22 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT + - 51 AS col0, + COUNT( * )
----
-51
1

skipif mysql # not compatible
query II rowsort label-4921
SELECT + - 51 AS col0, + COUNT ( * )
----
-51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT MIN( + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-4922
SELECT MIN ( + 67 )
----
67

query I rowsort
SELECT - ( - 83 ) AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT + - ( + - 13 ) + + CAST( - - 3 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-4924
SELECT + - ( + - 13 ) + + CAST ( - - 3 AS INTEGER )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ( - 55 ) * COUNT( * ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-4925
SELECT ( - 55 ) * COUNT ( * ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL - SUM( DISTINCT + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - SUM ( DISTINCT + 73 )
----
-73

query I rowsort
SELECT 46 * + 68
----
3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4928
SELECT COUNT( * ) - + SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT COUNT ( * ) - + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - - ( + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL COUNT( * ) + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL COUNT ( * ) + - 87
----
-86

query I rowsort
SELECT ALL + - 56 + + 16 col0
----
-40

query I rowsort
SELECT + ( 52 )
----
52

query I rowsort
SELECT + 24 - 87 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - - MIN( 30 ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-4934
SELECT - - MIN ( 30 ) AS col2
----
30

query I rowsort
SELECT ALL + 53 + - ( - 35 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT + 79 * COUNT( * ) - ( + 56 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-4936
SELECT + 79 * COUNT ( * ) - ( + 56 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT - ( COUNT( * ) ) * + 14 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4937
SELECT - ( COUNT ( * ) ) * + 14 AS col0
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-4938
SELECT + 93, - 3 DIV - + 24 AS col1
----
93
0

skipif mysql # not compatible
query II rowsort label-4938
SELECT + 93, - 3 / - + 24 AS col1
----
93
0

query I rowsort
SELECT DISTINCT ( - 65 )
----
-65

query I rowsort
SELECT ALL + 98 + - - 99
----
197

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT DISTINCT ( ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT ( ( COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL ( + ( - COALESCE ( COUNT( * ), 16, + COUNT( * ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL ( + ( - COALESCE ( COUNT ( * ), 16, + COUNT ( * ) ) ) )
----
-1

query I rowsort
SELECT ( 51 ) col2
----
51

query I rowsort
SELECT + ( + + 60 )
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT ALL - ( + + ( COUNT( * ) ) ) * - + 82 - + + COUNT( * ) AS col1, 74
----
81
74

skipif mysql # not compatible
query II rowsort label-4945
SELECT ALL - ( + + ( COUNT ( * ) ) ) * - + 82 - + + COUNT ( * ) AS col1, 74
----
81
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4946
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col1, 5
----
1
5

skipif mysql # not compatible
query II rowsort label-4946
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1, 5
----
1
5

query I rowsort
SELECT 34 * 47
----
1598

query I rowsort
SELECT 4 * 15 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-4949
SELECT ALL 82 DIV 68
----
1

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL 82 / 68
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4950
SELECT + CAST( NULL AS SIGNED ) * 67 - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4950
SELECT + CAST ( NULL AS INTEGER ) * 67 - 70 AS col1
----
NULL

query I rowsort
SELECT + - ( 24 )
----
-24

query I rowsort
SELECT ALL + 19 + 76 col2
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4953
SELECT DISTINCT - CAST( - 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT - CAST ( - 83 AS INTEGER )
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4954
SELECT ALL SUM( DISTINCT + CAST( NULL AS DECIMAL ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL SUM ( DISTINCT + CAST ( NULL AS REAL ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4955
SELECT DISTINCT - 97 + - CAST( 60 AS SIGNED ) col2
----
-157

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT - 97 + - CAST ( 60 AS INTEGER ) col2
----
-157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4956
SELECT DISTINCT - COUNT( * ) DIV + MAX( - 2 ) + 49
----
49

skipif mysql # not compatible
query I rowsort label-4956
SELECT DISTINCT - COUNT ( * ) / + MAX ( - 2 ) + 49
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT + ( + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT + ( + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT - COUNT( * ) + + - 80 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4958
SELECT - COUNT ( * ) + + - 80 AS col0
----
-81

query I rowsort
SELECT ALL 79 * ( - + 39 )
----
-3081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT + COUNT( * ) + + + 95 DIV - + 37 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4960
SELECT + COUNT ( * ) + + + 95 / - + 37 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 20
----
NULL

query I rowsort
SELECT 53 * + 46 * - 74 AS col0
----
-180412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4963
SELECT ALL + 13 + + COUNT( * ) + - CAST( - 71 AS SIGNED ) * 89 AS col2
----
6333

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + 13 + + COUNT ( * ) + - CAST ( - 71 AS INTEGER ) * 89 AS col2
----
6333

query I rowsort
SELECT - + ( - + 34 )
----
34

query I rowsort
SELECT - - 33 col0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT 2 col2, + COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-4966
SELECT 2 col2, + COUNT ( * )
----
2
1

query II rowsort
SELECT 97, 29 AS col1
----
97
29

query I rowsort
SELECT + 99 col1
----
99

query I rowsort
SELECT DISTINCT - 85 - + 1 AS col2
----
-86

query I rowsort
SELECT ALL - 36 * + 46 AS col0
----
-1656

query I rowsort
SELECT ALL ( 97 ) AS col2
----
97

query I rowsort
SELECT DISTINCT - 93 col2
----
-93

query I rowsort
SELECT ALL 13 * - + 47 AS col1
----
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL 77 * + + SUM( 90 ) col0
----
6930

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL 77 * + + SUM ( 90 ) col0
----
6930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL - CAST( NULL AS SIGNED ) * - 92 + + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - CAST ( NULL AS INTEGER ) * - 92 + + + 0
----
NULL

query I rowsort
SELECT DISTINCT 76 * + + 89 AS col1
----
6764

query I rowsort
SELECT + ( + 30 )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT MIN( DISTINCT ( + 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-4978
SELECT MIN ( DISTINCT ( + 17 ) )
----
17

query I rowsort
SELECT + + 1 + - + 51
----
-50

query I rowsort
SELECT DISTINCT ( - - 98 ) * 9
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4981
SELECT ALL MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 9 * 27
----
243

query I rowsort
SELECT ALL - 57 + + 32 AS col0
----
-25

query I rowsort
SELECT ALL - 86 + - 92
----
-178

onlyif mysql # aggregate syntax: 
query II rowsort label-4985
SELECT ALL - 48 col0, + 49 * COUNT( * ) AS col1
----
-48
49

skipif mysql # not compatible
query II rowsort label-4985
SELECT ALL - 48 col0, + 49 * COUNT ( * ) AS col1
----
-48
49

query I rowsort
SELECT DISTINCT - 89 col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL - SUM( DISTINCT - - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - SUM ( DISTINCT - - 20 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT + ( 32 ) + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-4988
SELECT + ( 32 ) + + COUNT ( * )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT DISTINCT - + 36 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - + 36 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT 97 * + - MIN( + 71 ) AS col2
----
-6887

skipif mysql # not compatible
query I rowsort label-4990
SELECT 97 * + - MIN ( + 71 ) AS col2
----
-6887

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT 54 - + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT 54 - + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4992
SELECT 19 * - COUNT( * ) DIV + 95 - + - 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-4992
SELECT 19 * - COUNT ( * ) / + 95 - + - 38 AS col0
----
38

query I rowsort
SELECT ALL - NULLIF ( - + 91, - + 14 )
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT ALL - COUNT( * ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL - COUNT ( * ) / 90
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4995
SELECT - + 31 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-4995
SELECT - + 31 / 46
----
0

query I rowsort
SELECT DISTINCT ( + - 74 ) col2
----
-74

query I rowsort
SELECT + 59 + + ( - + 28 )
----
31

query I rowsort
SELECT - - 75 * + 1
----
75

query I rowsort
SELECT - - 25 + + ( - - 81 )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - MAX( DISTINCT - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-5000
SELECT - MAX ( DISTINCT - 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT ALL - 73 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - 73 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 65 * - 13 + - 67 AS col2
----
778

query I rowsort
SELECT DISTINCT + + 66 * 37
----
2442

query I rowsort
SELECT DISTINCT - - 39 AS col0
----
39

query I rowsort
SELECT 41 - + 38 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT - MAX( + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-5006
SELECT - MAX ( + 75 )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT DISTINCT MAX( + - NULLIF ( + 42, - - 47 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT MAX ( + - NULLIF ( + 42, - - 47 ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT - - 7 * - MIN( ALL + 23 )
----
-161

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT - - 7 * - MIN ( ALL + 23 )
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + MIN( - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-5009
SELECT + MIN ( - 56 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5010
SELECT ALL - MIN( - CAST( - + 94 AS SIGNED ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - MIN ( - CAST ( - + 94 AS INTEGER ) ) AS col0
----
-94

query II rowsort
SELECT 83 AS col1, - 56
----
83
-56

query II rowsort
SELECT 18 AS col0, ( 83 ) AS col0
----
18
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT ALL - 16 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - 16 - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 67 AS col0, 39
----
-67
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL + MIN( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + MIN ( + 90 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5016
SELECT + 41 DIV - + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-5016
SELECT + 41 / - + COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT - COUNT( + 14 )
----
-1

skipif mysql # not compatible
query I rowsort label-5017
SELECT - COUNT ( + 14 )
----
-1

query I rowsort
SELECT - COALESCE ( 98, 45 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT + MIN( DISTINCT 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5019
SELECT + MIN ( DISTINCT 19 )
----
19

query II rowsort
SELECT DISTINCT 7 * + + 55, 91 AS col2
----
385
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT ALL + 74 * + - CAST( - COUNT( * ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + 74 * + - CAST ( - COUNT ( * ) AS INTEGER )
----
74

query I rowsort
SELECT - 48 - + 93
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL 48 - - - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL 48 - - - COUNT ( * ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT ALL - 88 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL - 88 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ( + ( + + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5025
SELECT ( + ( + + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5026
SELECT 41 * CAST( COUNT( * ) AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-5026
SELECT 41 * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
41

query I rowsort
SELECT 10 * + 37
----
370

query I rowsort
SELECT ALL - COALESCE ( - 34, + 77 ) AS col0
----
34

query I rowsort
SELECT DISTINCT - + 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT + SUM( DISTINCT + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-5030
SELECT + SUM ( DISTINCT + 59 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT + CAST( + 80 AS SIGNED ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5031
SELECT + CAST ( + 80 AS INTEGER ) AS col0
----
80

query I rowsort
SELECT + 57 * - 72
----
-4104

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL - 58 + + COUNT( * ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - 58 + + COUNT ( * ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - COUNT( DISTINCT - 38 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5034
SELECT - COUNT ( DISTINCT - 38 ) col2
----
-1

query I rowsort
SELECT + 24 * 13 AS col0
----
312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT - ( - + 75 ) DIV + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5036
SELECT - ( - + 75 ) / + COUNT ( * ) AS col2
----
75

query I rowsort
SELECT ( 15 )
----
15

query I rowsort
SELECT + ( - 73 ) AS col1
----
-73

query I rowsort
SELECT + 28 - + 26 AS col1
----
2

query I rowsort
SELECT ALL + + 25 AS col0
----
25

query I rowsort
SELECT + + 49 col0
----
49

query II rowsort
SELECT + 84 AS col0, - ( 69 )
----
84
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT + 4 + + + COUNT( * ) - + 32 + + + 86
----
59

skipif mysql # not compatible
query I rowsort label-5043
SELECT + 4 + + + COUNT ( * ) - + 32 + + + 86
----
59

query I rowsort
SELECT DISTINCT - 17 col2
----
-17

query II rowsort
SELECT ALL - 51 AS col0, - 85
----
-51
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5046
SELECT DISTINCT - + 30 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT - + 30 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 55 col1
----
55

query I rowsort
SELECT DISTINCT 42 col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL COUNT( * ) * - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL COUNT ( * ) * - COUNT ( * ) col2
----
-1

query I rowsort
SELECT - ( + ( + - 95 ) )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL + 66 + + COUNT( * ) col0
----
67

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL + 66 + + COUNT ( * ) col0
----
67

query II rowsort
SELECT - 7 col0, + 5 AS col1
----
-7
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5053
SELECT ALL - - 50 + + MIN( DISTINCT + CAST( - 25 AS SIGNED ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL - - 50 + + MIN ( DISTINCT + CAST ( - 25 AS INTEGER ) ) AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5054
SELECT - - SUM( DISTINCT - + 58 ) + 90, - 74 col0
----
32
-74

skipif mysql # not compatible
query II rowsort label-5054
SELECT - - SUM ( DISTINCT - + 58 ) + 90, - 74 col0
----
32
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT + 89 + - + COUNT( * ) * 5 + - - 15 * - + 52
----
-696

skipif mysql # not compatible
query I rowsort label-5055
SELECT + 89 + - + COUNT ( * ) * 5 + - - 15 * - + 52
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5056
SELECT CAST( NULL AS SIGNED ) AS col2, 34 + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5056
SELECT CAST ( NULL AS INTEGER ) AS col2, 34 + CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + + 25 ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT 37 * - - 99 + COUNT( * )
----
3664

skipif mysql # not compatible
query I rowsort label-5058
SELECT 37 * - - 99 + COUNT ( * )
----
3664

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - - COUNT( ALL - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-5059
SELECT - - COUNT ( ALL - 99 )
----
1

query I rowsort
SELECT DISTINCT ( 54 )
----
54

query I rowsort
SELECT - 73 * 50 * 70 AS col0
----
-255500

query I rowsort
SELECT 41 * + 73
----
2993

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT + 87 + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5063
SELECT + 87 + COUNT ( * )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5064
SELECT ALL - CAST( 25 AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - CAST ( 25 AS INTEGER ) AS col2
----
-25

query I rowsort
SELECT DISTINCT + 81 col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT - 33 AS col1, COUNT( * ) AS col2
----
-33
1

skipif mysql # not compatible
query II rowsort label-5066
SELECT - 33 AS col1, COUNT ( * ) AS col2
----
-33
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT ( + COUNT( * ) ), - 97 col1
----
1
-97

skipif mysql # not compatible
query II rowsort label-5067
SELECT ( + COUNT ( * ) ), - 97 col1
----
1
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + 63 * - - COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5068
SELECT + 63 * - - COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT 52 * + + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT 52 * + + COUNT ( * )
----
52

query I rowsort
SELECT + COALESCE ( 62, + 31 ) AS col2
----
62

query I rowsort
SELECT 39 * + - 34 AS col2
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT - SUM( - + 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT - SUM ( - + 73 ) AS col0
----
73

query I rowsort
SELECT ALL - ( + - 33 )
----
33

query I rowsort
SELECT DISTINCT - 29 * + 17
----
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + COUNT( ALL - - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-5075
SELECT + COUNT ( ALL - - 67 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - ( + + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5076
SELECT - ( + + COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT ALL - 63 + + + 81
----
18

query II rowsort
SELECT ALL 65 AS col0, + 63 + 32
----
65
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT DISTINCT COUNT( * ) - - 73
----
74

skipif mysql # not compatible
query I rowsort label-5079
SELECT DISTINCT COUNT ( * ) - - 73
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5080
SELECT DISTINCT - 43 DIV + COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - 43 / + COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT - COUNT( * ) * - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * )
----
1

query I rowsort
SELECT + ( 83 )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5083
SELECT + COUNT( * ) AS col1, 4
----
1
4

skipif mysql # not compatible
query II rowsort label-5083
SELECT + COUNT ( * ) AS col1, 4
----
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT - + MAX( - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-5084
SELECT - + MAX ( - 63 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5085
SELECT ALL CAST( NULL AS SIGNED ) + + SUM( + + ( - 40 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL CAST ( NULL AS INTEGER ) + + SUM ( + + ( - 40 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT + 40 + - COALESCE ( - - CAST( NULL AS SIGNED ), + - 52 ) col0
----
92

skipif mysql # not compatible
query I rowsort label-5086
SELECT + 40 + - COALESCE ( - - CAST ( NULL AS INTEGER ), + - 52 ) col0
----
92

query I rowsort
SELECT ALL + ( - 54 ) AS col0
----
-54

query I rowsort
SELECT ALL ( + 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL ( - ( + ( + - COUNT( * ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL ( - ( + ( + - COUNT ( * ) ) ) )
----
1

query I rowsort
SELECT + 53 + 3 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT - MIN( - 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5091
SELECT - MIN ( - 83 ) AS col2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT + 34 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-5092
SELECT + 34 / + 75
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5093
SELECT 62 AS col0, - COUNT( * )
----
62
-1

skipif mysql # not compatible
query II rowsort label-5093
SELECT 62 AS col0, - COUNT ( * )
----
62
-1

query I rowsort
SELECT ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT - 62 + COUNT( * ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-5095
SELECT - 62 + COUNT ( * ) col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5096
SELECT DISTINCT - MIN( 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT - MIN ( 96 )
----
-96

query I rowsort
SELECT - 8 - - - 50
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5098
SELECT 35 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5098
SELECT 35 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT COUNT( * ) + 89 AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5099
SELECT COUNT ( * ) + 89 AS col2
----
90

query I rowsort
SELECT ALL 41 * + 36 AS col2
----
1476

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5101
SELECT DISTINCT + - 9 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + - 9 + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT 74 * SUM( + + 49 )
----
3626

skipif mysql # not compatible
query I rowsort label-5103
SELECT 74 * SUM ( + + 49 )
----
3626

query I rowsort
SELECT ( - 99 ) AS col0
----
-99

query I rowsort
SELECT DISTINCT - ( - 49 ) AS col0
----
49

query I rowsort
SELECT DISTINCT - + 32 AS col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT ALL + COUNT( * ) DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL + COUNT ( * ) / 65 AS col1
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( - 18, + 28 ) + + 98
----
80

query I rowsort
SELECT ALL + ( 63 ) AS col0
----
63

query I rowsort
SELECT ALL + - 31 - - 63
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL + - COUNT( * ) * 90 - + 77 + 5
----
-162

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL + - COUNT ( * ) * 90 - + 77 + 5
----
-162

query I rowsort
SELECT + + 94 AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5113
SELECT - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * MIN( - + CAST( NULL AS SIGNED ) ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5113
SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT COUNT( ALL + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-5114
SELECT COUNT ( ALL + 24 )
----
1

query I rowsort
SELECT DISTINCT 75 + 16
----
91

query I rowsort
SELECT ALL - - 66 * - - 69
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT - 13 + - COUNT( * ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-5117
SELECT - 13 + - COUNT ( * ) col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5118
SELECT ALL - COUNT( - CAST( - 7 AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL - COUNT ( - CAST ( - 7 AS REAL ) )
----
-1

query I rowsort
SELECT 98 + + - 17
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT CAST( NULL AS SIGNED ) - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT CAST ( NULL AS INTEGER ) - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5121
SELECT ALL - 2 - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL - 2 - - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT 70 * + 35
----
2450

query I rowsort
SELECT DISTINCT - 40 col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT COUNT( + + 16 ) - - - 46 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-5124
SELECT COUNT ( + + 16 ) - - - 46 AS col0
----
-45

query I rowsort
SELECT ALL + COALESCE ( + - 54, 24 ) * - 71 AS col2
----
3834

onlyif mysql # aggregate syntax: 
query II rowsort label-5126
SELECT ( + + COUNT( * ) ) + - - COUNT( * ) AS col2, + 86 AS col2
----
2
86

skipif mysql # not compatible
query II rowsort label-5126
SELECT ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col2, + 86 AS col2
----
2
86

query I rowsort
SELECT ( + 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5128
SELECT ALL - COUNT( * ) * 30 col0
----
-30

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - COUNT ( * ) * 30 col0
----
-30

query I rowsort
SELECT DISTINCT 88 * - 27
----
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT ALL COUNT( * ) * + 32
----
32

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL COUNT ( * ) * + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT COUNT( - ( - 23 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5131
SELECT COUNT ( - ( - 23 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - ( - - COUNT( * ) ) + - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT - ( - - COUNT ( * ) ) + - - COUNT ( * )
----
0

query I rowsort
SELECT - - 81 AS col0
----
81

query I rowsort
SELECT ALL - - 93 + ( - 47 ) AS col0
----
46

query I rowsort
SELECT ALL 47 * - ( - + 10 )
----
470

query I rowsort
SELECT ( + + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT + ( - + ( NULLIF ( - - 75, + + COUNT( * ) ) ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-5137
SELECT + ( - + ( NULLIF ( - - 75, + + COUNT ( * ) ) ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT + NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + + COUNT( * ) + - 96 + - 95
----
-190

skipif mysql # not compatible
query I rowsort label-5139
SELECT + + COUNT ( * ) + - 96 + - 95
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5140
SELECT 69 + + CAST( - 7 AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-5140
SELECT 69 + + CAST ( - 7 AS INTEGER ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT + SUM( ALL + + 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5141
SELECT + SUM ( ALL + + 33 ) AS col0
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT 98 DIV + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-5142
SELECT 98 / + COUNT ( * ) AS col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5143
SELECT + CAST( 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5143
SELECT + CAST ( 63 AS INTEGER ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT ALL - + MIN( - + 75 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-5144
SELECT ALL - + MIN ( - + 75 ) col1
----
75

query I rowsort
SELECT + ( - ( 73 ) ) + - 93
----
-166

query I rowsort
SELECT + 35 - 55 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL COUNT( 58 )
----
1

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL COUNT ( 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT - NULLIF ( + COUNT( * ), - 63 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5148
SELECT - NULLIF ( + COUNT ( * ), - 63 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT - 62 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-5149
SELECT - 62 / - 87
----
0

query I rowsort
SELECT DISTINCT + - 93 col2
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5151
SELECT - - 61 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT - - 61 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT SUM( + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5152
SELECT SUM ( + 22 )
----
22

query I rowsort
SELECT DISTINCT + - 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT DISTINCT ( - + COUNT( * ) ) + + 62 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT ( - + COUNT ( * ) ) + + 62 AS col0
----
61

query I rowsort
SELECT + COALESCE ( + - 83, - - 36 ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL + 26 + + ( COUNT( DISTINCT 97 ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL + 26 + + ( COUNT ( DISTINCT 97 ) ) AS col0
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5157
SELECT COUNT( * ) DIV 49 col1
----
0

skipif mysql # not compatible
query I rowsort label-5157
SELECT COUNT ( * ) / 49 col1
----
0

query I rowsort
SELECT DISTINCT + 36 * - 66 AS col0
----
-2376

query I rowsort
SELECT DISTINCT - 41 col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT ALL - CAST( 83 AS SIGNED ) + + 92
----
9

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - CAST ( 83 AS INTEGER ) + + 92
----
9

query I rowsort
SELECT DISTINCT 93 - 37
----
56

query I rowsort
SELECT DISTINCT 57 - - 22
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-5163
SELECT - + 44, COUNT( * ) AS col2
----
-44
1

skipif mysql # not compatible
query II rowsort label-5163
SELECT - + 44, COUNT ( * ) AS col2
----
-44
1

query I rowsort
SELECT ALL 52 * + - ( + ( - 71 ) )
----
3692

query I rowsort
SELECT ALL + ( - 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL MAX( DISTINCT 55 )
----
55

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL MAX ( DISTINCT 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT + MIN( DISTINCT + ( + 2 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5167
SELECT + MIN ( DISTINCT + ( + 2 ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT 41 * - COUNT( * ) + - 97
----
-138

skipif mysql # not compatible
query I rowsort label-5168
SELECT 41 * - COUNT ( * ) + - 97
----
-138

query II rowsort
SELECT + 85, + 84 col2
----
85
84

query I rowsort
SELECT + ( 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT - 68 * + + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-5171
SELECT - 68 * + + COUNT ( * )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5172
SELECT - CAST( - MAX( DISTINCT + 76 ) AS SIGNED ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-5172
SELECT - CAST ( - MAX ( DISTINCT + 76 ) AS INTEGER ) AS col1
----
76

query I rowsort
SELECT DISTINCT - 49 + - - 86 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL - MAX( 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL - MAX ( 97 ) AS col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT + 40 * - COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-5175
SELECT + 40 * - COUNT ( * ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT ALL + - 73 + + 24 AS col0, MIN( - + ( - 10 ) ) AS col0
----
-49
10

skipif mysql # not compatible
query II rowsort label-5176
SELECT ALL + - 73 + + 24 AS col0, MIN ( - + ( - 10 ) ) AS col0
----
-49
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT + MAX( ALL + - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-5177
SELECT + MAX ( ALL + - 42 )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT ALL - 71 DIV 21 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL - 71 / 21 AS col1
----
-3

query I rowsort
SELECT ALL ( - ( 38 ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT - 42 * COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-5180
SELECT - 42 * COUNT ( * )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5181
SELECT ALL 25 / - MIN( ALL CAST( NULL AS SIGNED ) ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL 25 / - MIN ( ALL CAST ( NULL AS INTEGER ) ) + 98
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT CAST( 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-5182
SELECT CAST ( 35 AS INTEGER )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT + 34 * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-5183
SELECT + 34 * COUNT ( * )
----
34

query I rowsort
SELECT DISTINCT 68 * 26
----
1768

query I rowsort
SELECT - - 43 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT - + MIN( + 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-5186
SELECT - + MIN ( + 48 )
----
-48

query I rowsort
SELECT 92 * - 12
----
-1104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT - SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT - SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 31 * + + 90 AS col1
----
-2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5190
SELECT ALL 13 * + COUNT( * ) DIV + 33 col0
----
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL 13 * + COUNT ( * ) / + 33 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT COUNT( * ) * 56 * - + 13 AS col0
----
-728

skipif mysql # not compatible
query I rowsort label-5191
SELECT COUNT ( * ) * 56 * - + 13 AS col0
----
-728

query I rowsort
SELECT ALL - 84 * + 28
----
-2352

query I rowsort
SELECT ALL - ( + - 67 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT + - CAST( 21 AS SIGNED )
----
-21

skipif mysql # not compatible
query I rowsort label-5195
SELECT + - CAST ( 21 AS INTEGER )
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT 3 * 54 + - + CAST( NULL AS SIGNED ) - - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT 3 * 54 + - + CAST ( NULL AS INTEGER ) - - 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - SUM( - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-5197
SELECT - SUM ( - - 37 )
----
-37

query I rowsort
SELECT - ( - 26 ) AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT DISTINCT CAST( 79 AS SIGNED ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT CAST ( 79 AS INTEGER ) AS col0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5200
SELECT DISTINCT SUM( CAST( 6 AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT SUM ( CAST ( 6 AS INTEGER ) )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-5201
SELECT DISTINCT COUNT( * ) AS col0, 35 AS col0
----
1
35

skipif mysql # not compatible
query II rowsort label-5201
SELECT DISTINCT COUNT ( * ) AS col0, 35 AS col0
----
1
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5202
SELECT ALL - 52 DIV + 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL - 52 / + 14 AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5203
SELECT DISTINCT 21 DIV - + ( - COUNT( * ) )
----
21

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT 21 / - + ( - COUNT ( * ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL MIN( ALL + 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL MIN ( ALL + 98 ) AS col1
----
98

query I rowsort
SELECT ALL 64 - - ( + 33 )
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5206
SELECT + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT - COUNT( * ) + 31 * - COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT - COUNT ( * ) + 31 * - COUNT ( * ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT COUNT( * ) * + 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-5208
SELECT COUNT ( * ) * + 90 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT ALL + MAX( 81 ) col2
----
81

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + MAX ( 81 ) col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5210
SELECT DISTINCT COUNT( * ) * - + CAST( - 32 AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT COUNT ( * ) * - + CAST ( - 32 AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT MAX( - - 77 ) col2
----
77

skipif mysql # not compatible
query I rowsort label-5211
SELECT MAX ( - - 77 ) col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT - + 99 * + MAX( - - 30 )
----
-2970

skipif mysql # not compatible
query I rowsort label-5212
SELECT - + 99 * + MAX ( - - 30 )
----
-2970

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5213
SELECT - 88 * + - CAST( 47 AS SIGNED ) AS col1, 56 AS col0
----
4136
56

skipif mysql # not compatible
query II rowsort label-5213
SELECT - 88 * + - CAST ( 47 AS INTEGER ) AS col1, 56 AS col0
----
4136
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT + NULLIF ( - 75, + COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-5214
SELECT + NULLIF ( - 75, + COUNT ( * ) )
----
-75

query I rowsort
SELECT ( 10 )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT DISTINCT - MAX( CAST( - 31 AS SIGNED ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - MAX ( CAST ( - 31 AS INTEGER ) ) AS col0
----
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5217
SELECT CAST( NULL AS DECIMAL ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-5217
SELECT CAST ( NULL AS REAL ) + - 8
----
NULL

query I rowsort
SELECT ALL ( - - 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT COUNT( - 50 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5219
SELECT COUNT ( - 50 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT + MIN( - + 92 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-5220
SELECT + MIN ( - + 92 ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5221
SELECT DISTINCT - - 49 * + + SUM( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT - - 49 * + + SUM ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5222
SELECT - - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5222
SELECT - - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT + COUNT( 36 )
----
1

skipif mysql # not compatible
query I rowsort label-5223
SELECT + COUNT ( 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT ( - - COUNT( * ) ) - + COUNT( * ) * + 29
----
-28

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT ( - - COUNT ( * ) ) - + COUNT ( * ) * + 29
----
-28

query I rowsort
SELECT - NULLIF ( + 37, - + 68 ) + 10
----
-27

query I rowsort
SELECT ALL 86 * + ( + 47 )
----
4042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT ( - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ( - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT + CAST( - 91 AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5228
SELECT + CAST ( - 91 AS INTEGER ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT + COUNT( * ) + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5229
SELECT + COUNT ( * ) + 95 AS col1
----
96

query I rowsort
SELECT ALL + 77 * NULLIF ( + 29, + 19 + - 54 * - - 32 ) AS col0
----
2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT - CAST( CAST( - 28 AS SIGNED ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-5231
SELECT - CAST ( CAST ( - 28 AS INTEGER ) AS INTEGER )
----
28

query I rowsort
SELECT - 63 * - 68 AS col0
----
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT COUNT( * ) * 78 * - - 37 col0
----
2886

skipif mysql # not compatible
query I rowsort label-5233
SELECT COUNT ( * ) * 78 * - - 37 col0
----
2886

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL - COUNT( ALL + + 44 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - COUNT ( ALL + + 44 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT MAX( DISTINCT - + 43 ) + COUNT( * ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-5235
SELECT MAX ( DISTINCT - + 43 ) + COUNT ( * ) col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT DISTINCT + COUNT( * ) * - - COUNT( * ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT + COUNT ( * ) * - - COUNT ( * ) * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5237
SELECT 59 * + COUNT( * ) * - COUNT( * ) * + 51 DIV - COUNT( * ), 31 AS col0
----
3009
31

skipif mysql # not compatible
query II rowsort label-5237
SELECT 59 * + COUNT ( * ) * - COUNT ( * ) * + 51 / - COUNT ( * ), 31 AS col0
----
3009
31

query I rowsort
SELECT DISTINCT - NULLIF ( + + 60, - - 17 * - ( 0 ) ) * 14
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5239
SELECT 98 * - ( - - COUNT( * ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5239
SELECT 98 * - ( - - COUNT ( * ) ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT + MIN( + + 63 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-5240
SELECT + MIN ( + + 63 ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT COUNT( * ) + - 76 - - 28 + - 83
----
-130

skipif mysql # not compatible
query I rowsort label-5241
SELECT COUNT ( * ) + - 76 - - 28 + - 83
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT ALL - 24 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL - 24 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT + SUM( + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5243
SELECT + SUM ( + 22 )
----
22

query I rowsort
SELECT DISTINCT + ( 59 ) AS col2
----
59

query I rowsort
SELECT ALL ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5246
SELECT DISTINCT + 97 col1, - 46 * COUNT( * ) AS col1
----
97
-46

skipif mysql # not compatible
query II rowsort label-5246
SELECT DISTINCT + 97 col1, - 46 * COUNT ( * ) AS col1
----
97
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT 50 * - - COUNT( * ) + - + 33
----
17

skipif mysql # not compatible
query I rowsort label-5247
SELECT 50 * - - COUNT ( * ) + - + 33
----
17

query I rowsort
SELECT DISTINCT 79 * - 57
----
-4503

query I rowsort
SELECT ALL - - 41 AS col0
----
41

query I rowsort
SELECT ALL - - 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT ALL CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT 55 - MAX( DISTINCT 6 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5252
SELECT 55 - MAX ( DISTINCT 6 ) AS col1
----
49

query I rowsort
SELECT 93 * + 99
----
9207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT - 5 * CAST( - - 13 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-5254
SELECT - 5 * CAST ( - - 13 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT - ( - - COUNT( ALL 54 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5255
SELECT - ( - - COUNT ( ALL 54 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5256
SELECT DISTINCT + COUNT( * ) AS col2, 43
----
1
43

skipif mysql # not compatible
query II rowsort label-5256
SELECT DISTINCT + COUNT ( * ) AS col2, 43
----
1
43

query I rowsort
SELECT DISTINCT + ( - 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5258
SELECT ( - - ( + - 73 ) ) col0, - 28 * - 86 + COUNT( DISTINCT 14 ) AS col1
----
-73
2409

skipif mysql # not compatible
query II rowsort label-5258
SELECT ( - - ( + - 73 ) ) col0, - 28 * - 86 + COUNT ( DISTINCT 14 ) AS col1
----
-73
2409

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL COUNT( * ) * - 21
----
-21

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL COUNT ( * ) * - 21
----
-21

query I rowsort
SELECT 68 * + 97 AS col0
----
6596

query II rowsort
SELECT DISTINCT - ( + 53 ) AS col1, + 58
----
-53
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5262
SELECT ALL - 48 AS col1, COUNT( * )
----
-48
1

skipif mysql # not compatible
query II rowsort label-5262
SELECT ALL - 48 AS col1, COUNT ( * )
----
-48
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5263
SELECT DISTINCT 36 DIV - ( 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT 36 / - ( 27 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT 39 * - CAST( NULL AS SIGNED ) * 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT 39 * - CAST ( NULL AS INTEGER ) * 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + MIN( DISTINCT 45 )
----
45

skipif mysql # not compatible
query I rowsort label-5265
SELECT + MIN ( DISTINCT 45 )
----
45

query I rowsort
SELECT DISTINCT 85 * - + 62
----
-5270

query I rowsort
SELECT ALL - 82 - + 78 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL 87 + - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL 87 + - COUNT ( * )
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5269
SELECT ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5269
SELECT ( - + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + 67 col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT DISTINCT + - MAX( 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT + - MAX ( 30 )
----
-30

query II rowsort
SELECT - 93 - - 27 AS col0, - 2
----
-66
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT + COUNT( ALL 48 )
----
1

skipif mysql # not compatible
query I rowsort label-5273
SELECT + COUNT ( ALL 48 )
----
1

query I rowsort
SELECT ALL 67 * - 37 AS col1
----
-2479

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT DISTINCT - COUNT( 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT - COUNT ( 3 )
----
-1

query I rowsort
SELECT ALL - - 87 AS col0
----
87

query I rowsort
SELECT + - 71 col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT SUM( - 74 ) + + 63 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-5278
SELECT SUM ( - 74 ) + + 63 AS col1
----
-11

query I rowsort
SELECT + 19 * 23 + 85 AS col0
----
522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5280
SELECT DISTINCT + 34 - CAST( + COUNT( * ) AS SIGNED ) - + 91 * + ( + 19 )
----
-1696

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + 34 - CAST ( + COUNT ( * ) AS INTEGER ) - + 91 * + ( + 19 )
----
-1696

query I rowsort
SELECT 68 - 81
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5282
SELECT ALL SUM( - 45 ) * + + CAST( NULL AS SIGNED ) * + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL SUM ( - 45 ) * + + CAST ( NULL AS INTEGER ) * + 0
----
NULL

query I rowsort
SELECT ALL + - 45 + + + 62 AS col1
----
17

query I rowsort
SELECT ALL 28 + - + 76 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT - COUNT( * ) - + 63
----
-64

skipif mysql # not compatible
query I rowsort label-5285
SELECT - COUNT ( * ) - + 63
----
-64

query I rowsort
SELECT - ( 89 ) AS col2
----
-89

query I rowsort
SELECT + 85 col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT - MAX( - 18 ) * - + 8 + ( + 92 )
----
-52

skipif mysql # not compatible
query I rowsort label-5288
SELECT - MAX ( - 18 ) * - + 8 + ( + 92 )
----
-52

query I rowsort
SELECT ( + - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + MIN( ALL - - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-5290
SELECT + MIN ( ALL - - 44 )
----
44

query I rowsort
SELECT ALL + + 86 col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT + - MIN( 45 ) * ( + 56 )
----
-2520

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT + - MIN ( 45 ) * ( + 56 )
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT ALL - SUM( DISTINCT - + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL - SUM ( DISTINCT - + 93 ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5294
SELECT ALL CAST( - + MIN( CAST( NULL AS SIGNED ) ) AS SIGNED ) + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL CAST ( - + MIN ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT COUNT( * ) - + - 62 * + 93 * - 52
----
-299831

skipif mysql # not compatible
query I rowsort label-5295
SELECT COUNT ( * ) - + - 62 * + 93 * - 52
----
-299831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT 83 - CAST( NULL AS SIGNED ) - + 27 + + 37 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5296
SELECT 83 - CAST ( NULL AS INTEGER ) - + 27 + + 37 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - SUM( ALL + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - SUM ( ALL + 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT ALL + 57 * - - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + 57 * - - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5299
SELECT COUNT( * ), SUM( - + 13 ) AS col2
----
1
-13

skipif mysql # not compatible
query II rowsort label-5299
SELECT COUNT ( * ), SUM ( - + 13 ) AS col2
----
1
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT SUM( 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5300
SELECT SUM ( 51 ) AS col0
----
51

query I rowsort
SELECT DISTINCT + 57 * + - 41 AS col1
----
-2337

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT ALL - COUNT( + 36 ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - COUNT ( + 36 ) * - 95
----
95

query I rowsort
SELECT ( + - 74 )
----
-74

query II rowsort
SELECT DISTINCT + 14 AS col0, 69
----
14
69

query I rowsort
SELECT - 25 * - 56
----
1400

query I rowsort
SELECT 28 + + 93
----
121

query I rowsort
SELECT DISTINCT - - ( - + 68 ) AS col0
----
-68

query I rowsort
SELECT - - ( + - 91 )
----
-91

query I rowsort
SELECT 28 + - + 30 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5310
SELECT CAST( NULL AS SIGNED ) / + + 83 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT CAST ( NULL AS INTEGER ) / + + 83 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5311
SELECT CAST( NULL AS SIGNED ) / 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5311
SELECT CAST ( NULL AS INTEGER ) / 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5312
SELECT COUNT( * ) AS col0, - 4 AS col1
----
1
-4

skipif mysql # not compatible
query II rowsort label-5312
SELECT COUNT ( * ) AS col0, - 4 AS col1
----
1
-4

query I rowsort
SELECT 88 * + 95 AS col2
----
8360

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT DISTINCT ( + COUNT( * ) ) * - - 20 col2
----
20

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT ( + COUNT ( * ) ) * - - 20 col2
----
20

query I rowsort
SELECT - 41 + - 33 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + MAX( ALL 54 ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-5316
SELECT + MAX ( ALL 54 ) AS col2
----
54

query I rowsort
SELECT DISTINCT + 3 col2
----
3

query I rowsort
SELECT ALL - 18 * + 45
----
-810

query I rowsort
SELECT + 25 - 2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT + CAST( NULL AS SIGNED ) + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT + CAST ( NULL AS INTEGER ) + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT ALL - COUNT( * ) * + 38 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - COUNT ( * ) * + 38 AS col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT CAST( NULL AS SIGNED ) + SUM( ALL + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT CAST ( NULL AS INTEGER ) + SUM ( ALL + 19 )
----
NULL

query I rowsort
SELECT 72 * - - ( - 86 ) AS col1
----
-6192

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT MIN( ALL 57 ) + + 63 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-5324
SELECT MIN ( ALL 57 ) + + 63 AS col2
----
120

query I rowsort
SELECT DISTINCT + 69 * 95 AS col1
----
6555

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT 87 + + - ( + SUM( DISTINCT ( + - 3 ) ) )
----
90

skipif mysql # not compatible
query I rowsort label-5326
SELECT 87 + + - ( + SUM ( DISTINCT ( + - 3 ) ) )
----
90

query II rowsort
SELECT + 25, + 86 AS col0
----
25
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT + SUM( DISTINCT + + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5328
SELECT + SUM ( DISTINCT + + 53 ) AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5329
SELECT DISTINCT + COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 89 col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT DISTINCT 34 * + 7 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT 34 * + 7 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT - + 20 - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-5332
SELECT - + 20 - COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5333
SELECT MAX( DISTINCT + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-5333
SELECT MAX ( DISTINCT + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL ( - SUM( - 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL ( - SUM ( - 99 ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + - COUNT( * ) + + + 52
----
51

skipif mysql # not compatible
query I rowsort label-5335
SELECT + - COUNT ( * ) + + + 52
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT ALL + MIN( ALL 14 )
----
14

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL + MIN ( ALL 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT + + COUNT( - 27 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5337
SELECT + + COUNT ( - 27 ) col2
----
1

query I rowsort
SELECT DISTINCT + ( 20 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5339
SELECT + COUNT( - 93 )
----
1

skipif mysql # not compatible
query I rowsort label-5339
SELECT + COUNT ( - 93 )
----
1

query I rowsort
SELECT DISTINCT - 11 * + 20
----
-220

query I rowsort
SELECT DISTINCT - 67 * + 6 * - 97
----
38994

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT 2 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-5342
SELECT 2 / + 28
----
0

query I rowsort
SELECT 65 * 38
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT COUNT( DISTINCT + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( DISTINCT + 56 )
----
1

query I rowsort
SELECT DISTINCT - ( - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT ALL COUNT( * ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL COUNT ( * ) * 75
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL + SUM( + 72 ) * - + CAST( NULL AS SIGNED ) + - COUNT( + + 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL + SUM ( + 72 ) * - + CAST ( NULL AS INTEGER ) + - COUNT ( + + 72 )
----
NULL

query I rowsort
SELECT DISTINCT - 11 * - 47 AS col0
----
517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5349
SELECT + COUNT( * ) DIV - - 78
----
0

skipif mysql # not compatible
query I rowsort label-5349
SELECT + COUNT ( * ) / - - 78
----
0

query I rowsort
SELECT ALL + - 58 + - 18
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5351
SELECT + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT + ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT 65 * + + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5352
SELECT 65 * + + COUNT ( * ) AS col2
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5353
SELECT - COUNT( * ) / - MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) - - 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT - COUNT ( * ) / - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) - - 0 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT ALL - CAST( NULL AS SIGNED ) + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL - CAST ( NULL AS INTEGER ) + - 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT + COUNT( * ) - + MIN( - 5 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT + COUNT ( * ) - + MIN ( - 5 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5356
SELECT DISTINCT 77 * ( + CAST( - 7 AS SIGNED ) )
----
-539

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT 77 * ( + CAST ( - 7 AS INTEGER ) )
----
-539

query I rowsort
SELECT ( + 79 ) AS col0
----
79

query I rowsort
SELECT + - ( - + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT - MAX( DISTINCT - ( + - 39 ) ) + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-5359
SELECT - MAX ( DISTINCT - ( + - 39 ) ) + - COUNT ( * )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5360
SELECT ALL + 62 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL + 62 / 20
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT - NULLIF ( - COUNT( * ), + - 58 ) + + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5361
SELECT - NULLIF ( - COUNT ( * ), + - 58 ) + + 70 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + 70 * - - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-5362
SELECT + 70 * - - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT + - COUNT( * ) AS col1, 12
----
-1
12

skipif mysql # not compatible
query II rowsort label-5363
SELECT + - COUNT ( * ) AS col1, 12
----
-1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL - 3 * + COUNT( * ) AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - 3 * + COUNT ( * ) AS col0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5365
SELECT ALL 39 DIV COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL 39 / COUNT ( * )
----
39

query II rowsort
SELECT 99 AS col2, 6 + - + 10
----
99
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT ( + 92 ) * + SUM( DISTINCT - 73 ) + 13 AS col2
----
-6703

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT ( + 92 ) * + SUM ( DISTINCT - 73 ) + 13 AS col2
----
-6703

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT - COUNT( * ) AS col2, 6 AS col0
----
-1
6

skipif mysql # not compatible
query II rowsort label-5368
SELECT - COUNT ( * ) AS col2, 6 AS col0
----
-1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5369
SELECT DISTINCT + + CAST( 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT + + CAST ( 64 AS INTEGER )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5370
SELECT DISTINCT + + CAST( - - 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + + CAST ( - - 43 AS INTEGER )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5371
SELECT ALL + CAST( NULL AS SIGNED ) * 2 - - + COUNT( * ) * + SUM( ALL 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + CAST ( NULL AS INTEGER ) * 2 - - + COUNT ( * ) * + SUM ( ALL 11 )
----
NULL

query I rowsort
SELECT ALL + - 5 AS col2
----
-5

query I rowsort
SELECT - 74 - + 41 AS col0
----
-115

query I rowsort
SELECT - 67 * + 84
----
-5628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5375
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL COUNT( * ) + ( - 74 ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL COUNT ( * ) + ( - 74 ) AS col1
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT DISTINCT COUNT( * ) * 16 col1
----
16

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT COUNT ( * ) * 16 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT DISTINCT 52 * - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT 52 * - COUNT ( * ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT - SUM( - 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT - SUM ( - 11 ) AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5380
SELECT ALL + ( + COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT MAX( ALL 52 ) * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-5381
SELECT MAX ( ALL 52 ) * COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL COUNT( * ) * 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5382
SELECT ALL COUNT ( * ) * 61 AS col1
----
61

query I rowsort
SELECT ALL ( 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5384
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 71 - - 28 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT - NULLIF ( + - 26, 69 * - COUNT( * ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5386
SELECT - NULLIF ( + - 26, 69 * - COUNT ( * ) ) AS col1
----
26

query I rowsort
SELECT - 26 + + + 82 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT ALL - 67 + + + COALESCE ( + MAX( 88 ), 17 )
----
21

skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - 67 + + + COALESCE ( + MAX ( 88 ), 17 )
----
21

query I rowsort
SELECT - ( 60 ) AS col2
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 57 col1
----
-57

query I rowsort
SELECT - - 98 AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-5393
SELECT ALL + 64 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + 64 / + 81 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT ALL - CAST( - + 87 AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL - CAST ( - + 87 AS INTEGER ) AS col0
----
87

query I rowsort
SELECT DISTINCT - + 29
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT DISTINCT - COUNT( * ) AS col0, - 72
----
-1
-72

skipif mysql # not compatible
query II rowsort label-5396
SELECT DISTINCT - COUNT ( * ) AS col0, - 72
----
-1
-72

query I rowsort
SELECT ALL + 6 * - + 92 AS col1
----
-552

query I rowsort
SELECT - 21 - - + 70 - + 19
----
30

query I rowsort
SELECT ALL - - ( + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT - 34 + COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT - 34 + COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5401
SELECT ALL 56 DIV - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL 56 / - COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT - SUM( DISTINCT - 99 ) col1
----
99

skipif mysql # not compatible
query I rowsort label-5402
SELECT - SUM ( DISTINCT - 99 ) col1
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5403
SELECT - COUNT( * ) AS col0, 47 AS col0
----
-1
47

skipif mysql # not compatible
query II rowsort label-5403
SELECT - COUNT ( * ) AS col0, 47 AS col0
----
-1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL MIN( ALL 25 )
----
25

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL MIN ( ALL 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT + ( - ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5405
SELECT + ( - ( COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT ALL - + ( 92 ) * - COUNT( * ) + + ( 6 ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - + ( 92 ) * - COUNT ( * ) + + ( 6 ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT ALL + COUNT( * ) AS col2, - 6
----
1
-6

skipif mysql # not compatible
query II rowsort label-5407
SELECT ALL + COUNT ( * ) AS col2, - 6
----
1
-6

query I rowsort
SELECT ALL 95 col2
----
95

query II rowsort
SELECT DISTINCT 82 * - 49 AS col1, 89
----
-4018
89

query I rowsort
SELECT ALL - + 7 AS col1
----
-7

query I rowsort
SELECT + - 77 AS col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT ALL - 74 / 48 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL - 74 / 48 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 34 - - - 13
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5414
SELECT CAST( NULL AS SIGNED ) - + - COUNT( * ) + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5414
SELECT CAST ( NULL AS INTEGER ) - + - COUNT ( * ) + - 98
----
NULL

query I rowsort
SELECT ALL - + 80 col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT ALL + COUNT( * ) + - 31 col1
----
-30

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + COUNT ( * ) + - 31 col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT SUM( 0 ) + - ( 41 ) * 56 AS col0
----
-2296

skipif mysql # not compatible
query I rowsort label-5417
SELECT SUM ( 0 ) + - ( 41 ) * 56 AS col0
----
-2296

query I rowsort
SELECT DISTINCT 2 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT 2 + - ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5419
SELECT 2 + - ( - - COUNT ( * ) )
----
1

query I rowsort
SELECT DISTINCT + - 47
----
-47

query II rowsort
SELECT ALL + 17 AS col0, - 54 AS col2
----
17
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT + CAST( NULL AS SIGNED ) / 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5422
SELECT + CAST ( NULL AS INTEGER ) / 84
----
NULL

query I rowsort
SELECT - - 48 col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT - MIN( ALL + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5424
SELECT - MIN ( ALL + 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5425
SELECT ALL + - COUNT( * ) DIV + NULLIF ( + COUNT( * ), + - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL + - COUNT ( * ) / + NULLIF ( + COUNT ( * ), + - COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT + 10 * 43
----
430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5427
SELECT - COUNT( * ) + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5428
SELECT + 16 col0, - MAX( - 24 ) AS col1
----
16
24

skipif mysql # not compatible
query II rowsort label-5428
SELECT + 16 col0, - MAX ( - 24 ) AS col1
----
16
24

query I rowsort
SELECT 78 + + 80 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT - COUNT( * ) + - 60 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - COUNT ( * ) + - 60 AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT DISTINCT - CAST( 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT - CAST ( 83 AS INTEGER )
----
-83

query I rowsort
SELECT ALL 10 col1
----
10

query I rowsort
SELECT DISTINCT - - 9 * - - 83 AS col0
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT SUM( ALL + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-5434
SELECT SUM ( ALL + 51 )
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5435
SELECT 16 * - CAST( - - 32 AS SIGNED )
----
-512

skipif mysql # not compatible
query I rowsort label-5435
SELECT 16 * - CAST ( - - 32 AS INTEGER )
----
-512

query I rowsort
SELECT 6 * + + 68
----
408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5438
SELECT DISTINCT + COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT + COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT - + 19 + + 19
----
0

query I rowsort
SELECT ( + 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT + ( - COUNT( * ) ) + ( 61 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5441
SELECT + ( - COUNT ( * ) ) + ( 61 ) AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT + ( - - CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5442
SELECT + ( - - CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query II rowsort
SELECT - 22, + 33 col0
----
-22
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5444
SELECT ALL + 98 DIV + + 84
----
1

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + 98 / + + 84
----
1

query I rowsort
SELECT DISTINCT - + 2
----
-2

query I rowsort
SELECT ALL - - 60 + 61
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT DISTINCT COUNT( * ) * 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT COUNT ( * ) * 39 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5448
SELECT ALL 85 col2, - COUNT( * ) DIV + - 60
----
85
0

skipif mysql # not compatible
query II rowsort label-5448
SELECT ALL 85 col2, - COUNT ( * ) / + - 60
----
85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL - SUM( ALL - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - SUM ( ALL - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT + + ( - MIN( ALL - + 64 ) )
----
64

skipif mysql # not compatible
query I rowsort label-5450
SELECT + + ( - MIN ( ALL - + 64 ) )
----
64

query I rowsort
SELECT - NULLIF ( 49, + 99 )
----
-49

query I rowsort
SELECT ( - + ( + 43 ) )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5453
SELECT + - SUM( + + CAST( NULL AS SIGNED ) ), - 25 AS col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-5453
SELECT + - SUM ( + + CAST ( NULL AS INTEGER ) ), - 25 AS col0
----
NULL
-25

query I rowsort
SELECT ALL + - 0 * + ( - + ( 73 ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT + 78 * - 52
----
-4056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5456
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) col2
----
-1

query I rowsort
SELECT ALL - ( - 29 ) * + + 46 AS col2
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT + COUNT( * ) - + 19
----
-18

skipif mysql # not compatible
query I rowsort label-5458
SELECT + COUNT ( * ) - + 19
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL + 0 * + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + 0 * + + COUNT ( * ) AS col2
----
0

query II rowsort
SELECT DISTINCT + + 53 AS col2, 43 AS col2
----
53
43

query I rowsort
SELECT - ( + 42 ) AS col0
----
-42

query I rowsort
SELECT 75 * 71 col2
----
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT SUM( ALL 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT SUM ( ALL 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT ALL 30 + + ( - 72 ) - + SUM( ALL - - ( 56 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL 30 + + ( - 72 ) - + SUM ( ALL - - ( 56 ) ) AS col1
----
-98

query I rowsort
SELECT 72 * - 16
----
-1152

query I rowsort
SELECT ALL 37 + + 17 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5467
SELECT DISTINCT + 3 AS col1, COUNT( * ) + 25
----
3
26

skipif mysql # not compatible
query II rowsort label-5467
SELECT DISTINCT + 3 AS col1, COUNT ( * ) + 25
----
3
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5468
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 29 AS col0
----
NULL

query I rowsort
SELECT - 49 + + 32 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL - + 46 + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - + 46 + COUNT ( * )
----
-45

query I rowsort
SELECT DISTINCT + ( - - 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5472
SELECT - 30 DIV + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-5472
SELECT - 30 / + COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT ALL COUNT( * ) * + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL COUNT ( * ) * + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT ALL + COUNT( * ) * COUNT( * ) * - COUNT( * ) + + SUM( ALL - + 69 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) + + SUM ( ALL - + 69 ) AS col0
----
-70

query I rowsort
SELECT ALL 35 + 24
----
59

query I rowsort
SELECT ALL - ( 38 )
----
-38

query I rowsort
SELECT 70 * + + 24
----
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5478
SELECT CAST( - 38 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-5478
SELECT CAST ( - 38 AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL COUNT( + 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL COUNT ( + 40 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + COALESCE ( 75, - COUNT( * ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-5480
SELECT + COALESCE ( 75, - COUNT ( * ) ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL + 74 + + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL + 74 + + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT ALL 61 + 19
----
80

query I rowsort
SELECT ( - - 59 )
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT ALL + ( + + 26 ) DIV + - 46
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + ( + + 26 ) / + - 46
----
0

query I rowsort
SELECT + - 96 * 5
----
-480

query I rowsort
SELECT DISTINCT - 32 AS col1
----
-32

query I rowsort
SELECT - 66 * + + 37 * + 52
----
-126984

query I rowsort
SELECT DISTINCT + 51 * + 46
----
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL - - MAX( DISTINCT 26 )
----
26

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL - - MAX ( DISTINCT 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT ALL - 65 * - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL - 65 * - - COUNT ( * )
----
-65

query I rowsort
SELECT 29 * - + 54
----
-1566

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT 36 DIV 57 * - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT 36 / 57 * - 15 AS col2
----
0

query II rowsort
SELECT DISTINCT + 48 * - - 28 AS col2, 68
----
1344
68

query I rowsort
SELECT DISTINCT - - 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL - + COUNT( * ) + - COUNT( * ) + + 75
----
73

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL - + COUNT ( * ) + - COUNT ( * ) + + 75
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT ALL - + MIN( ALL - + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL - + MIN ( ALL - + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT - COUNT( ALL + - 86 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5497
SELECT - COUNT ( ALL + - 86 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT + COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5498
SELECT + COUNT ( * ) + COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT DISTINCT 94 * - + COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT 94 * - + COUNT ( * ) AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 43 AS col2
----
-43

query I rowsort
SELECT - ( - 38 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5503
SELECT + COUNT( * ) DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT + COUNT ( * ) / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT + + SUM( DISTINCT 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-5504
SELECT + + SUM ( DISTINCT 39 ) AS col0
----
39

query I rowsort
SELECT ALL + 6 * 5 AS col0
----
30

query I rowsort
SELECT CASE - 58 WHEN + + 71 THEN 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5507
SELECT 71 col2, - ( + COUNT( * ) )
----
71
-1

skipif mysql # not compatible
query II rowsort label-5507
SELECT 71 col2, - ( + COUNT ( * ) )
----
71
-1

query II rowsort
SELECT + 20 AS col0, - 14
----
20
-14

query I rowsort
SELECT DISTINCT 71 * 51 AS col0
----
3621

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT ALL - 3 + + - SUM( - + 23 )
----
20

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL - 3 + + - SUM ( - + 23 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL - COUNT( * ) + 71 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - COUNT ( * ) + 71 AS col2
----
70

query I rowsort
SELECT ALL + 60 - + 59
----
1

query I rowsort
SELECT 41 - 59 AS col2
----
-18

query I rowsort
SELECT DISTINCT - + 14
----
-14

query I rowsort
SELECT ALL 19 + + 97
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT ALL COUNT( ALL - + ( - ( 45 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL COUNT ( ALL - + ( - ( 45 ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ( - COUNT( ALL 93 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5517
SELECT ( - COUNT ( ALL 93 ) )
----
-1

query I rowsort
SELECT ( + + 42 )
----
42

query I rowsort
SELECT ALL + 48 * - + 94 col2
----
-4512

query I rowsort
SELECT ( 68 )
----
68

query I rowsort
SELECT + ( - ( + 26 ) ) col2
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5522
SELECT + - CAST( NULL AS SIGNED ) + - + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT + - CAST ( NULL AS INTEGER ) + - + 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT + COUNT( * ) * 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-5523
SELECT + COUNT ( * ) * 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5524
SELECT - COUNT( * ) AS col2, 38 AS col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-5524
SELECT - COUNT ( * ) AS col2, 38 AS col2
----
-1
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + 20 * + - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5525
SELECT + 20 * + - COUNT ( * ) AS col1
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT + CAST( NULL AS SIGNED ) * - + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5526
SELECT + CAST ( NULL AS INTEGER ) * - + 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL - MIN( - 58 )
----
58

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - MIN ( - 58 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5528
SELECT 45 + + 71 AS col1, CAST( NULL AS SIGNED ) AS col2
----
116
NULL

skipif mysql # not compatible
query II rowsort label-5528
SELECT 45 + + 71 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
116
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + SUM( DISTINCT 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-5529
SELECT + SUM ( DISTINCT 84 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT DISTINCT - SUM( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT - SUM ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 68 * 18
----
1224

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT MIN( - CASE WHEN NOT NULL IS NULL THEN + 26 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5532
SELECT MIN ( - CASE WHEN NOT NULL IS NULL THEN + 26 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT MIN( - + 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-5533
SELECT MIN ( - + 45 ) AS col2
----
-45

query I rowsort
SELECT - 73 * 30
----
-2190

query I rowsort
SELECT ALL - 4 + 53 AS col0
----
49

query I rowsort
SELECT + ( - - 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5537
SELECT + 12 DIV + - COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-5537
SELECT + 12 / + - COUNT ( * )
----
-12

query I rowsort
SELECT - + 89 - + + 91
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - COALESCE ( - MIN( 55 ), - ( + + 24 ) + - 12 )
----
55

skipif mysql # not compatible
query I rowsort label-5539
SELECT - COALESCE ( - MIN ( 55 ), - ( + + 24 ) + - 12 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5540
SELECT ALL + CAST( + - 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL + CAST ( + - 6 AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT - NULLIF ( 24, - - COUNT( * ) * + COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - NULLIF ( 24, - - COUNT ( * ) * + COUNT ( * ) )
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5542
SELECT 64 DIV + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-5542
SELECT 64 / + COUNT ( * ) AS col2
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT DISTINCT + 9 DIV 58 col2
----
0

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT + 9 / 58 col2
----
0

query I rowsort
SELECT 73 * + 8
----
584

query I rowsort
SELECT DISTINCT - ( 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - ( - MAX( - 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-5546
SELECT - ( - MAX ( - 16 ) )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5547
SELECT - 94 DIV 34 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5547
SELECT - 94 / 34 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT ALL ( + 19 ) + - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL ( + 19 ) + - - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5549
SELECT - + 4 + + 62, 63 + - 99 * - - COUNT( * ) col2
----
58
-36

skipif mysql # not compatible
query II rowsort label-5549
SELECT - + 4 + + 62, 63 + - 99 * - - COUNT ( * ) col2
----
58
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT - COUNT( * ) * + + 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5550
SELECT - COUNT ( * ) * + + 71 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL + + COUNT( 45 ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL + + COUNT ( 45 ) * - 71
----
-71

query I rowsort
SELECT DISTINCT + + 34 AS col1
----
34

query I rowsort
SELECT DISTINCT ( - 34 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT + 66 + - + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5554
SELECT + 66 + - + COUNT ( * )
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT + 30 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-5555
SELECT + 30 / 35
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5556
SELECT ALL + ( + MAX( 9 ) ) AS col1, - COUNT( * ) AS col0
----
9
-1

skipif mysql # not compatible
query II rowsort label-5556
SELECT ALL + ( + MAX ( 9 ) ) AS col1, - COUNT ( * ) AS col0
----
9
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT + ( + 48 ) DIV - 3 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-5557
SELECT + ( + 48 ) / - 3 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT + SUM( + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5558
SELECT + SUM ( + 11 ) AS col1
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ALL - COALESCE ( 54, + COUNT( * ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - COALESCE ( 54, + COUNT ( * ) ) col1
----
-54

query I rowsort
SELECT ALL - 78 * 88 AS col2
----
-6864

query I rowsort
SELECT 79 * - 7 AS col2
----
-553

onlyif mysql # aggregate syntax: 
query II rowsort label-5562
SELECT ALL + + 3 * - COUNT( * ), 15 AS col2
----
-3
15

skipif mysql # not compatible
query II rowsort label-5562
SELECT ALL + + 3 * - COUNT ( * ), 15 AS col2
----
-3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT ALL - - MAX( + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL - - MAX ( + - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT + - MAX( - ( + + 78 ) ) col1
----
78

skipif mysql # not compatible
query I rowsort label-5564
SELECT + - MAX ( - ( + + 78 ) ) col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT + ( - COUNT( * ) ) * + 86 * 43
----
-3698

skipif mysql # not compatible
query I rowsort label-5565
SELECT + ( - COUNT ( * ) ) * + 86 * 43
----
-3698

query I rowsort
SELECT ALL - 93 col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT NULLIF ( + 99, - + MIN( - 6 ) ) col2
----
99

skipif mysql # not compatible
query I rowsort label-5567
SELECT NULLIF ( + 99, - + MIN ( - 6 ) ) col2
----
99

query I rowsort
SELECT ALL - 67 col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT COUNT( DISTINCT + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5569
SELECT COUNT ( DISTINCT + 55 )
----
1

query II rowsort
SELECT + 50, 12 AS col0
----
50
12

query I rowsort
SELECT + ( - 7 ) * + 42
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT MAX( - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5572
SELECT MAX ( - 67 ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5573
SELECT DISTINCT 6 col2, 43 * COUNT( * )
----
6
43

skipif mysql # not compatible
query II rowsort label-5573
SELECT DISTINCT 6 col2, 43 * COUNT ( * )
----
6
43

query I rowsort
SELECT ALL + - 73 + 70 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5575
SELECT DISTINCT + + COUNT( * ) DIV - 32 * + 25 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT + + COUNT ( * ) / - 32 * + 25 + + COUNT ( * )
----
1

query II rowsort
SELECT ( - 33 ) col1, 38 AS col2
----
-33
38

query I rowsort
SELECT ALL + ( + + 18 )
----
18

query I rowsort
SELECT + 93 * + 9
----
837

query I rowsort
SELECT 97 + + 46 AS col2
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5580
SELECT - 82 + + 55 DIV - - 72 * + - COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-5580
SELECT - 82 + + 55 / - - 72 * + - COUNT ( * ) AS col1
----
-82

query I rowsort
SELECT ALL - + 69 + + 72
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT SUM( 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5582
SELECT SUM ( 99 ) AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT DISTINCT 44 * + - ( 20 ) * ( - 37 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT 44 * + - ( 20 ) * ( - 37 ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL 28 * - COUNT( * ) + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL 28 * - COUNT ( * ) + COUNT ( * ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT DISTINCT - SUM( DISTINCT - + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT - SUM ( DISTINCT - + 77 )
----
77

query I rowsort
SELECT DISTINCT - 11 + ( - 3 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT - ( - - COUNT( * ) ) + COUNT( DISTINCT + + 23 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT - ( - - COUNT ( * ) ) + COUNT ( DISTINCT + + 23 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT COUNT( - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-5588
SELECT COUNT ( - 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT - 2 * + ( + ( COUNT( * ) ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5589
SELECT - 2 * + ( + ( COUNT ( * ) ) ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT - - SUM( + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-5590
SELECT - - SUM ( + 14 ) AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5591
SELECT - 60, CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-5591
SELECT - 60, CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2
----
-60
NULL

query I rowsort
SELECT DISTINCT ( + 25 )
----
25

query I rowsort
SELECT ALL ( + - 86 ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL 52 * - 46 * - COUNT( * ) AS col1
----
2392

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL 52 * - 46 * - COUNT ( * ) AS col1
----
2392

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL + MIN( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL + MIN ( ALL 71 )
----
71

query I rowsort
SELECT + ( + - 27 ) AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT - + COUNT( * ) + - ( 71 ) + + MIN( DISTINCT + ( + 94 ) )
----
22

skipif mysql # not compatible
query I rowsort label-5597
SELECT - + COUNT ( * ) + - ( 71 ) + + MIN ( DISTINCT + ( + 94 ) )
----
22

query I rowsort
SELECT ALL ( - + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT + SUM( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + SUM ( 74 )
----
74

query I rowsort
SELECT DISTINCT + - ( + 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT + COUNT( * ) DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-5601
SELECT + COUNT ( * ) / 19
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT + 89 AS col0, + COUNT( * )
----
89
1

skipif mysql # not compatible
query II rowsort label-5602
SELECT + 89 AS col0, + COUNT ( * )
----
89
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5603
SELECT ALL - 60 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL - 60 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT 21 DIV 56 * + 6
----
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT 21 / 56 * + 6
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL - COUNT( 18 ) + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - COUNT ( 18 ) + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT ALL + 98 - + COUNT( * ) + - + ( + - COUNT( * ) ) * + 52 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL + 98 - + COUNT ( * ) + - + ( + - COUNT ( * ) ) * + 52 AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL + COUNT( * ) * + - 77
----
-77

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL + COUNT ( * ) * + - 77
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT + MAX( ALL 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5608
SELECT + MAX ( ALL 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT ALL COUNT( * ) + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL COUNT ( * ) + 7 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT ALL 83 + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL 83 + + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL COUNT( + + 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL COUNT ( + + 26 ) AS col1
----
1

query I rowsort
SELECT - 49 * - 72 AS col2
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT COUNT( 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5613
SELECT COUNT ( 19 ) AS col1
----
1

query I rowsort
SELECT - ( + ( 2 ) )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5615
SELECT + COUNT( * ) DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5615
SELECT + COUNT ( * ) / - 71 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT DISTINCT 53 * + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT 53 * + COUNT ( * ) AS col1
----
53

query I rowsort
SELECT + 46 * + 17 col2
----
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT DISTINCT - 92 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT - 92 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 11 AS col1
----
-11

query I rowsort
SELECT ALL + 59 * - 96 col1
----
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + COUNT( + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5621
SELECT + COUNT ( + 29 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + MAX( DISTINCT 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-5622
SELECT + MAX ( DISTINCT 13 ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - COUNT( DISTINCT 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - COUNT ( DISTINCT 10 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5624
SELECT ALL - COUNT( * ) + + 92 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL - COUNT ( * ) + + 92 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT + COUNT( * ) - + 33
----
-32

skipif mysql # not compatible
query I rowsort label-5625
SELECT + COUNT ( * ) - + 33
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT - MAX( ALL ( 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-5626
SELECT - MAX ( ALL ( 19 ) )
----
-19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5627
SELECT ALL - CAST( NULL AS DECIMAL ) * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL - CAST ( NULL AS REAL ) * + 35 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5628
SELECT - COUNT( * ) * - - ( + 20 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5628
SELECT - COUNT ( * ) * - - ( + 20 ) + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 62, - ( - 15 ) + 83 AS col2
----
62
98

query I rowsort
SELECT 24 + 12
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT + - COUNT( 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-5631
SELECT + - COUNT ( 37 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL 65 * NULLIF ( + + 69, COUNT( DISTINCT - 76 ) )
----
4485

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL 65 * NULLIF ( + + 69, COUNT ( DISTINCT - 76 ) )
----
4485

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT SUM( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-5633
SELECT SUM ( + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT - 11 + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-5634
SELECT - 11 + COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL NULLIF ( - COUNT( * ), 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL NULLIF ( - COUNT ( * ), 18 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT - - 15 DIV 7 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5636
SELECT - - 15 / 7 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT ALL + + MIN( + 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + + MIN ( + 58 ) AS col0
----
58

query I rowsort
SELECT ( - + 81 ) AS col1
----
-81

query I rowsort
SELECT + ( - + 13 ) AS col0
----
-13

query I rowsort
SELECT ALL - ( ( + - ( + 88 ) ) ) AS col1
----
88

query I rowsort
SELECT DISTINCT - ( 99 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT - 29 + 38 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT - 29 + 38 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT ALL MIN( + 92 ) - + - 26
----
118

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL MIN ( + 92 ) - + - 26
----
118

query I rowsort
SELECT + 75 * + - 72 AS col1
----
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT COUNT( * ) * - + 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-5645
SELECT COUNT ( * ) * - + 5 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT COUNT( * ) * + 39
----
39

skipif mysql # not compatible
query I rowsort label-5646
SELECT COUNT ( * ) * + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT 71 + + COUNT( * ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-5647
SELECT 71 + + COUNT ( * ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT + SUM( + - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-5648
SELECT + SUM ( + - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT + 93 * - + COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-5649
SELECT + 93 * - + COUNT ( * ) AS col1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-5650
SELECT DISTINCT + + 73 DIV - - 87 * 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT + + 73 / - - 87 * 14 AS col2
----
0

query I rowsort
SELECT ( - - 13 )
----
13

query I rowsort
SELECT ALL + + 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT - COUNT( * ) - + 61 col0
----
-62

skipif mysql # not compatible
query I rowsort label-5653
SELECT - COUNT ( * ) - + 61 col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - SUM( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5654
SELECT - SUM ( 51 )
----
-51

query I rowsort
SELECT DISTINCT + ( - 32 ) col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - 64 * - COUNT( * ) + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5656
SELECT - 64 * - COUNT ( * ) + + COUNT ( * )
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5657
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 38
----
38

query I rowsort
SELECT DISTINCT - + 4 col2
----
-4

query I rowsort
SELECT + 84 * 76 AS col0
----
6384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5661
SELECT + - CAST( - + 88 AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-5661
SELECT + - CAST ( - + 88 AS INTEGER )
----
88

query II rowsort
SELECT + + 34 AS col2, 28 AS col2
----
34
28

query II rowsort
SELECT + 70 AS col2, + 63 AS col0
----
70
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT - + COUNT( * ) - 29 * + 74 - - 44
----
-2103

skipif mysql # not compatible
query I rowsort label-5664
SELECT - + COUNT ( * ) - 29 * + 74 - - 44
----
-2103

query I rowsort
SELECT + 14 * - 70 + - 36 col0
----
-1016

query I rowsort
SELECT DISTINCT 30 + + - 27
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT ALL COUNT( * ) + - + 64
----
-63

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL COUNT ( * ) + - + 64
----
-63

query I rowsort
SELECT DISTINCT 76 col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT ALL ( - COUNT( * ) ) + - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL ( - COUNT ( * ) ) + - - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ( - 81 ) AS col2
----
-81

query I rowsort
SELECT - ( - 11 ) AS col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5672
SELECT + 55 * - CAST( + 40 AS SIGNED ) AS col0
----
-2200

skipif mysql # not compatible
query I rowsort label-5672
SELECT + 55 * - CAST ( + 40 AS INTEGER ) AS col0
----
-2200

query I rowsort
SELECT DISTINCT - ( + - 8 ) col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5674
SELECT DISTINCT - 60 - + 32 AS col1, COUNT( * ) AS col1
----
-92
1

skipif mysql # not compatible
query II rowsort label-5674
SELECT DISTINCT - 60 - + 32 AS col1, COUNT ( * ) AS col1
----
-92
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5675
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT ALL - 25 + 50 AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5677
SELECT DISTINCT 7 DIV + + COUNT( * ) col0
----
7

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT 7 / + + COUNT ( * ) col0
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5678
SELECT DISTINCT 71 DIV - - COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT 71 / - - COUNT ( * ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT ALL + COUNT( 11 )
----
1

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL + COUNT ( 11 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL + ( SUM( 67 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL + ( SUM ( 67 ) ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-5681
SELECT + COUNT( * ) AS col1, 85 + - + ( 5 )
----
1
80

skipif mysql # not compatible
query II rowsort label-5681
SELECT + COUNT ( * ) AS col1, 85 + - + ( 5 )
----
1
80

query I rowsort
SELECT + ( 64 ) AS col2
----
64

query I rowsort
SELECT DISTINCT - 92 * + - 28 AS col0
----
2576

query II rowsort
SELECT DISTINCT + 16 AS col1, + 40 AS col2
----
16
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5685
SELECT ALL - COUNT( * ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL - COUNT ( * ) / 96
----
0

query I rowsort
SELECT ALL 84 + - + 19 AS col1
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5687
SELECT COUNT( * ) AS col2, - 57 * - - COUNT( * ) AS col1
----
1
-57

skipif mysql # not compatible
query II rowsort label-5687
SELECT COUNT ( * ) AS col2, - 57 * - - COUNT ( * ) AS col1
----
1
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL - COUNT( + 5 )
----
-1

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - COUNT ( + 5 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT DISTINCT - 9 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT - 9 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT - COUNT( ALL + ( 13 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5690
SELECT - COUNT ( ALL + ( 13 ) )
----
-1

query I rowsort
SELECT + 99 + - - 65 - - + 43 + + 98 AS col0
----
305

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT - COUNT( * ) - - 42 + 76 AS col2
----
117

skipif mysql # not compatible
query I rowsort label-5692
SELECT - COUNT ( * ) - - 42 + 76 AS col2
----
117

query I rowsort
SELECT ALL + - 17 AS col1
----
-17

query I rowsort
SELECT ALL ( - - 68 ) AS col1
----
68

query I rowsort
SELECT + 29 + - 77
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL - + MIN( + + 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - + MIN ( + + 99 ) AS col0
----
-99

query I rowsort
SELECT ( 5 )
----
5

query I rowsort
SELECT 84 - - + 97 AS col1
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT DISTINCT - + ( CAST( AVG ( + 62 ) AS SIGNED ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT - + ( CAST ( AVG ( + 62 ) AS INTEGER ) ) AS col2
----
-62

query I rowsort
SELECT DISTINCT - ( - + 76 )
----
76

query II rowsort
SELECT + 10, + 64 AS col0
----
10
64

query I rowsort
SELECT DISTINCT - 8 * - 64
----
512

query I rowsort
SELECT ALL + 53 - + 96 * + 52 AS col0
----
-4939

query I rowsort
SELECT ALL + 36 * - 70
----
-2520

onlyif mysql # aggregate syntax: 
query II rowsort label-5705
SELECT ALL 45, COUNT( * ) + + COUNT( * ) AS col0
----
45
2

skipif mysql # not compatible
query II rowsort label-5705
SELECT ALL 45, COUNT ( * ) + + COUNT ( * ) AS col0
----
45
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT + COUNT( ALL - + 86 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5706
SELECT + COUNT ( ALL - + 86 ) AS col1
----
1

query II rowsort
SELECT ALL + + 80 col1, 99
----
80
99

query I rowsort
SELECT ALL + + ( 78 ) col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5709
SELECT + MIN( ALL 84 ), COUNT( * ) AS col0
----
84
1

skipif mysql # not compatible
query II rowsort label-5709
SELECT + MIN ( ALL 84 ), COUNT ( * ) AS col0
----
84
1

query I rowsort
SELECT ALL 39 + 72
----
111

query I rowsort
SELECT ALL - ( 2 )
----
-2

query I rowsort
SELECT ALL + 8 * + 32
----
256

onlyif mysql # aggregate syntax: 
query II rowsort label-5713
SELECT + COUNT( * ) AS col1, + 33
----
1
33

skipif mysql # not compatible
query II rowsort label-5713
SELECT + COUNT ( * ) AS col1, + 33
----
1
33

query I rowsort
SELECT DISTINCT 3 col1
----
3

query I rowsort
SELECT DISTINCT + - 87 * + - 35
----
3045

query I rowsort
SELECT ALL 11 + - + 85 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT ALL + COUNT( * ) + - - 43 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + COUNT ( * ) + - - 43 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL - 73 * - + 88
----
6424

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT - MAX( DISTINCT + 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5720
SELECT - MAX ( DISTINCT + 15 ) AS col2
----
-15

query I rowsort
SELECT - ( - - 77 ) * 92
----
-7084

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT 3 * 1 * COUNT( DISTINCT 59 )
----
3

skipif mysql # not compatible
query I rowsort label-5722
SELECT 3 * 1 * COUNT ( DISTINCT 59 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT COUNT( + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-5723
SELECT COUNT ( + 55 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT ALL - COUNT( * ) * - 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL - COUNT ( * ) * - 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT MIN( DISTINCT + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-5725
SELECT MIN ( DISTINCT + 64 )
----
64

query I rowsort
SELECT DISTINCT - + 35 AS col1
----
-35

query I rowsort
SELECT - + 87 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ( ( + COUNT( * ) ) ) - + + MIN( ALL + 89 ) * + 26 AS col0
----
-2313

skipif mysql # not compatible
query I rowsort label-5728
SELECT ( ( + COUNT ( * ) ) ) - + + MIN ( ALL + 89 ) * + 26 AS col0
----
-2313

query I rowsort
SELECT 20 + + 45 AS col1
----
65

query I rowsort
SELECT - 88 col0
----
-88

query I rowsort
SELECT + ( 70 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-5732
SELECT COUNT( * ), + 99 AS col2
----
1
99

skipif mysql # not compatible
query II rowsort label-5732
SELECT COUNT ( * ), + 99 AS col2
----
1
99

query I rowsort
SELECT DISTINCT ( + - 7 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5734
SELECT - COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5734
SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT - ( - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT MIN( ALL - 96 ) * + - 61 AS col2
----
5856

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT MIN ( ALL - 96 ) * + - 61 AS col2
----
5856

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5737
SELECT COUNT( * ) * + 30 * - - COUNT( * ) DIV - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-5737
SELECT COUNT ( * ) * + 30 * - - COUNT ( * ) / - COUNT ( * )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - 52 * + SUM( - 59 )
----
3068

skipif mysql # not compatible
query I rowsort label-5738
SELECT - 52 * + SUM ( - 59 )
----
3068

query II rowsort
SELECT + 76 AS col1, - 32 AS col2
----
76
-32

query I rowsort
SELECT 86 * + - 61 AS col0
----
-5246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5741
SELECT + + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5741
SELECT + + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT + 52 * + NULLIF ( COUNT( * ), - 18 ) col1
----
52

skipif mysql # not compatible
query I rowsort label-5742
SELECT + 52 * + NULLIF ( COUNT ( * ), - 18 ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT COUNT( DISTINCT - ( - 28 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5743
SELECT COUNT ( DISTINCT - ( - 28 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT SUM( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-5744
SELECT SUM ( - 40 )
----
-40

query I rowsort
SELECT - + 1 + - + 56 + - 74 AS col1
----
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-5746
SELECT - ( 13 ) DIV + 1
----
-13

skipif mysql # not compatible
query I rowsort label-5746
SELECT - ( 13 ) / + 1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5747
SELECT + 5 DIV + - 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5747
SELECT + 5 / + - 8 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5748
SELECT DISTINCT + CAST( 88 AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT + CAST ( 88 AS INTEGER ) AS col1
----
88

query I rowsort
SELECT + 99 + 83
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-5750
SELECT + ( SUM( ALL - - 18 ) ) col2, COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-5750
SELECT + ( SUM ( ALL - - 18 ) ) col2, COUNT ( * )
----
18
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5751
SELECT + 24 DIV - COUNT( * ) col2
----
-24

skipif mysql # not compatible
query I rowsort label-5751
SELECT + 24 / - COUNT ( * ) col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5752
SELECT COUNT( * ) * + MAX( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5752
SELECT COUNT ( * ) * + MAX ( + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT 49 + - SUM( ALL - + 85 )
----
134

skipif mysql # not compatible
query I rowsort label-5753
SELECT 49 + - SUM ( ALL - + 85 )
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-5754
SELECT ALL - - COUNT( * ) AS col1, 0 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-5754
SELECT ALL - - COUNT ( * ) AS col1, 0 AS col0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT - MIN( DISTINCT - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT - MIN ( DISTINCT - 46 )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5756
SELECT + MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 80 * + 79 * 39 + + 72
----
-246408

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT ALL CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT + 93 * + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-5759
SELECT + 93 * + COUNT ( * )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5760
SELECT ALL CAST( - ( + COUNT( * ) ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL CAST ( - ( + COUNT ( * ) ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT ALL ( 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT + MAX( 24 )
----
24

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT + MAX ( 24 )
----
24

query I rowsort
SELECT 56 * + 97 AS col2
----
5432

query I rowsort
SELECT ALL 45 * - 87
----
-3915

query I rowsort
SELECT ALL - 47 - + 22
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT CAST( NULL AS SIGNED ) / - + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT CAST ( NULL AS INTEGER ) / - + 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5767
SELECT + CAST( + 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5767
SELECT + CAST ( + 79 AS INTEGER ) AS col1
----
79

query II rowsort
SELECT ALL 33, 14 * + 31 AS col2
----
33
434

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5769
SELECT DISTINCT CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT CAST ( - CAST ( NULL AS REAL ) AS REAL ) * + 15
----
NULL

query II rowsort
SELECT + 91, 82 AS col0
----
91
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT ALL MIN( DISTINCT - 64 ) + - - 22 - - 8
----
-34

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL MIN ( DISTINCT - 64 ) + - - 22 - - 8
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5772
SELECT DISTINCT - 0 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT - 0 / - COUNT ( * )
----
0

query I rowsort
SELECT ALL - 89 + 64
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT COUNT( * ) * + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-5774
SELECT COUNT ( * ) * + - 84
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5775
SELECT + CAST( + 70 AS SIGNED )
----
70

skipif mysql # not compatible
query I rowsort label-5775
SELECT + CAST ( + 70 AS INTEGER )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT ALL - + CAST( + 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL - + CAST ( + 59 AS INTEGER )
----
-59

query II rowsort
SELECT ALL - + 43 col0, + 28
----
-43
28

query I rowsort
SELECT + + NULLIF ( - + 25, 61 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5779
SELECT CAST( - - 87 AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5779
SELECT CAST ( - - 87 AS INTEGER ) AS col1
----
87

query I rowsort
SELECT 0 * + - 8
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5781
SELECT CAST( - - ( + COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5781
SELECT CAST ( - - ( + COUNT ( * ) ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT 28 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-5782
SELECT 28 * - COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT + MIN( DISTINCT + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-5783
SELECT + MIN ( DISTINCT + 12 )
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT + CAST( 25 AS SIGNED ) * - 23 AS col1
----
-575

skipif mysql # not compatible
query I rowsort label-5784
SELECT + CAST ( 25 AS INTEGER ) * - 23 AS col1
----
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT COUNT( ALL + 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5785
SELECT COUNT ( ALL + 6 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5786
SELECT + CAST( NULL AS SIGNED ) * + COALESCE ( + + COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT + CAST ( NULL AS INTEGER ) * + COALESCE ( + + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT SUM( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT SUM ( ALL - 73 )
----
-73

query I rowsort
SELECT DISTINCT - 2 + - + 63
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5789
SELECT + NULLIF ( 81, - CAST( NULL AS SIGNED ) ) col2
----
81

skipif mysql # not compatible
query I rowsort label-5789
SELECT + NULLIF ( 81, - CAST ( NULL AS INTEGER ) ) col2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5790
SELECT + 78 AS col0, COUNT( * ) DIV - 47 + + - 16 AS col1
----
78
-16

skipif mysql # not compatible
query II rowsort label-5790
SELECT + 78 AS col0, COUNT ( * ) / - 47 + + - 16 AS col1
----
78
-16

query I rowsort
SELECT ( 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT DISTINCT MAX( ALL + 99 ) * - 27
----
-2673

skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT MAX ( ALL + 99 ) * - 27
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT MIN( DISTINCT - - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5793
SELECT MIN ( DISTINCT - - 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT ALL + - COUNT( * ) + - NULLIF ( ( - COUNT( * ) ), - ( - 39 ) ) * - 79
----
-80

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + - COUNT ( * ) + - NULLIF ( ( - COUNT ( * ) ), - ( - 39 ) ) * - 79
----
-80

query I rowsort
SELECT - + 14 AS col0
----
-14

query II rowsort
SELECT 39 AS col2, 25
----
39
25

query I rowsort
SELECT DISTINCT - ( + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5798
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col2, + 66
----
2
66

skipif mysql # not compatible
query II rowsort label-5798
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col2, + 66
----
2
66

onlyif mysql # aggregate syntax: 
query II rowsort label-5799
SELECT + COUNT( * ) AS col0, 93 AS col1
----
1
93

skipif mysql # not compatible
query II rowsort label-5799
SELECT + COUNT ( * ) AS col0, 93 AS col1
----
1
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT ALL - COUNT( * ) AS col2, 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-5800
SELECT ALL - COUNT ( * ) AS col2, 19 AS col1
----
-1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT + COUNT( + 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5801
SELECT + COUNT ( + 47 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT - + 68 + + COUNT( * ) col2
----
-67

skipif mysql # not compatible
query I rowsort label-5802
SELECT - + 68 + + COUNT ( * ) col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT COUNT( DISTINCT 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5803
SELECT COUNT ( DISTINCT 0 ) AS col0
----
1

query I rowsort
SELECT + 5 + + 98
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT DISTINCT + 81 DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT + 81 / + 48 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL + 55 * - COUNT( * ) + 51
----
-4

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL + 55 * - COUNT ( * ) + 51
----
-4

query I rowsort
SELECT - 69 * + 37 AS col2
----
-2553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT + CAST( 39 AS SIGNED ) * - + 3
----
-117

skipif mysql # not compatible
query I rowsort label-5808
SELECT + CAST ( 39 AS INTEGER ) * - + 3
----
-117

query I rowsort
SELECT DISTINCT + ( 16 )
----
16

query I rowsort
SELECT + 9 * - + 65
----
-585

query I rowsort
SELECT + ( + 72 ) AS col0
----
72

query I rowsort
SELECT 53 + + 85
----
138

query I rowsort
SELECT ALL 30 * - 12
----
-360

query I rowsort
SELECT 74 + 84
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5815
SELECT 19 * - SUM( - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT 19 * - SUM ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT ALL - + 12 DIV 42 col1
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL - + 12 / 42 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT - + 47 AS col1
----
-47

query I rowsort
SELECT DISTINCT - 5 - - + 86 * - 77 AS col2
----
-6627

query I rowsort
SELECT DISTINCT 39 * + 56 AS col0
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-5821
SELECT COUNT( * ) * + 30 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-5821
SELECT COUNT ( * ) * + 30 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT + NULLIF ( 49, + CAST( NULL AS SIGNED ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-5822
SELECT + NULLIF ( 49, + CAST ( NULL AS INTEGER ) ) AS col2
----
49

query I rowsort
SELECT ALL + - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT + - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5824
SELECT + - ( COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT - MAX( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-5825
SELECT - MAX ( - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT - - 6 + + ( - COUNT( * ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5826
SELECT - - 6 + + ( - COUNT ( * ) ) AS col0
----
5

query I rowsort
SELECT ALL ( + 28 ) AS col0
----
28

query I rowsort
SELECT - ( 92 ) AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5829
SELECT - MAX( + CAST( + 85 AS SIGNED ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5829
SELECT - MAX ( + CAST ( + 85 AS INTEGER ) ) AS col2
----
-85

query I rowsort
SELECT DISTINCT + - 23 AS col0
----
-23

query I rowsort
SELECT DISTINCT + - 89
----
-89

query I rowsort
SELECT NULLIF ( 76, 45 )
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5833
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5834
SELECT COUNT( * ) DIV 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5834
SELECT COUNT ( * ) / 30 AS col1
----
0

query I rowsort
SELECT DISTINCT + 62 + - 98 * - 22 AS col2
----
2218

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5836
SELECT - 21 * - CAST( NULL AS SIGNED ) - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5836
SELECT - 21 * - CAST ( NULL AS INTEGER ) - - 83
----
NULL

query I rowsort
SELECT 54 * 97 AS col2
----
5238

query I rowsort
SELECT ALL - 84 + + 11 AS col2
----
-73

query I rowsort
SELECT - 52 + + - 47
----
-99

query II rowsort
SELECT + 66, - 41 col0
----
66
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-5841
SELECT SUM( 72 ) AS col2, + 50
----
72
50

skipif mysql # not compatible
query II rowsort label-5841
SELECT SUM ( 72 ) AS col2, + 50
----
72
50

query I rowsort
SELECT DISTINCT + 80 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5843
SELECT ALL + 92, CAST( NULL AS SIGNED ) AS col1
----
92
NULL

skipif mysql # not compatible
query II rowsort label-5843
SELECT ALL + 92, CAST ( NULL AS INTEGER ) AS col1
----
92
NULL

query I rowsort
SELECT ALL + 52 + + 75
----
127

query I rowsort
SELECT ( - - ( 94 ) )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT + MAX( DISTINCT - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-5846
SELECT + MAX ( DISTINCT - 32 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-5847
SELECT ALL 8 DIV - + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL 8 / - + 31 AS col1
----
0

query I rowsort
SELECT - + 58 col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT ALL + 76 - CAST( + + 39 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL + 76 - CAST ( + + 39 AS INTEGER )
----
37

query I rowsort
SELECT + + 27 + 64 AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL MIN( DISTINCT - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL MIN ( DISTINCT - 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5852
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 24 * + - 54 AS col2
----
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT DISTINCT 2 * - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT 2 * - COUNT ( * ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5855
SELECT + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT + CAST ( NULL AS REAL ) + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 34 col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT MAX( DISTINCT + 93 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-5857
SELECT MAX ( DISTINCT + 93 ) col1
----
93

query I rowsort
SELECT - - 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT - 49 + - - ( - COUNT( * ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-5859
SELECT - 49 + - - ( - COUNT ( * ) ) AS col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5860
SELECT + - 28 DIV + - ( - COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-5860
SELECT + - 28 / + - ( - COUNT ( * ) )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - - COUNT( * ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-5861
SELECT - - COUNT ( * ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT DISTINCT 93 * - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT 93 * - COUNT ( * )
----
-93

query I rowsort
SELECT + ( 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT + COUNT( * ) - 57
----
-56

skipif mysql # not compatible
query I rowsort label-5864
SELECT + COUNT ( * ) - 57
----
-56

query I rowsort
SELECT - 83 * - - 10
----
-830

query I rowsort
SELECT - 52 + + 2 + 69 col1
----
19

query II rowsort
SELECT - 98 - + - 92 AS col0, + 54
----
-6
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5868
SELECT ALL CAST( + 44 AS SIGNED ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL CAST ( + 44 AS INTEGER ) AS col1
----
44

query I rowsort
SELECT + ( + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT - COUNT( * ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5870
SELECT - COUNT ( * ) + COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5871
SELECT + - 27 AS col2, + 28, CAST( NULL AS SIGNED ) col2
----
-27
28
NULL

skipif mysql # not compatible
query III rowsort label-5871
SELECT + - 27 AS col2, + 28, CAST ( NULL AS INTEGER ) col2
----
-27
28
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT DISTINCT - 39 DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT - 39 / + 98 AS col0
----
0

query I rowsort
SELECT DISTINCT 69 - + + 15 AS col0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5874
SELECT 97 + 99 AS col1, 60 + + COUNT( * ) AS col0
----
196
61

skipif mysql # not compatible
query II rowsort label-5874
SELECT 97 + 99 AS col1, 60 + + COUNT ( * ) AS col0
----
196
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT DISTINCT COUNT( * ) + - 57 + COUNT( * ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT COUNT ( * ) + - 57 + COUNT ( * ) col1
----
-55

query I rowsort
SELECT DISTINCT - - 1 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5877
SELECT DISTINCT + 35 DIV - 62 * 94
----
0

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT + 35 / - 62 * 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT DISTINCT + MIN( ALL - + 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT + MIN ( ALL - + 42 ) AS col2
----
-42

query II rowsort
SELECT 71 AS col1, - 11
----
71
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5880
SELECT ALL 33 + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL 33 + + COUNT ( * )
----
34

query I rowsort
SELECT - + 26 + - 20
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT - MIN( ALL - - 22 ) * - COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5882
SELECT - MIN ( ALL - - 22 ) * - COUNT ( * ) AS col1
----
22

query I rowsort
SELECT - ( - 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL COUNT( * ) + + 1
----
2

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL COUNT ( * ) + + 1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5885
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5885
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT + - 46 AS col2
----
-46

query I rowsort
SELECT DISTINCT + 79 AS col1
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT ALL + - CAST( - - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL + - CAST ( - - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT ALL - + ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL - + ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL - COUNT( * ) * - - 68 * + 28 AS col0
----
-1904

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - COUNT ( * ) * - - 68 * + 28 AS col0
----
-1904

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT + MIN( ALL - - 29 ) - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-5891
SELECT + MIN ( ALL - - 29 ) - COUNT ( * )
----
28

query I rowsort
SELECT + NULLIF ( - 3, + + 75 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT DISTINCT - 72 * COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT - 72 * COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT + NULLIF ( - + COUNT( * ), + - ( + 55 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5894
SELECT + NULLIF ( - + COUNT ( * ), + - ( + 55 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT ALL + 71 AS col1, COUNT( * ) - + COUNT( * )
----
71
0

skipif mysql # not compatible
query II rowsort label-5895
SELECT ALL + 71 AS col1, COUNT ( * ) - + COUNT ( * )
----
71
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT + ( + + MIN( ALL + 46 ) )
----
46

skipif mysql # not compatible
query I rowsort label-5896
SELECT + ( + + MIN ( ALL + 46 ) )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT DISTINCT COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT COUNT ( * ) * + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT ( 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT - - COUNT( * ) + + + NULLIF ( - - COUNT( * ), + 45 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-5899
SELECT - - COUNT ( * ) + + + NULLIF ( - - COUNT ( * ), + 45 ) col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT + COUNT( * ) * + + 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT + COUNT ( * ) * + + 76 AS col2
----
76

query I rowsort
SELECT DISTINCT - ( ( - - 79 ) )
----
-79

query I rowsort
SELECT 16 * - - ( 99 ) AS col1
----
1584

query I rowsort
SELECT 97 * - 7
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT SUM( + 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5904
SELECT SUM ( + 72 ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5905
SELECT MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL - + COUNT( * ) * 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - + COUNT ( * ) * 35 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT - ( - + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5907
SELECT - ( - + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT DISTINCT - COUNT( * ) * - - ( - 93 ) + 35 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-5908
SELECT DISTINCT - COUNT ( * ) * - - ( - 93 ) + 35 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - 53 * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-5909
SELECT - 53 * COUNT ( * )
----
-53

query I rowsort
SELECT - ( + + 53 )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5911
SELECT ALL + - 41, - CAST( NULL AS SIGNED ) AS col1
----
-41
NULL

skipif mysql # not compatible
query II rowsort label-5911
SELECT ALL + - 41, - CAST ( NULL AS INTEGER ) AS col1
----
-41
NULL

query I rowsort
SELECT DISTINCT - + 98 * + 24
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT COUNT( + 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5913
SELECT COUNT ( + 83 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT + 92 * - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-5914
SELECT + 92 * - - COUNT ( * )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT DISTINCT CAST( + + 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT CAST ( + + 51 AS INTEGER )
----
51

query I rowsort
SELECT DISTINCT + + 7 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL COUNT( * ) * 19
----
19

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL COUNT ( * ) * 19
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5918
SELECT 75 DIV + 48 + + + 20
----
21

skipif mysql # not compatible
query I rowsort label-5918
SELECT 75 / + 48 + + + 20
----
21

query I rowsort
SELECT 48 - - 41
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT DISTINCT - CAST( + + 71 AS SIGNED )
----
-71

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT - CAST ( + + 71 AS INTEGER )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT ALL MAX( DISTINCT - 81 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL MAX ( DISTINCT - 81 ) col2
----
-81

query I rowsort
SELECT DISTINCT + + 25 AS col1
----
25

query I rowsort
SELECT ALL 18 col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5924
SELECT + COUNT( * ) DIV - 93 col0
----
0

skipif mysql # not compatible
query I rowsort label-5924
SELECT + COUNT ( * ) / - 93 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT - + SUM( ALL + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT - + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - 51 * + - MIN( 62 ) - - + 38 AS col2
----
3200

skipif mysql # not compatible
query I rowsort label-5926
SELECT - 51 * + - MIN ( 62 ) - - + 38 AS col2
----
3200

query I rowsort
SELECT + 20 + + 52 + - 22 * 63 AS col2
----
-1314

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5928
SELECT ALL - - CAST( CAST( 22 AS DECIMAL ) AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL - - CAST ( CAST ( 22 AS REAL ) AS INTEGER )
----
22

query I rowsort
SELECT ALL - ( 30 ) col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT COUNT( * ) - - + 41
----
42

skipif mysql # not compatible
query I rowsort label-5930
SELECT COUNT ( * ) - - + 41
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5931
SELECT DISTINCT - 2 DIV + 36 * + 45
----
0

skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - 2 / + 36 * + 45
----
0

query I rowsort
SELECT ALL - 17 col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT MIN( DISTINCT ( - 3 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-5933
SELECT MIN ( DISTINCT ( - 3 ) ) AS col1
----
-3

query II rowsort
SELECT 82, + 84 AS col0
----
82
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5935
SELECT - MAX( - + CAST( NULL AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT - MAX ( - + CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5936
SELECT - MAX( DISTINCT 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-5936
SELECT - MAX ( DISTINCT 49 )
----
-49

query I rowsort
SELECT 2 col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT + - 68 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5938
SELECT + - 68 / - 75 AS col2
----
0

query I rowsort
SELECT ALL - ( + 34 ) AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL 2 * + + COUNT( * ) * - ( - + COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL 2 * + + COUNT ( * ) * - ( - + COUNT ( * ) ) AS col0
----
2

query I rowsort
SELECT 10 * 37
----
370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5942
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + ( - 64 ) AS col2
----
-64

query II rowsort
SELECT - 0, 76 AS col2
----
0
76

onlyif mysql # aggregate syntax: 
query II rowsort label-5945
SELECT ALL - COUNT( * ) col0, 8
----
-1
8

skipif mysql # not compatible
query II rowsort label-5945
SELECT ALL - COUNT ( * ) col0, 8
----
-1
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5946
SELECT ALL - COUNT( * ) + - 46 DIV + 37 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL - COUNT ( * ) + - 46 / + 37 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT SUM( ALL + 44 ) * + - 14
----
-616

skipif mysql # not compatible
query I rowsort label-5947
SELECT SUM ( ALL + 44 ) * + - 14
----
-616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5948
SELECT COUNT( * ) + + COUNT( * ) * + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT COUNT ( * ) + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query II rowsort
SELECT ALL + 67 * + 57, + 13 AS col1
----
3819
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT ALL + NULLIF ( - + 95, 89 ) DIV COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL + NULLIF ( - + 95, 89 ) / COUNT ( * ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5951
SELECT - ( + + MIN( + - 56 ) ) * + 3 - - - COUNT( * )
----
167

skipif mysql # not compatible
query I rowsort label-5951
SELECT - ( + + MIN ( + - 56 ) ) * + 3 - - - COUNT ( * )
----
167

query I rowsort
SELECT + 61 * 13 AS col1
----
793

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT CAST( 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5953
SELECT CAST ( 79 AS INTEGER ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT ALL + CAST( + 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL + CAST ( + 47 AS INTEGER )
----
47

query I rowsort
SELECT 25 * - + 83 AS col0
----
-2075

onlyif mysql # DIV for integer division: 
query I rowsort label-5956
SELECT DISTINCT - 50 DIV - + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT - 50 / - + 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT + MIN( DISTINCT + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-5957
SELECT + MIN ( DISTINCT + 25 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-5958
SELECT ALL - COUNT( * ) + COUNT( * ) - 82 + COUNT( * ) col0, - 5 col0
----
-81
-5

skipif mysql # not compatible
query II rowsort label-5958
SELECT ALL - COUNT ( * ) + COUNT ( * ) - 82 + COUNT ( * ) col0, - 5 col0
----
-81
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5959
SELECT ALL 5, 73 * + 37 * + COUNT( * ) AS col1
----
5
2701

skipif mysql # not compatible
query II rowsort label-5959
SELECT ALL 5, 73 * + 37 * + COUNT ( * ) AS col1
----
5
2701

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - COUNT( DISTINCT - - 22 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5960
SELECT - COUNT ( DISTINCT - - 22 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT 4 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5961
SELECT 4 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5962
SELECT ALL COUNT( * ) + + - ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL COUNT ( * ) + + - ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT ALL 8 * COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL 8 * COUNT ( * ) AS col2
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5964
SELECT ALL + 13 DIV ( - + SUM( DISTINCT 54 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + 13 / ( - + SUM ( DISTINCT 54 ) ) col1
----
0

query I rowsort
SELECT ( ( - - 70 ) )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5966
SELECT ALL - 72 * COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL - 72 * COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT ALL 50 * - COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL 50 * - COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT DISTINCT COUNT( * ) * + 84
----
84

skipif mysql # not compatible
query I rowsort label-5968
SELECT DISTINCT COUNT ( * ) * + 84
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5969
SELECT + 20 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-5969
SELECT + 20 / - 66
----
0

query I rowsort
SELECT DISTINCT + - 80 AS col1
----
-80

query I rowsort
SELECT DISTINCT - ( + 50 ) * - 90
----
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT 49 * - + COUNT( * ) * + + 63 AS col1
----
-3087

skipif mysql # not compatible
query I rowsort label-5972
SELECT 49 * - + COUNT ( * ) * + + 63 AS col1
----
-3087

query I rowsort
SELECT ALL + 24 - - 87 AS col1
----
111

query I rowsort
SELECT 25 * ( + 41 ) AS col0
----
1025

query I rowsort
SELECT - 32 * - 0 + - 29 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT ALL - MAX( + - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL - MAX ( + - 44 )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5977
SELECT - 7 * - + COUNT( * ) AS col1, 20
----
7
20

skipif mysql # not compatible
query II rowsort label-5977
SELECT - 7 * - + COUNT ( * ) AS col1, 20
----
7
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT DISTINCT + - MAX( ALL 42 ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT + - MAX ( ALL 42 ) col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT ( NULLIF ( ( - 21 ), - COUNT( * ) ) )
----
-21

skipif mysql # not compatible
query I rowsort label-5979
SELECT ( NULLIF ( ( - 21 ), - COUNT ( * ) ) )
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5980
SELECT ALL + 93 AS col0, - COUNT( * ) AS col0
----
93
-1

skipif mysql # not compatible
query II rowsort label-5980
SELECT ALL + 93 AS col0, - COUNT ( * ) AS col0
----
93
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5981
SELECT ALL + 68 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL + 68 / 45
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL + ( - - COUNT( * ) ) + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + ( - - COUNT ( * ) ) + - 46
----
-45

query II rowsort
SELECT ALL ( - 4 ) AS col2, 91
----
-4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT + 32 * - MAX( 65 ) AS col0
----
-2080

skipif mysql # not compatible
query I rowsort label-5984
SELECT + 32 * - MAX ( 65 ) AS col0
----
-2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5985
SELECT - CAST( COUNT( * ) AS SIGNED ) * + - 65 + - + COUNT( * ) * - 64 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-5985
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + - 65 + - + COUNT ( * ) * - 64 AS col1
----
129

query I rowsort
SELECT 54 * - + 61 AS col2
----
-3294

query I rowsort
SELECT + 96 * ( 53 ) AS col0
----
5088

onlyif mysql # aggregate syntax: 
query II rowsort label-5988
SELECT - COUNT( * ) AS col0, + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-5988
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT ALL + - 21 * - 49 AS col1
----
1029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5990
SELECT CAST( NULL AS SIGNED ) + - 31 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT CAST ( NULL AS INTEGER ) + - 31 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT COUNT( * ) + - + 75 * + 97
----
-7274

skipif mysql # not compatible
query I rowsort label-5991
SELECT COUNT ( * ) + - + 75 * + 97
----
-7274

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5992
SELECT 67 DIV + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-5992
SELECT 67 / + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT - MIN( + ( + 55 ) ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5993
SELECT - MIN ( + ( + 55 ) ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT + 43 - COUNT( * ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-5994
SELECT + 43 - COUNT ( * ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT - + COUNT( DISTINCT + 43 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5995
SELECT - + COUNT ( DISTINCT + 43 ) AS col2
----
-1

query I rowsort
SELECT + ( + - 29 ) col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL - COUNT( * ) + - 50 - ( - ( - 59 ) ) col2
----
-110

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL - COUNT ( * ) + - 50 - ( - ( - 59 ) ) col2
----
-110

query I rowsort
SELECT NULLIF ( 57, - - 97 ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5999
SELECT + + CAST( NULL AS SIGNED ) - - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT + + CAST ( NULL AS INTEGER ) - - - COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + 70 ) AS col1
----
-70

query I rowsort
SELECT 51 - + 6 AS col0
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6002
SELECT ALL + 2 DIV + - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL + 2 / + - 70 AS col2
----
0

query II rowsort
SELECT - 47, 27 AS col1
----
-47
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT MIN( + + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT MIN ( + + 55 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT ALL SUM( DISTINCT + + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL SUM ( DISTINCT + + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ( 72 ) * COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6006
SELECT ( 72 ) * COUNT ( * )
----
72

query I rowsort
SELECT + ( + + 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT + - COUNT( 11 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6008
SELECT + - COUNT ( 11 ) AS col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6009
SELECT DISTINCT + - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) * + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT + - AVG ( DISTINCT CAST ( NULL AS REAL ) ) * + 5 AS col2
----
NULL

query I rowsort
SELECT ALL + ( + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6011
SELECT DISTINCT 44 - - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT 44 - - COUNT ( * ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6012
SELECT - ( + COUNT( * ) ), + 58 - 16 AS col1
----
-1
42

skipif mysql # not compatible
query II rowsort label-6012
SELECT - ( + COUNT ( * ) ), + 58 - 16 AS col1
----
-1
42

query I rowsort
SELECT ( + 97 ) col2
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6014
SELECT DISTINCT SUM( + 74 ) * + 6, COUNT( * ) AS col1
----
444
1

skipif mysql # not compatible
query II rowsort label-6014
SELECT DISTINCT SUM ( + 74 ) * + 6, COUNT ( * ) AS col1
----
444
1

query I rowsort
SELECT + 79 * 40 + + 72
----
3232

query I rowsort
SELECT 72 - 66 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL - COUNT( 32 )
----
-1

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - COUNT ( 32 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6018
SELECT ALL 7 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL 7 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6019
SELECT ALL COUNT( * ) * + - 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL COUNT ( * ) * + - 31 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT + SUM( - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-6020
SELECT + SUM ( - 66 ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT 20 + - + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-6021
SELECT 20 + - + COUNT ( * )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6022
SELECT - 30 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT - 30 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 10 * + 96 AS col1
----
-960

query I rowsort
SELECT - 58 * 45
----
-2610

query I rowsort
SELECT - 76 + + 25 col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL COALESCE ( 99, COUNT( * ) )
----
99

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL COALESCE ( 99, COUNT ( * ) )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT - 22 * ( COUNT( * ) ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-6027
SELECT - 22 * ( COUNT ( * ) ) AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT + COUNT( DISTINCT - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-6028
SELECT + COUNT ( DISTINCT - 10 )
----
1

query I rowsort
SELECT + COALESCE ( - 42, 38 ) AS col0
----
-42

query I rowsort
SELECT ( 30 )
----
30

query I rowsort
SELECT ( ( + 9 ) )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6032
SELECT DISTINCT + COUNT( ALL CAST( - 42 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT + COUNT ( ALL CAST ( - 42 AS INTEGER ) ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6033
SELECT + + 20 - - 41 DIV COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6033
SELECT + + 20 - - 41 / COUNT ( * ) AS col2
----
61

query I rowsort
SELECT DISTINCT - 80 col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT - COUNT( * ) + - 24 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-6035
SELECT - COUNT ( * ) + - 24 AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6036
SELECT CAST( + - 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-6036
SELECT CAST ( + - 54 AS INTEGER )
----
-54

query I rowsort
SELECT ( - - 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6038
SELECT DISTINCT 94 * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT 94 * COUNT ( * )
----
94

query I rowsort
SELECT 36 - 90
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6040
SELECT - 9 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 9 / 98
----
0

query I rowsort
SELECT 11 + + 51
----
62

query I rowsort
SELECT ALL 61 + 7 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT + ( - + COUNT( * ) ) + 67 * 44 AS col2
----
2947

skipif mysql # not compatible
query I rowsort label-6043
SELECT + ( - + COUNT ( * ) ) + 67 * 44 AS col2
----
2947

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT - MAX( + - 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6044
SELECT - MAX ( + - 84 ) AS col0
----
84

query I rowsort
SELECT ALL 35 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT COUNT( * ) - + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6046
SELECT COUNT ( * ) - + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT NULLIF ( + ( - COUNT( * ) ), - + COUNT( * ) ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-6047
SELECT NULLIF ( + ( - COUNT ( * ) ), - + COUNT ( * ) ) + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT ALL + COALESCE ( + 32, + COUNT( * ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL + COALESCE ( + 32, + COUNT ( * ) ) AS col2
----
32

query I rowsort
SELECT ALL + - 54 col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT DISTINCT - 13 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT - 13 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL CAST( + + 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL CAST ( + + 79 AS INTEGER )
----
79

query I rowsort
SELECT + 26 + + - 37 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL COUNT( * ) * - 4
----
-4

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL COUNT ( * ) * - 4
----
-4

query I rowsort
SELECT + 7 * + 81
----
567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT CAST( + 62 AS SIGNED ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6055
SELECT CAST ( + 62 AS INTEGER ) AS col1
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6056
SELECT + NULLIF ( + + 85, CAST( NULL AS DECIMAL ) ) * + 1 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6056
SELECT + NULLIF ( + + 85, CAST ( NULL AS REAL ) ) * + 1 AS col1
----
85

query I rowsort
SELECT + - ( - 10 )
----
10

query I rowsort
SELECT + + 35 * - - 48
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT NULLIF ( - 43, - COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-6059
SELECT NULLIF ( - 43, - COUNT ( * ) )
----
-43

query I rowsort
SELECT 30 * - 89 AS col1
----
-2670

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT 20 + COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-6061
SELECT 20 + COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT + COUNT( * ) * + + 70 + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT + COUNT ( * ) * + + 70 + COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL - MIN( DISTINCT + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL - MIN ( DISTINCT + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT COUNT( * ) + + - 4 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-6064
SELECT COUNT ( * ) + + - 4 AS col1
----
-3

query I rowsort
SELECT 65 * 42 AS col0
----
2730

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT ALL + CAST( NULL AS SIGNED ) + + SUM( DISTINCT + 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL + CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT + 59 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 39 col1
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6068
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT + 48 - - + 27
----
75

query I rowsort
SELECT - + 23 * + - 84
----
1932

query I rowsort
SELECT - + 74 + - 93 + 76 AS col2
----
-91

query I rowsort
SELECT ALL + - 64 col2
----
-64

query I rowsort
SELECT DISTINCT + ( - - 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT - 31 * - COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-6074
SELECT - 31 * - COUNT ( * )
----
31

query I rowsort
SELECT ALL - 28 * - 1 + + + 25
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT - ( MAX( ALL + - 88 ) ) col1
----
88

skipif mysql # not compatible
query I rowsort label-6076
SELECT - ( MAX ( ALL + - 88 ) ) col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT DISTINCT SUM( - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT SUM ( - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT 96 * - + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT 96 * - + COUNT ( * )
----
-96

query I rowsort
SELECT DISTINCT + 1 * 98 AS col1
----
98

query I rowsort
SELECT + 77 + 27 - + + 80 AS col1
----
24

query I rowsort
SELECT ALL - 18 col2
----
-18

query I rowsort
SELECT ALL 96 * 26 AS col2
----
2496

query I rowsort
SELECT + 35 * + - ( 15 )
----
-525

query I rowsort
SELECT 67 + 18 AS col2
----
85

query I rowsort
SELECT 99 + - - 50
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT COUNT( * ) + 30 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6086
SELECT COUNT ( * ) + 30 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6087
SELECT DISTINCT CAST( + COUNT( - + 57 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT CAST ( + COUNT ( - + 57 ) AS INTEGER ) AS col0
----
1

query II rowsort
SELECT ALL + 87 AS col0, - 22 AS col2
----
87
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT - 41 * COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-6089
SELECT - 41 * COUNT ( * )
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-6090
SELECT DISTINCT 6 AS col0, + MIN( - 17 ) + - MIN( DISTINCT 77 ) AS col2
----
6
-94

skipif mysql # not compatible
query II rowsort label-6090
SELECT DISTINCT 6 AS col0, + MIN ( - 17 ) + - MIN ( DISTINCT 77 ) AS col2
----
6
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT + + 96 * + COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-6091
SELECT + + 96 * + COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6092
SELECT - 61 + + + COUNT( * ), + ( COUNT( * ) ) * + 73 AS col0
----
-60
73

skipif mysql # not compatible
query II rowsort label-6092
SELECT - 61 + + + COUNT ( * ), + ( COUNT ( * ) ) * + 73 AS col0
----
-60
73

query I rowsort
SELECT - ( + + 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6094
SELECT ALL - 53 * - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - 53 * - COUNT ( * )
----
53

query I rowsort
SELECT ALL + ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT COUNT( * ) + + 0
----
1

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT COUNT ( * ) + + 0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT DISTINCT + SUM( - 26 ) * + 6 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-6097
SELECT DISTINCT + SUM ( - 26 ) * + 6 AS col0
----
-156

query I rowsort
SELECT DISTINCT + 12 + - 75 AS col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6099
SELECT + ( - COUNT( * ) ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6099
SELECT + ( - COUNT ( * ) ) / + COUNT ( * )
----
-1

query I rowsort
SELECT + - 87 col0
----
-87

query I rowsort
SELECT 46 + - 46
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6102
SELECT DISTINCT CAST( - 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT CAST ( - 12 AS INTEGER )
----
-12

query I rowsort
SELECT ALL - 92 * + 65
----
-5980

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - MIN( - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6104
SELECT - MIN ( - 68 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6105
SELECT 63 AS col1, - CAST( NULL AS SIGNED ) + + - 88
----
63
NULL

skipif mysql # not compatible
query II rowsort label-6105
SELECT 63 AS col1, - CAST ( NULL AS INTEGER ) + + - 88
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT - COUNT( * ) * + + 36 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6106
SELECT - COUNT ( * ) * + + 36 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT - COUNT( DISTINCT - 60 ) * + - 52 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6107
SELECT - COUNT ( DISTINCT - 60 ) * + - 52 AS col0
----
52

query I rowsort
SELECT DISTINCT 65 + + 26
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL COUNT( * ) + + 29 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL COUNT ( * ) + + 29 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL SUM( 32 )
----
32

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL SUM ( 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL + NULLIF ( SUM( ALL - + 62 ), COUNT( DISTINCT 56 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL + NULLIF ( SUM ( ALL - + 62 ), COUNT ( DISTINCT 56 ) )
----
-62

query I rowsort
SELECT DISTINCT - ( + 93 ) * + 26 AS col2
----
-2418

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT NULLIF ( - 95, - + COUNT( * ) * + - 33 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-6113
SELECT NULLIF ( - 95, - + COUNT ( * ) * + - 33 ) AS col0
----
-95

query I rowsort
SELECT ALL 60 + - + 15 AS col2
----
45

query II rowsort
SELECT DISTINCT - 53 + + ( 39 ) AS col0, - 34
----
-14
-34

query I rowsort
SELECT DISTINCT - 90 + + 95 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT ALL + 38 + + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + 38 + + COUNT ( * ) AS col2
----
39

query I rowsort
SELECT 9 * + 68
----
612

query I rowsort
SELECT ALL - 77 * + - 94 AS col1
----
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT 18 + + COUNT( * ) - - - 55 + - + COUNT( * ) * ( COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-6120
SELECT 18 + + COUNT ( * ) - - - 55 + - + COUNT ( * ) * ( COUNT ( * ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT - COUNT( * ) - + + 56 * 59
----
-3305

skipif mysql # not compatible
query I rowsort label-6121
SELECT - COUNT ( * ) - + + 56 * 59
----
-3305

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT + - CAST( - 44 AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6122
SELECT + - CAST ( - 44 AS INTEGER ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6123
SELECT - COUNT( - 77 ) AS col0, + 59
----
-1
59

skipif mysql # not compatible
query II rowsort label-6123
SELECT - COUNT ( - 77 ) AS col0, + 59
----
-1
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6124
SELECT DISTINCT + 18 DIV + CAST( 47 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT + 18 / + CAST ( 47 AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT + - 9 col0
----
-9

query I rowsort
SELECT DISTINCT + 20 * + 56
----
1120

query I rowsort
SELECT ( 74 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6128
SELECT + COUNT( * ) + - 45 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT + COUNT ( * ) + - 45 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT - COUNT( * ) * 92
----
-92

skipif mysql # not compatible
query I rowsort label-6129
SELECT - COUNT ( * ) * 92
----
-92

query I rowsort
SELECT + ( + ( + 31 ) ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT SUM( - + 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6131
SELECT SUM ( - + 93 ) AS col0
----
-93

query I rowsort
SELECT DISTINCT 35 + - + 67
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT - SUM( ALL 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-6133
SELECT - SUM ( ALL 42 ) AS col0
----
-42

query I rowsort
SELECT - ( + 46 ) AS col0
----
-46

query I rowsort
SELECT DISTINCT + 12 + - 11 + - 53 * + 14 + 20 AS col2
----
-721

query I rowsort
SELECT DISTINCT - + ( + 14 )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT 99 * - 4 * - COUNT( * )
----
396

skipif mysql # not compatible
query I rowsort label-6137
SELECT 99 * - 4 * - COUNT ( * )
----
396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT DISTINCT - NULLIF ( - 12, + CAST( - 14 AS SIGNED ) + - CAST( + 26 AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-6138
SELECT DISTINCT - NULLIF ( - 12, + CAST ( - 14 AS INTEGER ) + - CAST ( + 26 AS INTEGER ) )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT ALL + MAX( - - 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL + MAX ( - - 62 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT + 6 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6140
SELECT + 6 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT 89 + - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-6141
SELECT 89 + - COUNT ( * )
----
88

query I rowsort
SELECT ALL - 79 col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6143
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) / 78 + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) / 78 + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL - COUNT( * ) * - 31
----
31

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL - COUNT ( * ) * - 31
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6145
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - 12 AS col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-6145
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - 12 AS col0
----
NULL
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT 82 * - - 68 + 35 * - COUNT( * ) AS col1
----
5541

skipif mysql # not compatible
query I rowsort label-6146
SELECT 82 * - - 68 + 35 * - COUNT ( * ) AS col1
----
5541

query II rowsort
SELECT + 23 AS col2, - 50
----
23
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6148
SELECT ALL + - ( + CAST( + 85 AS SIGNED ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL + - ( + CAST ( + 85 AS INTEGER ) ) AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6149
SELECT - 72 + - COUNT( * ) * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT - 72 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT + - 46 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT ALL + COUNT( * ) * + ( 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + COUNT ( * ) * + ( 63 ) AS col2
----
63

query II rowsort
SELECT DISTINCT 90 + + 61, - 40 AS col2
----
151
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6153
SELECT + 47 DIV COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-6153
SELECT + 47 / COUNT ( * )
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6154
SELECT COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6154
SELECT COUNT ( * ) / COUNT ( * ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6155
SELECT ALL CAST( NULL AS SIGNED ) - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL CAST ( NULL AS INTEGER ) - 49 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT - MAX( + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-6156
SELECT - MAX ( + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT + SUM( - + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT + SUM ( - + 9 )
----
-9

query I rowsort
SELECT + ( 50 ) col0
----
50

query I rowsort
SELECT ALL - 19 * 98 AS col1
----
-1862

query I rowsort
SELECT + + 27 AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6161
SELECT - + COALESCE ( - - 88, + 84, + ( COUNT( * ) ) ) / NULLIF ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6161
SELECT - + COALESCE ( - - 88, + 84, + ( COUNT ( * ) ) ) / NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + ( 81 )
----
81

query I rowsort
SELECT ALL + 44 + + - 18 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL + - COUNT( * ) + + + 58
----
57

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + - COUNT ( * ) + + + 58
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT + SUM( 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-6165
SELECT + SUM ( 33 ) AS col0
----
33

query I rowsort
SELECT - 61 * 38 * - - 99 AS col2
----
-229482

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT 62 DIV - ( - + 49 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6167
SELECT 62 / - ( - + 49 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6168
SELECT DISTINCT + COALESCE ( + - 57, 65 ) DIV ( 41 ) + + - 82 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT + COALESCE ( + - 57, 65 ) / ( 41 ) + + - 82 AS col1
----
-83

query I rowsort
SELECT ALL + + 11 * - - 65
----
715

query I rowsort
SELECT 26 * 23 AS col1
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT MAX( - 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-6171
SELECT MAX ( - 61 ) AS col0
----
-61

query I rowsort
SELECT - + 16 + + - 75 col2
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6173
SELECT - CAST( NULL AS DECIMAL ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT - CAST ( NULL AS REAL ) + + 60
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT MIN( + 64 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-6174
SELECT MIN ( + 64 ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ( + - COUNT( ALL 30 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6175
SELECT ( + - COUNT ( ALL 30 ) ) col1
----
-1

query I rowsort
SELECT + 78 * - 53 * 8
----
-33072

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL + MIN( DISTINCT + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL + MIN ( DISTINCT + 28 )
----
28

query I rowsort
SELECT + - 62 + - 93 AS col0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT - MIN( ALL - - 37 ) + + - 44
----
-81

skipif mysql # not compatible
query I rowsort label-6179
SELECT - MIN ( ALL - - 37 ) + + - 44
----
-81

query I rowsort
SELECT ALL + + NULLIF ( 32, + 58 ) AS col0
----
32

query II rowsort
SELECT + 59, + 22 AS col1
----
59
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL - COALESCE ( + COUNT( * ), 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - COALESCE ( + COUNT ( * ), 50 )
----
-1

query I rowsort
SELECT - - 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT COUNT( ALL 5 )
----
1

skipif mysql # not compatible
query I rowsort label-6184
SELECT COUNT ( ALL 5 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6185
SELECT ( - CAST( NULL AS DECIMAL ) ) + ( + + CAST( NULL AS DECIMAL ) ) + - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6185
SELECT ( - CAST ( NULL AS REAL ) ) + ( + + CAST ( NULL AS REAL ) ) + - 36 AS col2
----
NULL

query I rowsort
SELECT ALL 31 + - 64
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT ALL - NULLIF ( - 74, - - CAST( NULL AS SIGNED ) )
----
74

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - NULLIF ( - 74, - - CAST ( NULL AS INTEGER ) )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT + SUM( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-6188
SELECT + SUM ( 16 )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6189
SELECT ALL - CAST( NULL AS SIGNED ) * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL - CAST ( NULL AS INTEGER ) * 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT DISTINCT CAST( - ( - CAST( - - 78 AS SIGNED ) ) AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT CAST ( - ( - CAST ( - - 78 AS INTEGER ) ) AS INTEGER )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT DISTINCT 75 + - MAX( ALL - 99 ) AS col2
----
174

skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT 75 + - MAX ( ALL - 99 ) AS col2
----
174

query I rowsort
SELECT DISTINCT + ( + 83 ) AS col1
----
83

query I rowsort
SELECT + NULLIF ( - + ( - 19 ), + 52 ) AS col2
----
19

query I rowsort
SELECT DISTINCT + + 23 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT + COUNT( + ( - + 84 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT + COUNT ( + ( - + 84 ) )
----
1

query I rowsort
SELECT - + ( 10 )
----
-10

query I rowsort
SELECT DISTINCT ( + 26 ) AS col1
----
26

query I rowsort
SELECT ALL ( + + 74 ) AS col1
----
74

query I rowsort
SELECT ALL + ( 35 )
----
35

query I rowsort
SELECT DISTINCT + - 74
----
-74

query I rowsort
SELECT ALL + - 5 + 78 AS col0
----
73

query I rowsort
SELECT - 20 * + 94 col2
----
-1880

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT + 47 + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-6203
SELECT + 47 + COUNT ( * )
----
48

query II rowsort
SELECT + 62 AS col2, 22 * 83 AS col0
----
62
1826

onlyif mysql # aggregate syntax: 
query I rowsort label-6205
SELECT - 80 - - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-6205
SELECT - 80 - - COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6206
SELECT ALL COUNT( * ) * + + 64, 72 AS col0
----
64
72

skipif mysql # not compatible
query II rowsort label-6206
SELECT ALL COUNT ( * ) * + + 64, 72 AS col0
----
64
72

query I rowsort
SELECT + - 26 AS col1
----
-26

query I rowsort
SELECT ALL + - 54 AS col1
----
-54

query I rowsort
SELECT ALL + - COALESCE ( + 90, + - 47 + + 30 + - - ( + 32 ) ) col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT - COUNT( ALL - - 4 ) * - - 67
----
-67

skipif mysql # not compatible
query I rowsort label-6210
SELECT - COUNT ( ALL - - 4 ) * - - 67
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT - ( + + COUNT( * ) ) - 59 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-6211
SELECT - ( + + COUNT ( * ) ) - 59 AS col0
----
-60

query I rowsort
SELECT 21 * - + 98
----
-2058

query I rowsort
SELECT 24 * 77
----
1848

query I rowsort
SELECT 50 + - 26 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT ALL - ( - COUNT( * ) ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL - ( - COUNT ( * ) ) * + 15
----
15

query I rowsort
SELECT 50 * + + 15 + - 29 AS col2
----
721

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT DISTINCT COUNT( * ) * - 82
----
-82

skipif mysql # not compatible
query I rowsort label-6217
SELECT DISTINCT COUNT ( * ) * - 82
----
-82

query I rowsort
SELECT - 88 + + - 82
----
-170

query II rowsort
SELECT 99 AS col1, + 28 AS col2
----
99
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6220
SELECT ALL + CAST( - - 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + CAST ( - - 45 AS INTEGER )
----
45

query I rowsort
SELECT - ( - ( 90 ) ) AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-6222
SELECT DISTINCT + + 70 DIV - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT + + 70 / - 91 AS col1
----
0

query I rowsort
SELECT + - 69 * + 26 + + - 95 AS col0
----
-1889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6224
SELECT ALL + CAST( - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + CAST ( - 48 AS INTEGER )
----
-48

query I rowsort
SELECT + ( - ( - 38 ) )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6226
SELECT + 11 DIV COUNT( * ), + 82 AS col2
----
11
82

skipif mysql # not compatible
query II rowsort label-6226
SELECT + 11 / COUNT ( * ), + 82 AS col2
----
11
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT MIN( ALL + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-6227
SELECT MIN ( ALL + 63 )
----
63

query I rowsort
SELECT DISTINCT + 97 col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT - + ( + MIN( + - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6229
SELECT - + ( + MIN ( + - 1 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT COUNT( * ) * - - 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-6230
SELECT COUNT ( * ) * - - 73 AS col0
----
73

query I rowsort
SELECT 50 * + - 77
----
-3850

query I rowsort
SELECT DISTINCT 54 + 93
----
147

query II rowsort
SELECT DISTINCT 74 AS col0, + 47
----
74
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL + COALESCE ( - + 61, COUNT( * ), - 68 - - 92 ) * 93 AS col2
----
-5673

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + COALESCE ( - + 61, COUNT ( * ), - 68 - - 92 ) * 93 AS col2
----
-5673

query I rowsort
SELECT + ( 69 ) * + 59 AS col1
----
4071

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT ALL COUNT( DISTINCT + + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL COUNT ( DISTINCT + + 39 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT + 59 * + CAST( 90 AS SIGNED ) col0
----
5310

skipif mysql # not compatible
query I rowsort label-6237
SELECT + 59 * + CAST ( 90 AS INTEGER ) col0
----
5310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT DISTINCT ( CAST( 57 AS SIGNED ) ) * 53 * COUNT( * ) AS col2
----
3021

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT ( CAST ( 57 AS INTEGER ) ) * 53 * COUNT ( * ) AS col2
----
3021

query I rowsort
SELECT + 52 - 49 AS col2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6240
SELECT - - 76 DIV - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-6240
SELECT - - 76 / - - COUNT ( * )
----
76

query I rowsort
SELECT - + 32 * + - 81 AS col1
----
2592

query I rowsort
SELECT DISTINCT + + 53 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT - CAST( + + 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6243
SELECT - CAST ( + + 99 AS INTEGER ) AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - 19 * + COUNT( * ) + + 14 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-6244
SELECT - 19 * + COUNT ( * ) + + 14 AS col1
----
-5

query I rowsort
SELECT DISTINCT - + 26 AS col1
----
-26

query I rowsort
SELECT ALL - - 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT - COUNT( * ) * - 34
----
34

skipif mysql # not compatible
query I rowsort label-6247
SELECT - COUNT ( * ) * - 34
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT ALL + 28 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL + 28 + + COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT - CASE + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) END * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) END * + 71 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( 30 ) AS col2
----
-30

query II rowsort
SELECT 4 AS col0, 56
----
4
56

query I rowsort
SELECT ALL + ( 75 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT ALL + 87 * - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL + 87 * - COUNT ( * )
----
-87

query I rowsort
SELECT ALL + ( ( + 18 ) ) AS col1
----
18

query I rowsort
SELECT ALL + - 98 col1
----
-98

query I rowsort
SELECT + 82 * + 30 * - 71
----
-174660

onlyif mysql # DIV for integer division: 
query I rowsort label-6257
SELECT ALL 94 DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL 94 / - 65
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6258
SELECT ALL COUNT( * ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL COUNT ( * ) / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT 84 + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6259
SELECT 84 + - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT - 80 * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT - 80 * + COUNT ( * )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ALL - + COUNT( * ) + 64 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL - + COUNT ( * ) + 64 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6262
SELECT ALL + 99 - + 28 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + 99 - + 28 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6263
SELECT DISTINCT 83 DIV + - 97 * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT 83 / + - 97 * + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ( + - 44 ) + 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT + COUNT( * ) * COUNT( * ) * 70
----
70

skipif mysql # not compatible
query I rowsort label-6265
SELECT + COUNT ( * ) * COUNT ( * ) * 70
----
70

query I rowsort
SELECT DISTINCT - 12 + 6 AS col1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6267
SELECT - - CAST( + - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-6267
SELECT - - CAST ( + - 91 AS INTEGER )
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6268
SELECT ALL + COUNT( * ) * - CAST( - 96 AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL + COUNT ( * ) * - CAST ( - 96 AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6269
SELECT DISTINCT + - CAST( - MAX( 29 ) AS SIGNED ) * 42 col0
----
1218

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT + - CAST ( - MAX ( 29 ) AS INTEGER ) * 42 col0
----
1218

query I rowsort
SELECT ( - - 34 ) AS col1
----
34

query I rowsort
SELECT DISTINCT 42 * + + 18
----
756

query I rowsort
SELECT - 23 * + 85
----
-1955

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT COUNT( - + 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6273
SELECT COUNT ( - + 66 ) AS col2
----
1

query I rowsort
SELECT + 63 + + 11 AS col1
----
74

query I rowsort
SELECT + ( + 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL + COUNT( * ) * - 95
----
-95

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + COUNT ( * ) * - 95
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6277
SELECT DISTINCT + 5 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT + 5 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 24 + + 48
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT 84 DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-6279
SELECT 84 / 76
----
1

query I rowsort
SELECT 19 * - 18 AS col1
----
-342

query I rowsort
SELECT ALL - - ( - + 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-6282
SELECT ALL 92 AS col2, MIN( - - 77 ) col1
----
92
77

skipif mysql # not compatible
query II rowsort label-6282
SELECT ALL 92 AS col2, MIN ( - - 77 ) col1
----
92
77

query II rowsort
SELECT - 3 AS col2, 30 AS col2
----
-3
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT ALL 18 + - ( COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL 18 + - ( COUNT ( * ) )
----
17

query I rowsort
SELECT ALL + 57 col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT DISTINCT + SUM( ALL - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + SUM ( ALL - 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT ALL + COUNT( ALL 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL + COUNT ( ALL 35 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6288
SELECT DISTINCT + - COUNT( * ) col1, + 68 - 36
----
-1
32

skipif mysql # not compatible
query II rowsort label-6288
SELECT DISTINCT + - COUNT ( * ) col1, + 68 - 36
----
-1
32

onlyif mysql # aggregate syntax: 
query II rowsort label-6289
SELECT - COUNT( * ), - 83 AS col1
----
-1
-83

skipif mysql # not compatible
query II rowsort label-6289
SELECT - COUNT ( * ), - 83 AS col1
----
-1
-83

query I rowsort
SELECT - - 54 + - + 81
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT - COUNT( + - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-6291
SELECT - COUNT ( + - 0 )
----
-1

query I rowsort
SELECT + 23 + - - 34
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT + 17 * - + 92 * + + COUNT( * ) AS col2
----
-1564

skipif mysql # not compatible
query I rowsort label-6293
SELECT + 17 * - + 92 * + + COUNT ( * ) AS col2
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT + 98 - - 96 + + + 57 * - - COUNT( * ) AS col1
----
251

skipif mysql # not compatible
query I rowsort label-6294
SELECT + 98 - - 96 + + + 57 * - - COUNT ( * ) AS col1
----
251

query I rowsort
SELECT + 63 * + 13 AS col1
----
819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6296
SELECT ALL COUNT( * ) * - 68 + + + 8 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL COUNT ( * ) * - 68 + + + 8 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 83 * - 6 AS col1
----
-498

onlyif mysql # DIV for integer division: 
query I rowsort label-6298
SELECT ALL + - 45 DIV - ( + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL + - 45 / - ( + 55 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT 18 + - - 60 + + + ( + COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-6299
SELECT 18 + - - 60 + + + ( + COUNT ( * ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT - + MIN( + - 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT - + MIN ( + - 47 ) AS col2
----
47

query I rowsort
SELECT 18 * - 91
----
-1638

query I rowsort
SELECT ALL - - 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT + COUNT( DISTINCT - 48 )
----
1

skipif mysql # not compatible
query I rowsort label-6303
SELECT + COUNT ( DISTINCT - 48 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT - + 55 * + COUNT( * ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-6304
SELECT - + 55 * + COUNT ( * ) col0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT DISTINCT NULLIF ( 18, + 77 ) * - 45 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT NULLIF ( 18, + 77 ) * - 45 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6306
SELECT 38 * - + 24 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6306
SELECT 38 * - + 24 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6307
SELECT DISTINCT - + 56 * COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), + 21 ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-6307
SELECT DISTINCT - + 56 * COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), + 21 ) AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT DISTINCT COUNT( * ) + + 44 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-6308
SELECT DISTINCT COUNT ( * ) + + 44 AS col1
----
45

query I rowsort
SELECT DISTINCT - ( + 4 ) AS col1
----
-4

query I rowsort
SELECT 57 + 96 AS col0
----
153

query I rowsort
SELECT DISTINCT 4 * - 79
----
-316

query I rowsort
SELECT - ( + 24 )
----
-24

query I rowsort
SELECT ALL - ( - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT + MIN( - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-6314
SELECT + MIN ( - 6 ) AS col2
----
-6

query II rowsort
SELECT ALL 39, 62 AS col2
----
39
62

query I rowsort
SELECT 82 - 30
----
52

query I rowsort
SELECT - - 8 + 40
----
48

query I rowsort
SELECT ALL + - 15 * + + 56
----
-840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6319
SELECT ALL - CAST( NULL AS SIGNED ) + - - 44 + + 6 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 44 + + 6 * - COUNT ( * )
----
NULL

query I rowsort
SELECT - ( + - 54 ) col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6321
SELECT - 42 * - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-6321
SELECT - 42 * - COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT ALL - COUNT( * ) * + + ( 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL - COUNT ( * ) * + + ( 67 )
----
-67

query I rowsort
SELECT ALL - + 77 AS col1
----
-77

query I rowsort
SELECT ALL + 54 * 18 - - 39 AS col1
----
1011

query II rowsort
SELECT 44 AS col2, + 17 AS col1
----
44
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6326
SELECT DISTINCT - ( - CAST( + + 9 AS SIGNED ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT - ( - CAST ( + + 9 AS INTEGER ) ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT COUNT( DISTINCT - 56 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6327
SELECT COUNT ( DISTINCT - 56 ) AS col1
----
1

query I rowsort
SELECT - + 9 * - + 66
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT ALL MAX( 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL MAX ( 2 ) AS col0
----
2

query II rowsort
SELECT ALL 55, + 83 AS col0
----
55
83

query I rowsort
SELECT - + 59 + 30 AS col2
----
-29

query I rowsort
SELECT ALL + 84 + 50
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT MIN( ALL 48 )
----
48

skipif mysql # not compatible
query I rowsort label-6333
SELECT MIN ( ALL 48 )
----
48

query I rowsort
SELECT DISTINCT - + 61 AS col0
----
-61

query I rowsort
SELECT + NULLIF ( 18, - 50 ) AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT + + CAST( + - 81 AS SIGNED ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6336
SELECT + + CAST ( + - 81 AS INTEGER ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT DISTINCT SUM( ALL 3 )
----
3

skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT SUM ( ALL 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT 35 * - MIN( DISTINCT + + 46 )
----
-1610

skipif mysql # not compatible
query I rowsort label-6338
SELECT 35 * - MIN ( DISTINCT + + 46 )
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT 17 - + ( MIN( DISTINCT + 80 ) )
----
-63

skipif mysql # not compatible
query I rowsort label-6339
SELECT 17 - + ( MIN ( DISTINCT + 80 ) )
----
-63

query I rowsort
SELECT ALL - - 27 col0
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6341
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6342
SELECT - MIN( + CAST( NULL AS SIGNED ) ) + + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) + + + 6
----
NULL

query I rowsort
SELECT + + ( - - 71 ) AS col1
----
71

query I rowsort
SELECT ALL 88 + + 48
----
136

query II rowsort
SELECT 66, 2 AS col0
----
66
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT - COUNT( * ) + + 69 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6346
SELECT - COUNT ( * ) + + 69 AS col2
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6347
SELECT + CAST( - 98 AS SIGNED ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6347
SELECT + CAST ( - 98 AS INTEGER ) AS col0
----
-98

query I rowsort
SELECT ALL + 25 * - - 11
----
275

query I rowsort
SELECT - NULLIF ( 85, - 28 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT MAX( + + 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6350
SELECT MAX ( + + 76 ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT MAX( 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6351
SELECT MAX ( 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT + - ( - - SUM( ALL + - 96 ) ) - + 67
----
29

skipif mysql # not compatible
query I rowsort label-6352
SELECT + - ( - - SUM ( ALL + - 96 ) ) - + 67
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6353
SELECT + - 59 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT + - 59 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT + + COUNT( - 74 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6354
SELECT + + COUNT ( - 74 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT DISTINCT - ( + + COUNT( * ) ) co