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( * ) ) col1
----
-1

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

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

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

query I rowsort
SELECT 0 * + 30
----
0

query I rowsort
SELECT 41 + + 60
----
101

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6360
SELECT COUNT( * ) * - 15 DIV - - 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT COUNT ( * ) * - 15 / - - 84 col1
----
0

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

skipif mysql # not compatible
query I rowsort label-6361
SELECT COUNT ( * ) / - 2
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL 23 / - + CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT + 57 * + COUNT( DISTINCT - - 74 )
----
57

skipif mysql # not compatible
query I rowsort label-6369
SELECT + 57 * + COUNT ( DISTINCT - - 74 )
----
57

query II rowsort
SELECT ALL - 15 AS col1, + 79 AS col1
----
-15
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6371
SELECT DISTINCT - CASE - - 0 WHEN COUNT( * ) THEN NULL ELSE - 23 END, 99 * - 75 AS col0
----
23
-7425

skipif mysql # not compatible
query II rowsort label-6371
SELECT DISTINCT - CASE - - 0 WHEN COUNT ( * ) THEN NULL ELSE - 23 END, 99 * - 75 AS col0
----
23
-7425

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT 41 + COUNT( * ) * 9
----
50

skipif mysql # not compatible
query I rowsort label-6373
SELECT 41 + COUNT ( * ) * 9
----
50

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

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

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

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

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

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

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

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

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

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

query II rowsort
SELECT + 93 col1, 2
----
93
2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 87 + + + 5
----
-82

query I rowsort
SELECT 69 + - + 89 * 85
----
-7496

query I rowsort
SELECT ALL + 9 * + 64 AS col2
----
576

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT ( 74 ) + + - COUNT( * ) col2
----
73

skipif mysql # not compatible
query I rowsort label-6397
SELECT ( 74 ) + + - COUNT ( * ) col2
----
73

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT DISTINCT + ( + + 41 ) * MIN( ALL 76 ) AS col2
----
3116

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT + ( + + 41 ) * MIN ( ALL 76 ) AS col2
----
3116

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT DISTINCT - 90 DIV - 53
----
1

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT - 90 / - 53
----
1

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6409
SELECT SUM ( + + 81 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6410
SELECT DISTINCT - ( - - 68 ) DIV MAX( DISTINCT + CAST( + + 27 AS SIGNED ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT - ( - - 68 ) / MAX ( DISTINCT + CAST ( + + 27 AS INTEGER ) ) AS col0
----
-2

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

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

query I rowsort
SELECT 83 + - 96 AS col1
----
-13

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT + COALESCE ( + + COUNT( * ), - + SUM( DISTINCT + - 57 ) + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6416
SELECT + COALESCE ( + + COUNT ( * ), - + SUM ( DISTINCT + - 57 ) + COUNT ( * ) ) AS col2
----
1

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

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

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

skipif mysql # not compatible
query I rowsort label-6418
SELECT MAX ( + + 48 )
----
48

query I rowsort
SELECT ALL + 78 * 67
----
5226

query I rowsort
SELECT DISTINCT + ( - - 90 ) * - ( + 0 )
----
0

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

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

query I rowsort
SELECT - 85 + - 51 AS col2
----
-136

query I rowsort
SELECT - 55 - 87
----
-142

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6426
SELECT + 51 DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6426
SELECT + 51 / - 88 AS col2
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6428
SELECT COUNT ( * ) + + CAST ( + + 26 AS INTEGER )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT - MIN( ALL - 6 ) - 78
----
-72

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT - MIN ( ALL - 6 ) - 78
----
-72

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

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

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

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + CAST ( NULL AS INTEGER ) / 80 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6432
SELECT ALL - + 23 DIV + 86 * + 45, + COUNT( * ) col1
----
0
1

skipif mysql # not compatible
query II rowsort label-6432
SELECT ALL - + 23 / + 86 * + 45, + COUNT ( * ) col1
----
0
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT - SUM( DISTINCT 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6435
SELECT - SUM ( DISTINCT 39 ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT ALL - 79 * - CAST( + + 98 AS SIGNED ) AS col1
----
7742

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL - 79 * - CAST ( + + 98 AS INTEGER ) AS col1
----
7742

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT - SUM( DISTINCT + 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6438
SELECT - SUM ( DISTINCT + 40 ) AS col0
----
-40

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

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

query II rowsort
SELECT ALL 47 AS col0, 33
----
47
33

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 55 + 78 + 54 AS col0
----
187

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6451
SELECT 98 * 63 DIV + COUNT( * )
----
6174

skipif mysql # not compatible
query I rowsort label-6451
SELECT 98 * 63 / + COUNT ( * )
----
6174

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

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

query II rowsort
SELECT ALL 1 AS col2, 68
----
1
68

query I rowsort
SELECT + 15 - + 0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6455
SELECT + - CAST( NULL AS DECIMAL ) + - COUNT( * ) + - - COUNT( * ), 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-6455
SELECT + - CAST ( NULL AS REAL ) + - COUNT ( * ) + - - COUNT ( * ), 46 AS col2
----
NULL
46

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

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

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

skipif mysql # not compatible
query I rowsort label-6457
SELECT + 75 - + COUNT ( * ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6458
SELECT ALL COUNT( 11 ) DIV + 64 + + 77 + 28 col2
----
105

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL COUNT ( 11 ) / + 64 + + 77 + 28 col2
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-6459
SELECT ALL + 85 * + - 51 col0, - 49 + 19 * - 89 + + COUNT( * ) AS col1
----
-4335
-1739

skipif mysql # not compatible
query II rowsort label-6459
SELECT ALL + 85 * + - 51 col0, - 49 + 19 * - 89 + + COUNT ( * ) AS col1
----
-4335
-1739

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 50 + + 2 * 66 AS col0
----
82

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT + MAX( DISTINCT + + 83 ) AS col2, + 58 AS col0
----
83
58

skipif mysql # not compatible
query II rowsort label-6469
SELECT + MAX ( DISTINCT + + 83 ) AS col2, + 58 AS col0
----
83
58

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 55 + + + 68 AS col2
----
123

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT + 89 * + + CAST( + 69 AS SIGNED ) AS col2
----
6141

skipif mysql # not compatible
query I rowsort label-6480
SELECT + 89 * + + CAST ( + 69 AS INTEGER ) AS col2
----
6141

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

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

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

query I rowsort
SELECT ALL 99 + + 73
----
172

query I rowsort
SELECT ALL 0 col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT 95 * COUNT( * ) * - 65 AS col1
----
-6175

skipif mysql # not compatible
query I rowsort label-6487
SELECT 95 * COUNT ( * ) * - 65 AS col1
----
-6175

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT + 22 + 40 * COUNT( * ) col1
----
62

skipif mysql # not compatible
query I rowsort label-6489
SELECT + 22 + 40 * COUNT ( * ) col1
----
62

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

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

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

query I rowsort
SELECT - - 51 + 83 AS col0
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT DISTINCT CAST( - 64 AS SIGNED ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT CAST ( - 64 AS INTEGER ) col0
----
-64

query I rowsort
SELECT 1 * + 35
----
35

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

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

query I rowsort
SELECT DISTINCT 21 * - 78
----
-1638

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT DISTINCT + 1 DIV - 6 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT DISTINCT + 1 / - 6 AS col1
----
0

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT ( - ( + SUM( - 42 ) ) ) * 91
----
3822

skipif mysql # not compatible
query I rowsort label-6504
SELECT ( - ( + SUM ( - 42 ) ) ) * 91
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT MAX( - - 77 ) + + 53 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-6505
SELECT MAX ( - - 77 ) + + 53 AS col1
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6506
SELECT CAST( + 4 AS SIGNED ) + + + 85 * - 70 AS col2
----
-5946

skipif mysql # not compatible
query I rowsort label-6506
SELECT CAST ( + 4 AS INTEGER ) + + + 85 * - 70 AS col2
----
-5946

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT DISTINCT 21 + + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT 21 + + COUNT ( * )
----
22

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - - 79 * - 32 AS col1
----
-2528

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

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

query I rowsort
SELECT - 50 + + + 85 + 2
----
37

query I rowsort
SELECT ALL - NULLIF ( - + 54, + - 77 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT - 36 - + 16 - - COUNT( * ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-6517
SELECT - 36 - + 16 - - COUNT ( * ) col2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6518
SELECT ALL - ( + + 96 ) DIV + - ( 28 ) - - + 72
----
75

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL - ( + + 96 ) / + - ( 28 ) - - + 72
----
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT DISTINCT - SUM( ALL 87 ) * - - 16
----
-1392

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT - SUM ( ALL 87 ) * - - 16
----
-1392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6521
SELECT NULLIF ( - - SUM( + - 68 ), CAST( NULL AS SIGNED ) ) * - + NULLIF ( - - 85, - - CAST( NULL AS SIGNED ) )
----
5780

skipif mysql # not compatible
query I rowsort label-6521
SELECT NULLIF ( - - SUM ( + - 68 ), CAST ( NULL AS INTEGER ) ) * - + NULLIF ( - - 85, - - CAST ( NULL AS INTEGER ) )
----
5780

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + 6 * + + 97
----
-582

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

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

query I rowsort
SELECT + 79 * + - 20
----
-1580

query I rowsort
SELECT + - 51 * + + 77
----
-3927

query I rowsort
SELECT ALL - 97 - 43
----
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL MAX( + + 47 ) + - 63
----
-16

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL MAX ( + + 47 ) + - 63
----
-16

query I rowsort
SELECT 63 + 12 AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6534
SELECT ALL 0 / - + CAST( NULL AS DECIMAL ) * COUNT( * ) + - + 18 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL 0 / - + CAST ( NULL AS REAL ) * COUNT ( * ) + - + 18 col0
----
NULL

query II rowsort
SELECT ALL 89 col2, + 91 AS col2
----
89
91

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

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

query I rowsort
SELECT ALL + 76 + + 38 + 8 AS col0
----
122

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

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

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

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

query I rowsort
SELECT - - 17 * + 27
----
459

query I rowsort
SELECT DISTINCT 28 * + 13
----
364

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6544
SELECT ALL - - 25 DIV - 29
----
0

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - - 25 / - 29
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6546
SELECT - SUM ( ALL 17 )
----
-17

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT - 12 DIV - 28 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6548
SELECT - 12 / - 28 AS col0
----
0

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6551
SELECT COALESCE ( - 1, + + 42 * + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6552
SELECT - + CAST( + + 8 AS SIGNED ) - - - COUNT( * ) * COUNT( * ) AS col0, - 46 AS col2
----
-9
-46

skipif mysql # not compatible
query II rowsort label-6552
SELECT - + CAST ( + + 8 AS INTEGER ) - - - COUNT ( * ) * COUNT ( * ) AS col0, - 46 AS col2
----
-9
-46

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6555
SELECT + COUNT( * ) + - CASE + 6 WHEN ( - - 73 ) THEN NULL ELSE CAST( NULL AS SIGNED ) * 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT + COUNT ( * ) + - CASE + 6 WHEN ( - - 73 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * 2 END AS col1
----
NULL

query I rowsort
SELECT - + 50 col0
----
-50

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

skipif mysql # not compatible
query I rowsort label-6557
SELECT MAX ( + 12 )
----
12

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

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

query II rowsort
SELECT 7 AS col1, - 37 AS col0
----
7
-37

query I rowsort
SELECT DISTINCT + 10 * + 2
----
20

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

query I rowsort
SELECT + 4 + - 95 col1
----
-91

query I rowsort
SELECT + 97 + - - 18
----
115

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

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

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

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

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

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

query I rowsort
SELECT ALL 9 * - 54 AS col0
----
-486

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT + + 44 - MAX( DISTINCT + 0 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6571
SELECT + + 44 - MAX ( DISTINCT + 0 ) AS col2
----
44

query I rowsort
SELECT ALL - 39 * + 0 col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT - - MIN( - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-6574
SELECT - - MIN ( - 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6575
SELECT NULLIF ( 35, COUNT( * ) + + 23 )
----
35

skipif mysql # not compatible
query I rowsort label-6575
SELECT NULLIF ( 35, COUNT ( * ) + + 23 )
----
35

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

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

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

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

query I rowsort
SELECT DISTINCT + 23 + ( - 92 )
----
-69

query I rowsort
SELECT ALL - 6 + - 33
----
-39

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

query I rowsort
SELECT - 30 + + - 53 col1
----
-83

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 85 * - + 54
----
-4590

query I rowsort
SELECT - - ( - - 41 ) * 22
----
902

query I rowsort
SELECT + 91 - 80 AS col2
----
11

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6592
SELECT DISTINCT CAST( + 32 AS SIGNED ) * + - 39
----
-1248

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT CAST ( + 32 AS INTEGER ) * + - 39
----
-1248

onlyif mysql # DIV for integer division: 
query I rowsort label-6593
SELECT ALL 37 - - 69 DIV + - 13 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL 37 - - 69 / + - 13 AS col0
----
32

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

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

query I rowsort
SELECT ALL + - 76 + 35
----
-41

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6598
SELECT DISTINCT - 32 DIV - COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT - 32 / - COUNT ( * ) AS col2
----
32

query I rowsort
SELECT 42 * - - 85 + - 40
----
3530

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT ALL - COUNT( * ) + + - 18
----
-19

skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL - COUNT ( * ) + + - 18
----
-19

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

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

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

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

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

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

query II rowsort
SELECT ALL 90 AS col1, - 40
----
90
-40

query I rowsort
SELECT 43 + + 37 AS col1
----
80

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

query II rowsort
SELECT DISTINCT + 19, 34 AS col2
----
19
34

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ALL - COUNT( DISTINCT 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - COUNT ( DISTINCT 43 )
----
-1

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

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

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

query I rowsort
SELECT 31 + 83
----
114

query I rowsort
SELECT ALL 19 col1
----
19

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

query I rowsort
SELECT ALL - 63 * + 31
----
-1953

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

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

skipif mysql # not compatible
query I rowsort label-6621
SELECT - - MAX ( ALL - 98 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT + 78 DIV - 18 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-6622
SELECT + 78 / - 18 AS col0
----
-4

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6626
SELECT - COUNT ( * ) / - 28
----
0

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

skipif mysql # not compatible
query I rowsort label-6627
SELECT + COALESCE ( ( + 7 ), - MIN ( DISTINCT - 27 ) ) AS col2
----
7

query I rowsort
SELECT DISTINCT - - 69
----
69

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6632
SELECT 62 / 35
----
1

query I rowsort
SELECT ALL + 63 + 97 AS col0
----
160

query I rowsort
SELECT 9 * + 87
----
783

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT SUM( - + COALESCE ( - - 76, + - 87 ) ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-6637
SELECT SUM ( - + COALESCE ( - - 76, + - 87 ) ) AS col2
----
-76

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

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

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

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

query I rowsort
SELECT + 91 * ( - 32 )
----
-2912

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

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

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

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

query II rowsort
SELECT 68, 15 + - 93 AS col2
----
68
-78

query I rowsort
SELECT ( - - 79 )
----
79

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6646
SELECT + 64 AS col0, 80 DIV 33 AS col0
----
64
2

skipif mysql # not compatible
query II rowsort label-6646
SELECT + 64 AS col0, 80 / 33 AS col0
----
64
2

query II rowsort
SELECT ALL 40 AS col1, + 79
----
40
79

query II rowsort
SELECT ALL + 99 col1, 66 AS col1
----
99
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT 0 + SUM( 84 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-6650
SELECT 0 + SUM ( 84 ) AS col0
----
84

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6652
SELECT DISTINCT - 1 - + SUM( ALL CAST( NULL AS DECIMAL ) ) + + - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT - 1 - + SUM ( ALL CAST ( NULL AS REAL ) ) + + - 88 AS col0
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6655
SELECT CASE WHEN NULL IS NULL THEN CAST( - COUNT( * ) AS SIGNED ) END
----
-1

skipif mysql # not compatible
query I rowsort label-6655
SELECT CASE WHEN NULL IS NULL THEN CAST ( - COUNT ( * ) AS INTEGER ) END
----
-1

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

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

query I rowsort
SELECT DISTINCT + CASE WHEN NULL IS NULL THEN - 79 END
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT - - 65 DIV - + 14 - + 1 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-6658
SELECT - - 65 / - + 14 - + 1 AS col0
----
-5

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6661
SELECT DISTINCT - 3 AS col2, 2 * - - COUNT( + CAST( NULL AS SIGNED ) ) * - + COUNT( * ) + + COUNT( * ) AS col2
----
-3
1

skipif mysql # not compatible
query II rowsort label-6661
SELECT DISTINCT - 3 AS col2, 2 * - - COUNT ( + CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) + + COUNT ( * ) AS col2
----
-3
1

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

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

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

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

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

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

query II rowsort
SELECT ALL + + 73 + 23, + 36 AS col0
----
96
36

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6668
SELECT 9 DIV - + 37 * 45
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT 9 / - + 37 * 45
----
0

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

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

query I rowsort
SELECT ALL 32 - + 28
----
4

query I rowsort
SELECT CASE + + 49 WHEN 41 THEN 32 END + - 97 * + - 7 AS col0
----
NULL

query I rowsort
SELECT ( - 19 ) + ( - + 14 ) AS col1
----
-33

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT + ( - + 1 ) DIV + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT + ( - + 1 ) / + 20 AS col1
----
0

query I rowsort
SELECT DISTINCT + - 42
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-6677
SELECT - 99 + 25 DIV 86
----
-99

skipif mysql # not compatible
query I rowsort label-6677
SELECT - 99 + 25 / 86
----
-99

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT + SUM( ALL - 94 ) + 97 + - + 0 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT + SUM ( ALL - 94 ) + 97 + - + 0 AS col0
----
3

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

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

query I rowsort
SELECT - NULLIF ( + + ( 54 ), + - 40 )
----
-54

query II rowsort
SELECT 60 AS col1, 35
----
60
35

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

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

query II rowsort
SELECT 33 AS col1, 92
----
33
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6689
SELECT 25 * + - MIN( CAST( NULL AS SIGNED ) ) * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT 25 * + - MIN ( CAST ( NULL AS INTEGER ) ) * 7 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 3 * - 93 AS col2
----
-279

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

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

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

skipif mysql # not compatible
query I rowsort label-6692
SELECT COUNT ( * ) * + 14 + + 17 + 76 AS col2
----
107

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

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

query I rowsort
SELECT DISTINCT - 81 + + 37 + 14 col0
----
-30

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

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

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

query I rowsort
SELECT + 13 + 53 AS col2
----
66

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6702
SELECT 15 * - ( - 87 ) + CAST( NULL AS DECIMAL ) AS col1
----
NULL

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

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

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

query I rowsort
SELECT - 30 * - 75
----
2250

query I rowsort
SELECT 27 * + 73 + - 62
----
1909

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

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

query I rowsort
SELECT DISTINCT + ( - 32 ) + 56 AS col2
----
24

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

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL - COUNT ( * ) + 47 AS col0
----
46

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT + COALESCE ( MIN( - 3 ), COUNT( * ) + 78 ) + 48 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6712
SELECT + COALESCE ( MIN ( - 3 ), COUNT ( * ) + 78 ) + 48 AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6713
SELECT + CAST( 76 AS SIGNED ) * - 19 col2
----
-1444

skipif mysql # not compatible
query I rowsort label-6713
SELECT + CAST ( 76 AS INTEGER ) * - 19 col2
----
-1444

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

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

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

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

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

query I rowsort
SELECT + - 76 * - + 12
----
912

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

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

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

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

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

query I rowsort
SELECT ALL 30 * + 85
----
2550

query I rowsort
SELECT 32 * + + ( + - 83 ) + + 18 AS col2
----
-2638

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

query II rowsort
SELECT - 10 col1, - 93
----
-10
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT DISTINCT - 10 * MAX( ALL 31 ) + - COUNT( * )
----
-311

skipif mysql # not compatible
query I rowsort label-6725
SELECT DISTINCT - 10 * MAX ( ALL 31 ) + - COUNT ( * )
----
-311

query I rowsort
SELECT 87 * - + 7
----
-609

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

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

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

query I rowsort
SELECT ALL - 96 * 59
----
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT 22 * COUNT( DISTINCT - 34 )
----
22

skipif mysql # not compatible
query I rowsort label-6730
SELECT 22 * COUNT ( DISTINCT - 34 )
----
22

query I rowsort
SELECT DISTINCT + 51 + - 82
----
-31

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT - ( + 1 ) DIV 33
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT - ( + 1 ) / 33
----
0

query II rowsort
SELECT ALL 74, 66 + - 88 AS col2
----
74
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL + COUNT( + 77 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + COUNT ( + 77 ) col0
----
1

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

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

query I rowsort
SELECT + + 76 + - ( + + 96 ) AS col1
----
-20

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

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

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

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

query I rowsort
SELECT 69 * 13 * 22
----
19734

query I rowsort
SELECT ALL - 46 * - 30
----
1380

query I rowsort
SELECT ALL 81 - 93
----
-12

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

query I rowsort
SELECT ALL 95 * + 22 AS col1
----
2090

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6751
SELECT - NULLIF ( COUNT ( * ), + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6752
SELECT DISTINCT COUNT( DISTINCT - CAST( 49 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT COUNT ( DISTINCT - CAST ( 49 AS INTEGER ) )
----
1

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

query I rowsort
SELECT + 26 * + 14
----
364

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6761
SELECT 97 + + COUNT ( * ) - 61 * + COUNT ( * ) AS col1
----
37

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

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

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

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

query I rowsort
SELECT + 65 * - 83
----
-5395

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 83 * - 8 + - 5
----
-669

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 70 * - 79 + - + 77
----
5453

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT CASE 78 WHEN - 73 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT CASE 78 WHEN - 73 THEN + COUNT ( * ) END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6786
SELECT MIN ( DISTINCT - - 50 )
----
50

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT ALL SUM( DISTINCT 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6789
SELECT ALL SUM ( DISTINCT 97 ) AS col2
----
97

query I rowsort
SELECT DISTINCT - - 59
----
59

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

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

query II rowsort
SELECT 84, + 63 AS col1
----
84
63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6794
SELECT DISTINCT + COUNT( * ), - 93 + 17 AS col2
----
1
-76

skipif mysql # not compatible
query II rowsort label-6794
SELECT DISTINCT + COUNT ( * ), - 93 + 17 AS col2
----
1
-76

query I rowsort
SELECT - + 38 col1
----
-38

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT - 77 * - - 24 + - 53 + + COALESCE ( - COUNT( * ), 90 ) AS col0
----
-1902

skipif mysql # not compatible
query I rowsort label-6800
SELECT - 77 * - - 24 + - 53 + + COALESCE ( - COUNT ( * ), 90 ) AS col0
----
-1902

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

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

query I rowsort
SELECT DISTINCT - 41 * + 5
----
-205

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

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL SUM ( 28 )
----
28

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

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

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

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

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

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

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

query I rowsort
SELECT + 22 + + 5
----
27

query I rowsort
SELECT ALL 24 * - 50 AS col0
----
-1200

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT ALL 37 * COUNT( * ) * - + COUNT( * ) + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-6815
SELECT ALL 37 * COUNT ( * ) * - + COUNT ( * ) + COUNT ( * )
----
-36

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

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

query I rowsort
SELECT ALL - + 82 * 30
----
-2460

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT - 72 DIV + 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6821
SELECT - 72 / + 95 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT 75 - + COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-6822
SELECT 75 - + COUNT ( * ) col2
----
74

query II rowsort
SELECT ALL 66 AS col1, 17
----
66
17

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

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

query I rowsort
SELECT - 31 * + 32 AS col2
----
-992

query I rowsort
SELECT ALL 95 * - ( + 81 ) AS col2
----
-7695

query I rowsort
SELECT DISTINCT + 37 * 77 + + 18
----
2867

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6829
SELECT + 23 DIV + - COUNT( * ) AS col2, 28 * - COUNT( * ) * + + 80
----
-23
-2240

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT + 38 DIV - + 77 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + 38 / - + 77 AS col2
----
0

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

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

query I rowsort
SELECT 73 * + + 74 col1
----
5402

query II rowsort
SELECT 14 AS col2, 29 AS col0
----
14
29

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

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

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

skipif mysql # not compatible
query I rowsort label-6835
SELECT 84 * - COUNT ( * ) + + 27 AS col2
----
-57

query II rowsort
SELECT ALL + 70 col2, 39 AS col1
----
70
39

query I rowsort
SELECT - 55 + 18 * - 97 + - 36 AS col2
----
-1837

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL + COUNT( * ) + + COUNT( * ) * SUM( ALL + 67 )
----
68

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * SUM ( ALL + 67 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT + 6 + COALESCE ( COUNT( * ), 67 )
----
7

skipif mysql # not compatible
query I rowsort label-6839
SELECT + 6 + COALESCE ( COUNT ( * ), 67 )
----
7

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + ( - 9 ) + + COUNT ( * ) AS col1
----
-8

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

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

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

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

query II rowsort
SELECT - 21 AS col2, - 78
----
-21
-78

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + COUNT ( * ) + NULLIF ( + 94, 53 )
----
95

query I rowsort
SELECT + 85 * 81 col2
----
6885

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

query I rowsort
SELECT + 12 + + 62
----
74

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

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

query I rowsort
SELECT - 28 * - 19
----
532

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 58 * + 68 AS col1
----
-3944

query I rowsort
SELECT ALL 12 * + + 25 col1
----
300

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL MAX ( - 1 )
----
-1

query I rowsort
SELECT ALL - 78 - + 27 AS col1
----
-105

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

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - SUM ( 8 )
----
-8

query I rowsort
SELECT 57 + + 41
----
98

query I rowsort
SELECT 54 + - 62
----
-8

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

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

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

skipif mysql # not compatible
query I rowsort label-6873
SELECT 73 / - COUNT ( * ) AS col0
----
-73

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL COUNT ( * ) * - 79 + + 2 AS col0
----
-77

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

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

query I rowsort
SELECT ALL 10 - 29
----
-19

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

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

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

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

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

query II rowsort
SELECT ALL + 18 AS col2, 60
----
18
60

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

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

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

query I rowsort
SELECT ( 88 ) * - 42 AS col1
----
-3696

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT ALL - 36 * SUM( - 47 )
----
1692

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - 36 * SUM ( - 47 )
----
1692

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

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL + COUNT ( * ) + - 99 / + + 64 col0
----
0

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

query I rowsort
SELECT 73 * 46
----
3358

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 54 * - + 85 AS col1
----
-4590

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6902
SELECT DISTINCT + - 45 * - - 1 DIV COUNT( * ) + CAST( 30 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT + - 45 * - - 1 / COUNT ( * ) + CAST ( 30 AS INTEGER )
----
-15

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

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

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

query I rowsort
SELECT DISTINCT - 55 col1
----
-55

query I rowsort
SELECT DISTINCT 36 * - + 40
----
-1440

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6909
SELECT 66 DIV 19
----
3

skipif mysql # not compatible
query I rowsort label-6909
SELECT 66 / 19
----
3

query I rowsort
SELECT ALL + 45 * - ( 18 ) col2
----
-810

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

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

query I rowsort
SELECT ALL - 83 * 46 AS col2
----
-3818

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

query I rowsort
SELECT + + 57 col2
----
57

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL - NULLIF ( CAST ( NULL AS INTEGER ), 53 ) col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6919
SELECT ALL COUNT( DISTINCT - + 63 ) + - 97
----
-96

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL COUNT ( DISTINCT - + 63 ) + - 97
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT DISTINCT 59 + SUM( + 90 ) AS col1
----
149

skipif mysql # not compatible
query I rowsort label-6920
SELECT DISTINCT 59 + SUM ( + 90 ) AS col1
----
149

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

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

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

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

query I rowsort
SELECT ALL + - 16
----
-16

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT MAX( 17 )
----
17

skipif mysql # not compatible
query I rowsort label-6925
SELECT MAX ( 17 )
----
17

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

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

query I rowsort
SELECT ALL - - 10 + 86
----
96

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL + NULLIF ( COUNT( * ), + COUNT( 34 ) * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL + NULLIF ( COUNT ( * ), + COUNT ( 34 ) * COUNT ( * ) )
----
NULL

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

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

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

query I rowsort
SELECT + 28 * + 38
----
1064

query I rowsort
SELECT ALL 40 * 13 + + 11 AS col1
----
531

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

skipif mysql # not compatible
query I rowsort label-6938
SELECT ALL SUM ( ALL - 9 )
----
-9

query I rowsort
SELECT ALL + + 83 * - 10 + + 75
----
-755

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

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

query I rowsort
SELECT 61 * - 77 AS col0
----
-4697

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL COUNT( * ) * - 21 col1
----
-21

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL COUNT ( * ) * - 21 col1
----
-21

query I rowsort
SELECT 70 * - 82
----
-5740

query I rowsort
SELECT DISTINCT + 54 * - 31 AS col2
----
-1674

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

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

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

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

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

query I rowsort
SELECT ALL 57 * - 59 col0
----
-3363

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

query II rowsort
SELECT 31 AS col2, + 17 AS col1
----
31
17

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

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

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

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

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

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

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

query II rowsort
SELECT 80 + + 30 AS col0, - 89
----
110
-89

query I rowsort
SELECT 99 + + 89 AS col2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT - SUM( - 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6959
SELECT - SUM ( - 73 ) AS col2
----
73

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

skipif mysql # not compatible
query I rowsort label-6960
SELECT + CAST ( COUNT ( * ) AS INTEGER ) - + + 65
----
-64

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

query I rowsort
SELECT DISTINCT + + 33 * 57 + + + 16
----
1897

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

query I rowsort
SELECT DISTINCT + - ( 95 ) col2
----
-95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT ALL - NULLIF ( + + 37, - COUNT( * ) ) col2
----
-37

skipif mysql # not compatible
query I rowsort label-6966
SELECT ALL - NULLIF ( + + 37, - COUNT ( * ) ) col2
----
-37

query I rowsort
SELECT DISTINCT - 3 * - 12
----
36

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

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

query I rowsort
SELECT - 19 - 65
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT + 85 + ( + SUM( ALL + - 28 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-6970
SELECT + 85 + ( + SUM ( ALL + - 28 ) ) AS col1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6971
SELECT ALL - 99 col0, - CAST( NULL AS SIGNED ) * + 32 AS col2
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-6971
SELECT ALL - 99 col0, - CAST ( NULL AS INTEGER ) * + 32 AS col2
----
-99
NULL

query II rowsort
SELECT 10 AS col2, 37
----
10
37

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

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT - 9 * + COUNT ( DISTINCT + 24 ) / - 40
----
0

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 99 * + 4
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT + COALESCE ( + COUNT( * ), COUNT( * ) * - 70 * 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6979
SELECT + COALESCE ( + COUNT ( * ), COUNT ( * ) * - 70 * 4 ) AS col0
----
1

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6983
SELECT COUNT ( * ) / + - 50 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6984
SELECT - 17 DIV - + MIN( + 87 ) + CAST( + ( + 39 ) AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-6984
SELECT - 17 / - + MIN ( + 87 ) + CAST ( + ( + 39 ) AS INTEGER )
----
39

query II rowsort
SELECT ALL 70 col1, 42 AS col1
----
70
42

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6988
SELECT - - COUNT ( * ) * + 19 / - MAX ( ALL + 66 ) AS col0
----
0

query I rowsort
SELECT + 70 * + 52
----
3640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT DISTINCT - + 65 * - + COUNT( * ) + - - 68
----
133

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT - + 65 * - + COUNT ( * ) + - - 68
----
133

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

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

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

query I rowsort
SELECT DISTINCT 66 * - 37 AS col2
----
-2442

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + 14 * + NULLIF ( ( COUNT( * ) ), + 95 )
----
14

skipif mysql # not compatible
query I rowsort label-6995
SELECT + 14 * + NULLIF ( ( COUNT ( * ) ), + 95 )
----
14

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6997
SELECT + 6 * + 75 + - 57 + + COUNT( * ) DIV COUNT( * ) AS col2, - 27
----
394
-27

skipif mysql # not compatible
query II rowsort label-6997
SELECT + 6 * + 75 + - 57 + + COUNT ( * ) / COUNT ( * ) AS col2, - 27
----
394
-27

query I rowsort
SELECT 40 * + 5
----
200

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

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL - ( ( - - COUNT ( * ) ) ) + - 12 AS col2
----
-13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT DISTINCT - + SUM( ALL + 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT - + SUM ( ALL + 97 ) AS col2
----
-97

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

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL COUNT ( + 37 ) * - 94 AS col1
----
-94

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT MAX( 2 )
----
2

skipif mysql # not compatible
query I rowsort label-7014
SELECT MAX ( 2 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-7015
SELECT DISTINCT + COUNT( * ) AS col0, MAX( ALL - 99 )
----
1
-99

skipif mysql # not compatible
query II rowsort label-7015
SELECT DISTINCT + COUNT ( * ) AS col0, MAX ( ALL - 99 )
----
1
-99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7017
SELECT - COUNT( * ) DIV - COUNT( * ) + + MIN( - ( - - 10 ) ) + + 16 DIV 67 * + 59
----
-9

skipif mysql # not compatible
query I rowsort label-7017
SELECT - COUNT ( * ) / - COUNT ( * ) + + MIN ( - ( - - 10 ) ) + + 16 / 67 * + 59
----
-9

query I rowsort
SELECT ALL 28 * - + 29
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + CASE - + 91 WHEN + + COUNT( * ) * + + 45 THEN + + 44 END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT + CASE - + 91 WHEN + + COUNT ( * ) * + + 45 THEN + + 44 END + + COUNT ( * )
----
NULL

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

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

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

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

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

query I rowsort
SELECT ALL - 76 + + + 11
----
-65

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

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

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

query II rowsort
SELECT ALL - 41 col0, 63 AS col2
----
-41
63

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

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL - MAX ( - 5 )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7028
SELECT - - COUNT( * ) + - MIN( DISTINCT + 89 ) * + + 27 AS col0, - 61
----
-2402
-61

skipif mysql # not compatible
query II rowsort label-7028
SELECT - - COUNT ( * ) + - MIN ( DISTINCT + 89 ) * + + 27 AS col0, - 61
----
-2402
-61

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

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

query II rowsort
SELECT ( - 54 ) col0, ( - + 20 )
----
-54
-20

query I rowsort
SELECT + 27 * - + 92 col0
----
-2484

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

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

query II rowsort
SELECT ALL - 66 AS col1, + 87
----
-66
87

query I rowsort
SELECT DISTINCT - 88 col0
----
-88

query I rowsort
SELECT DISTINCT + 19 + + 59
----
78

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7041
SELECT ALL - COUNT( * ), 40 + - + 58 AS col2
----
-1
-18

skipif mysql # not compatible
query II rowsort label-7041
SELECT ALL - COUNT ( * ), 40 + - + 58 AS col2
----
-1
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT DISTINCT SUM( DISTINCT + - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT SUM ( DISTINCT + - 0 ) AS col0
----
0

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

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

query I rowsort
SELECT DISTINCT - ( 88 ) * - + 48 * + 25 AS col2
----
105600

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT DISTINCT 73 - + 34 + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7050
SELECT DISTINCT 73 - + 34 + - COUNT ( * )
----
38

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

query II rowsort
SELECT 20 AS col0, + 1
----
20
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7053
SELECT - 92 DIV - + 68
----
1

skipif mysql # not compatible
query I rowsort label-7053
SELECT - 92 / - + 68
----
1

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT - - 43 AS col1, MAX( + 40 ) AS col0
----
43
40

skipif mysql # not compatible
query II rowsort label-7057
SELECT - - 43 AS col1, MAX ( + 40 ) AS col0
----
43
40

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

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

query I rowsort
SELECT ALL 27 * + - 50 AS col1
----
-1350

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

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

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

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

query II rowsort
SELECT DISTINCT ( - 70 ), + 91 col1
----
-70
91

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 50 * - - ( 36 )
----
1800

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

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

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

query I rowsort
SELECT 21 - - - 16
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT DISTINCT - MIN( ALL 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT - MIN ( ALL 24 ) AS col1
----
-24

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT - + 30 DIV - COUNT( * ) + 99
----
129

skipif mysql # not compatible
query I rowsort label-7081
SELECT - + 30 / - COUNT ( * ) + 99
----
129

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7085
SELECT - CAST( 61 AS SIGNED ) * 80 * - SUM( - CAST( + 19 AS SIGNED ) ) AS col0
----
-92720

skipif mysql # not compatible
query I rowsort label-7085
SELECT - CAST ( 61 AS INTEGER ) * 80 * - SUM ( - CAST ( + 19 AS INTEGER ) ) AS col0
----
-92720

onlyif mysql # aggregate syntax: 
query II rowsort label-7086
SELECT ALL MAX( - - 48 ), 12 AS col2
----
48
12

skipif mysql # not compatible
query II rowsort label-7086
SELECT ALL MAX ( - - 48 ), 12 AS col2
----
48
12

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7088
SELECT DISTINCT COUNT( * ) DIV - - COUNT( * ) col0, + COUNT( * ) + - - 81 AS col2
----
1
82

skipif mysql # not compatible
query II rowsort label-7088
SELECT DISTINCT COUNT ( * ) / - - COUNT ( * ) col0, + COUNT ( * ) + - - 81 AS col2
----
1
82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7091
SELECT SUM( DISTINCT - 78 ) DIV COUNT( * ) DIV - - 25
----
-3

skipif mysql # not compatible
query I rowsort label-7091
SELECT SUM ( DISTINCT - 78 ) / COUNT ( * ) / - - 25
----
-3

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

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

query I rowsort
SELECT - 82 * + - 6 AS col1
----
492

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7101
SELECT MIN( - 27 ) AS col0, 37 col2
----
-27
37

skipif mysql # not compatible
query II rowsort label-7101
SELECT MIN ( - 27 ) AS col0, 37 col2
----
-27
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT SUM( DISTINCT 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7102
SELECT SUM ( DISTINCT 62 ) AS col2
----
62

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT DISTINCT - 43 * - COUNT( * ) col2
----
43

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT - 43 * - COUNT ( * ) col2
----
43

query I rowsort
SELECT 9 + - 53 col0
----
-44

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

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT 78 / - COUNT ( * ) AS col1
----
-78

query I rowsort
SELECT ALL 91 + + + 95 AS col1
----
186

query I rowsort
SELECT DISTINCT - 47 - 16
----
-63

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

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

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

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

query I rowsort
SELECT + 96 * - 46
----
-4416

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7115
SELECT ALL ( 72 ) + 36 * 20 AS col0, - COUNT( * ) * - COALESCE ( + 21, + 75, - 44 )
----
792
21

skipif mysql # not compatible
query II rowsort label-7115
SELECT ALL ( 72 ) + 36 * 20 AS col0, - COUNT ( * ) * - COALESCE ( + 21, + 75, - 44 )
----
792
21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT - 32 DIV - + 19
----
1

skipif mysql # not compatible
query I rowsort label-7117
SELECT - 32 / - + 19
----
1

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL - 32, ( 82 ) AS col1
----
-32
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7123
SELECT - + 65 col2, + CAST( - 70 AS SIGNED )
----
-65
-70

skipif mysql # not compatible
query II rowsort label-7123
SELECT - + 65 col2, + CAST ( - 70 AS INTEGER )
----
-65
-70

query I rowsort
SELECT DISTINCT + 88 * ( + + 25 )
----
2200

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT ALL + COUNT( * ) + + 41 col1
----
42

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL + COUNT ( * ) + + 41 col1
----
42

query I rowsort
SELECT DISTINCT + 81 + + 27 AS col1
----
108

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

query I rowsort
SELECT DISTINCT - 37 col1
----
-37

query I rowsort
SELECT + 40 * - 19
----
-760

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT ALL MAX( DISTINCT + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7132
SELECT ALL MAX ( DISTINCT + 79 )
----
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + COUNT( * ) + - 46 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7134
SELECT + COUNT ( * ) + - 46 AS col1
----
-45

query I rowsort
SELECT + - 25
----
-25

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT - MIN( DISTINCT 80 ) * + 10
----
-800

skipif mysql # not compatible
query I rowsort label-7138
SELECT - MIN ( DISTINCT 80 ) * + 10
----
-800

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

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

query I rowsort
SELECT 99 * 88
----
8712

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

query I rowsort
SELECT 24 * 96 AS col1
----
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-7143
SELECT 65 DIV 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7143
SELECT 65 / 84 AS col2
----
0

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7147
SELECT + - CAST ( + 22 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT ALL + SUM( + - 72 ) col1
----
-72

skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL + SUM ( + - 72 ) col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT MIN( - 85 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-7149
SELECT MIN ( - 85 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - NULLIF ( 60, + COUNT( * ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7150
SELECT - NULLIF ( 60, + COUNT ( * ) ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT - ( + - SUM( - - 68 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7151
SELECT - ( + - SUM ( - - 68 ) ) AS col2
----
68

query I rowsort
SELECT - 79 * 11
----
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT - 13 * - COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-7153
SELECT - 13 * - COUNT ( * ) AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT + 25 + - COUNT( * ) col0
----
24

skipif mysql # not compatible
query I rowsort label-7154
SELECT + 25 + - COUNT ( * ) col0
----
24

query I rowsort
SELECT ( - 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT + 27 * COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7156
SELECT + 27 * COUNT ( * ) AS col2
----
27

query I rowsort
SELECT - 91 + - + 40 AS col2
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT ALL - CAST( NULL AS SIGNED ) * + 40 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL - CAST ( NULL AS INTEGER ) * + 40 * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + MAX( ALL - - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-7159
SELECT + MAX ( ALL - - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT COUNT( * ) * 15
----
15

skipif mysql # not compatible
query I rowsort label-7160
SELECT COUNT ( * ) * 15
----
15

query I rowsort
SELECT - + NULLIF ( - 56, + 60 ) AS col1
----
56

query I rowsort
SELECT 47 * 98
----
4606

query I rowsort
SELECT 63 * 82 col2
----
5166

query I rowsort
SELECT ALL + 29 * - + 26 * - ( + 90 ) AS col1
----
67860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7165
SELECT + CAST( + 19 AS SIGNED ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-7165
SELECT + CAST ( + 19 AS INTEGER ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT - 96 * + - COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-7166
SELECT - 96 * + - COUNT ( * ) AS col0
----
96

query I rowsort
SELECT - + 49 AS col1
----
-49

query II rowsort
SELECT ALL 47 col0, 42
----
47
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7169
SELECT - CAST( - 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-7169
SELECT - CAST ( - 92 AS INTEGER )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7170
SELECT ALL + 7 AS col0, COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-7170
SELECT ALL + 7 AS col0, COUNT ( * )
----
7
1

query I rowsort
SELECT - ( + 19 )
----
-19

query I rowsort
SELECT ALL ( + 10 ) col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7173
SELECT - COUNT( * ) / - + CAST( NULL AS DECIMAL ) + - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT - COUNT ( * ) / - + CAST ( NULL AS REAL ) + - 85 AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-7175
SELECT ( - COUNT( * ) ) AS col1, - 43
----
-1
-43

skipif mysql # not compatible
query II rowsort label-7175
SELECT ( - COUNT ( * ) ) AS col1, - 43
----
-1
-43

query I rowsort
SELECT ( + 37 )
----
37

query I rowsort
SELECT + ( 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT + COUNT( * ) * + 95 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT + COUNT ( * ) * + 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT - MIN( ALL + 62 ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-7179
SELECT - MIN ( ALL + 62 ) AS col0
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7180
SELECT - 63 DIV - 20 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-7180
SELECT - 63 / - 20 AS col2
----
3

query I rowsort
SELECT 34 + - 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT 45 * - COUNT( * ) + 26 AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-7182
SELECT 45 * - COUNT ( * ) + 26 AS col1
----
-19

query I rowsort
SELECT ALL - - 32 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7184
SELECT ( - - ( - COUNT( * ) ) ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-7184
SELECT ( - - ( - COUNT ( * ) ) ) / + 75
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7185
SELECT DISTINCT - COUNT( * ) DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT - COUNT ( * ) / 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT MAX( 27 ) * - 43 - + - MAX( ALL 25 )
----
-1136

skipif mysql # not compatible
query I rowsort label-7186
SELECT MAX ( 27 ) * - 43 - + - MAX ( ALL 25 )
----
-1136

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT ALL COUNT( * ) + + + 38 + - - ( + 32 )
----
71

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL COUNT ( * ) + + + 38 + - - ( + 32 )
----
71

query I rowsort
SELECT DISTINCT - 98 col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7189
SELECT ALL CAST( NULL AS SIGNED ) / + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL CAST ( NULL AS INTEGER ) / + COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7190
SELECT ALL CAST( NULL AS SIGNED ) / ( - + 56 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL CAST ( NULL AS INTEGER ) / ( - + 56 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7191
SELECT + + COUNT( * ) DIV + 52 col1
----
0

skipif mysql # not compatible
query I rowsort label-7191
SELECT + + COUNT ( * ) / + 52 col1
----
0

query I rowsort
SELECT - - 39 + 49 col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL + COUNT( DISTINCT 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + COUNT ( DISTINCT 67 ) AS col0
----
1

query I rowsort
SELECT DISTINCT ( + + 25 )
----
25

query I rowsort
SELECT ALL 96 + 50
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL COUNT( * ) * + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL COUNT ( * ) * + - 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL + - CASE - COUNT( * ) WHEN + - COUNT( * ) THEN NULL ELSE - - 94 * - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL + - CASE - COUNT ( * ) WHEN + - COUNT ( * ) THEN NULL ELSE - - 94 * - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL + 7 + - 15
----
-8

query I rowsort
SELECT DISTINCT - + 63 AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT ALL + CAST( 66 AS SIGNED ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL + CAST ( 66 AS INTEGER ) AS col0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7201
SELECT DISTINCT + + 86 DIV 19 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT + + 86 / 19 AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7202
SELECT + 33 - + - CAST( + - COUNT( * ) AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7202
SELECT + 33 - + - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT + SUM( 59 ) col0
----
59

skipif mysql # not compatible
query I rowsort label-7203
SELECT + SUM ( 59 ) col0
----
59

query I rowsort
SELECT + ( - 89 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7205
SELECT - + COUNT( * ) - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7205
SELECT - + COUNT ( * ) - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT - ( + 38 ) + 98
----
60

query I rowsort
SELECT + 10 + - 38
----
-28

query I rowsort
SELECT + COALESCE ( 0, + 66 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT COUNT( * ) * - 52
----
-52

skipif mysql # not compatible
query I rowsort label-7209
SELECT COUNT ( * ) * - 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT ALL - SUM( DISTINCT 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL - SUM ( DISTINCT 78 ) AS col2
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7211
SELECT - CAST( NULL AS DECIMAL ) / - - COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT - CAST ( NULL AS REAL ) / - - COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT 16 - - NULLIF ( - COUNT( * ), + 40 )
----
15

skipif mysql # not compatible
query I rowsort label-7212
SELECT 16 - - NULLIF ( - COUNT ( * ), + 40 )
----
15

query I rowsort
SELECT ALL 72 * + + 4 AS col0
----
288

query I rowsort
SELECT - 92 + 76 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT + 98 - - SUM( DISTINCT - + 94 )
----
4

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 98 - - SUM ( DISTINCT - + 94 )
----
4

query II rowsort
SELECT ALL + 75 AS col0, + 8 col2
----
75
8

query I rowsort
SELECT 81 + 50 * 21 AS col2
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT COUNT( * ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-7218
SELECT COUNT ( * ) * - 31
----
-31

query I rowsort
SELECT + ( + - 80 ) AS col0
----
-80

query I rowsort
SELECT - + 54 col0
----
-54

query I rowsort
SELECT + 73 * + 30 AS col2
----
2190

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL + MIN( 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL + MIN ( 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT - COUNT( * ) + + 7 + + COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7223
SELECT - COUNT ( * ) + + 7 + + COUNT ( * ) AS col0
----
7

query I rowsort
SELECT ALL + 58 * + 29
----
1682

query I rowsort
SELECT ALL + ( - 89 )
----
-89

query I rowsort
SELECT 19 - - - ( + 75 )
----
-56

query I rowsort
SELECT ALL + ( - + 65 ) * + - 5
----
325

query I rowsort
SELECT ALL - 99 + 30 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT DISTINCT + SUM( DISTINCT + 14 ) * - 60 AS col0
----
-840

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT + SUM ( DISTINCT + 14 ) * - 60 AS col0
----
-840

query I rowsort
SELECT - 43 * + - 22 AS col2
----
946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7231
SELECT 63 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT 63 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 73 + - 89
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT COUNT( * ) + - 29 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT COUNT ( * ) + - 29 AS col1
----
-28

query I rowsort
SELECT + 38 + - - 97
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-7235
SELECT - COUNT( * ) AS col2, + 9 AS col1
----
-1
9

skipif mysql # not compatible
query II rowsort label-7235
SELECT - COUNT ( * ) AS col2, + 9 AS col1
----
-1
9

query II rowsort
SELECT 34, + 22 AS col1
----
34
22

query I rowsort
SELECT - NULLIF ( + 82, - 57 ) col1
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7238
SELECT + 8 DIV COUNT( - - 55 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7238
SELECT + 8 / COUNT ( - - 55 ) AS col2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7239
SELECT + 55 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT + 55 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7240
SELECT DISTINCT - 92 * + CAST( - + 43 AS SIGNED )
----
3956

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - 92 * + CAST ( - + 43 AS INTEGER )
----
3956

query I rowsort
SELECT ALL + ( + - 94 ) AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT - - ( - COUNT( * ) ) - 34 col1
----
-35

skipif mysql # not compatible
query I rowsort label-7242
SELECT - - ( - COUNT ( * ) ) - 34 col1
----
-35

query I rowsort
SELECT 50 + + 39
----
89

query I rowsort
SELECT ALL 67 * - 46
----
-3082

query I rowsort
SELECT ALL + 66 + - 68 AS col1
----
-2

query I rowsort
SELECT + + ( 21 ) AS col0
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7247
SELECT 9 + - + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7247
SELECT 9 + - + CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT ALL MAX( + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-7248
SELECT ALL MAX ( + 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT MAX( DISTINCT 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7249
SELECT MAX ( DISTINCT 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT + CASE COUNT( * ) WHEN - - COUNT( * ) THEN NULL WHEN - + MAX( DISTINCT 2 ) THEN NULL ELSE - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT + CASE COUNT ( * ) WHEN - - COUNT ( * ) THEN NULL WHEN - + MAX ( DISTINCT 2 ) THEN NULL ELSE - 10 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT MAX( DISTINCT + 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7251
SELECT MAX ( DISTINCT + 40 ) AS col2
----
40

query I rowsort
SELECT + ( 90 )
----
90

query I rowsort
SELECT + 14 + 50
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7254
SELECT + MAX( - ( + - 20 ) ) DIV 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7254
SELECT + MAX ( - ( + - 20 ) ) / 79 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT + 9 * + + COUNT( * ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-7255
SELECT + 9 * + + COUNT ( * ) AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7256
SELECT + 26 DIV - + 95 col1, - CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7256
SELECT + 26 / - + 95 col1, - CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7257
SELECT - NULLIF ( + 34, + 51 - + CAST( + - CAST( - 21 AS SIGNED ) AS SIGNED ) ) * - - COUNT( * ) + - 37 - + MAX( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT - NULLIF ( + 34, + 51 - + CAST ( + - CAST ( - 21 AS INTEGER ) AS INTEGER ) ) * - - COUNT ( * ) + - 37 - + MAX ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7258
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7258
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + 60 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 54 - - - 10 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT + SUM( - 55 ) * COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT + SUM ( - 55 ) * COUNT ( * )
----
-55

query I rowsort
SELECT ALL - 15 + + 98
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL COUNT( * ) * - 28
----
-28

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL COUNT ( * ) * - 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT 75 + + + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7263
SELECT 75 + + + COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT + MIN( + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7264
SELECT + MIN ( + 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT COUNT( DISTINCT - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-7265
SELECT COUNT ( DISTINCT - 99 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT MIN( ALL + + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7266
SELECT MIN ( ALL + + 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7267
SELECT - MIN( DISTINCT - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-7267
SELECT - MIN ( DISTINCT - 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT + ( + ( - COUNT( * ) ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7268
SELECT + ( + ( - COUNT ( * ) ) ) AS col0
----
-1

query I rowsort
SELECT ( + 89 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT - MAX( + 48 ) * MIN( + 39 ) + - MAX( - CAST( NULL AS SIGNED ) ) + + + MAX( - - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7270
SELECT - MAX ( + 48 ) * MIN ( + 39 ) + - MAX ( - CAST ( NULL AS INTEGER ) ) + + + MAX ( - - 54 )
----
NULL

query I rowsort
SELECT ALL + 34 col0
----
34

query I rowsort
SELECT - - 49 AS col0
----
49

query I rowsort
SELECT + 80 + - 81 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT ALL ( COUNT( - 8 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL ( COUNT ( - 8 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7275
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, 89 + + + MAX( + + 39 )
----
NULL
128

skipif mysql # not compatible
query II rowsort label-7275
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, 89 + + + MAX ( + + 39 )
----
NULL
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL - - SUM( DISTINCT - 32 ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL - - SUM ( DISTINCT - 32 ) col0
----
-32

query I rowsort
SELECT 36 * + - 49 col1
----
-1764

query I rowsort
SELECT + 8 * + 90
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT + CAST( + + 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-7279
SELECT + CAST ( + + 10 AS INTEGER )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT ALL - 70 DIV + - 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - 70 / + - 48 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7281
SELECT 85 * + + 3 DIV COUNT( * )
----
255

skipif mysql # not compatible
query I rowsort label-7281
SELECT 85 * + + 3 / COUNT ( * )
----
255

query II rowsort
SELECT - 51, - 54 AS col2
----
-51
-54

query I rowsort
SELECT ALL - NULLIF ( - + 38, - 62 + - + 10 ) AS col2
----
38

query I rowsort
SELECT + ( + ( 95 ) ) AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7285
SELECT 91 + - COUNT( * ) DIV + - 51
----
91

skipif mysql # not compatible
query I rowsort label-7285
SELECT 91 + - COUNT ( * ) / + - 51
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT SUM( + 40 ) + + + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-7286
SELECT SUM ( + 40 ) + + + COUNT ( * )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT COUNT( * ) * - 35 + CAST( + - 69 AS SIGNED ) AS col0
----
-104

skipif mysql # not compatible
query I rowsort label-7287
SELECT COUNT ( * ) * - 35 + CAST ( + - 69 AS INTEGER ) AS col0
----
-104

query I rowsort
SELECT DISTINCT + + 12 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL + MAX( + 34 )
----
34

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + MAX ( + 34 )
----
34

query I rowsort
SELECT - 85 + - - 79
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT - COUNT( DISTINCT 57 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7291
SELECT - COUNT ( DISTINCT 57 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT DISTINCT - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT - ( + + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7293
SELECT - - COUNT( * ) + - - 99, 98 + 11 col2
----
100
109

skipif mysql # not compatible
query II rowsort label-7293
SELECT - - COUNT ( * ) + - - 99, 98 + 11 col2
----
100
109

onlyif mysql # aggregate syntax: 
query II rowsort label-7294
SELECT ( - COUNT( * ) ), - COUNT( * )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7294
SELECT ( - COUNT ( * ) ), - COUNT ( * )
----
-1
-1

query I rowsort
SELECT + ( - 41 )
----
-41

query I rowsort
SELECT + 35 + 71 AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7297
SELECT MIN( + + 60 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT MIN ( + + 60 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7298
SELECT 22 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT 22 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT 38 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT 38 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7300
SELECT + COUNT( * ) + - COUNT( DISTINCT - + 32 ) DIV ( + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7300
SELECT + COUNT ( * ) + - COUNT ( DISTINCT - + 32 ) / ( + COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT + SUM( - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-7301
SELECT + SUM ( - 68 )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT DISTINCT 81 + + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT 81 + + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT + 69 * - + COUNT( * ) * - + 31
----
2139

skipif mysql # not compatible
query I rowsort label-7303
SELECT + 69 * - + COUNT ( * ) * - + 31
----
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT 97 + COUNT( * ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-7304
SELECT 97 + COUNT ( * ) AS col2
----
98

query I rowsort
SELECT 57 * + + 59 AS col0
----
3363

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL + - 63 + - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL + - 63 + - COUNT ( * ) AS col0
----
-64

query I rowsort
SELECT ( - + 56 ) AS col0
----
-56

query I rowsort
SELECT + ( 56 ) AS col2
----
56

query I rowsort
SELECT DISTINCT + - 14 col1
----
-14

query I rowsort
SELECT + + ( + + 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT - COUNT( * ) * - 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7311
SELECT - COUNT ( * ) * - 49 AS col0
----
49

query I rowsort
SELECT ALL + + 7
----
7

query I rowsort
SELECT ALL ( + 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT - MAX( + 0 ) AS col1, + 18 AS col2
----
0
18

skipif mysql # not compatible
query II rowsort label-7314
SELECT - MAX ( + 0 ) AS col1, + 18 AS col2
----
0
18

onlyif mysql # aggregate syntax: 
query III rowsort label-7315
SELECT + - COUNT( * ), + COALESCE ( + 1, + COUNT( * ) ) AS col0, - COUNT( * )
----
-1
1
-1

skipif mysql # not compatible
query III rowsort label-7315
SELECT + - COUNT ( * ), + COALESCE ( + 1, + COUNT ( * ) ) AS col0, - COUNT ( * )
----
-1
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT - 85 - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-7316
SELECT - 85 - + COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT MIN( - 3 ) + - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7317
SELECT MIN ( - 3 ) + - - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT 97 + - + MAX( ALL - 35 ) * + + 50
----
1847

skipif mysql # not compatible
query I rowsort label-7318
SELECT 97 + - + MAX ( ALL - 35 ) * + + 50
----
1847

query II rowsort
SELECT 5 AS col1, - 47 AS col2
----
5
-47

query I rowsort
SELECT ALL 37 + - 17 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL MAX( + + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL MAX ( + + 3 )
----
3

query I rowsort
SELECT - 31 * - 72 AS col1
----
2232

query I rowsort
SELECT - + 3 - - 21 AS col1
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7324
SELECT + + 65 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-7324
SELECT + + 65 / + 50
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7325
SELECT + + CAST( NULL AS SIGNED ) AS col1, 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7325
SELECT + + CAST ( NULL AS INTEGER ) AS col1, 55
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT + - MIN( - 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-7326
SELECT + - MIN ( - 68 ) AS col2
----
68

query I rowsort
SELECT + ( - 53 ) + - + 2 + - 48 * 43 AS col0
----
-2119

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT - + 69 * ( + COUNT( * ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-7328
SELECT - + 69 * ( + COUNT ( * ) ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7329
SELECT ALL + + CAST( - - ( 92 ) AS SIGNED ) col0
----
92

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + + CAST ( - - ( 92 ) AS INTEGER ) col0
----
92

query I rowsort
SELECT - 95 * - 87 AS col1
----
8265

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT COUNT( * ) + + 60 * + COUNT( DISTINCT + - 44 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-7331
SELECT COUNT ( * ) + + 60 * + COUNT ( DISTINCT + - 44 ) col2
----
61

query I rowsort
SELECT - + ( + 19 )
----
-19

query I rowsort
SELECT ALL + 26 + 18
----
44

query I rowsort
SELECT DISTINCT - 93 + - - 52 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT - - MAX( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT - - MAX ( 33 )
----
33

query I rowsort
SELECT ALL + 99 + + + 91
----
190

query II rowsort
SELECT + 13, + 80 col0
----
13
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT COUNT( * ) - 72
----
-71

skipif mysql # not compatible
query I rowsort label-7338
SELECT COUNT ( * ) - 72
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT MIN( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - 80 AS col1, 36 * 21 col2
----
-80
756

query I rowsort
SELECT DISTINCT + 44 + 24 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT MAX( ALL 50 ) + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7342
SELECT MAX ( ALL 50 ) + COUNT ( * )
----
51

query II rowsort
SELECT DISTINCT - 9 AS col2, 10
----
-9
10

query I rowsort
SELECT ALL ( - ( + 18 ) ) * - ( + 65 ) AS col0
----
1170

query I rowsort
SELECT + ( + 55 ) * 3 * - 19 * - 62 AS col0
----
194370

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - 28 * - COUNT( * ) * - 3
----
-84

skipif mysql # not compatible
query I rowsort label-7346
SELECT - 28 * - COUNT ( * ) * - 3
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7347
SELECT DISTINCT + + 93 * SUM( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT + + 93 * SUM ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7348
SELECT + CAST( NULL AS SIGNED ) - + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT + CAST ( NULL AS INTEGER ) - + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT - + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7349
SELECT - + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT - CAST( - - 47 AS SIGNED ) * 45 AS col0
----
-2115

skipif mysql # not compatible
query I rowsort label-7350
SELECT - CAST ( - - 47 AS INTEGER ) * 45 AS col0
----
-2115

query I rowsort
SELECT ALL - + 16 * 93
----
-1488

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL + COUNT( * ) + - COUNT( * ) + - 96 + + + 75
----
-21

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + - 96 + + + 75
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT ALL - - COUNT( ALL + 17 )
----
1

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - - COUNT ( ALL + 17 )
----
1

query I rowsort
SELECT DISTINCT 65 + + 14
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT ALL ( + SUM( ALL - 71 ) )
----
-71

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL ( + SUM ( ALL - 71 ) )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT - CAST( + + 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-7356
SELECT - CAST ( + + 79 AS INTEGER )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT 76 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT 76 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( ( + - 38 ), + + 44 + + 0 )
----
38

query I rowsort
SELECT DISTINCT - ( + 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT 27 * COUNT( * ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7360
SELECT 27 * COUNT ( * ) AS col0
----
27

query I rowsort
SELECT DISTINCT - ( 70 )
----
-70

query I rowsort
SELECT + ( + 12 ) + - 17
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - SUM( 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-7363
SELECT - SUM ( 61 )
----
-61

query I rowsort
SELECT DISTINCT 95 + + 2
----
97

query I rowsort
SELECT ( + 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT ALL + 44 * + 67 - COUNT( * )
----
2947

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + 44 * + 67 - COUNT ( * )
----
2947

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL COUNT( + - 75 ) + 23 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL COUNT ( + - 75 ) + 23 AS col2
----
24

query I rowsort
SELECT - NULLIF ( + 36, - 26 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT + COUNT( - 70 ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT + COUNT ( - 70 ) - + COUNT ( * )
----
0

query I rowsort
SELECT + - 42 * - - 25 AS col0
----
-1050

query I rowsort
SELECT ALL - - 42 col2
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT DISTINCT 29 AS col2, + COUNT( * ) AS col0
----
29
1

skipif mysql # not compatible
query II rowsort label-7372
SELECT DISTINCT 29 AS col2, + COUNT ( * ) AS col0
----
29
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT COUNT( * ) * - 61
----
-61

skipif mysql # not compatible
query I rowsort label-7373
SELECT COUNT ( * ) * - 61
----
-61

query I rowsort
SELECT - 90 * 86
----
-7740

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT - COUNT( DISTINCT - 21 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7375
SELECT - COUNT ( DISTINCT - 21 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7376
SELECT ALL + COUNT( * ) + ( - - COUNT( * ) ) + - 7 DIV + 84
----
2

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + COUNT ( * ) + ( - - COUNT ( * ) ) + - 7 / + 84
----
2

query I rowsort
SELECT 10 * + 82 AS col0
----
820

query I rowsort
SELECT - - ( + 71 ) + + + 69 AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7379
SELECT - ( + - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7379
SELECT - ( + - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7380
SELECT COUNT( * ) AS col2, 7 - + ( ( + SUM( + 95 ) ) ) - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7380
SELECT COUNT ( * ) AS col2, 7 - + ( ( + SUM ( + 95 ) ) ) - CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT + 30 + + 53 col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7382
SELECT + 6 DIV + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-7382
SELECT + 6 / + COUNT ( * ) AS col0
----
6

query I rowsort
SELECT + - 96 col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7384
SELECT ALL + COUNT( * ) DIV - - 81 + - 38 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + COUNT ( * ) / - - 81 + - 38 AS col1
----
-38

query I rowsort
SELECT DISTINCT + 53 * - 1 AS col2
----
-53

query I rowsort
SELECT DISTINCT + ( - ( + 5 ) ) AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7387
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT COUNT( * ) - - 32 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-7388
SELECT COUNT ( * ) - - 32 AS col0
----
33

query I rowsort
SELECT ALL - 25 - - 96 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT - 31 * + COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT - 31 * + COUNT ( * ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT 36 * + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7391
SELECT 36 * + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT DISTINCT + COUNT( * ) * + SUM( DISTINCT - - 13 )
----
13

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT + COUNT ( * ) * + SUM ( DISTINCT - - 13 )
----
13

query I rowsort
SELECT + - 74 AS col2
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT MAX( + 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-7394
SELECT MAX ( + 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL + SUM( 51 )
----
51

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL + SUM ( 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT MIN( + ( + - 49 ) ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-7396
SELECT MIN ( + ( + - 49 ) ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT ALL - COUNT( * ) * ( - ( + COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL - COUNT ( * ) * ( - ( + COUNT ( * ) ) ) AS col0
----
1

query I rowsort
SELECT ALL + ( + + 47 )
----
47

query II rowsort
SELECT ALL - 38, 60 AS col1
----
-38
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT + ( COUNT( * ) ) * - 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7400
SELECT + ( COUNT ( * ) ) * - 49 AS col1
----
-49

query I rowsort
SELECT ALL + 53 col2
----
53

query I rowsort
SELECT ALL ( - 81 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT DISTINCT - COUNT( * ) * 6
----
-6

skipif mysql # not compatible
query I rowsort label-7403
SELECT DISTINCT - COUNT ( * ) * 6
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7404
SELECT ALL 65 DIV - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL 65 / - COUNT ( * )
----
-65

query I rowsort
SELECT DISTINCT ( - 70 ) col0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7406
SELECT DISTINCT - CAST( - 64 AS SIGNED ) col1
----
64

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT - CAST ( - 64 AS INTEGER ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT ALL - MIN( + - 80 ) + + - COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - MIN ( + - 80 ) + + - COUNT ( * ) AS col1
----
79

query I rowsort
SELECT DISTINCT + 63 + 22
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7409
SELECT ALL - CAST( NULL AS SIGNED ), - 78 AS col2
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-7409
SELECT ALL - CAST ( NULL AS INTEGER ), - 78 AS col2
----
NULL
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT 61 * + 81 * + - COUNT( * ) * 81
----
-400221

skipif mysql # not compatible
query I rowsort label-7410
SELECT 61 * + 81 * + - COUNT ( * ) * 81
----
-400221

query I rowsort
SELECT ALL - - 76 col0
----
76

query I rowsort
SELECT DISTINCT + 42 * 48 * + 23 col1
----
46368

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT 56 + + + MIN( ALL - - 49 )
----
105

skipif mysql # not compatible
query I rowsort label-7413
SELECT 56 + + + MIN ( ALL - - 49 )
----
105

query I rowsort
SELECT - 83 + - 9 AS col0
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7415
SELECT + ( 55 ) DIV COALESCE ( + 68, 2 )
----
0

skipif mysql # not compatible
query I rowsort label-7415
SELECT + ( 55 ) / COALESCE ( + 68, 2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT + ( - - COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7416
SELECT + ( - - COUNT ( * ) ) col1
----
1

query II rowsort
SELECT ALL 35 * 91, 13 AS col0
----
3185
13

query I rowsort
SELECT ALL + - 81 AS col0
----
-81

query I rowsort
SELECT ALL + - 77 * - 19 + - ( 65 )
----
1398

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT + COALESCE ( - 1, + COUNT( * ) * + 43 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7420
SELECT + COALESCE ( - 1, + COUNT ( * ) * + 43 ) col2
----
-1

query I rowsort
SELECT + 55 * 59
----
3245

query I rowsort
SELECT DISTINCT ( + 83 ) AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7423
SELECT ALL CAST( 87 AS SIGNED ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7423
SELECT ALL CAST ( 87 AS INTEGER ) AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7424
SELECT - 48 - CAST( NULL AS SIGNED ) + - SUM( - 16 ) * - + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7424
SELECT - 48 - CAST ( NULL AS INTEGER ) + - SUM ( - 16 ) * - + 41 AS col2
----
NULL

query I rowsort
SELECT + ( 94 ) - + - 20 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT DISTINCT MIN( ALL + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT MIN ( ALL + 42 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT 94 + + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT 94 + + COUNT ( * )
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7428
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT DISTINCT 40, - 55 AS col2
----
40
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT + COUNT( * ) + + 58
----
59

skipif mysql # not compatible
query I rowsort label-7430
SELECT + COUNT ( * ) + + 58
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7431
SELECT ALL - + 34 DIV + COUNT( * ) - - 51 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - + 34 / + COUNT ( * ) - - 51 AS col2
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7432
SELECT DISTINCT - ( - 95 ) DIV + 99
----
0

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - ( - 95 ) / + 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7433
SELECT 89 DIV - ( + - 35 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7433
SELECT 89 / - ( + - 35 ) AS col1
----
2

query I rowsort
SELECT ALL 99 * - ( + 45 ) AS col0
----
-4455

query I rowsort
SELECT + 53 - + 16 * 79 AS col0
----
-1211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT DISTINCT - CAST( + + ( + - COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - CAST ( + + ( + - COUNT ( * ) ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL 73 * + 95
----
6935

query I rowsort
SELECT + 12 * 77
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL - 97 + + 17 * COUNT( * ) * + 98
----
1569

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL - 97 + + 17 * COUNT ( * ) * + 98
----
1569

onlyif mysql # aggregate syntax: 
query II rowsort label-7440
SELECT DISTINCT COALESCE ( + 9, 92 ) AS col0, COUNT( * ) col2
----
9
1

skipif mysql # not compatible
query II rowsort label-7440
SELECT DISTINCT COALESCE ( + 9, 92 ) AS col0, COUNT ( * ) col2
----
9
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL + MIN( DISTINCT - + 18 ) - + 21 * - - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL + MIN ( DISTINCT - + 18 ) - + 21 * - - COUNT ( * ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT - SUM( 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-7442
SELECT - SUM ( 44 )
----
-44

query I rowsort
SELECT ALL + + 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT MAX( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-7444
SELECT MAX ( 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7445
SELECT ( - CAST( + 76 AS SIGNED ) ) * + - 38 + + + COUNT( * ) AS col1
----
2889

skipif mysql # not compatible
query I rowsort label-7445
SELECT ( - CAST ( + 76 AS INTEGER ) ) * + - 38 + + + COUNT ( * ) AS col1
----
2889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7446
SELECT - COUNT( * ) AS col2, + 54 + - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7446
SELECT - COUNT ( * ) AS col2, + 54 + - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7447
SELECT ALL + COUNT( * ) DIV 44 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL + COUNT ( * ) / 44 AS col0
----
0

query I rowsort
SELECT ALL COALESCE ( - 53, + - 39 - + ( 35 ) ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT 24 + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7449
SELECT 24 + COUNT ( * )
----
25

query I rowsort
SELECT ALL - - ( - 30 ) * 72 AS col1
----
-2160

query I rowsort
SELECT DISTINCT + 92 + 13 * - - 11 * 11
----
1665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7452
SELECT ALL CAST( NULL AS SIGNED ) + + 60 + + 38 * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL CAST ( NULL AS INTEGER ) + + 60 + + 38 * + COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7453
SELECT ALL + + CAST( NULL AS SIGNED ) + 9 AS col1, 33 AS col2
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7453
SELECT ALL + + CAST ( NULL AS INTEGER ) + 9 AS col1, 33 AS col2
----
NULL
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7454
SELECT + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7454
SELECT + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 66 * - 52 AS col0
----
-3432

query II rowsort
SELECT ALL 38 AS col1, 37
----
38
37

query I rowsort
SELECT 7 * - - 19 AS col1
----
133

query I rowsort
SELECT ( - + ( 28 ) ) + - + 58 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL + ( + - ( - + COUNT( * ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL + ( + - ( - + COUNT ( * ) ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT COUNT( - 21 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7460
SELECT COUNT ( - 21 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7461
SELECT DISTINCT - COUNT( * ) AS col1, - 54 col1
----
-1
-54

skipif mysql # not compatible
query II rowsort label-7461
SELECT DISTINCT - COUNT ( * ) AS col1, - 54 col1
----
-1
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT DISTINCT COUNT( + + 92 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT COUNT ( + + 92 ) AS col2
----
1

query I rowsort
SELECT - 88 * - 65 AS col0
----
5720

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - MAX( DISTINCT + 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-7464
SELECT - MAX ( DISTINCT + 96 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT CAST( - 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7465
SELECT CAST ( - 1 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT + MIN( - + 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7466
SELECT + MIN ( - + 59 ) AS col0
----
-59

query I rowsort
SELECT + + 96 + + 84 AS col1
----
180

query I rowsort
SELECT ALL 7 * - 51
----
-357

query I rowsort
SELECT ( 22 ) AS col0
----
22

query I rowsort
SELECT ALL + ( ( - ( - 84 ) ) )
----
84

query I rowsort
SELECT + 6 * 15 AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT DISTINCT MAX( + - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT MAX ( + - 63 ) AS col0
----
-63

query I rowsort
SELECT ALL ( - + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT ( + - 17 ) + - 83 + + COUNT( * ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT ( + - 17 ) + - 83 + + COUNT ( * ) AS col2
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7475
SELECT + 46 DIV - 46
----
-1

skipif mysql # not compatible
query I rowsort label-7475
SELECT + 46 / - 46
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - COUNT( - + 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-7476
SELECT - COUNT ( - + 58 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ALL COUNT( ALL - 77 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7477
SELECT ALL COUNT ( ALL - 77 ) AS col1
----
1

query I rowsort
SELECT ( - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT - COUNT( * ) - + 35
----
-36

skipif mysql # not compatible
query I rowsort label-7479
SELECT - COUNT ( * ) - + 35
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7480
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, 98 + - 45 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-7480
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, 98 + - 45 AS col2
----
NULL
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7481
SELECT + 36 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT + 36 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 63 * - 56
----
-3528

query I rowsort
SELECT ALL + + 78 AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL 45 * COUNT( DISTINCT 2 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL 45 * COUNT ( DISTINCT 2 ) col2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7485
SELECT 33 DIV + 71 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7485
SELECT 33 / + 71 * + COUNT ( * )
----
0

query I rowsort
SELECT 39 + + 58 AS col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7487
SELECT 47 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT 47 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT DISTINCT 25 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT 25 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT + MAX( ALL + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-7489
SELECT + MAX ( ALL + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT ALL MAX( ALL - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-7490
SELECT ALL MAX ( ALL - 70 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7491
SELECT + - CAST( - - ( - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7491
SELECT + - CAST ( - - ( - COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ( - + 34 ) AS col1
----
-34

query I rowsort
SELECT - 71 + + 35
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT ALL - COUNT( * ) * + + 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL - COUNT ( * ) * + + 86 AS col1
----
-86

query I rowsort
SELECT + 17 - + 60 - 18
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL - MAX( - 37 )
----
37

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - MAX ( - 37 )
----
37

query I rowsort
SELECT + 34 + + 74
----
108

query I rowsort
SELECT - - 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT MAX( DISTINCT + 66 ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-7499
SELECT MAX ( DISTINCT + 66 ) AS col1
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7500
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - 74 * 97
----
-7178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7502
SELECT DISTINCT + + 25 * + CAST( 28 AS SIGNED )
----
700

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT + + 25 * + CAST ( 28 AS INTEGER )
----
700

query I rowsort
SELECT ( 10 ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT ALL + 47 * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + 47 * + CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT + - 66 AS col1, + 21
----
-66
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT - - 73 DIV 59
----
1

skipif mysql # not compatible
query I rowsort label-7506
SELECT - - 73 / 59
----
1

query I rowsort
SELECT - ( + 58 ) AS col2
----
-58

query I rowsort
SELECT ALL - 50 * - 46
----
2300

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT + SUM( + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-7509
SELECT + SUM ( + 10 )
----
10

query I rowsort
SELECT DISTINCT - 54 col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT + COUNT( - 7 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7511
SELECT + COUNT ( - 7 ) AS col2
----
1

query I rowsort
SELECT ALL - 1 col1
----
-1

query I rowsort
SELECT + 13 + - - 12
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT DISTINCT 35 DIV + 77 * + 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT 35 / + 77 * + 53 AS col2
----
0

query I rowsort
SELECT DISTINCT + ( - + 65 ) AS col2
----
-65

query I rowsort
SELECT - + 61 + + 8 AS col2
----
-53

query I rowsort
SELECT - 66 * 93 AS col1
----
-6138

query I rowsort
SELECT DISTINCT ( - 23 ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7519
SELECT ALL 76 * MIN( CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL 76 * MIN ( CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT - 58 * COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7520
SELECT - 58 * COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT DISTINCT 75 * COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7521
SELECT DISTINCT 75 * COUNT ( * ) AS col1
----
75

query I rowsort
SELECT + 22 + - 44
----
-22

query I rowsort
SELECT DISTINCT + 39 * 18
----
702

query I rowsort
SELECT ALL + + ( + - 12 )
----
-12

query I rowsort
SELECT ALL + + 63 AS col2
----
63

query I rowsort
SELECT 86 * + 67
----
5762

query I rowsort
SELECT + 27 + 72 * 92
----
6651

query I rowsort
SELECT DISTINCT - - 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL + COUNT( * ) + + 75
----
76

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL + COUNT ( * ) + + 75
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT ALL SUM( DISTINCT + ( - 84 ) )
----
-84

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL SUM ( DISTINCT + ( - 84 ) )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT ALL - + CAST( NULL AS SIGNED ) + 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL - + CAST ( NULL AS INTEGER ) + 49 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT ALL + 38 * - 25 + MIN( DISTINCT + 97 ) col0
----
-853

skipif mysql # not compatible
query I rowsort label-7532
SELECT ALL + 38 * - 25 + MIN ( DISTINCT + 97 ) col0
----
-853

query I rowsort
SELECT + 28 * + - 23 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT - COUNT( - 8 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7534
SELECT - COUNT ( - 8 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL + COUNT( + + 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL + COUNT ( + + 38 ) AS col0
----
1

query I rowsort
SELECT + COALESCE ( + 52, + 29 + - 64 ) AS col0
----
52

query I rowsort
SELECT ALL + - 40 AS col1
----
-40

query I rowsort
SELECT ALL + 14 * - + 88 + 82
----
-1150

query II rowsort
SELECT ( + 80 ), - 69 AS col1
----
80
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT - 73 * - 1 + COUNT( * ) - + COUNT( * ) * - - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-7540
SELECT - 73 * - 1 + COUNT ( * ) - + COUNT ( * ) * - - COUNT ( * ) AS col2
----
73

query I rowsort
SELECT + + 63 col0
----
63

query I rowsort
SELECT ALL + 98 * + 91 col1
----
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT 31 * COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-7543
SELECT 31 * COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7544
SELECT CAST( + COUNT( * ) AS SIGNED ) DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-7544
SELECT CAST ( + COUNT ( * ) AS INTEGER ) / - 64
----
0

query I rowsort
SELECT - + 99 col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT - MIN( + - 35 )
----
35

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT - MIN ( + - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT ALL + ( + 21 ) * COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + ( + 21 ) * COUNT ( * )
----
21

query II rowsort
SELECT - + 95 AS col1, 43
----
-95
43

query II rowsort
SELECT - 53, - 86 AS col0
----
-53
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7551
SELECT - + COUNT( - + 80 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT - + COUNT ( - + 80 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT + 17 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7552
SELECT + 17 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7553
SELECT ALL - - 36 DIV COUNT( * ), + MAX( ALL + 27 ) col2
----
36
27

skipif mysql # not compatible
query II rowsort label-7553
SELECT ALL - - 36 / COUNT ( * ), + MAX ( ALL + 27 ) col2
----
36
27

query I rowsort
SELECT DISTINCT ( - 36 ) - + - 39 AS col1
----
3

query I rowsort
SELECT DISTINCT + COALESCE ( 82, + 75 ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT + CAST( - 30 AS SIGNED ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7556
SELECT + CAST ( - 30 AS INTEGER ) AS col1
----
-30

query I rowsort
SELECT + 81 - + 34 col0
----
47

query I rowsort
SELECT + ( + 59 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7559
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7559
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT + - NULLIF ( 62, - 61 )
----
-62

query I rowsort
SELECT DISTINCT - + 42 AS col1
----
-42

query I rowsort
SELECT ALL - 17 - + 16
----
-33

query I rowsort
SELECT ALL + 8 * - ( + 72 )
----
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7564
SELECT CAST( NULL AS SIGNED ) * + 24 * + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT CAST ( NULL AS INTEGER ) * + 24 * + - COUNT ( * ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7565
SELECT - MAX( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7565
SELECT - MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + - 15 AS col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7567
SELECT DISTINCT + + CAST( - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT + + CAST ( - 5 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT + 18 + + 18 * COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7568
SELECT + 18 + + 18 * COUNT ( * ) AS col2
----
36

query I rowsort
SELECT ALL ( + 90 ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7570
SELECT - CAST( NULL AS DECIMAL ) col1, + ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7570
SELECT - CAST ( NULL AS REAL ) col1, + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT ALL + - 66 * + + COUNT( * ) * 31
----
-2046

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL + - 66 * + + COUNT ( * ) * 31
----
-2046

query I rowsort
SELECT ALL + ( - 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7573
SELECT + + COUNT( * ) * + 50 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT + + COUNT ( * ) * + 50 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 59 * 93 AS col2
----
-5487

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT MIN( CAST( NULL AS SIGNED ) ) + - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT MIN ( CAST ( NULL AS INTEGER ) ) + - 17
----
NULL

query I rowsort
SELECT DISTINCT - - 59 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL 59 + - COUNT( * ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL 59 + - COUNT ( * ) AS col1
----
58

query I rowsort
SELECT ALL - 28 * - 79
----
2212

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7579
SELECT + CAST( NULL AS DECIMAL ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT + CAST ( NULL AS REAL ) * - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT ALL - 24 + + COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL - 24 + + COUNT ( * )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT ALL - COUNT( * ) + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - COUNT ( * ) + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7582
SELECT CAST( + - 69 AS SIGNED ), 87 AS col2
----
-69
87

skipif mysql # not compatible
query II rowsort label-7582
SELECT CAST ( + - 69 AS INTEGER ), 87 AS col2
----
-69
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT - COUNT( * ) * - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7583
SELECT - COUNT ( * ) * - COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7584
SELECT ALL + COUNT( * ) + 89 - - CAST( NULL AS SIGNED ) * + - ( 37 ) + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL + COUNT ( * ) + 89 - - CAST ( NULL AS INTEGER ) * + - ( 37 ) + - 87 AS col2
----
NULL

query I rowsort
SELECT ( + 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT + COALESCE ( + - COUNT( * ), + 94 ) * - COUNT( * ) + + - COUNT( - 7 )
----
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT + COALESCE ( + - COUNT ( * ), + 94 ) * - COUNT ( * ) + + - COUNT ( - 7 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7587
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7587
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT MAX( DISTINCT + 27 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-7588
SELECT MAX ( DISTINCT + 27 ) AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT - CAST( 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-7589
SELECT - CAST ( 32 AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT + 26 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-7590
SELECT + 26 * + COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT ( - 90 ) col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT ALL MAX( 64 )
----
64

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL MAX ( 64 )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7593
SELECT ( + 13 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7593
SELECT ( + 13 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT - MAX( ALL - - 10 ) * COUNT( * ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT - MAX ( ALL - - 10 ) * COUNT ( * ) AS col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT ALL - CAST( NULL AS SIGNED ) - - 25 + + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL - CAST ( NULL AS INTEGER ) - - 25 + + 39 col0
----
NULL

query I rowsort
SELECT ALL + ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT + + MAX( ALL + - 27 ) + - ( COUNT( * ) )
----
-28

skipif mysql # not compatible
query I rowsort label-7597
SELECT + + MAX ( ALL + - 27 ) + - ( COUNT ( * ) )
----
-28

query I rowsort
SELECT - 84 col2
----
-84

query I rowsort
SELECT ALL - ( - 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + COUNT( * ) * - 53 * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-7600
SELECT + COUNT ( * ) * - 53 * COUNT ( * )
----
-53

query I rowsort
SELECT ALL 47 + + 81 AS col1
----
128

query I rowsort
SELECT ALL 41 * + + 31
----
1271

query I rowsort
SELECT ALL 5 * - - 61
----
305

query II rowsort
SELECT ALL + 54 AS col1, 4 col2
----
54
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7605
SELECT - 9 * - SUM( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT - 9 * - SUM ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT - COUNT( DISTINCT - 97 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7606
SELECT - COUNT ( DISTINCT - 97 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7607
SELECT ALL CAST( - + 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL CAST ( - + 34 AS INTEGER )
----
-34

query I rowsort
SELECT DISTINCT - ( + + ( - + 83 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL - SUM( + - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL - SUM ( + - 29 )
----
29

query I rowsort
SELECT 3 * + 90 col0
----
270

query II rowsort
SELECT ALL 43 AS col1, + 74
----
43
74

query I rowsort
SELECT + ( + 76 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7613
SELECT + - 12 AS col1, MAX( 17 )
----
-12
17

skipif mysql # not compatible
query II rowsort label-7613
SELECT + - 12 AS col1, MAX ( 17 )
----
-12
17

query I rowsort
SELECT - 54 * + 85
----
-4590

query I rowsort
SELECT 38 - - ( + 45 )
----
83

query I rowsort
SELECT + ( + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT - NULLIF ( COUNT( * ), + 84 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7617
SELECT - NULLIF ( COUNT ( * ), + 84 ) AS col1
----
-1

query I rowsort
SELECT ALL + - 99 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT COUNT( * ) + + - 26 col1
----
-25

skipif mysql # not compatible
query I rowsort label-7619
SELECT COUNT ( * ) + + - 26 col1
----
-25

query I rowsort
SELECT 72 + - ( + + 46 )
----
26

query I rowsort
SELECT 37 * + + 52
----
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT ALL - COUNT( * ) * - 11
----
11

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - COUNT ( * ) * - 11
----
11

query I rowsort
SELECT ALL 68 + + 93 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + SUM( + + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-7624
SELECT + SUM ( + + 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL + MAX( - + 73 ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL + MAX ( - + 73 ) AS col0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7626
SELECT ALL + CAST( - 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL + CAST ( - 6 AS INTEGER )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT + MAX( + 28 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-7627
SELECT + MAX ( + 28 ) AS col0
----
28

query I rowsort
SELECT ( 16 ) AS col2
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7629
SELECT ( - ( + CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT ( - ( + CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL MAX( DISTINCT + 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL MAX ( DISTINCT + 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - - 39 + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-7631
SELECT - - 39 + + COUNT ( * )
----
40

query I rowsort
SELECT ALL + 53 + + 56
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT COUNT( * ) * - + 10
----
-10

skipif mysql # not compatible
query I rowsort label-7633
SELECT COUNT ( * ) * - + 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT 82 * + 29 * + COUNT( * )
----
2378

skipif mysql # not compatible
query I rowsort label-7634
SELECT 82 * + 29 * + COUNT ( * )
----
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT DISTINCT - COALESCE ( - COUNT( * ), + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT COUNT( * ) + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-7636
SELECT COUNT ( * ) + - 90
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL COUNT( * ) + - + 41 AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL COUNT ( * ) + - + 41 AS col1
----
-40

query I rowsort
SELECT - 92 * + - 5 * - 89 AS col2
----
-40940

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT - + 95 - COUNT( * ) + - 28 AS col0
----
-124

skipif mysql # not compatible
query I rowsort label-7639
SELECT - + 95 - COUNT ( * ) + - 28 AS col0
----
-124

query I rowsort
SELECT - 39 + - 17 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT 62 + + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7641
SELECT 62 + + COUNT ( * ) AS col1
----
63

query I rowsort
SELECT + - 95 AS col1
----
-95

query I rowsort
SELECT + 59 - - 32 AS col1
----
91

query I rowsort
SELECT + ( 30 )
----
30

query I rowsort
SELECT - - 59 col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT ALL AVG ( - - 4 ) + - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL AVG ( - - 4 ) + - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT COUNT( * ) + 57 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT COUNT ( * ) + 57 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT COUNT( * ) + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-7648
SELECT COUNT ( * ) + 19 AS col1
----
20

query I rowsort
SELECT 89 + 31
----
120

onlyif mysql # aggregate syntax: 
query II rowsort label-7650
SELECT + 62, - COUNT( * ) col0
----
62
-1

skipif mysql # not compatible
query II rowsort label-7650
SELECT + 62, - COUNT ( * ) col0
----
62
-1

query I rowsort
SELECT ALL - 74 + ( + 56 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT - + COUNT( * ) + + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-7652
SELECT - + COUNT ( * ) + + - 9
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + COUNT( * ) * + 15 * 90 AS col1
----
1350

skipif mysql # not compatible
query I rowsort label-7653
SELECT + COUNT ( * ) * + 15 * 90 AS col1
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT MAX( DISTINCT + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-7654
SELECT MAX ( DISTINCT + 94 ) AS col0
----
94

query I rowsort
SELECT + 99 - + 77 AS col0
----
22

query I rowsort
SELECT - ( 66 ) AS col1
----
-66

query I rowsort
SELECT ALL 69 + 92
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT - 91 * - MAX( DISTINCT + 90 ) AS col0
----
8190

skipif mysql # not compatible
query I rowsort label-7658
SELECT - 91 * - MAX ( DISTINCT + 90 ) AS col0
----
8190

query I rowsort
SELECT - 9 + + 97
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT ALL + COUNT( * ) * + - 35
----
-35

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL + COUNT ( * ) * + - 35
----
-35

query I rowsort
SELECT ALL - + 64 * + 71 AS col2
----
-4544

query I rowsort
SELECT - 28 + 42 AS col0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT 64 DIV - - 69
----
0

skipif mysql # not compatible
query I rowsort label-7663
SELECT 64 / - - 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT ALL - 50 * + COUNT( ALL 1 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - 50 * + COUNT ( ALL 1 ) AS col0
----
-50

query I rowsort
SELECT ALL - ( 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7666
SELECT 7 * CAST( NULL AS SIGNED ) * 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7666
SELECT 7 * CAST ( NULL AS INTEGER ) * 80 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT COUNT( * ) * 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7667
SELECT COUNT ( * ) * 81 AS col1
----
81

query I rowsort
SELECT - - 99 col2
----
99

query I rowsort
SELECT 75 * + 54
----
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT DISTINCT 86 * + COUNT( * ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT 86 * + COUNT ( * ) AS col1
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL SUM( - + 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL SUM ( - + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7672
SELECT COUNT( * ), - 42 AS col2
----
1
-42

skipif mysql # not compatible
query II rowsort label-7672
SELECT COUNT ( * ), - 42 AS col2
----
1
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT ALL COUNT( * ) * - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL COUNT ( * ) * - + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7674
SELECT COUNT( * ) DIV 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7674
SELECT COUNT ( * ) / 54 AS col0
----
0

query I rowsort
SELECT 66 * + 12 + + 36
----
828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT COUNT( * ) + - + COUNT( * ) + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT COUNT ( * ) + - + COUNT ( * ) + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ( + 12 ) AS col1
----
12

query II rowsort
SELECT ALL 31 AS col1, 14 AS col2
----
31
14

query I rowsort
SELECT 92 + - 34
----
58

query I rowsort
SELECT - - 26 AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT - + CAST( + 95 AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7681
SELECT - + CAST ( + 95 AS INTEGER ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT 82 * + - MIN( - 92 ) AS col2
----
7544

skipif mysql # not compatible
query I rowsort label-7682
SELECT 82 * + - MIN ( - 92 ) AS col2
----
7544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7683
SELECT DISTINCT - COUNT( * ) DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT - COUNT ( * ) / 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT + - COUNT( + 40 ) + 69 + - 92 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-7684
SELECT + - COUNT ( + 40 ) + 69 + - 92 AS col1
----
-24

query I rowsort
SELECT + 92 + 72
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - 3 - + + SUM( DISTINCT - 52 )
----
49

skipif mysql # not compatible
query I rowsort label-7686
SELECT - 3 - + + SUM ( DISTINCT - 52 )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT + 74 + + - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-7687
SELECT + 74 + + - COUNT ( * )
----
73

query I rowsort
SELECT + 50 + 78 AS col0
----
128

query I rowsort
SELECT DISTINCT ( + - 31 )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT ALL CAST( + - 72 AS SIGNED ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL CAST ( + - 72 AS INTEGER ) col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7691
SELECT + NULLIF ( - + ( - + COUNT( * ) ), - + CAST( NULL AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7691
SELECT + NULLIF ( - + ( - + COUNT ( * ) ), - + CAST ( NULL AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT + 91 * + 56 AS col1
----
5096

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7693
SELECT + - 98 DIV + - COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-7693
SELECT + - 98 / + - COUNT ( * ) AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT CAST( NULL AS SIGNED ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT DISTINCT + 93 * - 1 * - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + 93 * - 1 * - COUNT ( * ) AS col2
----
93

query I rowsort
SELECT DISTINCT - + 61 AS col2
----
-61

query I rowsort
SELECT DISTINCT - - 96 AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT ALL ( CAST( NULL AS SIGNED ) ) * CAST( + 13 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * CAST ( + 13 AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 89 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT ALL + 72 * - SUM( ALL 19 ) AS col1
----
-1368

skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL + 72 * - SUM ( ALL 19 ) AS col1
----
-1368

query II rowsort
SELECT + 97 col1, - 24 AS col1
----
97
-24

query II rowsort
SELECT DISTINCT + - 28 AS col0, - 74
----
-28
-74

query I rowsort
SELECT ALL + 19 col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT + + COUNT( 76 ) + + 34 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7704
SELECT + + COUNT ( 76 ) + + 34 AS col0
----
35

query I rowsort
SELECT ALL + 90 + - 5 + + 48
----
133

query I rowsort
SELECT + + ( + 13 ) AS col1
----
13

query I rowsort
SELECT ALL + 42 * + 45
----
1890

query I rowsort
SELECT ALL - - 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL - ( SUM( 81 ) ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL - ( SUM ( 81 ) ) AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7710
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + 38 + 7
----
NULL
45

skipif mysql # not compatible
query II rowsort label-7710
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 38 + 7
----
NULL
45

query I rowsort
SELECT - COALESCE ( 27, + 46 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7712
SELECT DISTINCT - 23 AS col0, - CAST( - COUNT( * ) AS SIGNED )
----
-23
1

skipif mysql # not compatible
query II rowsort label-7712
SELECT DISTINCT - 23 AS col0, - CAST ( - COUNT ( * ) AS INTEGER )
----
-23
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT DISTINCT 79 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT DISTINCT 79 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 0 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7715
SELECT DISTINCT - CAST( 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT - CAST ( 64 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT + MAX( ALL - 37 ) AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-7716
SELECT + MAX ( ALL - 37 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ( + - COUNT( DISTINCT - - 8 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7717
SELECT ( + - COUNT ( DISTINCT - - 8 ) )
----
-1

query I rowsort
SELECT + ( - 20 ) AS col1
----
-20

query II rowsort
SELECT ALL 0, 33 * - - 63 AS col2
----
0
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT - ( - SUM( ALL + 44 ) ) col2
----
44

skipif mysql # not compatible
query I rowsort label-7720
SELECT - ( - SUM ( ALL + 44 ) ) col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7721
SELECT ALL - COUNT( * ) + + 96 * - 55 DIV - + COUNT( * ) AS col2
----
5279

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL - COUNT ( * ) + + 96 * - 55 / - + COUNT ( * ) AS col2
----
5279

query I rowsort
SELECT - 69 + - + 69 AS col0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT - 42 * + 64 * + COUNT( * )
----
-2688

skipif mysql # not compatible
query I rowsort label-7723
SELECT - 42 * + 64 * + COUNT ( * )
----
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ALL 28 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL 28 + + COUNT ( * )
----
29

query I rowsort
SELECT ALL - 95 - 66 + 33 AS col2
----
-128

query I rowsort
SELECT ALL - 68 * + 15
----
-1020

query II rowsort
SELECT 30 AS col1, 42
----
30
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7728
SELECT 4 DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7728
SELECT 4 / 22 AS col1
----
0

query I rowsort
SELECT - 48 - - 53 AS col1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT + COUNT( * ), ( + - COUNT( * ) ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-7730
SELECT + COUNT ( * ), ( + - COUNT ( * ) ) AS col0
----
1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7731
SELECT ALL + SUM( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + SUM ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT + ( - MAX( 94 ) ) * - + CAST( - + COUNT( * ) AS SIGNED ) - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-7732
SELECT + ( - MAX ( 94 ) ) * - + CAST ( - + COUNT ( * ) AS INTEGER ) - COUNT ( * )
----
-95

query II rowsort
SELECT DISTINCT + 30 AS col1, 49
----
30
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7734
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT DISTINCT ( + - 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT + MAX( + 93 )
----
93

skipif mysql # not compatible
query I rowsort label-7736
SELECT + MAX ( + 93 )
----
93

query I rowsort
SELECT ALL ( + ( - 16 ) ) AS col2
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7738
SELECT 86 DIV - 40 + + - COUNT( * ) DIV 70 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7738
SELECT 86 / - 40 + + - COUNT ( * ) / 70 AS col2
----
-2

query I rowsort
SELECT DISTINCT - + 18
----
-18

query II rowsort
SELECT DISTINCT - + 59, 15 col2
----
-59
15

query II rowsort
SELECT 95 AS col0, 1
----
95
1

query I rowsort
SELECT ALL ( - - 0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7743
SELECT - - 53 DIV 25 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7743
SELECT - - 53 / 25 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7744
SELECT DISTINCT - 20 DIV + + 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT - 20 / + + 98 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT - - COUNT( * ) * + - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-7745
SELECT - - COUNT ( * ) * + - 68 AS col1
----
-68

query I rowsort
SELECT DISTINCT + + 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT MAX( - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-7747
SELECT MAX ( - 38 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT DISTINCT - COUNT( * ) * - 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - COUNT ( * ) * - 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT COUNT( + 18 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7749
SELECT COUNT ( + 18 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT COUNT( - - 37 )
----
1

skipif mysql # not compatible
query I rowsort label-7750
SELECT COUNT ( - - 37 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7751
SELECT DISTINCT COUNT( * ) DIV + - 49 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT COUNT ( * ) / + - 49 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT DISTINCT 58 + + + 85 + + COUNT( * )
----
144

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT 58 + + + 85 + + COUNT ( * )
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT + MAX( 97 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-7753
SELECT + MAX ( 97 ) col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT 59 + - + COUNT( * ) * 10 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7754
SELECT 59 + - + COUNT ( * ) * 10 AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT ALL ( + CAST( COUNT( * ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL ( + CAST ( COUNT ( * ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT 52 + + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-7756
SELECT 52 + + COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL MIN( ALL - - 43 ) + - 57
----
-14

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL MIN ( ALL - - 43 ) + - 57
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT SUM( DISTINCT - 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-7758
SELECT SUM ( DISTINCT - 59 )
----
-59

query I rowsort
SELECT DISTINCT ( 73 ) AS col0
----
73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7760
SELECT - 68 * CAST( NULL AS DECIMAL ) / - 3 / - ( 32 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT - 68 * CAST ( NULL AS REAL ) / - 3 / - ( 32 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - COUNT( * ) - + + 12 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-7761
SELECT - COUNT ( * ) - + + 12 AS col1
----
-13

query I rowsort
SELECT ALL 31 col1
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7763
SELECT + + COUNT( * ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7763
SELECT + + COUNT ( * ) / + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT ( - + 87 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7765
SELECT + COUNT( * ) DIV + + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7765
SELECT + COUNT ( * ) / + + 67 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT - COUNT( * ) - - - 14
----
-15

skipif mysql # not compatible
query I rowsort label-7766
SELECT - COUNT ( * ) - - - 14
----
-15

query I rowsort
SELECT DISTINCT + 96 col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7768
SELECT + CAST( - 56 AS SIGNED ) + - 62 AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-7768
SELECT + CAST ( - 56 AS INTEGER ) + - 62 AS col2
----
-118

query I rowsort
SELECT + 9 + - 15 AS col2
----
-6

query I rowsort
SELECT + - 68 col2
----
-68

query I rowsort
SELECT - ( - + 10 ) AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT ALL 13 DIV + ( + 19 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL 13 / + ( + 19 ) AS col1
----
0

query I rowsort
SELECT ALL - 7 - + + 84
----
-91

query I rowsort
SELECT DISTINCT 18 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL - 97 - + COUNT( * )
----
-98

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL - 97 - + COUNT ( * )
----
-98

query I rowsort
SELECT - ( - - 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL - + 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL - + 0 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT - MAX( ALL 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-7778
SELECT - MAX ( ALL 17 )
----
-17

query I rowsort
SELECT - ( + 69 ) AS col1
----
-69

query I rowsort
SELECT - ( 14 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7781
SELECT DISTINCT MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT DISTINCT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT + + COUNT( DISTINCT + 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7782
SELECT + + COUNT ( DISTINCT + 51 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT 86 + SUM( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-7783
SELECT 86 + SUM ( - 86 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT ALL + ( + + 57 ) + + ( + CAST( NULL AS SIGNED ) ) + - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + ( + + 57 ) + + ( + CAST ( NULL AS INTEGER ) ) + - 49 AS col2
----
NULL

query I rowsort
SELECT 29 + - 68 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT ALL - COUNT( DISTINCT - 49 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL - COUNT ( DISTINCT - 49 ) AS col2
----
-1

query I rowsort
SELECT ALL + 39 - + 32
----
7

query I rowsort
SELECT 2 * + 47
----
94

query II rowsort
SELECT ALL 41, 11 AS col0
----
41
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT MIN( ALL 51 ) col0
----
51

skipif mysql # not compatible
query I rowsort label-7790
SELECT MIN ( ALL 51 ) col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - ( - COUNT( * ) ) + + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7791
SELECT - ( - COUNT ( * ) ) + + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT DISTINCT + 36 * + 8
----
288

query I rowsort
SELECT DISTINCT 2 * 38
----
76

query I rowsort
SELECT - ( - 91 ) * ( 78 )
----
7098

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT - COUNT( * ) * 27 - COUNT( ALL - 56 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT - COUNT ( * ) * 27 - COUNT ( ALL - 56 ) AS col1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7796
SELECT ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7797
SELECT ALL + CASE 88 WHEN - CAST( NULL AS SIGNED ) THEN CAST( NULL AS DECIMAL ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL + CASE 88 WHEN - CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS REAL ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT + NULLIF ( 35, COUNT( * ) + - COUNT( * ) ) * - 38
----
-1330

skipif mysql # not compatible
query I rowsort label-7798
SELECT + NULLIF ( 35, COUNT ( * ) + - COUNT ( * ) ) * - 38
----
-1330

query I rowsort
SELECT + 15 * - 0
----
0

query I rowsort
SELECT - ( - 97 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7801
SELECT - CAST( - 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-7801
SELECT - CAST ( - 72 AS INTEGER )
----
72

query I rowsort
SELECT - ( + ( 53 ) ) AS col0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7803
SELECT + - 97 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT + - 97 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT DISTINCT - COUNT( * ) + + - NULLIF ( - 9, + 52 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT - COUNT ( * ) + + - NULLIF ( - 9, + 52 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL + 46 + - ( COUNT( * ) ) + 77 * MAX( - NULLIF ( + 4, + 61 ) * 54 ) AS col2
----
-16587

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + 46 + - ( COUNT ( * ) ) + 77 * MAX ( - NULLIF ( + 4, + 61 ) * 54 ) AS col2
----
-16587

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL MIN( DISTINCT - + 32 ) + - 54
----
-86

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL MIN ( DISTINCT - + 32 ) + - 54
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - COUNT( DISTINCT - - 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-7807
SELECT - COUNT ( DISTINCT - - 56 )
----
-1

query I rowsort
SELECT DISTINCT ( - - 93 ) col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT SUM( DISTINCT + - 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-7809
SELECT SUM ( DISTINCT + - 80 ) AS col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT 76 * ( + ( ( CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT 76 * ( + ( ( CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT COUNT( + 65 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7811
SELECT COUNT ( + 65 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT - + ( - COUNT( * ) ) * + ( 80 ) - COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-7812
SELECT - + ( - COUNT ( * ) ) * + ( 80 ) - COUNT ( * ) col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7813
SELECT - + CAST( NULL AS SIGNED ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7813
SELECT - + CAST ( NULL AS INTEGER ) + + 90
----
NULL

query I rowsort
SELECT - + 80 AS col0
----
-80

query I rowsort
SELECT ALL 38 * + 53
----
2014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT DISTINCT + CAST( - 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT + CAST ( - 0 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7817
SELECT - CAST( - - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-7817
SELECT - CAST ( - - 46 AS INTEGER )
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT ALL + 87 DIV + - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL + 87 / + - 91 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7819
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7819
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7820
SELECT - 2, - 68 + - COUNT( * ) AS col2
----
-2
-69

skipif mysql # not compatible
query II rowsort label-7820
SELECT - 2, - 68 + - COUNT ( * ) AS col2
----
-2
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT - NULLIF ( 45, - COUNT( * ) )
----
-45

skipif mysql # not compatible
query I rowsort label-7821
SELECT - NULLIF ( 45, - COUNT ( * ) )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT + 19 * MIN( + 59 ) AS col0
----
1121

skipif mysql # not compatible
query I rowsort label-7822
SELECT + 19 * MIN ( + 59 ) AS col0
----
1121

query II rowsort
SELECT DISTINCT 50, ( - + 17 ) col2
----
50
-17

query II rowsort
SELECT - 30 AS col2, 9 AS col2
----
-30
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7825
SELECT - CAST( 98 AS SIGNED ) * - + 56 AS col1, 56 * + CAST( NULL AS DECIMAL ) AS col0
----
5488
NULL

skipif mysql # not compatible
query II rowsort label-7825
SELECT - CAST ( 98 AS INTEGER ) * - + 56 AS col1, 56 * + CAST ( NULL AS REAL ) AS col0
----
5488
NULL

query I rowsort
SELECT ALL ( - - 34 )
----
34

query I rowsort
SELECT ALL 6 col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT DISTINCT SUM( 11 )
----
11

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT SUM ( 11 )
----
11

query I rowsort
SELECT + 77 * + 8
----
616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT ALL + + CAST( 17 AS SIGNED ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL + + CAST ( 17 AS INTEGER ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT 84 * + + COUNT( ALL + 96 ) + + + 75
----
159

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT 84 * + + COUNT ( ALL + 96 ) + + + 75
----
159

query I rowsort
SELECT + - 63 * - 41
----
2583

query I rowsort
SELECT 1 * + - 69 col2
----
-69

query I rowsort
SELECT DISTINCT 7 + - 6 AS col0
----
1

query I rowsort
SELECT - ( - - 88 ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT + + MIN( + - 80 ) * - 51 AS col2
----
4080

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT + + MIN ( + - 80 ) * - 51 AS col2
----
4080

query I rowsort
SELECT DISTINCT - - 9 AS col2
----
9

query I rowsort
SELECT DISTINCT - 63 AS col0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-7839
SELECT DISTINCT - 56 AS col0, 78 + - COUNT( * ) AS col1
----
-56
77

skipif mysql # not compatible
query II rowsort label-7839
SELECT DISTINCT - 56 AS col0, 78 + - COUNT ( * ) AS col1
----
-56
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL + 38 * MAX( - - 38 ) AS col1
----
1444

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL + 38 * MAX ( - - 38 ) AS col1
----
1444

query I rowsort
SELECT DISTINCT 13 col0
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-7842
SELECT ALL 84 AS col0, COUNT( * )
----
84
1

skipif mysql # not compatible
query II rowsort label-7842
SELECT ALL 84 AS col0, COUNT ( * )
----
84
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT COALESCE ( 70, 1 ) * - 0 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7843
SELECT COALESCE ( 70, 1 ) * - 0 - + + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT ( + 79 ) * - COUNT( * ) * + 94
----
-7426

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT ( + 79 ) * - COUNT ( * ) * + 94
----
-7426

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT + 25 - COUNT( * ), - 32 AS col2
----
24
-32

skipif mysql # not compatible
query II rowsort label-7846
SELECT + 25 - COUNT ( * ), - 32 AS col2
----
24
-32

query II rowsort
SELECT DISTINCT - 23 AS col1, 88
----
-23
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL - - COUNT( * ) + - + ( + + 27 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL - - COUNT ( * ) + - + ( + + 27 ) AS col0
----
-26

query I rowsort
SELECT ALL - 3 col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7850
SELECT + COUNT( * ) * AVG ( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7850
SELECT + COUNT ( * ) * AVG ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL ( 2 ) * + 54
----
108

query I rowsort
SELECT 65 + - - 16
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT MIN( - 70 ) col0
----
-70

skipif mysql # not compatible
query I rowsort label-7853
SELECT MIN ( - 70 ) col0
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-7854
SELECT DISTINCT - COUNT( * ) col1, - ( - 90 )
----
-1
90

skipif mysql # not compatible
query II rowsort label-7854
SELECT DISTINCT - COUNT ( * ) col1, - ( - 90 )
----
-1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT COUNT( * ) * - COUNT( * ) - + + 57 AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-7855
SELECT COUNT ( * ) * - COUNT ( * ) - + + 57 AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL + COUNT( * ) * + 60 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL + COUNT ( * ) * + 60 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7857
SELECT - COUNT( * ) - CAST( - - 8 AS SIGNED ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-7857
SELECT - COUNT ( * ) - CAST ( - - 8 AS INTEGER ) AS col0
----
-9

query I rowsort
SELECT DISTINCT 50 + + 84
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7859
SELECT ALL 97, CAST( + 59 AS SIGNED ) - 95 - ( + 75 ) * + CAST( NULL AS SIGNED ) * + 80 AS col0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-7859
SELECT ALL 97, CAST ( + 59 AS INTEGER ) - 95 - ( + 75 ) * + CAST ( NULL AS INTEGER ) * + 80 AS col0
----
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7860
SELECT + ( + 84 ) * + - 13 DIV COUNT( * )
----
-1092

skipif mysql # not compatible
query I rowsort label-7860
SELECT + ( + 84 ) * + - 13 / COUNT ( * )
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - + COUNT( ALL - + 2 ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-7861
SELECT - + COUNT ( ALL - + 2 ) * - - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7862
SELECT ALL COUNT( * ) DIV - + 8
----
0

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL COUNT ( * ) / - + 8
----
0

query I rowsort
SELECT + 49 * - 39 * - 21
----
40131

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT ALL 49 DIV - 93 + + ( - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL 49 / - 93 + + ( - 16 ) AS col0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7865
SELECT ALL 56 DIV - 66 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL 56 / - 66 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL MIN( - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL MIN ( - 95 ) AS col0
----
-95

query I rowsort
SELECT ALL ( + - 45 ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7868
SELECT + 49 + + - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-7868
SELECT + 49 + + - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
48
NULL

query I rowsort
SELECT 77 + + - 35 AS col0
----
42

query II rowsort
SELECT 50, - 94 col0
----
50
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7871
SELECT + 7 * 79 + - SUM( ALL + - CAST( NULL AS DECIMAL ) ) + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT + 7 * 79 + - SUM ( ALL + - CAST ( NULL AS REAL ) ) + 75
----
NULL

query I rowsort
SELECT 9 + 85 AS col0
----
94

query I rowsort
SELECT ALL - - 61 AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7874
SELECT ALL MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT + 10 col2
----
10

query I rowsort
SELECT ALL + - 95 AS col1
----
-95

query I rowsort
SELECT + 80 * + 19
----
1520

query I rowsort
SELECT ALL 50 * + - 94 AS col2
----
-4700

query I rowsort
SELECT - ( - 53 )
----
53

query I rowsort
SELECT ALL + 36 * + 31 AS col0
----
1116

query I rowsort
SELECT DISTINCT + + ( + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT MIN( ALL - - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7882
SELECT MIN ( ALL - - 6 ) AS col1
----
6

query I rowsort
SELECT DISTINCT + ( ( - ( + 32 ) ) )
----
-32

query I rowsort
SELECT + ( - - 5 ) * + - 38 * - 35 AS col2
----
6650

query I rowsort
SELECT 40 - + ( + 99 ) AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7886
SELECT CAST( NULL AS SIGNED ) * + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7886
SELECT CAST ( NULL AS INTEGER ) * + 96 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7887
SELECT 98 + - CAST( - 49 AS SIGNED )
----
147

skipif mysql # not compatible
query I rowsort label-7887
SELECT 98 + - CAST ( - 49 AS INTEGER )
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7888
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT - 71 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT - 71 + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT ALL - 30 * - 62 + - 73
----
1787

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7891
SELECT DISTINCT COUNT( * ) AS col1, CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7891
SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS REAL )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7892
SELECT ALL - + 94 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL - + 94 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7893
SELECT ALL + - ( CAST( NULL AS SIGNED ) ) / 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL + - ( CAST ( NULL AS INTEGER ) ) / 30 AS col2
----
NULL

query I rowsort
SELECT - 83 * - - 84 + 14
----
-6958

query I rowsort
SELECT CASE WHEN NULL IS NOT NULL THEN 72 END
----
NULL

query I rowsort
SELECT - ( + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL + ( - COUNT( * ) ) * - - 2 + + 76
----
74

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + ( - COUNT ( * ) ) * - - 2 + + 76
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT - 90 DIV COUNT( * ) * + - SUM( DISTINCT + + ( - 33 ) ) AS col1
----
-2970

skipif mysql # not compatible
query I rowsort label-7898
SELECT - 90 / COUNT ( * ) * + - SUM ( DISTINCT + + ( - 33 ) ) AS col1
----
-2970

query I rowsort
SELECT - ( + - 97 ) AS col2
----
97

query I rowsort
SELECT + 64 * + 15 * + 34 AS col0
----
32640

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT - 4 * + COUNT( * ) col0
----
-4

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - 4 * + COUNT ( * ) col0
----
-4

query I rowsort
SELECT 34 * 24 + + 2
----
818

query II rowsort
SELECT ALL - ( + + 99 ) - 29 AS col1, 96 AS col2
----
-128
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT + 57 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT + 57 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT - - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7905
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT MAX( DISTINCT - - 32 ) * - 40 AS col0
----
-1280

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT MAX ( DISTINCT - - 32 ) * - 40 AS col0
----
-1280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7907
SELECT ALL - 37, ( - + COUNT( * ) ) - - ( + + CAST( NULL AS SIGNED ) ) col2
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-7907
SELECT ALL - 37, ( - + COUNT ( * ) ) - - ( + + CAST ( NULL AS INTEGER ) ) col2
----
-37
NULL

query II rowsort
SELECT + 75 col2, - 63
----
75
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT DISTINCT + MIN( DISTINCT + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT + MIN ( DISTINCT + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT + + ( 26 ) + - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-7910
SELECT + + ( 26 ) + - - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT ALL + MIN( + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL + MIN ( + 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT ALL - ( + - 46 ) * + - 24 * + - COUNT( * ) + COUNT( * ) col2
----
1105

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL - ( + - 46 ) * + - 24 * + - COUNT ( * ) + COUNT ( * ) col2
----
1105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT CAST( 47 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-7913
SELECT CAST ( 47 AS INTEGER ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7914
SELECT DISTINCT - COUNT( * ), COUNT( * ) * - NULLIF ( + COUNT( * ), 40 )
----
-1
-1

skipif mysql # not compatible
query II rowsort label-7914
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) * - NULLIF ( + COUNT ( * ), 40 )
----
-1
-1

query I rowsort
SELECT 27 + - 61 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL + 25 * - ( - - COUNT( * ) ) col2
----
-25

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL + 25 * - ( - - COUNT ( * ) ) col2
----
-25

query I rowsort
SELECT DISTINCT - + 93
----
-93

query I rowsort
SELECT 62 * + - 41 AS col1
----
-2542

onlyif mysql # aggregate syntax: 
query II rowsort label-7919
SELECT DISTINCT COUNT( * ), 3 col1
----
1
3

skipif mysql # not compatible
query II rowsort label-7919
SELECT DISTINCT COUNT ( * ), 3 col1
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT ALL + MIN( 93 ) * + 88
----
8184

skipif mysql # not compatible
query I rowsort label-7920
SELECT ALL + MIN ( 93 ) * + 88
----
8184

query II rowsort
SELECT DISTINCT - 3, + 40 AS col0
----
-3
40

query I rowsort
SELECT - 92 * - 20
----
1840

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT + - 41 AS col1, 27 * + - COUNT( * ) AS col1
----
-41
-27

skipif mysql # not compatible
query II rowsort label-7923
SELECT + - 41 AS col1, 27 * + - COUNT ( * ) AS col1
----
-41
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT + MAX( ALL + - 6 ) + + 79 * - COUNT( * ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-7924
SELECT + MAX ( ALL + - 6 ) + + 79 * - COUNT ( * ) AS col0
----
-85

query I rowsort
SELECT DISTINCT - - ( + - 63 )
----
-63

query II rowsort
SELECT + ( + ( 67 ) ) AS col2, - 54 col1
----
67
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT + - COUNT( DISTINCT 83 ) AS col1, + 62
----
-1
62

skipif mysql # not compatible
query II rowsort label-7927
SELECT + - COUNT ( DISTINCT 83 ) AS col1, + 62
----
-1
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT ALL + CAST( NULL AS SIGNED ) * - 65 + - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL + CAST ( NULL AS INTEGER ) * - 65 + - 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT COUNT( * ) * - - 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-7929
SELECT COUNT ( * ) * - - 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT SUM( - 85 ) + - - 60 AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-7930
SELECT SUM ( - 85 ) + - - 60 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL COUNT( * ) + - SUM( DISTINCT + - 36 ) * + + 78
----
2809

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL COUNT ( * ) + - SUM ( DISTINCT + - 36 ) * + + 78
----
2809

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT ALL + + 74 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL + + 74 / 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ( + - COUNT( * ) ) - + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7933
SELECT ( + - COUNT ( * ) ) - + - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - ( - 46 ) * - 68 AS col2
----
-3128

query I rowsort
SELECT + 83 + + 97 AS col0
----
180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7936
SELECT DISTINCT 43 * COALESCE ( 24, - 12, CAST( NULL AS SIGNED ) ) + + - COUNT( * )
----
1031

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT 43 * COALESCE ( 24, - 12, CAST ( NULL AS INTEGER ) ) + + - COUNT ( * )
----
1031

query I rowsort
SELECT DISTINCT - ( 48 )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-7938
SELECT - 33 AS col0, MIN( DISTINCT + 36 ) AS col1
----
-33
36

skipif mysql # not compatible
query II rowsort label-7938
SELECT - 33 AS col0, MIN ( DISTINCT + 36 ) AS col1
----
-33
36

query I rowsort
SELECT ALL - - 2 * - 93 AS col0
----
-186

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT + + 21 DIV + 21 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7940
SELECT + + 21 / + 21 AS col0
----
1

query II rowsort
SELECT DISTINCT 96 AS col1, 33 AS col1
----
96
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7942
SELECT ALL 84 DIV + COUNT( * ) + + 69
----
153

skipif mysql # not compatible
query I rowsort label-7942
SELECT ALL 84 / + COUNT ( * ) + + 69
----
153

query II rowsort
SELECT 87, 74 AS col1
----
87
74

query I rowsort
SELECT - 61 + - - 1 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT + 35 * + ( + COUNT( * ) ) + + 17 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-7945
SELECT + 35 * + ( + COUNT ( * ) ) + + 17 AS col0
----
52

query I rowsort
SELECT ALL - ( - 27 ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7947
SELECT 86 + - - 21 AS col1, CAST( NULL AS SIGNED ) col1
----
107
NULL

skipif mysql # not compatible
query II rowsort label-7947
SELECT 86 + - - 21 AS col1, CAST ( NULL AS INTEGER ) col1
----
107
NULL

query I rowsort
SELECT DISTINCT - ( + 87 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7949
SELECT DISTINCT - - CAST( COUNT( ALL 0 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT - - CAST ( COUNT ( ALL 0 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT DISTINCT SUM( DISTINCT + 49 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT SUM ( DISTINCT + 49 ) AS col0
----
49

query I rowsort
SELECT ALL ( 97 ) col1
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7952
SELECT + COUNT( * ) * - + 0 DIV + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7952
SELECT + COUNT ( * ) * - + 0 / + + COUNT ( * )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7953
SELECT - 35 DIV + 86 col2
----
0

skipif mysql # not compatible
query I rowsort label-7953
SELECT - 35 / + 86 col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7954
SELECT - + 44 DIV + COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7954
SELECT - + 44 / + COUNT ( * ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT DISTINCT - SUM( DISTINCT - + 19 )
----
19

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT - SUM ( DISTINCT - + 19 )
----
19

query I rowsort
SELECT ALL + 37 - - 10
----
47

query I rowsort
SELECT - + 31 AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT - - CAST( 31 AS SIGNED ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7958
SELECT - - CAST ( 31 AS INTEGER ) AS col2
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7959
SELECT CAST( + 25 AS SIGNED ) AS col2, 73 AS col2
----
25
73

skipif mysql # not compatible
query II rowsort label-7959
SELECT CAST ( + 25 AS INTEGER ) AS col2, 73 AS col2
----
25
73

query I rowsort
SELECT + + 77 col0
----
77

query I rowsort
SELECT - + 26 col0
----
-26

query I rowsort
SELECT 71 * 41
----
2911

query I rowsort
SELECT ALL + 30 * 95
----
2850

query I rowsort
SELECT DISTINCT 53 * 26
----
1378

query I rowsort
SELECT ALL ( 2 ) + + 88 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7966
SELECT 71 AS col0, - CAST( NULL AS SIGNED ) / - - NULLIF ( + + 12, + 56 ) AS col0
----
71
NULL

skipif mysql # not compatible
query II rowsort label-7966
SELECT 71 AS col0, - CAST ( NULL AS INTEGER ) / - - NULLIF ( + + 12, + 56 ) AS col0
----
71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT ALL 90 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL 90 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT 61 DIV + 31
----
1

skipif mysql # not compatible
query I rowsort label-7968
SELECT 61 / + 31
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT DISTINCT 95 DIV - 23
----
-4

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT 95 / - 23
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT DISTINCT SUM( - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT SUM ( - 66 )
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7971
SELECT + CAST( - - 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-7971
SELECT + CAST ( - - 24 AS INTEGER )
----
24

query I rowsort
SELECT ALL + + 1 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - COUNT( * ) * + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT - ( NULLIF ( + - 62, + - MAX( DISTINCT - + 94 ) ) ) col1
----
62

skipif mysql # not compatible
query I rowsort label-7974
SELECT - ( NULLIF ( + - 62, + - MAX ( DISTINCT - + 94 ) ) ) col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7975
SELECT DISTINCT 54 + + 89 - + 32 + ( CAST( - COUNT( * ) AS SIGNED ) )
----
110

skipif mysql # not compatible
query I rowsort label-7975
SELECT DISTINCT 54 + + 89 - + 32 + ( CAST ( - COUNT ( * ) AS INTEGER ) )
----
110

query I rowsort
SELECT - NULLIF ( 97, + 77 ) AS col0
----
-97

query I rowsort
SELECT - ( + 8 ) AS col2
----
-8

query I rowsort
SELECT ALL ( - 60 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - COUNT( * ) + + MIN( ALL - 37 )
----
-38

skipif mysql # not compatible
query I rowsort label-7979
SELECT - COUNT ( * ) + + MIN ( ALL - 37 )
----
-38

query I rowsort
SELECT ALL - 85 * + 48 + - 36 AS col0
----
-4116

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT MAX( ALL 25 )
----
25

skipif mysql # not compatible
query I rowsort label-7981
SELECT MAX ( ALL 25 )
----
25

query II rowsort
SELECT ALL - 54 AS col2, + 31
----
-54
31

query I rowsort
SELECT DISTINCT - 56 col1
----
-56

query I rowsort
SELECT DISTINCT 57 col0
----
57

query I rowsort
SELECT ALL - 65 * 73
----
-4745

query I rowsort
SELECT + 58 + + 71 AS col2
----
129

query I rowsort
SELECT - - 76 col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7988
SELECT DISTINCT + CAST( - 11 AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT + CAST ( - 11 AS INTEGER ) AS col0
----
-11

query I rowsort
SELECT - 7 * 22 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT ALL + ( COUNT( * ) ) + - 97 + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-7990
SELECT ALL + ( COUNT ( * ) ) + - 97 + - COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT + 37 - + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7991
SELECT + 37 - + COUNT ( * ) AS col1
----
36

query II rowsort
SELECT - 17 * - + 67 AS col1, 5
----
1139
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7993
SELECT ALL - CAST( + 12 AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7993
SELECT ALL - CAST ( + 12 AS INTEGER ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT DISTINCT - MAX( 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-7994
SELECT DISTINCT - MAX ( 75 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7995
SELECT ALL - CAST( - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL - CAST ( - 55 AS INTEGER )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + SUM( - 82 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7996
SELECT + SUM ( - 82 ) AS col0
----
-82

query I rowsort
SELECT 28 * + + 64 AS col1
----
1792

query I rowsort
SELECT DISTINCT 96 - + - 81 AS col1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT COALESCE ( ( - 98 ), COUNT( * ) )
----
-98

skipif mysql # not compatible
query I rowsort label-7999
SELECT COALESCE ( ( - 98 ), COUNT ( * ) )
----
-98

query I rowsort
SELECT ALL + + 63 AS col1
----
63

query I rowsort
SELECT + 29 + 58
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-8002
SELECT + - 11 * - + 63 AS col0, COUNT( * ) + - MIN( - + 79 ) col0
----
693
80

skipif mysql # not compatible
query II rowsort label-8002
SELECT + - 11 * - + 63 AS col0, COUNT ( * ) + - MIN ( - + 79 ) col0
----
693
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT - COUNT( ALL - - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-8003
SELECT - COUNT ( ALL - - 61 )
----
-1

query I rowsort
SELECT ALL - 78 + + - 60
----
-138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8005
SELECT ALL 78 DIV - - CAST( 63 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL 78 / - - CAST ( 63 AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + ( + + 6 )
----
6

query I rowsort
SELECT DISTINCT + 26 col2
----
26

query I rowsort
SELECT ( 41 ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT ( - CASE 58 WHEN - 93 - 38 THEN COUNT( * ) - COUNT( * ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT ( - CASE 58 WHEN - 93 - 38 THEN COUNT ( * ) - COUNT ( * ) ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL - 81 * 3 col2
----
-243

query I rowsort
SELECT DISTINCT + ( 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT DISTINCT + MAX( ALL + 21 )
----
21

skipif mysql # not compatible
query I rowsort label-8012
SELECT DISTINCT + MAX ( ALL + 21 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-8013
SELECT ALL + 54 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL + 54 / + 51
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL - 91 + - COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL - 91 + - COUNT ( * ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT - COUNT( * ) - + 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT - COUNT ( * ) - + 85 AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT 58 * COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-8016
SELECT 58 * COUNT ( * )
----
58

query I rowsort
SELECT DISTINCT - + 36 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT DISTINCT CAST( + MIN( + 61 ) AS SIGNED ) + 22
----
83

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT CAST ( + MIN ( + 61 ) AS INTEGER ) + 22
----
83

query I rowsort
SELECT ALL 47 + 91
----
138

query I rowsort
SELECT ALL 61 + 76 AS col0
----
137

query I rowsort
SELECT DISTINCT + ( + - 85 ) + - 60 AS col2
----
-145

query I rowsort
SELECT ALL 39 col0
----
39

query I rowsort
SELECT DISTINCT + 16 * 15
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8024
SELECT + CAST( - COUNT( * ) AS SIGNED ) * COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8024
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * ) AS col1
----
-1

query I rowsort
SELECT + - 88 * - + 90 + ( - 42 + - 76 ) AS col0
----
7802

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT + MAX( - 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-8026
SELECT + MAX ( - 4 )
----
-4

query I rowsort
SELECT - ( + + 58 )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT ALL 15, COUNT( * ) AS col0
----
15
1

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL 15, COUNT ( * ) AS col0
----
15
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT - + COUNT( * ) * 29 + COUNT( * ) - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8029
SELECT - + COUNT ( * ) * 29 + COUNT ( * ) - COUNT ( * )
----
-29

query I rowsort
SELECT ALL + - 35 * 46 AS col1
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT DISTINCT + + MAX( DISTINCT - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT + + MAX ( DISTINCT - 74 ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT - 14 * - COUNT( * ) - - 12
----
26

skipif mysql # not compatible
query I rowsort label-8032
SELECT - 14 * - COUNT ( * ) - - 12
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT MAX( DISTINCT + ( - 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8033
SELECT MAX ( DISTINCT + ( - 91 ) )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT MIN( ALL + + 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-8034
SELECT MIN ( ALL + + 18 ) AS col0
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8035
SELECT - CAST( - + CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT - CAST ( - + CAST ( NULL AS REAL ) AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 34 + + 78
----
112

query I rowsort
SELECT DISTINCT + ( 42 )
----
42

query I rowsort
SELECT DISTINCT - + 72 col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT ALL - ( SUM( 20 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL - ( SUM ( 20 ) )
----
-20

query I rowsort
SELECT ALL - 27 col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT DISTINCT - 57 + + ( - - 97 ) / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT - 57 + + ( - - 97 ) / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT DISTINCT + COUNT( * ) + + 78
----
79

skipif mysql # not compatible
query I rowsort label-8042
SELECT DISTINCT + COUNT ( * ) + + 78
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ALL - COUNT( DISTINCT + 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL - COUNT ( DISTINCT + 19 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8044
SELECT CAST( - 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-8044
SELECT CAST ( - 75 AS INTEGER )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8045
SELECT DISTINCT + CAST( - + ( + 90 ) AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + CAST ( - + ( + 90 ) AS INTEGER )
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8046
SELECT ALL - CAST( + 52 AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL - CAST ( + 52 AS INTEGER )
----
-52

query II rowsort
SELECT ALL - 98 AS col2, 17
----
-98
17

query I rowsort
SELECT + 69 * + 43 * 7 - + 24
----
20745

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT + MIN( - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8049
SELECT + MIN ( - 55 )
----
-55

query I rowsort
SELECT DISTINCT 24 + - ( - 71 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-8051
SELECT ALL - - 16 * + COUNT( * ), 51 * + + 12 col2
----
16
612

skipif mysql # not compatible
query II rowsort label-8051
SELECT ALL - - 16 * + COUNT ( * ), 51 * + + 12 col2
----
16
612

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL - COUNT( ALL 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - COUNT ( ALL 83 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL - ( - + ( + ( COUNT( * ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - ( - + ( + ( COUNT ( * ) ) ) )
----
1

query I rowsort
SELECT + ( + - ( + - 52 ) )
----
52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8055
SELECT + ( - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) ) col0, + 76 AS col2
----
NULL
76

skipif mysql # not compatible
query II rowsort label-8055
SELECT + ( - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) ) col0, + 76 AS col2
----
NULL
76

query I rowsort
SELECT ALL - 66 + - 86
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-8057
SELECT 31 DIV - - 93
----
0

skipif mysql # not compatible
query I rowsort label-8057
SELECT 31 / - - 93
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT ALL + COUNT( * ) * - COUNT( ALL 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL + COUNT ( * ) * - COUNT ( ALL 63 )
----
-1

query I rowsort
SELECT + + 72 AS col1
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8060
SELECT - 17 DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-8060
SELECT - 17 / + 43
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8061
SELECT ALL + COUNT( * ) AS col0, - 4 col0
----
1
-4

skipif mysql # not compatible
query II rowsort label-8061
SELECT ALL + COUNT ( * ) AS col0, - 4 col0
----
1
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT DISTINCT 52 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-8062
SELECT DISTINCT 52 / + 48
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT NULLIF ( + 5, - COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-8063
SELECT NULLIF ( + 5, - COUNT ( * ) )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT DISTINCT 14 * - 76 + + AVG ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT 14 * - 76 + + AVG ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8065
SELECT 42 AS col1, COUNT( * )
----
42
1

skipif mysql # not compatible
query II rowsort label-8065
SELECT 42 AS col1, COUNT ( * )
----
42
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8066
SELECT ALL COUNT( * ) AS col2, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8066
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT DISTINCT 11 * + 60 * + 30
----
19800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT CAST( - 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-8068
SELECT CAST ( - 16 AS INTEGER )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT ALL + COALESCE ( CAST( NULL AS SIGNED ), 89 ) * - COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + COALESCE ( CAST ( NULL AS INTEGER ), 89 ) * - COUNT ( * )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8070
SELECT - - COALESCE ( 20, - - COUNT( * ), 19 * + - CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) ) DIV + 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8070
SELECT - - COALESCE ( 20, - - COUNT ( * ), 19 * + - CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) ) / + 51 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( - - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT + COALESCE ( - 68, COUNT( * ) + + COUNT( * ) ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-8072
SELECT + COALESCE ( - 68, COUNT ( * ) + + COUNT ( * ) ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT DISTINCT + COUNT( + 10 ) * + - 1
----
-1

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT + COUNT ( + 10 ) * + - 1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8074
SELECT COUNT( * ) DIV - - 34 AS col1, + 32
----
0
32

skipif mysql # not compatible
query II rowsort label-8074
SELECT COUNT ( * ) / - - 34 AS col1, + 32
----
0
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8075
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - 52
----
NULL

query I rowsort
SELECT ALL - ( + 38 ) AS col2
----
-38

query I rowsort
SELECT 22 + + 41
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8078
SELECT DISTINCT + 87 + + COUNT( * ) * - 75 * - 90 DIV + 89 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT + 87 + + COUNT ( * ) * - 75 * - 90 / + 89 AS col2
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-8079
SELECT ALL - - 16 DIV - + 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8079
SELECT ALL - - 16 / - + 42 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8080
SELECT + 92, - CAST( NULL AS DECIMAL ) AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-8080
SELECT + 92, - CAST ( NULL AS REAL ) AS col0
----
92
NULL

query I rowsort
SELECT ALL + + 45 AS col1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8082
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 72 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 72 col2
----
NULL

query I rowsort
SELECT DISTINCT 89 * 55 AS col1
----
4895

query I rowsort
SELECT ALL 24 * + 25 * + 80
----
48000

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT - 66 * 65 * + MAX( DISTINCT - 84 )
----
360360

skipif mysql # not compatible
query I rowsort label-8085
SELECT - 66 * 65 * + MAX ( DISTINCT - 84 )
----
360360

query I rowsort
SELECT ALL + ( 21 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8087
SELECT - CAST( + 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-8087
SELECT - CAST ( + 47 AS INTEGER )
----
-47

query I rowsort
SELECT ALL - 24 - - - 3 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT + COUNT( * ) + + 94 col0
----
95

skipif mysql # not compatible
query I rowsort label-8089
SELECT + COUNT ( * ) + + 94 col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8090
SELECT - COALESCE ( - COUNT( * ), - MIN( DISTINCT - 38 ) ) + NULLIF ( - - 96, + 41 / COUNT( * ) + + 36 ) + + 94 AS col1
----
191

skipif mysql # not compatible
query I rowsort label-8090
SELECT - COALESCE ( - COUNT ( * ), - MIN ( DISTINCT - 38 ) ) + NULLIF ( - - 96, + 41 / COUNT ( * ) + + 36 ) + + 94 AS col1
----
191

query I rowsort
SELECT DISTINCT ( + 68 ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ( COUNT( * ) ) * - ( + 14 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-8092
SELECT ( COUNT ( * ) ) * - ( + 14 ) AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL - - COUNT( * ) + - 42 col1
----
-41

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - - COUNT ( * ) + - 42 col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL + COUNT( * ) + + + SUM( DISTINCT - 26 )
----
-25

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + COUNT ( * ) + + + SUM ( DISTINCT - 26 )
----
-25

query I rowsort
SELECT 50 + 12 AS col1
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8096
SELECT - + COUNT( * ) AS col2, - COUNT( * ) DIV + + 1 AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-8096
SELECT - + COUNT ( * ) AS col2, - COUNT ( * ) / + + 1 AS col2
----
-1
-1

query I rowsort
SELECT 41 - 7
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8098
SELECT CAST( NULL AS DECIMAL ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8098
SELECT CAST ( NULL AS REAL ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ( + 39 ) col1
----
39

query I rowsort
SELECT DISTINCT ( + 23 ) * - + 44
----
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT - MIN( ALL + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-8101
SELECT - MIN ( ALL + 21 )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT - + ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8102
SELECT - + ( + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + ( - 69 )
----
-69

query I rowsort
SELECT + - 41 - 77 + - 57 col1
----
-175

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT + COUNT( * ) + - - 90
----
91

skipif mysql # not compatible
query I rowsort label-8105
SELECT + COUNT ( * ) + - - 90
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8106
SELECT ALL - 79 DIV + 70
----
-1

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL - 79 / + 70
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8107
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + MIN( + + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-8108
SELECT + MIN ( + + 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT DISTINCT COUNT( - ( + - 24 ) ) + - 4 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT COUNT ( - ( + - 24 ) ) + - 4 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT DISTINCT COUNT( * ) * + + 17
----
17

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT COUNT ( * ) * + + 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT ALL + 31 - - - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8111
SELECT ALL + 31 - - - COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8112
SELECT ALL COUNT( * ) DIV - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL COUNT ( * ) / - + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8113
SELECT CAST( + 16 AS SIGNED ) DIV - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT CAST ( + 16 AS INTEGER ) / - 91 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8114
SELECT - CAST( NULL AS SIGNED ) + + COALESCE ( + COUNT( * ), + + 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT - CAST ( NULL AS INTEGER ) + + COALESCE ( + COUNT ( * ), + + 45 )
----
NULL

query I rowsort
SELECT DISTINCT + - ( - 29 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT + + MAX( DISTINCT - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-8116
SELECT + + MAX ( DISTINCT - 18 )
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8117
SELECT - CAST( - 7 AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-8117
SELECT - CAST ( - 7 AS INTEGER )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8118
SELECT ALL - 34 * - NULLIF ( - - CAST( + COUNT( * ) AS SIGNED ), - 64 ) + - 37
----
-3

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL - 34 * - NULLIF ( - - CAST ( + COUNT ( * ) AS INTEGER ), - 64 ) + - 37
----
-3

query I rowsort
SELECT - ( ( 82 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT - 1 + COUNT( * ) * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8120
SELECT - 1 + COUNT ( * ) * COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8121
SELECT DISTINCT 64 - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT 64 - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT 84 + - 94
----
-10

query I rowsort
SELECT DISTINCT 76 * + 81 AS col1
----
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-8124
SELECT COUNT( * ) * - ( + + 72 ) + - - 99 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8124
SELECT COUNT ( * ) * - ( + + 72 ) + - - 99 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL - COUNT( + + 90 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - COUNT ( + + 90 ) AS col1
----
-1

query II rowsort
SELECT 71, 19 AS col1
----
71
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT ALL 44 + + CAST( 85 AS SIGNED ) AS col0
----
129

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL 44 + + CAST ( 85 AS INTEGER ) AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT 85 + MIN( + - 13 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8128
SELECT 85 + MIN ( + - 13 ) AS col1
----
72

query I rowsort
SELECT DISTINCT - + 10 AS col0
----
-10

query I rowsort
SELECT ALL - - 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT + COALESCE ( + 80, + COUNT( * ) * 86 )
----
80

skipif mysql # not compatible
query I rowsort label-8131
SELECT + COALESCE ( + 80, + COUNT ( * ) * 86 )
----
80

query I rowsort
SELECT + 64 + 75
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT + MIN( DISTINCT 45 ) - + 66 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-8133
SELECT + MIN ( DISTINCT 45 ) - + 66 AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ALL 22 * + COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL 22 * + COUNT ( * ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL MIN( - 97 ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL MIN ( - 97 ) AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT - COUNT( * ) - 71
----
-72

skipif mysql # not compatible
query I rowsort label-8136
SELECT - COUNT ( * ) - 71
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL + COUNT( + 31 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL + COUNT ( + 31 ) col0
----
1

query I rowsort
SELECT ALL + 55 col0
----
55

query I rowsort
SELECT DISTINCT + 85 * 73 AS col0
----
6205

query I rowsort
SELECT NULLIF ( 84, + ( - 97 ) ) AS col2
----
84

query II rowsort
SELECT ALL - 4, + 19 AS col2
----
-4
19

query I rowsort
SELECT ALL 68 + - - 75
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-8143
SELECT ALL + 30 AS col0, + COUNT( * ) AS col0
----
30
1

skipif mysql # not compatible
query II rowsort label-8143
SELECT ALL + 30 AS col0, + COUNT ( * ) AS col0
----
30
1

query II rowsort
SELECT DISTINCT - 71 AS col1, 56
----
-71
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT ALL + - CAST( NULL AS SIGNED ) - - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL + - CAST ( NULL AS INTEGER ) - - + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT ALL - 71 * COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - 71 * COUNT ( * ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT COUNT( * ) * - 10 * - COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8147
SELECT COUNT ( * ) * - 10 * - COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL - ( - COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - ( - COUNT ( * ) ) col1
----
1

query I rowsort
SELECT DISTINCT + 54 * + - 11
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT 1 + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8150
SELECT 1 + - - COUNT ( * )
----
2

query I rowsort
SELECT 95 col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT ALL - CAST( + MAX( ALL 26 ) AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL - CAST ( + MAX ( ALL 26 ) AS INTEGER )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT COUNT( ALL - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT COUNT ( ALL - 41 )
----
1

query I rowsort
SELECT + 5 * - 99
----
-495

onlyif mysql # DIV for integer division: 
query I rowsort label-8155
SELECT ALL + 7 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + 7 / - 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT + 58 * - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT + 58 * - COUNT ( * ) AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8157
SELECT CAST( - ( + + 9 ) AS SIGNED ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8157
SELECT CAST ( - ( + + 9 ) AS INTEGER ) AS col2
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8158
SELECT - 6 DIV - ( 28 ) + - COUNT( * ) - - 10
----
9

skipif mysql # not compatible
query I rowsort label-8158
SELECT - 6 / - ( 28 ) + - COUNT ( * ) - - 10
----
9

query I rowsort
SELECT + ( + 87 ) AS col1
----
87

query I rowsort
SELECT 94 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT 38 + MIN( DISTINCT - 37 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8161
SELECT 38 + MIN ( DISTINCT - 37 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - ( - 5 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8163
SELECT DISTINCT + 64 DIV - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT + 64 / - COUNT ( * )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT COUNT( * ) * + - 52
----
-52

skipif mysql # not compatible
query I rowsort label-8164
SELECT COUNT ( * ) * + - 52
----
-52

query I rowsort
SELECT ALL + 69 + + + 18 col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT + 62 * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8166
SELECT + 62 * - COUNT ( * )
----
-62

query I rowsort
SELECT ALL ( + - 82 ) AS col1
----
-82

query I rowsort
SELECT ALL + 49 * - 52 - 93
----
-2641

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT DISTINCT + + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8169
SELECT DISTINCT + + ( COUNT ( * ) ) AS col1
----
1

query II rowsort
SELECT 57 AS col0, 57 AS col0
----
57
57

query II rowsort
SELECT DISTINCT + 58 AS col0, - 68
----
58
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8172
SELECT + - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8172
SELECT + - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL + + COUNT( ALL - 93 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + + COUNT ( ALL - 93 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT MIN( + + 4 ) col0
----
4

skipif mysql # not compatible
query I rowsort label-8174
SELECT MIN ( + + 4 ) col0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT ALL CAST( AVG ( - 74 ) AS SIGNED ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL CAST ( AVG ( - 74 ) AS INTEGER ) AS col1
----
-74

query I rowsort
SELECT 44 * - + ( - 23 ) AS col2
----
1012

onlyif mysql # aggregate syntax: 
query II rowsort label-8177
SELECT + COUNT( - 56 ) col0, + 26
----
1
26

skipif mysql # not compatible
query II rowsort label-8177
SELECT + COUNT ( - 56 ) col0, + 26
----
1
26

query I rowsort
SELECT DISTINCT - ( + 60 ) AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL - + 33 - - ( + ( - - COUNT( * ) ) )
----
-32

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL - + 33 - - ( + ( - - COUNT ( * ) ) )
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8180
SELECT 54 DIV + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-8180
SELECT 54 / + COUNT ( * ) AS col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8181
SELECT 44 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-8181
SELECT 44 / + 98
----
0

query I rowsort
SELECT DISTINCT + 1 * - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT - 94 AS col0, + COUNT( * )
----
-94
1

skipif mysql # not compatible
query II rowsort label-8183
SELECT - 94 AS col0, + COUNT ( * )
----
-94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL MAX( DISTINCT + + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL MAX ( DISTINCT + + 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL - - ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL - - ( + + COUNT ( * ) )
----
1

query I rowsort
SELECT - ( + 55 ) * - 86
----
4730

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT - 25 + + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8187
SELECT - 25 + + COUNT ( * )
----
-24

query I rowsort
SELECT DISTINCT + + 41 * + 83
----
3403

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT ALL + COUNT( * ) * - 32 + - ( - - 58 )
----
-90

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + COUNT ( * ) * - 32 + - ( - - 58 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8190
SELECT - CAST( SUM( - CAST( - 79 AS DECIMAL ) ) AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-8190
SELECT - CAST ( SUM ( - CAST ( - 79 AS REAL ) ) AS INTEGER )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8191
SELECT - CAST( + 44 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-8191
SELECT - CAST ( + 44 AS INTEGER ) AS col2
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT - CAST( - NULLIF ( + 74, - CAST( + - 12 AS SIGNED ) ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8192
SELECT - CAST ( - NULLIF ( + 74, - CAST ( + - 12 AS INTEGER ) ) AS INTEGER ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + - 40 - + + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-8193
SELECT + - 40 - + + COUNT ( * )
----
-41

query I rowsort
SELECT DISTINCT + - 26
----
-26

query I rowsort
SELECT 89 * - + 79
----
-7031

query I rowsort
SELECT 79 * - 18
----
-1422

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT DISTINCT 33 AS col1, COUNT( * ) + 47
----
33
48

skipif mysql # not compatible
query II rowsort label-8197
SELECT DISTINCT 33 AS col1, COUNT ( * ) + 47
----
33
48

query I rowsort
SELECT - - 76 col1
----
76

query I rowsort
SELECT DISTINCT ( 30 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT - - SUM( ALL - 83 ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8200
SELECT - - SUM ( ALL - 83 ) AS col1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8201
SELECT ( CAST( + - 67 AS SIGNED ) ) * + 78 AS col2, ( - 26 )
----
-5226
-26

skipif mysql # not compatible
query II rowsort label-8201
SELECT ( CAST ( + - 67 AS INTEGER ) ) * + 78 AS col2, ( - 26 )
----
-5226
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-8202
SELECT ALL - ( - 99 ) AS col0, 23 * - COUNT( * ) AS col2
----
99
-23

skipif mysql # not compatible
query II rowsort label-8202
SELECT ALL - ( - 99 ) AS col0, 23 * - COUNT ( * ) AS col2
----
99
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT COUNT( DISTINCT 47 )
----
1

skipif mysql # not compatible
query I rowsort label-8203
SELECT COUNT ( DISTINCT 47 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8204
SELECT - + 34 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT - + 34 * CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT + MIN( DISTINCT CASE ( ( - - 42 ) ) WHEN ( + 76 ) THEN - - CAST( NULL AS SIGNED ) ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT + MIN ( DISTINCT CASE ( ( - - 42 ) ) WHEN ( + 76 ) THEN - - CAST ( NULL AS INTEGER ) ELSE NULL END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 29 - - + 39
----
10

query I rowsort
SELECT ALL 10 * + - 22 AS col0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + COALESCE ( 16, COUNT( * ), - - 39 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8208
SELECT + COALESCE ( 16, COUNT ( * ), - - 39 ) AS col1
----
16

query I rowsort
SELECT ( - ( - ( + 27 ) ) ) AS col2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8210
SELECT + COUNT( * ), 88 AS col2
----
1
88

skipif mysql # not compatible
query II rowsort label-8210
SELECT + COUNT ( * ), 88 AS col2
----
1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT + ( - - 66 ) - COUNT( DISTINCT + ( + + 40 ) )
----
65

skipif mysql # not compatible
query I rowsort label-8211
SELECT + ( - - 66 ) - COUNT ( DISTINCT + ( + + 40 ) )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8212
SELECT DISTINCT - COUNT( * ) * - ( + COUNT( + + 55 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8212
SELECT DISTINCT - COUNT ( * ) * - ( + COUNT ( + + 55 ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT COUNT( * ) + - MIN( ALL - 51 ) + + + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-8213
SELECT COUNT ( * ) + - MIN ( ALL - 51 ) + + + COUNT ( * ) AS col1
----
53

query I rowsort
SELECT DISTINCT - 66 * - 87
----
5742

onlyif mysql # aggregate syntax: 
query II rowsort label-8215
SELECT COUNT( * ) AS col2, - 71 + + - 63 AS col1
----
1
-134

skipif mysql # not compatible
query II rowsort label-8215
SELECT COUNT ( * ) AS col2, - 71 + + - 63 AS col1
----
1
-134

query II rowsort
SELECT ALL + 72 AS col1, 16 col1
----
72
16

query II rowsort
SELECT DISTINCT + - 42 AS col0, 72 AS col0
----
-42
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT - + SUM( DISTINCT 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8218
SELECT - + SUM ( DISTINCT 10 ) AS col0
----
-10

query I rowsort
SELECT - CASE + 67 WHEN 70 THEN NULL WHEN - 71 THEN 34 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL COUNT( * ) + - - 75 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL COUNT ( * ) + - - 75 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT SUM( DISTINCT + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT SUM ( DISTINCT + 39 )
----
39

query I rowsort
SELECT DISTINCT 45 * 96
----
4320

query I rowsort
SELECT - 15 - - 70 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8224
SELECT ALL + MIN( DISTINCT - + CAST( - 94 AS SIGNED ) )
----
94

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + MIN ( DISTINCT - + CAST ( - 94 AS INTEGER ) )
----
94

query I rowsort
SELECT DISTINCT + - 73 AS col2
----
-73

query I rowsort
SELECT - 86 * - 16
----
1376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT DISTINCT + 4 * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT + 4 * - - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT 13 * + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8228
SELECT 13 * + COUNT ( * ) AS col0
----
13

query I rowsort
SELECT + 79 * - 86 AS col2
----
-6794

query I rowsort
SELECT ALL 58 + + + 82
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT 92 - COUNT( * ) * - MIN( DISTINCT 17 )
----
109

skipif mysql # not compatible
query I rowsort label-8231
SELECT 92 - COUNT ( * ) * - MIN ( DISTINCT 17 )
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT ALL 61 AS col1, COUNT( * ) * - COUNT( - ( 62 ) ) AS col1
----
61
-1

skipif mysql # not compatible
query II rowsort label-8232
SELECT ALL 61 AS col1, COUNT ( * ) * - COUNT ( - ( 62 ) ) AS col1
----
61
-1

query I rowsort
SELECT ALL 81 col2
----
81

query I rowsort
SELECT ALL + ( 63 ) col0
----
63

query I rowsort
SELECT ALL - ( + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8236
SELECT ALL 37 * 30 * + + 53 DIV - COUNT( * ) AS col0, 7
----
-58830
7

skipif mysql # not compatible
query II rowsort label-8236
SELECT ALL 37 * 30 * + + 53 / - COUNT ( * ) AS col0, 7
----
-58830
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT DISTINCT - COUNT( 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT - COUNT ( 90 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT - 56 + + CAST( NULL AS SIGNED ) + - COUNT( * ) * 86 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT - 56 + + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * 86 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT SUM( - - 30 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8239
SELECT SUM ( - - 30 ) AS col1
----
30

query I rowsort
SELECT ALL + - 35 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL 23 / + + 67 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL 23 / + + 67 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8242
SELECT SUM( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8242
SELECT SUM ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT COUNT( - ( + 11 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8243
SELECT COUNT ( - ( + 11 ) )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8244
SELECT DISTINCT - ( - - COUNT( * ) ) + - 60 DIV 69
----
-1

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT - ( - - COUNT ( * ) ) + - 60 / 69
----
-1

query I rowsort
SELECT + ( 97 ) AS col2
----
97

query I rowsort
SELECT ALL + - 80 + - 31
----
-111

query II rowsort
SELECT + 42 AS col2, 28
----
42
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8248
SELECT - CAST( + + COUNT( * ) AS SIGNED ) * + 13 * + 43 + - - 98, 1 AS col2
----
-461
1

skipif mysql # not compatible
query II rowsort label-8248
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) * + 13 * + 43 + - - 98, 1 AS col2
----
-461
1

query I rowsort
SELECT ALL 1 + 80 + + 90 AS col1
----
171

query I rowsort
SELECT - ( + 78 ) + 93
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT ALL - MIN( DISTINCT 6 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - MIN ( DISTINCT 6 ) AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8252
SELECT DISTINCT + 83 DIV + SUM( DISTINCT CAST( + 69 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT + 83 / + SUM ( DISTINCT CAST ( + 69 AS INTEGER ) )
----
1

query I rowsort
SELECT ALL 8 * + 35
----
280

query I rowsort
SELECT ALL 72 * - 2 AS col1
----
-144

query I rowsort
SELECT + 0 - - 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT + 81 * + 52 + COUNT( * )
----
4213

skipif mysql # not compatible
query I rowsort label-8256
SELECT + 81 * + 52 + COUNT ( * )
----
4213

query I rowsort
SELECT DISTINCT - 9 * + 28 - 21 AS col0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT + MIN( DISTINCT + 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8258
SELECT + MIN ( DISTINCT + 70 ) AS col1
----
70

query I rowsort
SELECT - ( ( ( 18 ) ) ) + + 82 AS col1
----
64

query I rowsort
SELECT + 53 + 43 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL COALESCE ( COUNT( * ), + MAX( 30 ) ) + - 8 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL COALESCE ( COUNT ( * ), + MAX ( 30 ) ) + - 8 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT - MAX( - 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8262
SELECT - MAX ( - 67 ) AS col1
----
67

query I rowsort
SELECT + NULLIF ( 92, + 25 ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT CAST( + 9 AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8264
SELECT CAST ( + 9 AS INTEGER ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT + CAST( + + 54 AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-8265
SELECT + CAST ( + + 54 AS INTEGER )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT + 27 - + + COUNT( * ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8266
SELECT + 27 - + + COUNT ( * ) AS col0
----
26

query I rowsort
SELECT DISTINCT + NULLIF ( - ( 50 ), ( 30 ) )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT ALL + CAST( + ( 11 ) AS SIGNED ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + CAST ( + ( 11 ) AS INTEGER ) AS col2
----
11

query I rowsort
SELECT NULLIF ( + + 68, - 5 ) AS col2
----
68

query I rowsort
SELECT ALL - - 6 AS col1
----
6

query I rowsort
SELECT + ( - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL - COUNT( * ) * 96 * - 91 AS col2
----
8736

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - COUNT ( * ) * 96 * - 91 AS col2
----
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + SUM( 9 ) col0
----
9

skipif mysql # not compatible
query I rowsort label-8273
SELECT + SUM ( 9 ) col0
----
9

query I rowsort
SELECT ALL 98 + 39 AS col1
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8275
SELECT - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) * + 68 AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-8275
SELECT - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) * + 68 AS col1
----
NULL
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8276
SELECT 67 * 61 AS col0, - CAST( NULL AS SIGNED )
----
4087
NULL

skipif mysql # not compatible
query II rowsort label-8276
SELECT 67 * 61 AS col0, - CAST ( NULL AS INTEGER )
----
4087
NULL

query I rowsort
SELECT ALL + 51 * - 62 col0
----
-3162

query II rowsort
SELECT ALL 71, 22 AS col1
----
71
22

query I rowsort
SELECT - ( - 34 )
----
34

query I rowsort
SELECT - 74 + + 36
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT MAX( ALL - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT MAX ( ALL - 12 )
----
-12

query I rowsort
SELECT ALL + ( - + 65 ) AS col2
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8283
SELECT - 4 DIV + 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8283
SELECT - 4 / + 15 AS col0
----
0

query I rowsort
SELECT ALL - 69 * + + 4 AS col1
----
-276

query I rowsort
SELECT ALL + 78 * - - 42
----
3276

query II rowsort
SELECT 69 AS col0, 91
----
69
91

query II rowsort
SELECT 91 AS col2, 48 AS col2
----
91
48

query I rowsort
SELECT 36 * - 55 AS col0
----
-1980

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL + COUNT( * ) + + - 56 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL + COUNT ( * ) + + - 56 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT 80 DIV 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8290
SELECT 80 / 92 AS col2
----
0

query I rowsort
SELECT ALL 85 * - + 19 col2
----
-1615

query I rowsort
SELECT ( + 46 )
----
46

query I rowsort
SELECT ALL - - 48 AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8294
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT ALL - COUNT( * ) + - 66
----
-67

skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL - COUNT ( * ) + - 66
----
-67

query I rowsort
SELECT DISTINCT + 75 * - - 52 AS col2
----
3900

query II rowsort
SELECT - 76, ( 9 ) col2
----
-76
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8298
SELECT 26 AS col2, COUNT( * )
----
26
1

skipif mysql # not compatible
query II rowsort label-8298
SELECT 26 AS col2, COUNT ( * )
----
26
1

query I rowsort
SELECT + 63 * + 46
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT ALL + + MAX( DISTINCT + + 78 ) * - ( - - 42 ) AS col2
----
-3276

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + + MAX ( DISTINCT + + 78 ) * - ( - - 42 ) AS col2
----
-3276

query I rowsort
SELECT - 9 + - 98
----
-107

query I rowsort
SELECT ALL 99 * + - 38
----
-3762

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL + SUM( ALL - - 14 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL + SUM ( ALL - - 14 ) col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL ( COUNT( * ) ) - + MIN( - 91 ) col2
----
92

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL ( COUNT ( * ) ) - + MIN ( - 91 ) col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8305
SELECT ALL ( COUNT( * ) ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 36 col2, 80 AS col2
----
36
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL - 24 * + COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL - 24 * + COUNT ( * )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL + + 26 + + COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL + + 26 + + COUNT ( * )
----
27

query I rowsort
SELECT DISTINCT + 15 + + + ( + 58 ) * 17 AS col1
----
1001

query II rowsort
SELECT 29, 12 AS col0
----
29
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL - MAX( + 82 ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL - MAX ( + 82 ) col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT ALL 99 * CAST( + 58 AS SIGNED )
----
5742

skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL 99 * CAST ( + 58 AS INTEGER )
----
5742

query I rowsort
SELECT + COALESCE ( - - 87, + + 76 ) col2
----
87

query I rowsort
SELECT DISTINCT 34 * - - 1 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL + COUNT( - 6 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + COUNT ( - 6 ) AS col2
----
1

query I rowsort
SELECT ALL - + 42 + 51 AS col2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT DISTINCT CAST( 71 AS SIGNED ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT CAST ( 71 AS INTEGER ) AS col1
----
71

query I rowsort
SELECT ALL - 71 * - - 77 * - 90
----
492030

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT SUM( ALL 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT SUM ( ALL 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8320
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL + COUNT( * ) * 54 * + 51
----
2754

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL + COUNT ( * ) * 54 * + 51
----
2754

query II rowsort
SELECT + 13 col0, - 83
----
13
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT - ( MAX( + 88 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-8323
SELECT - ( MAX ( + 88 ) )
----
-88

query I rowsort
SELECT DISTINCT + 49 * - 94 AS col0
----
-4606

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT + MAX( DISTINCT + 96 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-8325
SELECT + MAX ( DISTINCT + 96 ) AS col1
----
96

query I rowsort
SELECT DISTINCT - + 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT DISTINCT + COUNT( * ) * + + SUM( DISTINCT ( 69 ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + COUNT ( * ) * + + SUM ( DISTINCT ( 69 ) ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL - COUNT( * ) + + ( + COUNT( * ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - COUNT ( * ) + + ( + COUNT ( * ) ) AS col1
----
0

query I rowsort
SELECT ALL 43 * + 12 AS col1
----
516

onlyif mysql # aggregate syntax: 
query II rowsort label-8330
SELECT - COALESCE ( COUNT( * ), + 5 ), ( + 86 ) AS col2
----
-1
86

skipif mysql # not compatible
query II rowsort label-8330
SELECT - COALESCE ( COUNT ( * ), + 5 ), ( + 86 ) AS col2
----
-1
86

query I rowsort
SELECT ALL + - 16 AS col2
----
-16

query I rowsort
SELECT ALL 34 * + 23 AS col0
----
782

query II rowsort
SELECT 88 AS col2, - 46 col1
----
88
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT + CAST( NULL AS SIGNED ) + + AVG ( - 41 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( - 41 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8335
SELECT ALL + COUNT( + + 25 )
----
1

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL + COUNT ( + + 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT ALL - 62 * COUNT( * ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL - 62 * COUNT ( * ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT + - NULLIF ( + - COUNT( * ), 52 * - - 44 / - + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8337
SELECT + - NULLIF ( + - COUNT ( * ), 52 * - - 44 / - + COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8338
SELECT + COUNT( * ) AS col1, 2 col0
----
1
2

skipif mysql # not compatible
query II rowsort label-8338
SELECT + COUNT ( * ) AS col1, 2 col0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT - COUNT( * ) * + 73 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-8339
SELECT - COUNT ( * ) * + 73 AS col1
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8340
SELECT + 75 DIV - COUNT( * ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-8340
SELECT + 75 / - COUNT ( * ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT + 20 * COUNT( * ) * + - 79
----
-1580

skipif mysql # not compatible
query I rowsort label-8341
SELECT + 20 * COUNT ( * ) * + - 79
----
-1580

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT + - COALESCE ( + - 9, + - COUNT( * ) ) * 22 * + 81 AS col0
----
16038

skipif mysql # not compatible
query I rowsort label-8342
SELECT + - COALESCE ( + - 9, + - COUNT ( * ) ) * 22 * + 81 AS col0
----
16038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8343
SELECT - AVG ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT - AVG ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8344
SELECT ALL + COUNT( * ) + - + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8345
SELECT ALL - - COUNT( * ), + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8345
SELECT ALL - - COUNT ( * ), + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8346
SELECT ALL + COUNT( * ) - 11 AS col2, + CAST( NULL AS SIGNED )
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-8346
SELECT ALL + COUNT ( * ) - 11 AS col2, + CAST ( NULL AS INTEGER )
----
-10
NULL

query I rowsort
SELECT DISTINCT 67 col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8348
SELECT - 79 DIV + - COUNT( ALL - 92 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8348
SELECT - 79 / + - COUNT ( ALL - 92 ) AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT DISTINCT - 42 + + 37 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT - 42 + + 37 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( - 7 ) col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT MAX( DISTINCT ( - + 67 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-8351
SELECT MAX ( DISTINCT ( - + 67 ) )
----
-67

query I rowsort
SELECT + ( + 13 ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT SUM( DISTINCT 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8353
SELECT SUM ( DISTINCT 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT + COUNT( * ) + - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8354
SELECT + COUNT ( * ) + - 31 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + COUNT( * ) * 3
----
3

skipif mysql # not compatible
query I rowsort label-8355
SELECT + COUNT ( * ) * 3
----
3

query I rowsort
SELECT - ( 31 ) AS col1
----
-31

query I rowsort
SELECT DISTINCT - 52 + 12
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8358
SELECT CAST( NULL AS SIGNED ) AS col2, 45 * - 90 AS col1
----
NULL
-4050

skipif mysql # not compatible
query II rowsort label-8358
SELECT CAST ( NULL AS INTEGER ) AS col2, 45 * - 90 AS col1
----
NULL
-4050

onlyif mysql # aggregate syntax: 
query II rowsort label-8359
SELECT ALL - 38, - COUNT( * ) * + COUNT( * ) + + 46 + - - 76 AS col2
----
-38
121

skipif mysql # not compatible
query II rowsort label-8359
SELECT ALL - 38, - COUNT ( * ) * + COUNT ( * ) + + 46 + - - 76 AS col2
----
-38
121

query I rowsort
SELECT ALL 2 + 24 AS col1
----
26

query I rowsort
SELECT 67 * + 61
----
4087

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8362
SELECT ALL + 87 * - ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + 87 * - ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT DISTINCT 10 col1, 77 + + - COUNT( * )
----
10
76

skipif mysql # not compatible
query II rowsort label-8363
SELECT DISTINCT 10 col1, 77 + + - COUNT ( * )
----
10
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT + MIN( DISTINCT - 78 ) col2
----
-78

skipif mysql # not compatible
query I rowsort label-8364
SELECT + MIN ( DISTINCT - 78 ) col2
----
-78

query I rowsort
SELECT - 98 + + - 50 AS col1
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL 31 * + 33 - - COUNT( * ) AS col2
----
1024

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL 31 * + 33 - - COUNT ( * ) AS col2
----
1024

onlyif mysql # aggregate syntax: 
query II rowsort label-8367
SELECT - COUNT( * ) + + - 76 AS col0, - 96
----
-77
-96

skipif mysql # not compatible
query II rowsort label-8367
SELECT - COUNT ( * ) + + - 76 AS col0, - 96
----
-77
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT ALL + + ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + + ( + + COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - - ( + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8370
SELECT DISTINCT - COUNT( * ) AS col0, - 13 * + 96 * 76
----
-1
-94848

skipif mysql # not compatible
query II rowsort label-8370
SELECT DISTINCT - COUNT ( * ) AS col0, - 13 * + 96 * 76
----
-1
-94848

query I rowsort
SELECT - 8 - - 21
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT DISTINCT + 96 + + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT DISTINCT + 96 + + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 3 * + - 70
----
-210

onlyif mysql # DIV for integer division: 
query II rowsort label-8374
SELECT ALL + 6 DIV + + 59 AS col2, + 65
----
0
65

skipif mysql # not compatible
query II rowsort label-8374
SELECT ALL + 6 / + + 59 AS col2, + 65
----
0
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8375
SELECT DISTINCT COUNT( - 33 ) DIV NULLIF ( - COUNT( * ), - + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT COUNT ( - 33 ) / NULLIF ( - COUNT ( * ), - + 43 )
----
-1

query I rowsort
SELECT + - 37 + + 67
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT - 69 - + 10 * - COUNT( * ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8377
SELECT - 69 - + 10 * - COUNT ( * ) AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT DISTINCT 86 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT 86 / 45
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT DISTINCT COUNT( * ) * 48
----
48

skipif mysql # not compatible
query I rowsort label-8379
SELECT DISTINCT COUNT ( * ) * 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL SUM( ALL - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL SUM ( ALL - 32 )
----
-32

query I rowsort
SELECT + 8 + 15 AS col2
----
23

query I rowsort
SELECT - ( - ( + + 29 ) )
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT + + 36 DIV + 41 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT + + 36 / + 41 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT ALL + - 9 + - COUNT( - 81 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL + - 9 + - COUNT ( - 81 ) AS col0
----
-10

query I rowsort
SELECT ALL - 9 - - - 62 col0
----
-71

query I rowsort
SELECT 86 + - 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT ALL NULLIF ( + 56, + + 17 ) * + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL NULLIF ( + 56, + + 17 ) * + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL - 76 + - - COUNT( + ( + - 15 ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL - 76 + - - COUNT ( + ( + - 15 ) ) AS col1
----
-75

query I rowsort
SELECT 96 col2
----
96

query I rowsort
SELECT ALL - 89 + - 29
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT + 83 * COALESCE ( + 52, + 82 * - - COUNT( * ) ) AS col1, ( - ( + + 67 ) )
----
4316
-67

skipif mysql # not compatible
query II rowsort label-8391
SELECT + 83 * COALESCE ( + 52, + 82 * - - COUNT ( * ) ) AS col1, ( - ( + + 67 ) )
----
4316
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8392
SELECT AVG ( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8392
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT - - COUNT( * ) + - 23
----
-22

skipif mysql # not compatible
query I rowsort label-8393
SELECT - - COUNT ( * ) + - 23
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8394
SELECT - COUNT( * ), + 86 * + COUNT( * ) * 28 AS col1
----
-1
2408

skipif mysql # not compatible
query II rowsort label-8394
SELECT - COUNT ( * ), + 86 * + COUNT ( * ) * 28 AS col1
----
-1
2408

query I rowsort
SELECT + 79 * + - 37
----
-2923

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT ( + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ALL ( + ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL ( + ( + COUNT ( * ) ) )
----
1

query I rowsort
SELECT 59 * 72 + + + 31 AS col1
----
4279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8399
SELECT CASE + 31 WHEN + CAST( 29 AS DECIMAL ) THEN + 92 ELSE + CAST( + 93 AS SIGNED ) END + - MIN( ALL + + 40 )
----
53

skipif mysql # not compatible
query I rowsort label-8399
SELECT CASE + 31 WHEN + CAST ( 29 AS REAL ) THEN + 92 ELSE + CAST ( + 93 AS INTEGER ) END + - MIN ( ALL + + 40 )
----
53

query I rowsort
SELECT + NULLIF ( - 41, - 98 * + 66 + - 97 )
----
-41

query I rowsort
SELECT - - 95 AS col0
----
95

query I rowsort
SELECT 25 + - - ( + + 62 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT DISTINCT + COALESCE ( + COUNT( * ), - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT + COALESCE ( + COUNT ( * ), - 78 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8404
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) AS col2, + 46 - + 63 AS col0
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-8404
SELECT ALL + ( CAST ( NULL AS REAL ) ) AS col2, + 46 - + 63 AS col0
----
NULL
-17

query I rowsort
SELECT ALL + + 39 AS col2
----
39

query I rowsort
SELECT DISTINCT 72 col1
----
72

query I rowsort
SELECT + 20 + + - 61
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL + COALESCE ( - - 54, - SUM( - + 0 ) ) col2
----
54

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL + COALESCE ( - - 54, - SUM ( - + 0 ) ) col2
----
54

query I rowsort
SELECT DISTINCT + + 72 AS col1
----
72

query II rowsort
SELECT + 80, + ( COALESCE ( - - 78, 24 ) ) col2
----
80
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT + - MAX( ALL 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-8411
SELECT + - MAX ( ALL 15 )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT - 78 DIV 47 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8412
SELECT - 78 / 47 AS col1
----
-1

query I rowsort
SELECT - + NULLIF ( - + 20, + 92 ) + - + 99
----
-79

query II rowsort
SELECT - 14 AS col0, 71
----
-14
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL - 2 * + 53 + + AVG ( ALL + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL - 2 * + 53 + + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT ( + + COUNT( * ) ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8416
SELECT ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col2
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8417
SELECT ALL + CAST( NULL AS DECIMAL ) * - - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL + CAST ( NULL AS REAL ) * - - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT COUNT( * ) * - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8418
SELECT COUNT ( * ) * - 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT ALL + COUNT( * ) + - 0
----
1

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL + COUNT ( * ) + - 0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8420
SELECT 40 DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-8420
SELECT 40 / - 81
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT 36 * - 19 * + CAST( - 47 AS SIGNED )
----
32148

skipif mysql # not compatible
query I rowsort label-8421
SELECT 36 * - 19 * + CAST ( - 47 AS INTEGER )
----
32148

query I rowsort
SELECT DISTINCT - 23 + + 39
----
16

query I rowsort
SELECT + - ( + + 24 ) AS col1
----
-24

query I rowsort
SELECT + - 73 AS col0
----
-73

query I rowsort
SELECT + ( + + 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8426
SELECT MAX( DISTINCT - + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8426
SELECT MAX ( DISTINCT - + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8427
SELECT MAX( + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8427
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT COUNT( DISTINCT 48 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8428
SELECT COUNT ( DISTINCT 48 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT + COUNT( * ) + + 89
----
90

skipif mysql # not compatible
query I rowsort label-8429
SELECT + COUNT ( * ) + + 89
----
90

query I rowsort
SELECT ALL ( 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8431
SELECT + COUNT( * ) * 73
----
73

skipif mysql # not compatible
query I rowsort label-8431
SELECT + COUNT ( * ) * 73
----
73

query I rowsort
SELECT + ( - + 50 ) AS col2
----
-50

query I rowsort
SELECT ALL - ( - - 2 )
----
-2

query I rowsort
SELECT 75 + - 35 col2
----
40

query I rowsort
SELECT DISTINCT + ( 78 ) AS col2
----
78

query I rowsort
SELECT 0 * 83 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8437
SELECT DISTINCT + + ( COUNT( * ) ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT DISTINCT + + ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8438
SELECT 14, - COUNT( * ) * MIN( 93 ) AS col2
----
14
-93

skipif mysql # not compatible
query II rowsort label-8438
SELECT 14, - COUNT ( * ) * MIN ( 93 ) AS col2
----
14
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT 50 * - 7 + - COUNT( * )
----
-351

skipif mysql # not compatible
query I rowsort label-8439
SELECT 50 * - 7 + - COUNT ( * )
----
-351

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT ALL - 87 - + COUNT( * ) + 2
----
-86

skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL - 87 - + COUNT ( * ) + 2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-8441
SELECT ALL COUNT( * ) AS col0, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8441
SELECT ALL COUNT ( * ) AS col0, COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL MIN( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL MIN ( - 16 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8443
SELECT ALL + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8443
SELECT ALL + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT + MIN( + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-8444
SELECT + MIN ( + 24 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL + MAX( 10 ) * 97 AS col0
----
970

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL + MAX ( 10 ) * 97 AS col0
----
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8446
SELECT + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8447
SELECT DISTINCT 32 * CAST( - 65 AS SIGNED )
----
-2080

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT 32 * CAST ( - 65 AS INTEGER )
----
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT - 56 + - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - 56 + - COUNT ( * )
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT DISTINCT - MIN( + 23 ), ( + 9 ) col0
----
-23
9

skipif mysql # not compatible
query II rowsort label-8449
SELECT DISTINCT - MIN ( + 23 ), ( + 9 ) col0
----
-23
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8450
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 48 AS col2, - 89 * - - COUNT( * )
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-8450
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 48 AS col2, - 89 * - - COUNT ( * )
----
NULL
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT + COALESCE ( - 79, - COUNT( * ) ) col1
----
-79

skipif mysql # not compatible
query I rowsort label-8451
SELECT + COALESCE ( - 79, - COUNT ( * ) ) col1
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT - 0 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8452
SELECT - 0 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT DISTINCT - + COUNT( * ) - - 12 + COUNT( CAST( NULL AS SIGNED ) ) col2
----
11

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - + COUNT ( * ) - - 12 + COUNT ( CAST ( NULL AS INTEGER ) ) col2
----
11

query I rowsort
SELECT + ( + ( - + 66 ) )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL + SUM( ALL 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + SUM ( ALL 32 ) AS col2
----
32

query II rowsort
SELECT ( - ( - + 14 ) ), 94 AS col1
----
14
94

query I rowsort
SELECT 9 - 37 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT DISTINCT - 2 + - MIN( - 27 ) * - 48 * 1 AS col1
----
-1298

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - 2 + - MIN ( - 27 ) * - 48 * 1 AS col1
----
-1298

onlyif mysql # DIV for integer division: 
query I rowsort label-8459
SELECT DISTINCT 58 + + + 0 DIV 44
----
58

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT 58 + + + 0 / 44
----
58

query I rowsort
SELECT + 6 - 41
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8461
SELECT ALL 46 * - - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL 46 * - - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT + 65 + - - MAX( - + 85 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8462
SELECT + 65 + - - MAX ( - + 85 ) AS col2
----
-20

query I rowsort
SELECT 19 * - 68 AS col1
----
-1292

query II rowsort
SELECT + - 38, + 18 AS col1
----
-38
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL + + SUM( ALL + - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL + + SUM ( ALL + - 45 )
----
-45

query I rowsort
SELECT - + 9 * - + 95 AS col2
----
855

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8467
SELECT ALL + 71 / - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ALL + 71 / - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 68 * - - 81
----
5508

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT + ( 51 ) DIV - - 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8469
SELECT + ( 51 ) / - - 7 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT DISTINCT + + 79 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT + + 79 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT CAST( NULL AS SIGNED ) * - ( - AVG ( DISTINCT - 99 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT CAST ( NULL AS INTEGER ) * - ( - AVG ( DISTINCT - 99 ) ) AS col1
----
NULL

query I rowsort
SELECT 99 + + 73
----
172

onlyif mysql # aggregate syntax: 
query II rowsort label-8473
SELECT ALL - ( + + 91 ) AS col0, COUNT( * ) AS col1
----
-91
1

skipif mysql # not compatible
query II rowsort label-8473
SELECT ALL - ( + + 91 ) AS col0, COUNT ( * ) AS col1
----
-91
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8474
SELECT ALL - 38 DIV - - 85
----
0

skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - 38 / - - 85
----
0

query I rowsort
SELECT 34 + - 9
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT SUM( 97 ) col1
----
97

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT SUM ( 97 ) col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT ALL - COALESCE ( - 63, - COUNT( * ) ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8477
SELECT ALL - COALESCE ( - 63, - COUNT ( * ) ) AS col2
----
63

query I rowsort
SELECT ALL - 59 * 8 AS col2
----
-472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT DISTINCT 74 + - - CAST( + 52 AS SIGNED ) AS col0
----
126

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT 74 + - - CAST ( + 52 AS INTEGER ) AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL - COUNT( ALL 60 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL - COUNT ( ALL 60 ) col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8481
SELECT DISTINCT COUNT( * ) DIV + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT COUNT ( * ) / + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT ALL SUM( DISTINCT + ( + 9 ) ) col1
----
9

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL SUM ( DISTINCT + ( + 9 ) ) col1
----
9

query II rowsort
SELECT - ( + 4 ) AS col2, 44 AS col0
----
-4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT ALL MIN( + - 93 ) col1
----
-93

skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL MIN ( + - 93 ) col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL COUNT( ALL + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL COUNT ( ALL + 12 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT ALL COUNT( + + 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL COUNT ( + + 99 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT ALL COUNT( - 64 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL COUNT ( - 64 ) col2
----
1

query I rowsort
SELECT ALL - 69 * 20
----
-1380

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT COUNT( * ) * - 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8489
SELECT COUNT ( * ) * - 71 AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT 16 DIV + 1 - - 90
----
106

skipif mysql # not compatible
query I rowsort label-8490
SELECT 16 / + 1 - - 90
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL - COUNT( * ) * - 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - COUNT ( * ) * - 80 AS col0
----
80

query I rowsort
SELECT DISTINCT - + ( 60 ) AS col1
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8493
SELECT COUNT( * ) * - + 68 DIV 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8493
SELECT COUNT ( * ) * - + 68 / 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT COUNT( * ) * + 31 - 26 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8494
SELECT COUNT ( * ) * + 31 - 26 AS col2
----
5

query I rowsort
SELECT - 7 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT + 33 + + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-8496
SELECT + 33 + + COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL - COUNT( * ) * + SUM( 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - COUNT ( * ) * + SUM ( 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - MAX( - 34 ) - 69 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-8498
SELECT - MAX ( - 34 ) - 69 AS col2
----
-35

query I rowsort
SELECT DISTINCT + 2 * + + 41 AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT - + 64 + + + COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8500
SELECT - + 64 + + + COUNT ( * ) AS col0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8501
SELECT CAST( + AVG ( DISTINCT + - 59 ) AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-8501
SELECT CAST ( + AVG ( DISTINCT + - 59 ) AS INTEGER )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT + MIN( 15 ) * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-8502
SELECT + MIN ( 15 ) * - COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8503
SELECT ALL + COUNT( * ) * + + 29 DIV + - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL + COUNT ( * ) * + + 29 / + - COUNT ( * )
----
-29

query I rowsort
SELECT ALL + COALESCE ( - 32, 76 * + 40 ) AS col2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 43 * - 91 col2
----
-3913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT 62 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8507
SELECT 62 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 37 AS col2
----
37

query I rowsort
SELECT 70 - 27 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT - ( MAX( ALL + ( - + 59 ) ) ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-8510
SELECT - ( MAX ( ALL + ( - + 59 ) ) ) AS col2
----
59

query I rowsort
SELECT ALL - 98 col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8512
SELECT ALL - COALESCE ( + COUNT( * ), 92, - + 0 ) AS col2, + ( 3 ) + SUM( 53 ) AS col1
----
-1
56

skipif mysql # not compatible
query II rowsort label-8512
SELECT ALL - COALESCE ( + COUNT ( * ), 92, - + 0 ) AS col2, + ( 3 ) + SUM ( 53 ) AS col1
----
-1
56

query I rowsort
SELECT + ( + - 88 ) col1
----
-88

query I rowsort
SELECT DISTINCT + + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT - - 72 * COUNT( * ) - - + 69 + - + 8 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT - - 72 * COUNT ( * ) - - + 69 + - + 8 AS col1
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT MIN( ALL + 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8516
SELECT MIN ( ALL + 75 ) AS col1
----
75

query I rowsort
SELECT DISTINCT - 13 - - 89 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT ALL COUNT( * ) * - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL COUNT ( * ) * - 51 AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8519
SELECT + ( - - 98 ) * + + CAST( NULL AS SIGNED ), 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-8519
SELECT + ( - - 98 ) * + + CAST ( NULL AS INTEGER ), 7 AS col2
----
NULL
7

query I rowsort
SELECT DISTINCT 7 + - 63
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8521
SELECT ALL - + CAST( + 92 AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - + CAST ( + 92 AS INTEGER )
----
-92

query I rowsort
SELECT ( + - 7 ) col0
----
-7

query I rowsort
SELECT DISTINCT - + 87 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT DISTINCT 26 * - MIN( 48 )
----
-1248

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT 26 * - MIN ( 48 )
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT - 92 + + + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT - 92 + + + COUNT ( * ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8526
SELECT SUM( ALL + 24 ) - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT SUM ( ALL + 24 ) - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8527
SELECT 91 * + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8527
SELECT 91 * + + COUNT ( * )
----
91

query I rowsort
SELECT DISTINCT - ( - - 65 ) col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-8529
SELECT 91 DIV + ( + 27 )
----
3

skipif mysql # not compatible
query I rowsort label-8529
SELECT 91 / + ( + 27 )
----
3

query I rowsort
SELECT - ( - ( - 61 ) ) AS col0
----
-61

query I rowsort
SELECT DISTINCT 19 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT + COUNT( * ) + - MIN( - 76 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8532
SELECT + COUNT ( * ) + - MIN ( - 76 ) AS col0
----
77

query I rowsort
SELECT + ( ( - 33 ) ) AS col1
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8534
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 53, ( - + 44 ) AS col0
----
-53
-44

query I rowsort
SELECT ALL 14 + 22
----
36

query I rowsort
SELECT DISTINCT - NULLIF ( - 40, - + 67 )
----
40

query II rowsort
SELECT DISTINCT + 79 - + 39, + 5 col0
----
40
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT - MIN( + + 21 ) - - - 72 AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8539
SELECT - MIN ( + + 21 ) - - - 72 AS col1
----
-93

query I rowsort
SELECT 83 * - - 76 AS col1
----
6308

query I rowsort
SELECT ALL + 14 + - 48 col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8542
SELECT DISTINCT + SUM( + CAST( 97 AS SIGNED ) ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT + SUM ( + CAST ( 97 AS INTEGER ) ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8543
SELECT 30, - CAST( 25 AS SIGNED ) AS col1
----
30
-25

skipif mysql # not compatible
query II rowsort label-8543
SELECT 30, - CAST ( 25 AS INTEGER ) AS col1
----
30
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT - 37 * + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - 37 * + - COUNT ( * ) AS col0
----
37

query I rowsort
SELECT ALL - ( - 45 ) col1
----
45

query I rowsort
SELECT + 96 * + - 16 * 29
----
-44544

query I rowsort
SELECT DISTINCT - 6 * - 79 AS col2
----
474

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8548
SELECT ALL + + 45 DIV + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL + + 45 / + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT - COUNT( - + 30 ) + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-8549
SELECT - COUNT ( - + 30 ) + - 9
----
-10

query I rowsort
SELECT + ( - + 67 )
----
-67

query I rowsort
SELECT + ( + ( + 99 ) ) + - 88
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8552
SELECT + 18 DIV + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8552
SELECT + 18 / + COUNT ( * ) AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT - CAST( SUM( - - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT - CAST ( SUM ( - - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT SUM( 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT SUM ( 63 ) AS col1
----
63

query I rowsort
SELECT DISTINCT - NULLIF ( - - 54, - 98 ) AS col0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8556
SELECT DISTINCT CAST( MAX( 57 ) AS SIGNED ) * 25 AS col2
----
1425

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT CAST ( MAX ( 57 ) AS INTEGER ) * 25 AS col2
----
1425

query I rowsort
SELECT DISTINCT - + 81 AS col2
----
-81

query I rowsort
SELECT ALL - 86 + 12
----
-74

query II rowsort
SELECT - 75 AS col2, 56 AS col2
----
-75
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8560
SELECT - SUM( + CAST( NULL AS SIGNED ) ) * - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) * - 8 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT + COUNT( * ) * 82 * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8562
SELECT + COUNT ( * ) * 82 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT DISTINCT - MAX( + 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT - MAX ( + 55 ) AS col0
----
-55

query I rowsort
SELECT 21 + 38 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT MIN( DISTINCT + + 0 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8565
SELECT MIN ( DISTINCT + + 0 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + - 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + CASE + 66 WHEN + 24 THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT + CASE + 66 WHEN + 24 THEN + COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + + 99 AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8569
SELECT DISTINCT ( + 63 ) DIV COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT ( + 63 ) / COUNT ( * )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 81 * + 64
----
-5184

query II rowsort
SELECT DISTINCT + 18 col1, 70 AS col1
----
18
70

onlyif mysql # aggregate syntax: 
query II rowsort label-8573
SELECT - 10 col1, + ( ( - + COUNT( * ) ) )
----
-10
-1

skipif mysql # not compatible
query II rowsort label-8573
SELECT - 10 col1, + ( ( - + COUNT ( * ) ) )
----
-10
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8574
SELECT + 21, + SUM( 81 ) - + - COUNT( * ) AS col1
----
21
82

skipif mysql # not compatible
query II rowsort label-8574
SELECT + 21, + SUM ( 81 ) - + - COUNT ( * ) AS col1
----
21
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT - COUNT( + 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-8575
SELECT - COUNT ( + 53 )
----
-1

query I rowsort
SELECT - ( 18 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL NULLIF ( COUNT( * ), - 92 + 49 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL NULLIF ( COUNT ( * ), - 92 + 49 ) col2
----
1

query I rowsort
SELECT ALL - - 92 col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT ALL + 73 + - ( + COUNT( * ) ) col0
----
72

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL + 73 + - ( + COUNT ( * ) ) col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT DISTINCT - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8581
SELECT ALL + 70 + - + 7 DIV + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL + 70 + - + 7 / + COUNT ( * ) AS col0
----
63

query I rowsort
SELECT 25 * + + 75
----
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + 8 - - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + 8 - - - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: 
query III rowsort label-8584
SELECT 24 AS col2, 75, - 61 + + - COUNT( * ) AS col1
----
24
75
-62

skipif mysql # not compatible
query III rowsort label-8584
SELECT 24 AS col2, 75, - 61 + + - COUNT ( * ) AS col1
----
24
75
-62

query I rowsort
SELECT 60 + + 95 + - + ( - - 47 ) + - 60 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT + 18 * + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-8586
SELECT + 18 * + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT + + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT + + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT + 88 * 35 AS col0
----
3080

query I rowsort
SELECT - - 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT COUNT( DISTINCT + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-8590
SELECT COUNT ( DISTINCT + 13 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8591
SELECT DISTINCT + CAST( COUNT( - + 50 ) AS SIGNED ) / - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT + CAST ( COUNT ( - + 50 ) AS INTEGER ) / - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ( - - 11 ) + - 50 + + 88
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT ALL - COUNT( * ) + + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-8593
SELECT ALL - COUNT ( * ) + + 84 AS col1
----
83

query II rowsort
SELECT - - 74, - ( + - 74 ) AS col1
----
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL 61 - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL 61 - - COUNT ( * )
----
62

query I rowsort
SELECT - - 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT ALL - COUNT( * ) - + 56 AS col2, - 80 AS col1
----
-57
-80

skipif mysql # not compatible
query II rowsort label-8597
SELECT ALL - COUNT ( * ) - + 56 AS col2, - 80 AS col1
----
-57
-80

query I rowsort
SELECT DISTINCT 68 * - ( - 27 ) + - - 65
----
1901

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + MAX( + 33 ) * - COUNT( * ) + - COUNT( * ) * - COUNT( * ) * 78 * - MAX( - 68 )
----
5271

skipif mysql # not compatible
query I rowsort label-8599
SELECT + MAX ( + 33 ) * - COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) * 78 * - MAX ( - 68 )
----
5271

query II rowsort
SELECT + 46, + 23 AS col0
----
46
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT + + ( - SUM( - 75 ) ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT + + ( - SUM ( - 75 ) ) AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8602
SELECT DISTINCT + 12 DIV - + 62 + 93 * MAX( + 26 )
----
2418

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT + 12 / - + 62 + 93 * MAX ( + 26 )
----
2418

query I rowsort
SELECT + ( - 72 ) AS col0
----
-72

query I rowsort
SELECT ( 22 ) AS col1
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8605
SELECT ALL - - MAX( ALL CAST( NULL AS SIGNED ) ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - - MAX ( ALL CAST ( NULL AS INTEGER ) ) * 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT DISTINCT 87 * - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-8606
SELECT DISTINCT 87 * - COUNT ( * ) AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT MIN( - + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT MIN ( - + 53 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-8608
SELECT - + 95 DIV + 64
----
-1

skipif mysql # not compatible
query I rowsort label-8608
SELECT - + 95 / + 64
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT ALL 29 * - + COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL 29 * - + COUNT ( * )
----
-29

query I rowsort
SELECT 94 * - ( + - 19 ) AS col0
----
1786

query I rowsort
SELECT DISTINCT - + 12 AS col1
----
-12

query I rowsort
SELECT DISTINCT - + 78 AS col1
----
-78

query I rowsort
SELECT 85 + + 19 + - 8 AS col1
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8614
SELECT - 77, - 26 DIV 93 AS col0
----
-77
0

skipif mysql # not compatible
query II rowsort label-8614
SELECT - 77, - 26 / 93 AS col0
----
-77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8615
SELECT ALL - CAST( + 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - CAST ( + 96 AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8616
SELECT COUNT( * ) AS col1, 88
----
1
88

skipif mysql # not compatible
query II rowsort label-8616
SELECT COUNT ( * ) AS col1, 88
----
1
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT 88 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8617
SELECT 88 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 17 + - + 71 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-8619
SELECT ( 6 ) DIV + - 40 col2, 78
----
0
78

skipif mysql # not compatible
query II rowsort label-8619
SELECT ( 6 ) / + - 40 col2, 78
----
0
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT ALL - 34 * MAX( - 4 ) AS col2
----
136

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL - 34 * MAX ( - 4 ) AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT 32 + COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT 32 + COUNT ( * ) col2
----
33

query I rowsort
SELECT DISTINCT 78 + - - 43 AS col0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT MIN( - 17 ) + 24 - 14 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT MIN ( - 17 ) + 24 - 14 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT ALL + 86 + + - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + 86 + + - COUNT ( * )
----
85

query I rowsort
SELECT ALL + 24 * + 1 col0
----
24

query I rowsort
SELECT + 14 * - + 97 + + 93 + 87 + + + 57
----
-1121

query II rowsort
SELECT ALL 52 AS col2, 24
----
52
24

query I rowsort
SELECT + ( - 36 ) + + 93 col0
----
57

query I rowsort
SELECT + ( + 0 ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8630
SELECT DISTINCT - COUNT( * ) * - + 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT - COUNT ( * ) * - + 48 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL COUNT( - 9 ) + - 83
----
-82

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL COUNT ( - 9 ) + - 83
----
-82

query I rowsort
SELECT DISTINCT + 10 + 17
----
27

query I rowsort
SELECT ALL - NULLIF ( 70, + 98 ) + + 33 * 8 AS col0
----
194

onlyif mysql # aggregate syntax: 
query II rowsort label-8634
SELECT - 47 AS col1, COUNT( * ) + - + 41 AS col2
----
-47
-40

skipif mysql # not compatible
query II rowsort label-8634
SELECT - 47 AS col1, COUNT ( * ) + - + 41 AS col2
----
-47
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8635
SELECT DISTINCT - 12 / + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT - 12 / + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - - 28 AS col2
----
28

query I rowsort
SELECT ALL - 73 * + ( 93 )
----
-6789

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL - 17 * COUNT( * ) col0
----
-17

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL - 17 * COUNT ( * ) col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8639
SELECT + CAST( - 3 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8639
SELECT + CAST ( - 3 AS INTEGER ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8640
SELECT CASE + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - + 64 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT CASE + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - + 64 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - 65 * - COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-8641
SELECT - 65 * - COUNT ( * ) AS col2
----
65

query I rowsort
SELECT - 83 + + 9 AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8643
SELECT ALL + 29, 99 DIV 64 * + CAST( + 87 AS SIGNED ) + + - 48 DIV + + 51 AS col2
----
29
87

skipif mysql # not compatible
query II rowsort label-8643
SELECT ALL + 29, 99 / 64 * + CAST ( + 87 AS INTEGER ) + + - 48 / + + 51 AS col2
----
29
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT + CAST( - 2 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8644
SELECT + CAST ( - 2 AS INTEGER ) AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8645
SELECT DISTINCT + 24 DIV - COUNT( * ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT + 24 / - COUNT ( * ) AS col1
----
-24

query I rowsort
SELECT 19 + + 62 * 30 AS col2
----
1879

query I rowsort
SELECT ALL - ( - 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT + 31, COUNT( * ) AS col0
----
31
1

skipif mysql # not compatible
query II rowsort label-8648
SELECT + 31, COUNT ( * ) AS col0
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT - COUNT( + 76 )
----
-1

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT - COUNT ( + 76 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT - MAX( 84 ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-8650
SELECT - MAX ( 84 ) col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT 2 * + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8651
SELECT 2 * + + COUNT ( * ) AS col2
----
2

query I rowsort
SELECT - 7 + - + 29 * 86
----
-2501

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT MAX( + 20 )
----
20

skipif mysql # not compatible
query I rowsort label-8653
SELECT MAX ( + 20 )
----
20

query I rowsort
SELECT - 70 * + COALESCE ( - 4, - 16 ) col0
----
280

query I rowsort
SELECT + ( - + 96 )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT ALL 11 AS col2, + ( - - COUNT( * ) )
----
11
1

skipif mysql # not compatible
query II rowsort label-8656
SELECT ALL 11 AS col2, + ( - - COUNT ( * ) )
----
11
1

query I rowsort
SELECT - - 70 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + COUNT( * ) + + - 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-8658
SELECT + COUNT ( * ) + + - 10 AS col2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT ALL 37 DIV + + 95
----
0

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL 37 / + + 95
----
0

query I rowsort
SELECT 29 * 74
----
2146

query I rowsort
SELECT 19 * - 17
----
-323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) / COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) / COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - + 84 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT DISTINCT 55 * + COUNT( * ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT 55 * + COUNT ( * ) AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8665
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 45 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT 44 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-8666
SELECT 44 / + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT 62 * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT 62 * - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ( + COUNT( * ) ) * - 82 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-8668
SELECT ( + COUNT ( * ) ) * - 82 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8669
SELECT ALL 47 col2, CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
47
-1

skipif mysql # not compatible
query II rowsort label-8669
SELECT ALL 47 col2, CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
47
-1

query I rowsort
SELECT + 24 * 98 AS col2
----
2352

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT - COUNT( * ) - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8671
SELECT - COUNT ( * ) - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT ALL + + 73 AS col1
----
73

query I rowsort
SELECT ALL + + 14 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL 46 + - - MAX( ALL 91 )
----
137

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL 46 + - - MAX ( ALL 91 )
----
137

query I rowsort
SELECT - - NULLIF ( 81, + 31 ) AS col0
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8676
SELECT ALL + - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + - CAST ( NULL AS REAL ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT ALL - - SUM( + + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL - - SUM ( + + 48 )
----
48

query I rowsort
SELECT ALL 66 - - 3 AS col2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT COUNT( * ) - - COUNT( * ) * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8679
SELECT COUNT ( * ) - - COUNT ( * ) * COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL - COUNT( DISTINCT - - ( - 77 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL - COUNT ( DISTINCT - - ( - 77 ) )
----
-1

query I rowsort
SELECT DISTINCT 58 + - 32 AS col2
----
26

query I rowsort
SELECT 82 + 74
----
156

query I rowsort
SELECT 98 * - - 80
----
7840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8684
SELECT ALL + CAST( NULL AS SIGNED ) * - 49 + COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + CAST ( NULL AS INTEGER ) * - 49 + COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8685
SELECT ALL COUNT( * ) * + 64 AS col1, 31 AS col1
----
64
31

skipif mysql # not compatible
query II rowsort label-8685
SELECT ALL COUNT ( * ) * + 64 AS col1, 31 AS col1
----
64
31

query I rowsort
SELECT + ( - 29 ) col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT ALL + + 12 + - ( + + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-8687
SELECT ALL + + 12 + - ( + + COUNT ( * ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT - + COUNT( 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-8688
SELECT - + COUNT ( 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT DISTINCT + MIN( ALL 89 ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT + MIN ( ALL 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8690
SELECT ALL + COUNT( * ) DIV 70 - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL + COUNT ( * ) / 70 - - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT CAST( - + 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-8691
SELECT CAST ( - + 18 AS INTEGER )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8692
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT CAST( - + 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-8693
SELECT CAST ( - + 75 AS INTEGER )
----
-75

query I rowsort
SELECT + ( - - 38 )
----
38

query I rowsort
SELECT DISTINCT 47 * + - 47 * - - 9 col1
----
-19881

onlyif mysql # aggregate syntax: 
query II rowsort label-8696
SELECT ALL - COUNT( * ), + 88 AS col1
----
-1
88

skipif mysql # not compatible
query II rowsort label-8696
SELECT ALL - COUNT ( * ), + 88 AS col1
----
-1
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL - ( + + COUNT( ALL - 65 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL - ( + + COUNT ( ALL - 65 ) )
----
-1

query I rowsort
SELECT ALL 34 + + 9 + - 77 col2
----
-34

query I rowsort
SELECT ALL 10 * - 95 AS col2
----
-950

query I rowsort
SELECT 69 * - 6
----
-414

onlyif mysql # aggregate syntax: 
query II rowsort label-8701
SELECT COUNT( * ), + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-8701
SELECT COUNT ( * ), + COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT MAX( + 36 ) * 31
----
1116

skipif mysql # not compatible
query I rowsort label-8702
SELECT MAX ( + 36 ) * 31
----
1116

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT + COUNT( * ) + - - 39
----
40

skipif mysql # not compatible
query I rowsort label-8703
SELECT + COUNT ( * ) + - - 39
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL + + COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + + COUNT ( * ) - + COUNT ( * )
----
0

query I rowsort
SELECT - ( + - 32 )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-8706
SELECT DISTINCT 41 DIV + 31
----
1

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT 41 / + 31
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8707
SELECT - - 88 - ( - COUNT( * ) ) AS col1, 73 - 94
----
89
-21

skipif mysql # not compatible
query II rowsort label-8707
SELECT - - 88 - ( - COUNT ( * ) ) AS col1, 73 - 94
----
89
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8708
SELECT - CAST( - 48 AS SIGNED ) + - - 14 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8708
SELECT - CAST ( - 48 AS INTEGER ) + - - 14 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT + 72 - COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + 72 - COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT + MAX( + 12 ) col2
----
12

skipif mysql # not compatible
query I rowsort label-8710
SELECT + MAX ( + 12 ) col2
----
12

query I rowsort
SELECT 95 * 1 AS col0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8712
SELECT 7 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT 7 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT DISTINCT + COUNT( * ) * 1 * + 36 - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT + COUNT ( * ) * 1 * + 36 - COUNT ( * )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + SUM( 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-8714
SELECT + SUM ( 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT - COUNT( 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-8715
SELECT - COUNT ( 50 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT DISTINCT MIN( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT MIN ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL SUM( + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL SUM ( + 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT COUNT( ALL 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT COUNT ( ALL 42 ) AS col0
----
1

query I rowsort
SELECT ALL + - ( - 99 )
----
99

query I rowsort
SELECT + + ( + 41 ) AS col2
----
41

query I rowsort
SELECT - ( - 8 )
----
8

query I rowsort
SELECT ALL + - 53 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT ALL SUM( 72 ) * 15
----
1080

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL SUM ( 72 ) * 15
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT + 70 * + COUNT( DISTINCT 81 ) * + 81 AS col0
----
5670

skipif mysql # not compatible
query I rowsort label-8724
SELECT + 70 * + COUNT ( DISTINCT 81 ) * + 81 AS col0
----
5670

onlyif mysql # aggregate syntax: 
query I rowsort label-8725
SELECT 19 + ( SUM( ALL - ( 86 ) ) )
----
-67

skipif mysql # not compatible
query I rowsort label-8725
SELECT 19 + ( SUM ( ALL - ( 86 ) ) )
----
-67

query I rowsort
SELECT ALL + 4 + - 67 AS col2
----
-63

query I rowsort
SELECT 46 - 40 AS col0
----
6

query I rowsort
SELECT ALL - ( 85 ) col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8729
SELECT - CAST( NULL AS SIGNED ) * + 42 + + ( - + CAST( + 8 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT - CAST ( NULL AS INTEGER ) * + 42 + + ( - + CAST ( + 8 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT 30 * + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8730
SELECT 30 * + COUNT ( * )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT COUNT( * ) + + 8
----
9

skipif mysql # not compatible
query I rowsort label-8731
SELECT COUNT ( * ) + + 8
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT 61 - - - MIN( + - 35 )
----
96

skipif mysql # not compatible
query I rowsort label-8732
SELECT 61 - - - MIN ( + - 35 )
----
96

query I rowsort
SELECT - + 48 + + + 29 AS col1
----
-19

query I rowsort
SELECT DISTINCT - 55 col2
----
-55

query I rowsort
SELECT - - 80 + - - 55 AS col1
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT CAST( - + 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-8736
SELECT CAST ( - + 40 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8737
SELECT + ( COALESCE ( 60, + + 33 DIV - COUNT( * ) ) ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-8737
SELECT + ( COALESCE ( 60, + + 33 / - COUNT ( * ) ) ) AS col0
----
60

query I rowsort
SELECT ALL 87 * - 30 AS col1
----
-2610

onlyif mysql # aggregate syntax: 
query II rowsort label-8739
SELECT - COUNT( * ) AS col1, - 61
----
-1
-61

skipif mysql # not compatible
query II rowsort label-8739
SELECT - COUNT ( * ) AS col1, - 61
----
-1
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + COUNT( * ) - + 3 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8740
SELECT + COUNT ( * ) - + 3 AS col1
----
-2

query I rowsort
SELECT ALL 76 col1
----
76

query I rowsort
SELECT ALL + 4 * 62 AS col1
----
248

onlyif mysql # aggregate syntax: 
query II rowsort label-8743
SELECT ALL - COUNT( * ) + COUNT( * ), - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-8743
SELECT ALL - COUNT ( * ) + COUNT ( * ), - COUNT ( * ) AS col1
----
0
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8744
SELECT DISTINCT MIN( DISTINCT CAST( + + 1 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT MIN ( DISTINCT CAST ( + + 1 AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT COUNT( * ) * + 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT COUNT ( * ) * + 83 AS col0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT + 73 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT + 73 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT COUNT( * ) + + + COUNT( * ) - + - 47 * - MAX( ALL + - 73 ) AS col1, + 93 AS col2
----
3433
93

skipif mysql # not compatible
query II rowsort label-8747
SELECT COUNT ( * ) + + + COUNT ( * ) - + - 47 * - MAX ( ALL + - 73 ) AS col1, + 93 AS col2
----
3433
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT 64 * - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-8748
SELECT 64 * - + COUNT ( * )
----
-64

query I rowsort
SELECT ALL + + 47 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8750
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( 8 ) col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT ALL CAST( + - COUNT( DISTINCT 27 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL CAST ( + - COUNT ( DISTINCT 27 ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT - 12 * + + 42 col0
----
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT - COUNT( * ) + - + 68
----
-69

skipif mysql # not compatible
query I rowsort label-8754
SELECT - COUNT ( * ) + - + 68
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT 5 + + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-8755
SELECT 5 + + COUNT ( * ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT - 3 DIV + 30
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT - 3 / + 30
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8757
SELECT COUNT( * ) DIV 1
----
1

skipif mysql # not compatible
query I rowsort label-8757
SELECT COUNT ( * ) / 1
----
1

query I rowsort
SELECT ALL + ( + + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8759
SELECT ALL 99, + COUNT( * ) AS col1
----
99
1

skipif mysql # not compatible
query II rowsort label-8759
SELECT ALL 99, + COUNT ( * ) AS col1
----
99
1

query I rowsort
SELECT + 10 * + 98
----
980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT CAST( NULL AS SIGNED ) * 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT CAST ( NULL AS INTEGER ) * 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8762
SELECT ALL + 90 DIV + SUM( ALL - 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL + 90 / + SUM ( ALL - 75 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8763
SELECT CAST( ( - + COUNT( * ) ) AS SIGNED ) DIV 1 * 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-8763
SELECT CAST ( ( - + COUNT ( * ) ) AS INTEGER ) / 1 * 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT + MAX( ALL ( - 24 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-8764
SELECT + MAX ( ALL ( - 24 ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT - 11 * - 38 * + - COUNT( - - 67 ) AS col2
----
-418

skipif mysql # not compatible
query I rowsort label-8765
SELECT - 11 * - 38 * + - COUNT ( - - 67 ) AS col2
----
-418

query I rowsort
SELECT ALL + 83 col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8767
SELECT ALL 35 + + COUNT( * ) * + CAST( 61 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL 35 + + COUNT ( * ) * + CAST ( 61 AS INTEGER )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT DISTINCT 29 + - COUNT( * ) + CAST( + - 71 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT 29 + - COUNT ( * ) + CAST ( + - 71 AS INTEGER )
----
-43

query I rowsort
SELECT DISTINCT 93 + + 2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8770
SELECT ALL + + COUNT( * ), 53 DIV COUNT( * ) AS col2
----
1
53

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL + + COUNT ( * ), 53 / COUNT ( * ) AS col2
----
1
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT - - CAST( NULL AS SIGNED ) + - - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT - - CAST ( NULL AS INTEGER ) + - - 5
----
NULL

query I rowsort
SELECT DISTINCT + 17 + + 94
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8773
SELECT + 20 * ( - CAST( + + COUNT( * ) AS SIGNED ) )
----
-20

skipif mysql # not compatible
query I rowsort label-8773
SELECT + 20 * ( - CAST ( + + COUNT ( * ) AS INTEGER ) )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT ALL - 58 * + CAST( NULL AS SIGNED ) * + 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL - 58 * + CAST ( NULL AS INTEGER ) * + 94 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8775
SELECT 87 AS col0, AVG ( CAST( NULL AS SIGNED ) )
----
87
NULL

skipif mysql # not compatible
query II rowsort label-8775
SELECT 87 AS col0, AVG ( CAST ( NULL AS INTEGER ) )
----
87
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT ALL SUM( DISTINCT 87 )
----
87

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL SUM ( DISTINCT 87 )
----
87

query I rowsort
SELECT ( - - 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT + COUNT( * ) * 93 col0
----
93

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT + COUNT ( * ) * 93 col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT ALL - COUNT( * ) * 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - COUNT ( * ) * 83 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT - COUNT( * ) * - 3
----
3

skipif mysql # not compatible
query I rowsort label-8780
SELECT - COUNT ( * ) * - 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8781
SELECT + 6 + + COUNT( * ), - CAST( NULL AS SIGNED ) AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-8781
SELECT + 6 + + COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col1
----
7
NULL

query I rowsort
SELECT + ( + 84 ) * - 47 AS col2
----
-3948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8783
SELECT ALL + ( - 53 ) DIV - 6 - - - MAX( - - 89 )
----
-81

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL + ( - 53 ) / - 6 - - - MAX ( - - 89 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT - COUNT( * ) * - 28
----
28

skipif mysql # not compatible
query I rowsort label-8784
SELECT - COUNT ( * ) * - 28
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8785
SELECT + CAST( - 67 AS SIGNED ), + 97 AS col2
----
-67
97

skipif mysql # not compatible
query II rowsort label-8785
SELECT + CAST ( - 67 AS INTEGER ), + 97 AS col2
----
-67
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8786
SELECT ALL MAX( - + 31 ) * + + 12 AS col0, + ( - - 73 )
----
-372
73

skipif mysql # not compatible
query II rowsort label-8786
SELECT ALL MAX ( - + 31 ) * + + 12 AS col0, + ( - - 73 )
----
-372
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ALL - COUNT( * ) - + + 17 AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - COUNT ( * ) - + + 17 AS col0
----
-18

query I rowsort
SELECT 89 - - 88
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT COUNT( * ) + 72 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-8789
SELECT COUNT ( * ) + 72 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8790
SELECT DISTINCT - 85, ( - CAST( NULL AS SIGNED ) ) AS col0
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-8790
SELECT DISTINCT - 85, ( - CAST ( NULL AS INTEGER ) ) AS col0
----
-85
NULL

query II rowsort
SELECT DISTINCT 46 AS col2, 96 * + + 0
----
46
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8792
SELECT ALL + COUNT( * ) AS col0, COUNT( * ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-8792
SELECT ALL + COUNT ( * ) AS col0, COUNT ( * ) col0
----
1
1

query I rowsort
SELECT DISTINCT 26 col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT + MIN( DISTINCT NULLIF ( 52, + 7 ) ) * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + MIN ( DISTINCT NULLIF ( 52, + 7 ) ) * COUNT ( * )
----
52

query I rowsort
SELECT + + 52 - + - 74 col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT - MIN( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-8796
SELECT - MIN ( 89 )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT + + CAST( 30 AS SIGNED ) + - 84 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-8797
SELECT + + CAST ( 30 AS INTEGER ) + - 84 AS col0
----
-54

query I rowsort
SELECT ALL + ( + 97 ) AS col1
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT DISTINCT - + 13 DIV 21 col2
----
0

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT - + 13 / 21 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT DISTINCT + COUNT( DISTINCT 24 )
----
1

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + COUNT ( DISTINCT 24 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT - COUNT( * ) * + - 66
----
66

skipif mysql # not compatible
query I rowsort label-8801
SELECT - COUNT ( * ) * + - 66
----
66

query I rowsort
SELECT ALL + - 71 * - 11 * + 45 AS col0
----
35145

query I rowsort
SELECT - 36 + - - 71 - 80 AS col2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8804
SELECT COUNT( * ) DIV - - 10
----
0

skipif mysql # not compatible
query I rowsort label-8804
SELECT COUNT ( * ) / - - 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL 57 - - COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL 57 - - COUNT ( * ) AS col2
----
58

query I rowsort
SELECT DISTINCT + 58 - - 19 AS col0
----
77

query I rowsort
SELECT ALL + NULLIF ( ( - + 70 ), 53 ) + - 64 col2
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT DISTINCT + ( + 9 ) * MAX( ALL 70 ) AS col2
----
630

skipif mysql # not compatible
query I rowsort label-8808
SELECT DISTINCT + ( + 9 ) * MAX ( ALL 70 ) AS col2
----
630

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ( MIN( DISTINCT 15 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8809
SELECT ( MIN ( DISTINCT 15 ) ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT - + ( + COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8810
SELECT - + ( + COUNT ( * ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8811
SELECT + 0, COUNT( * ) + + 46 + + - 25 AS col2
----
0
22

skipif mysql # not compatible
query II rowsort label-8811
SELECT + 0, COUNT ( * ) + + 46 + + - 25 AS col2
----
0
22

query I rowsort
SELECT ALL + - 93 AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL + - 42 + COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + - 42 + COUNT ( * ) AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ALL + 7 + + COUNT( * ) + - ( + - 93 )
----
101

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL + 7 + + COUNT ( * ) + - ( + - 93 )
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT + + 0 + 13 * + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT + + 0 + 13 * + COUNT ( * )
----
13

query I rowsort
SELECT DISTINCT + + 60 col1
----
60

query I rowsort
SELECT + NULLIF ( + 7, ( + 62 ) * 2 )
----
7

query I rowsort
SELECT 23 + + - 10
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8819
SELECT ALL - CAST( + - 46 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - CAST ( + - 46 AS INTEGER ) AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8820
SELECT + 13 DIV 4 + + 2 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-8820
SELECT + 13 / 4 + + 2 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT - 12 * - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT - 12 * - COUNT ( * )
----
12

query I rowsort
SELECT 68 * 8
----
544

query II rowsort
SELECT 22 AS col2, + 82
----
22
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT 58 * + + CAST( - 24 AS SIGNED ) AS col2
----
-1392

skipif mysql # not compatible
query I rowsort label-8824
SELECT 58 * + + CAST ( - 24 AS INTEGER ) AS col2
----
-1392

query II rowsort
SELECT 35, + ( - ( + 8 ) ) AS col0
----
35
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8826
SELECT DISTINCT CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 36 AS col0, - 22 * + 2 AS col2
----
36
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT DISTINCT + - COUNT( ALL 92 )
----
-1

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT + - COUNT ( ALL 92 )
----
-1

query I rowsort
SELECT + NULLIF ( - + 7, - + 94 ) col0
----
-7

query I rowsort
SELECT ALL + ( - 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT + ( + - COUNT( 23 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8831
SELECT + ( + - COUNT ( 23 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT ALL CAST( 75 AS SIGNED ) col1
----
75

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL CAST ( 75 AS INTEGER ) col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT ALL + CAST( NULL AS SIGNED ) * - + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8834
SELECT MIN( + 3 ), 17 AS col2
----
3
17

skipif mysql # not compatible
query II rowsort label-8834
SELECT MIN ( + 3 ), 17 AS col2
----
3
17

query II rowsort
SELECT - ( - 21 ), + 94 AS col2
----
21
94

query I rowsort
SELECT DISTINCT ( 84 ) AS col1
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8837
SELECT + CAST( + CAST( - COUNT( * ) AS DECIMAL ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-8837
SELECT + CAST ( + CAST ( - COUNT ( * ) AS REAL ) AS INTEGER )
----
-1

query I rowsort
SELECT + ( 32 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT COUNT( ALL 13 ) - - 56
----
57

skipif mysql # not compatible
query I rowsort label-8839
SELECT COUNT ( ALL 13 ) - - 56
----
57

query I rowsort
SELECT 61 * 81 AS col2
----
4941

query I rowsort
SELECT ALL 10 - + 97 AS col1
----
-87

query I rowsort
SELECT + 43 - 97
----
-54

query II rowsort
SELECT - ( 76 ), + 26 AS col1
----
-76
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT COUNT( * ) * - 59 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-8844
SELECT COUNT ( * ) * - 59 AS col0
----
-59

query I rowsort
SELECT DISTINCT - + 7 * + 98
----
-686

query I rowsort
SELECT - ( + 95 ) * + 58
----
-5510

query I rowsort
SELECT ALL - 36 * + + 4
----
-144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT ( CAST( - + 25 AS SIGNED ) ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8848
SELECT ( CAST ( - + 25 AS INTEGER ) ) AS col2
----
-25

query I rowsort
SELECT ALL 39 * 83 AS col1
----
3237

query I rowsort
SELECT ALL + + NULLIF ( - 82, + 39 ) AS col1
----
-82

query I rowsort
SELECT - 74 * - + 46 col2
----
3404

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8852
SELECT + CAST( NULL AS DECIMAL ) * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT + CAST ( NULL AS REAL ) * + 6
----
NULL

query I rowsort
SELECT - ( 34 ) AS col2
----
-34

query I rowsort
SELECT - ( - - 59 ) * + + 13 col1
----
-767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT - CAST( - - 29 AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8855
SELECT - CAST ( - - 29 AS INTEGER ) AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8856
SELECT + CAST( + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-8856
SELECT + CAST ( + 21 AS INTEGER )
----
21

query I rowsort
SELECT ALL - 38 col1
----
-38

query I rowsort
SELECT ALL - + 79
----
-79

query I rowsort
SELECT ALL - 8 * - + 3 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT 6 + COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-8860
SELECT 6 + COUNT ( * )
----
7

query I rowsort
SELECT 95 + + 40
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT - 2 + + + MAX( - - 80 )
----
78

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT - 2 + + + MAX ( - - 80 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT + - MIN( DISTINCT + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-8863
SELECT + - MIN ( DISTINCT + 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT + NULLIF ( COUNT( * ), + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-8864
SELECT + NULLIF ( COUNT ( * ), + 71 )
----
1

query I rowsort
SELECT DISTINCT - 9 col1
----
-9

query I rowsort
SELECT DISTINCT + - 39 AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT + ( - - SUM( DISTINCT - 98 ) ) * + ( - MAX( DISTINCT + 12 ) )
----
1176

skipif mysql # not compatible
query I rowsort label-8867
SELECT + ( - - SUM ( DISTINCT - 98 ) ) * + ( - MAX ( DISTINCT + 12 ) )
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT ALL + - MIN( DISTINCT 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + - MIN ( DISTINCT 12 )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8869
SELECT ALL 0 DIV + - 71 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT ALL 0 / + - 71 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT MAX( + 74 ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-8870
SELECT MAX ( + 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT SUM( ALL ( ( - 47 ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-8871
SELECT SUM ( ALL ( ( - 47 ) ) )
----
-47

query II rowsort
SELECT 86 AS col2, - 77 AS col1
----
86
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT - + COUNT( * ) + 86
----
85

skipif mysql # not compatible
query I rowsort label-8873
SELECT - + COUNT ( * ) + 86
----
85

query I rowsort
SELECT ALL + ( - 88 ) AS col0
----
-88

query I rowsort
SELECT + + 43 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT CAST( + + 65 AS SIGNED ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8876
SELECT CAST ( + + 65 AS INTEGER ) AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT COUNT( * ) * + 58 col2
----
58

skipif mysql # not compatible
query I rowsort label-8877
SELECT COUNT ( * ) * + 58 col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8878
SELECT - + CAST( - - NULLIF ( - - COUNT( * ), + COUNT( * ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT - + CAST ( - - NULLIF ( - - COUNT ( * ), + COUNT ( * ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT DISTINCT COUNT( * ) * - 86
----
-86

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT COUNT ( * ) * - 86
----
-86

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8880
SELECT DISTINCT + 73 + + CAST( NULL AS SIGNED ) + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT + 73 + + CAST ( NULL AS INTEGER ) + AVG ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT COUNT( * ) * + 1 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8881
SELECT COUNT ( * ) * + 1 AS col2
----
1

query I rowsort
SELECT DISTINCT + 16 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL 69 * + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL 69 * + COUNT ( * ) AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT MAX( DISTINCT + + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-8884
SELECT MAX ( DISTINCT + + 82 )
----
82

query I rowsort
SELECT DISTINCT + ( + - 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT COUNT( * ), - 14 AS col2
----
1
-14

skipif mysql # not compatible
query II rowsort label-8886
SELECT COUNT ( * ), - 14 AS col2
----
1
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT SUM( - + 33 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-8887
SELECT SUM ( - + 33 ) AS col2
----
-33

query I rowsort
SELECT - - 36 col0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8889
SELECT ALL - 95 + - + COUNT( * ) DIV - + ( ( - + COUNT( * ) ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL - 95 + - + COUNT ( * ) / - + ( ( - + COUNT ( * ) ) ) AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT CAST( + 97 AS SIGNED ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-8890
SELECT CAST ( + 97 AS INTEGER ) AS col1
----
97

query II rowsort
SELECT ( 0 ), - 26 * 95 AS col1
----
0
-2470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT + CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-8892
SELECT + CAST ( - 88 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL - COUNT( 58 )
----
-1

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - COUNT ( 58 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT 30 * + - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-8894
SELECT 30 * + - COUNT ( * ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL - SUM( - 18 ) - - - 93 col0
----
-75

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL - SUM ( - 18 ) - - - 93 col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT ALL + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 75 * - ( - + 1 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT 32 * - 13 + + + ( + COUNT( * ) )
----
-415

skipif mysql # not compatible
query I rowsort label-8898
SELECT 32 * - 13 + + + ( + COUNT ( * ) )
----
-415

query I rowsort
SELECT ALL 23 col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8900
SELECT ( + 0 ), - CAST( NULL AS SIGNED ) / 31 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-8900
SELECT ( + 0 ), - CAST ( NULL AS INTEGER ) / 31 AS col1
----
0
NULL

query I rowsort
SELECT + + 40 * + 78 * + 67
----
209040

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT MIN( ALL + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-8902
SELECT MIN ( ALL + 86 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT - NULLIF ( + 13, + CAST( NULL AS SIGNED ) ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8903
SELECT - NULLIF ( + 13, + CAST ( NULL AS INTEGER ) ) AS col0
----
-13

query I rowsort
SELECT ALL 64 + + 71
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL MAX( - 91 ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL MAX ( - 91 ) AS col1
----
-91

query I rowsort
SELECT DISTINCT + - 18 AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8907
SELECT DISTINCT - - 93 * - 67 + 43 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT DISTINCT - - 93 * - 67 + 43 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + 49 AS col0
----
49

query I rowsort
SELECT DISTINCT - + ( - 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT 43 + + - SUM( - 20 )
----
63

skipif mysql # not compatible
query I rowsort label-8910
SELECT 43 + + - SUM ( - 20 )
----
63

query I rowsort
SELECT DISTINCT - 97 + + - 1 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT - 70 * + + COUNT( ALL - 11 )
----
-70

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - 70 * + + COUNT ( ALL - 11 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT + MAX( ALL 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-8913
SELECT + MAX ( ALL 51 ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT DISTINCT + 94 * - COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + 94 * - COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT COUNT( * ) * 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8915
SELECT COUNT ( * ) * 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT - COUNT( * ) * + 25 * COUNT( * ) + + 73 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-8916
SELECT - COUNT ( * ) * + 25 * COUNT ( * ) + + 73 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL + SUM( 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL + SUM ( 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT - COUNT( * ) + - 51 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-8918
SELECT - COUNT ( * ) + - 51 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-8919
SELECT 99 AS col2, - MAX( - 72 ) AS col0
----
99
72

skipif mysql # not compatible
query II rowsort label-8919
SELECT 99 AS col2, - MAX ( - 72 ) AS col0
----
99
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT - - COUNT( * ) + + - 90 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-8920
SELECT - - COUNT ( * ) + + - 90 AS col0
----
-89

query I rowsort
SELECT - 50 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT NULLIF ( 50, + ( - COUNT( * ) ) )
----
50

skipif mysql # not compatible
query I rowsort label-8922
SELECT NULLIF ( 50, + ( - COUNT ( * ) ) )
----
50

query I rowsort
SELECT 58 * + 69 - + 54 AS col1
----
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT - 74 * + COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8924
SELECT - 74 * + COUNT ( * ) AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT + CAST( + + 78 AS SIGNED ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8925
SELECT + CAST ( + + 78 AS INTEGER ) AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT + 22 * + 98 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8926
SELECT + 22 * + 98 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8927
SELECT 90 DIV - 36
----
-2

skipif mysql # not compatible
query I rowsort label-8927
SELECT 90 / - 36
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT ALL + SUM( DISTINCT + + 73 ) + + 53 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-8928
SELECT ALL + SUM ( DISTINCT + + 73 ) + + 53 AS col2
----
126

query I rowsort
SELECT 16 * + - 3
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8930
SELECT ALL COUNT( * ) * + 65 + - 54
----
11

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL COUNT ( * ) * + 65 + - 54
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT - COUNT( * ) - + - COUNT( * ) * - - 36 * - 89
----
-3205

skipif mysql # not compatible
query I rowsort label-8931
SELECT - COUNT ( * ) - + - COUNT ( * ) * - - 36 * - 89
----
-3205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8932
SELECT CAST( + 63 AS SIGNED ) col2
----
63

skipif mysql # not compatible
query I rowsort label-8932
SELECT CAST ( + 63 AS INTEGER ) col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL + COUNT( 70 )
----
1

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + COUNT ( 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT NULLIF ( COUNT( * ), 91 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8934
SELECT NULLIF ( COUNT ( * ), 91 ) AS col2
----
1

query I rowsort
SELECT ALL ( + ( 63 ) ) AS col1
----
63

query I rowsort
SELECT - 24 * + 45
----
-1080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8937
SELECT ALL + CAST( NULL AS SIGNED ) * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL + CAST ( NULL AS INTEGER ) * 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT DISTINCT COUNT( * ) * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT COUNT ( * ) * - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT + 62 - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-8939
SELECT DISTINCT + 62 - COUNT ( * )
----
61

query I rowsort
SELECT DISTINCT 51 * - 98
----
-4998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT CAST( NULL AS SIGNED ) / - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT CAST ( NULL AS INTEGER ) / - 30
----
NULL

query I rowsort
SELECT ALL + 79 * 4 AS col1
----
316

query I rowsort
SELECT DISTINCT - 35 * ( 88 )
----
-3080

query I rowsort
SELECT ( + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT 97 - COUNT( * ) * + 94 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8945
SELECT 97 - COUNT ( * ) * + 94 AS col2
----
3

query I rowsort
SELECT ALL + 99 + - 19 * + 23 AS col0
----
-338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8947
SELECT ALL 69 + + CAST( 24 AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL 69 + + CAST ( 24 AS INTEGER )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT MAX( + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8948
SELECT MAX ( + 48 )
----
48

query I rowsort
SELECT + 91 + - 78 * + 47
----
-3575

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT + MAX( ALL - 27 ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-8950
SELECT + MAX ( ALL - 27 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT ALL 82 + COUNT( DISTINCT 37 ) - - 76
----
159

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL 82 + COUNT ( DISTINCT 37 ) - - 76
----
159

query I rowsort
SELECT - 27 + 89 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL SUM( + - 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL SUM ( + - 8 )
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8954
SELECT DISTINCT 38 DIV + 45 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT 38 / + 45 * + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT - - COUNT( * ) * 76
----
76

skipif mysql # not compatible
query I rowsort label-8955
SELECT - - COUNT ( * ) * 76
----
76

query I rowsort
SELECT DISTINCT 90 col1
----
90

query I rowsort
SELECT + 32 + + 57 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8958
SELECT + - MIN( DISTINCT - ( - CAST( NULL AS DECIMAL ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT + - MIN ( DISTINCT - ( - CAST ( NULL AS REAL ) ) ) AS col1
----
NULL

query I rowsort
SELECT 11 * - 98 + 86 AS col0
----
-992

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT COUNT( * ) * - 60 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8960
SELECT COUNT ( * ) * - 60 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT - MIN( 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - MIN ( 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT - - NULLIF ( COUNT( * ), + + COUNT( * ) ) + - COUNT( * ) * + + ( + + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8962
SELECT - - NULLIF ( COUNT ( * ), + + COUNT ( * ) ) + - COUNT ( * ) * + + ( + + COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT - 67 * - - 87 col1
----
-5829

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8964
SELECT + - CAST( + 39 AS SIGNED ) * - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8964
SELECT + - CAST ( + 39 AS INTEGER ) * - COUNT ( * ) AS col1
----
39

query I rowsort
SELECT - ( + - 17 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT COUNT( 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8966
SELECT COUNT ( 28 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT DISTINCT COUNT( * ) + - - ( - + 99 )
----
-98

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT COUNT ( * ) + - - ( - + 99 )
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT + COUNT( DISTINCT - CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8968
SELECT + COUNT ( DISTINCT - CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 35 + + 0 AS col2
----
-35

query I rowsort
SELECT - - 85 col1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8971
SELECT + COUNT( ALL 22 ) AS col2, 57
----
1
57

skipif mysql # not compatible
query II rowsort label-8971
SELECT + COUNT ( ALL 22 ) AS col2, 57
----
1
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT + COUNT( * ) - - + 95
----
96

skipif mysql # not compatible
query I rowsort label-8972
SELECT + COUNT ( * ) - - + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT COUNT( * ) + + - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-8973
SELECT COUNT ( * ) + + - COUNT ( * ) col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8974
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT 36 - COUNT( * ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8975
SELECT 36 - COUNT ( * ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ( + COUNT( * ) ) + 63
----
64

skipif mysql # not compatible
query I rowsort label-8976
SELECT ( + COUNT ( * ) ) + 63
----
64

query I rowsort
SELECT ALL 71 * - 58 AS col2
----
-4118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8978
SELECT 84 + - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT 84 + - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + ( - ( - 17 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + ( - ( - 17 ) ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 52 * 81 - - 16
----
-4196

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT - - ( NULLIF ( + + 41, + - 23 * - + COALESCE ( - 29, + COUNT( * ) ) ) ) + - COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8981
SELECT - - ( NULLIF ( + + 41, + - 23 * - + COALESCE ( - 29, + COUNT ( * ) ) ) ) + - COUNT ( * ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT DISTINCT - 88 * - CAST( + 96 AS SIGNED ) AS col2
----
8448

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - 88 * - CAST ( + 96 AS INTEGER ) AS col2
----
8448

query I rowsort
SELECT ALL 64 + - 34 AS col2
----
30

query I rowsort
SELECT 72 * ( - 94 ) AS col1
----
-6768

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL - + 31 * - + ( - - COUNT( * ) ) col0
----
31

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL - + 31 * - + ( - - COUNT ( * ) ) col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT - + MAX( + 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8986
SELECT - + MAX ( + 44 ) AS col1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8987
SELECT 66 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT 66 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 7 col1
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT DISTINCT - COUNT( * ), COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-8989
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col0
----
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT 38 * + - COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8990
SELECT 38 * + - COUNT ( * ) AS col2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - NULLIF ( - ( + - 20 ), COUNT( * ) / + 76 ) + - - 49 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8991
SELECT - NULLIF ( - ( + - 20 ), COUNT ( * ) / + 76 ) + - - 49 AS col2
----
29

query I rowsort
SELECT ALL - - ( 10 ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8993
SELECT + COUNT( * ) AS col2, 83 AS col0
----
1
83

skipif mysql # not compatible
query II rowsort label-8993
SELECT + COUNT ( * ) AS col2, 83 AS col0
----
1
83

query I rowsort
SELECT DISTINCT + 9 AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT 16 * - - 70 - COUNT( * ) AS col0
----
1119

skipif mysql # not compatible
query I rowsort label-8995
SELECT 16 * - - 70 - COUNT ( * ) AS col0
----
1119

query I rowsort
SELECT - ( + + 18 ) AS col2
----
-18

query I rowsort
SELECT ALL 92 + - + 28
----
64

query I rowsort
SELECT ALL - ( + + 12 )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8999
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8999
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 22 + + 29 AS col2
----
7

query II rowsort
SELECT DISTINCT - + 99, 4 AS col0
----
-99
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9002
SELECT DISTINCT - ( 72 ) col2, + COUNT( * ) AS col2
----
-72
1

skipif mysql # not compatible
query II rowsort label-9002
SELECT DISTINCT - ( 72 ) col2, + COUNT ( * ) AS col2
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT 62 + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-9003
SELECT 62 + COUNT ( * ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT MAX( - - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT MAX ( - - 29 )
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-9005
SELECT DISTINCT - COUNT( * ) * 15, 16 col2
----
-15
16

skipif mysql # not compatible
query II rowsort label-9005
SELECT DISTINCT - COUNT ( * ) * 15, 16 col2
----
-15
16

query I rowsort
SELECT DISTINCT - - 91 * + 71
----
6461

query I rowsort
SELECT - - 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT + + 27 + - - COUNT( * ) col2
----
28

skipif mysql # not compatible
query I rowsort label-9008
SELECT + + 27 + - - COUNT ( * ) col2
----
28

query I rowsort
SELECT ALL + + 71 + - + 95 AS col1
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9010
SELECT DISTINCT + ( 6 ) DIV COUNT( * ) AS col0, 2
----
6
2

skipif mysql # not compatible
query II rowsort label-9010
SELECT DISTINCT + ( 6 ) / COUNT ( * ) AS col0, 2
----
6
2

query I rowsort
SELECT - 71 * + 9 col1
----
-639

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ( + - MAX( DISTINCT - - 12 ) ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9012
SELECT ( + - MAX ( DISTINCT - - 12 ) ) AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9013
SELECT + COUNT( * ) * - + CAST( 4 AS SIGNED ) - + + 68 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9013
SELECT + COUNT ( * ) * - + CAST ( 4 AS INTEGER ) - + + 68 AS col1
----
-72

query I rowsort
SELECT DISTINCT + 58 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT - 69 + + - COUNT( * ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-9015
SELECT - 69 + + - COUNT ( * ) col1
----
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9016
SELECT ALL + 94 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + 94 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9017
SELECT 0 * - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9017
SELECT 0 * - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT COUNT( * ) * - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9018
SELECT COUNT ( * ) * - + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT + COUNT( * ) - + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-9019
SELECT + COUNT ( * ) - + COUNT ( * ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT ALL COUNT( ALL + 31 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL COUNT ( ALL + 31 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9021
SELECT + CAST( - CAST( COUNT( * ) AS SIGNED ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-9021
SELECT + CAST ( - CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER )
----
-1

query I rowsort
SELECT - 2 + + + 14
----
12

query I rowsort
SELECT + NULLIF ( + 15, 1 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT + + MIN( ALL - 21 ) + - + ( COUNT( * ) ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-9024
SELECT + + MIN ( ALL - 21 ) + - + ( COUNT ( * ) ) col2
----
-22

query I rowsort
SELECT + 60 * - 96 * - 6 * - 59 AS col0
----
-2039040

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL SUM( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL SUM ( + 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT DISTINCT SUM( ALL + 8 )
----
8

skipif mysql # not compatible
query I rowsort label-9027
SELECT DISTINCT SUM ( ALL + 8 )
----
8

query I rowsort
SELECT ( + 18 ) AS col0
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9029
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT + CAST ( NULL AS REAL ) / - 53 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9030
SELECT - + 5 DIV 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9030
SELECT - + 5 / 53 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9031
SELECT + - CAST( 76 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9031
SELECT + - CAST ( 76 AS INTEGER ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9032
SELECT + NULLIF ( + SUM( ALL - + CAST( NULL AS SIGNED ) ), - 24 - - 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT + NULLIF ( + SUM ( ALL - + CAST ( NULL AS INTEGER ) ), - 24 - - 59 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9033
SELECT DISTINCT - COUNT( * ) DIV - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9033
SELECT DISTINCT - COUNT ( * ) / - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT COUNT( * ) + + SUM( + 33 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9034
SELECT COUNT ( * ) + + SUM ( + 33 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT + MIN( + 91 ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9035
SELECT + MIN ( + 91 ) AS col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + MAX( - ( - + 71 ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-9036
SELECT + MAX ( - ( - + 71 ) ) AS col0
----
71

query II rowsort
SELECT ALL 98 - - 41 AS col2, ( + + 38 ) + 87
----
139
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9038
SELECT DISTINCT - ( COUNT( * ) ) DIV + 5 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT - ( COUNT ( * ) ) / + 5 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT DISTINCT + COUNT( ALL - 31 ) * - 23
----
-23

skipif mysql # not compatible
query I rowsort label-9039
SELECT DISTINCT + COUNT ( ALL - 31 ) * - 23
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9040
SELECT ALL COUNT( + 79 )
----
1

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL COUNT ( + 79 )
----
1

query I rowsort
SELECT ALL 67 * - - 66
----
4422

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT - - 77 DIV + - 52
----
-1

skipif mysql # not compatible
query I rowsort label-9042
SELECT - - 77 / + - 52
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9043
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9043
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 38 + - 30
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9045
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT + + CAST ( NULL AS REAL ) * + + 15
----
NULL

query I rowsort
SELECT ALL - ( - - 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT ALL + 50 + - ( + - COUNT( * ) )
----
51

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL + 50 + - ( + - COUNT ( * ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT MIN( - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-9048
SELECT MIN ( - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT SUM( ALL + 96 ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-9049
SELECT SUM ( ALL + 96 ) AS col2
----
96

query I rowsort
SELECT + ( + - 69 ) * - 51
----
3519

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + ( 72 ) * ( + COUNT( * ) ) * + 20 + + 27 + - + 86
----
1381

skipif mysql # not compatible
query I rowsort label-9051
SELECT + ( 72 ) * ( + COUNT ( * ) ) * + 20 + + 27 + - + 86
----
1381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9052
SELECT NULLIF ( + COUNT( * ), 73 + - CAST( 83 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9052
SELECT NULLIF ( + COUNT ( * ), 73 + - CAST ( 83 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT COALESCE ( ( + ( + 53 ) ), - 25 )
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT ALL - 48 DIV + + 11
----
-4

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL - 48 / + + 11
----
-4

query I rowsort
SELECT DISTINCT - 54 * 8
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT 44 * - ( - CAST( NULL AS SIGNED ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9056
SELECT 44 * - ( - CAST ( NULL AS INTEGER ) ) col0
----
NULL

query I rowsort
SELECT ALL 48 - 55
----
-7

query I rowsort
SELECT - 28 * 94 AS col0
----
-2632

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9059
SELECT - COUNT( * ) AS col0, + CAST( NULL AS DECIMAL ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-9059
SELECT - COUNT ( * ) AS col0, + CAST ( NULL AS REAL ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT - COUNT( * ) + 78 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9060
SELECT - COUNT ( * ) + 78 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT COUNT( * ) + + 34
----
35

skipif mysql # not compatible
query I rowsort label-9061
SELECT COUNT ( * ) + + 34
----
35

query I rowsort
SELECT DISTINCT - 6 * + ( 43 )
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT + - COUNT( * ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9063
SELECT + - COUNT ( * ) * COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL COUNT( * ) + - + 4
----
-3

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL COUNT ( * ) + - + 4
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9065
SELECT ALL + COUNT( * ), - ( - CAST( NULL AS SIGNED ) ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9065
SELECT ALL + COUNT ( * ), - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9066
SELECT - + 5 DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-9066
SELECT - + 5 / + 38
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT - 65 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9067
SELECT - 65 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 31 - - 84
----
115

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9069
SELECT CAST( NULL AS DECIMAL ) * 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9069
SELECT CAST ( NULL AS REAL ) * 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL - MIN( - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL - MIN ( - 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT + MAX( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9071
SELECT + MAX ( 66 )
----
66

query I rowsort
SELECT 94 + 32
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9073
SELECT COUNT( * ) + - 3 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-9073
SELECT COUNT ( * ) + - 3 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT 23 DIV + + 43 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9074
SELECT 23 / + + 43 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL COUNT( * ) * - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL COUNT ( * ) * - + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + COALESCE ( - 87, - - COUNT( * ) + + - 59 )
----
-87

skipif mysql # not compatible
query I rowsort label-9076
SELECT + COALESCE ( - 87, - - COUNT ( * ) + + - 59 )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9077
SELECT + CAST( - - 74 AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-9077
SELECT + CAST ( - - 74 AS INTEGER ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9078
SELECT 53 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9078
SELECT 53 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 33 col1
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT DISTINCT + CAST( + 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT + CAST ( + 24 AS INTEGER )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9081
SELECT - + 80 * - - 81 DIV + COUNT( * ) col1
----
-6480

skipif mysql # not compatible
query I rowsort label-9081
SELECT - + 80 * - - 81 / + COUNT ( * ) col1
----
-6480

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9082
SELECT DISTINCT COUNT( * ) * 4 DIV COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT COUNT ( * ) * 4 / COUNT ( * ) AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL COALESCE ( + 84, + COUNT( * ) ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL COALESCE ( + 84, + COUNT ( * ) ) AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9084
SELECT DISTINCT - 9 * + CAST( NULL AS SIGNED ) AS col0, ( + 59 )
----
NULL
59

skipif mysql # not compatible
query II rowsort label-9084
SELECT DISTINCT - 9 * + CAST ( NULL AS INTEGER ) AS col0, ( + 59 )
----
NULL
59

query I rowsort
SELECT ( + - 41 )
----
-41

query II rowsort
SELECT DISTINCT + 14, 41 AS col2
----
14
41

query I rowsort
SELECT 94 * + 87
----
8178

query II rowsort
SELECT ALL + 36 * + - 91 * - 88 AS col2, ( 41 )
----
288288
41

query I rowsort
SELECT ALL ( 26 ) * 14 AS col0
----
364

query II rowsort
SELECT + - 95 col1, 63
----
-95
63

query I rowsort
SELECT ALL - ( + - 25 )
----
25

query I rowsort
SELECT DISTINCT + 22 * - 99 AS col1
----
-2178

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT SUM( - 48 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT SUM ( - 48 ) AS col0
----
-48

query I rowsort
SELECT ALL ( - 11 ) AS col0
----
-11

query I rowsort
SELECT 41 + + 76
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9096
SELECT - 48 * COUNT( * ) * 3 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9096
SELECT - 48 * COUNT ( * ) * 3 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT COUNT( DISTINCT + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-9097
SELECT COUNT ( DISTINCT + 67 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT ALL COUNT( NULLIF ( - CAST( + + 41 AS SIGNED ), - 8 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL COUNT ( NULLIF ( - CAST ( + + 41 AS INTEGER ), - 8 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9099
SELECT COUNT( * ) AS col1, - ( + COUNT( * ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9099
SELECT COUNT ( * ) AS col1, - ( + COUNT ( * ) )
----
1
-1

query I rowsort
SELECT + ( - - 95 ) AS col2
----
95

query II rowsort
SELECT ALL + 77 AS col2, 65
----
77
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL + ( - - MAX( - 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + ( - - MAX ( - 19 ) )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9103
SELECT 3, + COUNT( * ) AS col1
----
3
1

skipif mysql # not compatible
query II rowsort label-9103
SELECT 3, + COUNT ( * ) AS col1
----
3
1

query I rowsort
SELECT ALL + 54 * 61
----
3294

query II rowsort
SELECT 13 * 35 * + - 44, + 62 AS col1
----
-20020
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9106
SELECT ALL 91 - + + COUNT( * ) AS col2, + COUNT( * )
----
90
1

skipif mysql # not compatible
query II rowsort label-9106
SELECT ALL 91 - + + COUNT ( * ) AS col2, + COUNT ( * )
----
90
1

query I rowsort
SELECT - ( - 65 ) * - 74
----
-4810

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT MAX( DISTINCT - + 21 )
----
-21

skipif mysql # not compatible
query I rowsort label-9108
SELECT MAX ( DISTINCT - + 21 )
----
-21

query I rowsort
SELECT ALL + - 34 + + 20 AS col0
----
-14

query I rowsort
SELECT + ( 82 )
----
82

query I rowsort
SELECT + 3 + 17
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT - NULLIF ( + CAST( NULL AS SIGNED ), 27 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT - NULLIF ( + CAST ( NULL AS INTEGER ), 27 ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT ( + COUNT( - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9113
SELECT ( + COUNT ( - 1 ) )
----
1

query I rowsort
SELECT ( + + 0 ) col2
----
0

query I rowsort
SELECT + 56 * + 82 AS col1
----
4592

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9116
SELECT ALL CAST( NULL AS DECIMAL ) + + + 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL CAST ( NULL AS REAL ) + + + 71 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9117
SELECT ALL + MIN( + + 87 )
----
87

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + MIN ( + + 87 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT + COUNT( DISTINCT + 53 ) + + + 21 col2
----
22

skipif mysql # not compatible
query I rowsort label-9118
SELECT + COUNT ( DISTINCT + 53 ) + + + 21 col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT 25 - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-9119
SELECT 25 - COUNT ( * )
----
24

query I rowsort
SELECT DISTINCT - ( + ( 5 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL + COUNT( * ) + + + 36 * + 11 AS col2
----
397

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL + COUNT ( * ) + + + 36 * + 11 AS col2
----
397

query I rowsort
SELECT - 93 col0
----
-93

query I rowsort
SELECT DISTINCT + - 74 AS col1
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9124
SELECT + COUNT( * ) + + - ( 19 ), - 92 AS col2
----
-18
-92

skipif mysql # not compatible
query II rowsort label-9124
SELECT + COUNT ( * ) + + - ( 19 ), - 92 AS col2
----
-18
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT MAX( ALL + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9125
SELECT MAX ( ALL + 12 )
----
12

query I rowsort
SELECT DISTINCT ( + + 20 )
----
20

query I rowsort
SELECT - ( 81 ) * + - 56
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT - SUM( ALL + 19 ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-9128
SELECT - SUM ( ALL + 19 ) AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT + 93 + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + 93 + COUNT ( * ) AS col2
----
94

query I rowsort
SELECT + 74 * - 46
----
-3404

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL 25 * - COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL 25 * - COUNT ( * )
----
-25

query I rowsort
SELECT - ( 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT NULLIF ( 70, + COUNT( * ) * - + 34 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT NULLIF ( 70, + COUNT ( * ) * - + 34 ) col1
----
70

query I rowsort
SELECT 86 * + 19
----
1634

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9135
SELECT CAST( NULL AS DECIMAL ) * + + 82 + - - 62 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT CAST ( NULL AS REAL ) * + + 82 + - - 62 + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT COUNT( * ) + - ( COUNT( * ) ) AS col2, + 23
----
0
23

skipif mysql # not compatible
query II rowsort label-9136
SELECT COUNT ( * ) + - ( COUNT ( * ) ) AS col2, + 23
----
0
23

query I rowsort
SELECT ALL 70 + + 96
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT COUNT( * ) - 64 AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-9138
SELECT COUNT ( * ) - 64 AS col0
----
-63

query I rowsort
SELECT ALL + ( 53 )
----
53

query I rowsort
SELECT DISTINCT - 25 * 65 col2
----
-1625

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL - COUNT( * ) * 83
----
-83

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL - COUNT ( * ) * 83
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT DISTINCT + 34 * COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-9142
SELECT DISTINCT + 34 * COUNT ( * )
----
34

query I rowsort
SELECT ( - 60 )
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9144
SELECT - - COUNT( * ) DIV + 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9144
SELECT - - COUNT ( * ) / + 43 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9145
SELECT + CAST( + 39 AS SIGNED ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9145
SELECT + CAST ( + 39 AS INTEGER ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT - - COUNT( * ) + - - 89
----
90

skipif mysql # not compatible
query I rowsort label-9146
SELECT - - COUNT ( * ) + - - 89
----
90

query I rowsort
SELECT - NULLIF ( 85, 81 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT - ( - MIN( DISTINCT 46 ) ) col0
----
46

skipif mysql # not compatible
query I rowsort label-9148
SELECT - ( - MIN ( DISTINCT 46 ) ) col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9149
SELECT ALL 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL 62 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9150
SELECT CAST( NULL AS SIGNED ) / + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT CAST ( NULL AS INTEGER ) / + 20
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT ALL - CAST( - 23 AS SIGNED ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - CAST ( - 23 AS INTEGER ) AS col1
----
23

query I rowsort
SELECT DISTINCT - - 56 col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT - COUNT( * ) + - + COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-9153
SELECT - COUNT ( * ) + - + COUNT ( * ) col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT DISTINCT - - CAST( + - ( 4 ) AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT - - CAST ( + - ( 4 ) AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT + 69 - + 79 col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT + CAST( NULL AS SIGNED ) - - + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT + CAST ( NULL AS INTEGER ) - - + 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ( MIN( ALL + 41 ) ) col2
----
41

skipif mysql # not compatible
query I rowsort label-9158
SELECT ( MIN ( ALL + 41 ) ) col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT + - MAX( DISTINCT - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT + - MAX ( DISTINCT - 78 ) AS col1
----
78

query I rowsort
SELECT + ( - ( + 23 ) ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - ( MIN( 60 ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-9161
SELECT - ( MIN ( 60 ) ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9162
SELECT DISTINCT 46 col2, COUNT( * ) * CAST( + - 18 AS SIGNED ) AS col1
----
46
-18

skipif mysql # not compatible
query II rowsort label-9162
SELECT DISTINCT 46 col2, COUNT ( * ) * CAST ( + - 18 AS INTEGER ) AS col1
----
46
-18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9163
SELECT + 6 + + CAST( NULL AS DECIMAL ) + + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT + 6 + + CAST ( NULL AS REAL ) + + - 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT + SUM( DISTINCT - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9164
SELECT + SUM ( DISTINCT - 51 ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9165
SELECT ALL 90 - + 13, COUNT( * ) AS col0
----
77
1

skipif mysql # not compatible
query II rowsort label-9165
SELECT ALL 90 - + 13, COUNT ( * ) AS col0
----
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT COUNT( * ) + - MAX( DISTINCT + 81 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-9166
SELECT COUNT ( * ) + - MAX ( DISTINCT + 81 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT + 17 * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-9167
SELECT + 17 * + COUNT ( * )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9168
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 48 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9168
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 48 + - 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9169
SELECT + COUNT( * ) col1, ( 84 ) + + - COUNT( * ) AS col2
----
1
83

skipif mysql # not compatible
query II rowsort label-9169
SELECT + COUNT ( * ) col1, ( 84 ) + + - COUNT ( * ) AS col2
----
1
83

query I rowsort
SELECT ALL + - 72 col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9171
SELECT + 43 * + - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT + 43 * + - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT COUNT( + 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9172
SELECT COUNT ( + 65 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT - - CAST( NULL AS SIGNED ) * + 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT - - CAST ( NULL AS INTEGER ) * + 49 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL - - MAX( + - 98 ) * + 15
----
-1470

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - - MAX ( + - 98 ) * + 15
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT - COUNT( * ) * + 74 + - 46
----
-120

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT - COUNT ( * ) * + 74 + - 46
----
-120

query I rowsort
SELECT DISTINCT - ( - + 70 )
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9177
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) + - - 35 - + - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) + - - 35 - + - COUNT ( * )
----
35

query I rowsort
SELECT ALL 47 * + 50 col2
----
2350

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL SUM( ALL + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL SUM ( ALL + 31 ) AS col2
----
31

query II rowsort
SELECT - 92, 43 AS col1
----
-92
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT ALL 35 * NULLIF ( + MAX( DISTINCT 64 ), + 70 )
----
2240

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL 35 * NULLIF ( + MAX ( DISTINCT 64 ), + 70 )
----
2240

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT + - ( + COUNT( * ) ) + - 40
----
-41

skipif mysql # not compatible
query I rowsort label-9182
SELECT + - ( + COUNT ( * ) ) + - 40
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT DISTINCT + NULLIF ( + - 73, + CAST( NULL AS SIGNED ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT + NULLIF ( + - 73, + CAST ( NULL AS INTEGER ) ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9184
SELECT ALL + + 55 + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-9184
SELECT ALL + + 55 + - COUNT ( * )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT - - AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9185
SELECT - - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9186
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + CAST( MAX( - 23 ) AS DECIMAL ) * - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT + CAST ( NULL AS REAL ) + CAST ( MAX ( - 23 ) AS REAL ) * - 26
----
NULL

query I rowsort
SELECT 13 + - 62 col0
----
-49

query I rowsort
SELECT ALL 24 * + + 39
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-9189
SELECT ALL 88 * - + MAX( + 12 )
----
-1056

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL 88 * - + MAX ( + 12 )
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT + MAX( DISTINCT + + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-9190
SELECT + MAX ( DISTINCT + + 86 )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT - MIN( ALL 93 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9191
SELECT - MIN ( ALL 93 ) AS col2
----
-93

query I rowsort
SELECT ALL - ( + 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT MIN( ALL - + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-9193
SELECT MIN ( ALL - + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9194
SELECT ALL COUNT( * ) + 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL COUNT ( * ) + 46 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9195
SELECT - MIN( - 22 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT - MIN ( - 22 ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - ( - 25 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT ALL + ( + + ( CAST( NULL AS SIGNED ) ) ) * - 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL + ( + + ( CAST ( NULL AS INTEGER ) ) ) * - 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9198
SELECT ALL COUNT( * ), 55 * + 60 + + 39 AS col1
----
1
3339

skipif mysql # not compatible
query II rowsort label-9198
SELECT ALL COUNT ( * ), 55 * + 60 + + 39 AS col1
----
1
3339

query I rowsort
SELECT + + ( - - 1 ) AS col0
----
1

query I rowsort
SELECT DISTINCT + + 98 AS col0
----
98

query II rowsort
SELECT DISTINCT 81 AS col2, - 35 col1
----
81
-35

query I rowsort
SELECT DISTINCT 71 + - + 43 AS col0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9203
SELECT - CAST( - 10 AS SIGNED ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-9203
SELECT - CAST ( - 10 AS INTEGER ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT - + CAST( NULL AS SIGNED ) * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT - + CAST ( NULL AS INTEGER ) * - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL - + ( + COUNT( * ) ) * + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL - + ( + COUNT ( * ) ) * + COUNT ( * ) col2
----
-1

query I rowsort
SELECT ALL 32 + + 77 AS col2
----
109

query I rowsort
SELECT 79 + 66 AS col2
----
145

query I rowsort
SELECT ALL - + 30 AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ALL + 29 + - SUM( DISTINCT - - 98 ) + 71 * - 24 AS col1
----
-1773

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL + 29 + - SUM ( DISTINCT - - 98 ) + 71 * - 24 AS col1
----
-1773

query I rowsort
SELECT ALL + - 42 col0
----
-42

query I rowsort
SELECT ( ( - + 37 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT - 84 * COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-9212
SELECT - 84 * COUNT ( * )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT - 47 + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-9213
SELECT - 47 + - COUNT ( * )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9214
SELECT DISTINCT + COUNT( * ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT + COUNT ( * ) / + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL - MIN( + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - MIN ( + 49 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9216
SELECT + - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9216
SELECT + - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - + 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT - COUNT( * ) * 19 + + - 44 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-9218
SELECT - COUNT ( * ) * 19 + + - 44 AS col1
----
-63

query I rowsort
SELECT 17 + + 55 AS col0
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9220
SELECT DISTINCT 92 * - - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT 92 * - - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9221
SELECT 17 + - ( - - CAST( - - 28 AS SIGNED ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9221
SELECT 17 + - ( - - CAST ( - - 28 AS INTEGER ) ) AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9222
SELECT DISTINCT - CAST( 26 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT - CAST ( 26 AS INTEGER )
----
-26

query I rowsort
SELECT + ( - 27 ) AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT - COUNT( * ) + + 63 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9224
SELECT - COUNT ( * ) + + 63 AS col2
----
62

query I rowsort
SELECT DISTINCT + - NULLIF ( - ( 31 ), 63 ) + + 30
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT ALL + 68 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL + 68 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT + MAX( + - 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT + MAX ( + - 27 ) AS col2
----
-27

query I rowsort
SELECT ALL + ( + - 43 ) AS col2
----
-43

query I rowsort
SELECT - + 72 col1
----
-72

query I rowsort
SELECT - ( - 20 ) AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9231
SELECT + ( + CAST( NULL AS SIGNED ) ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9231
SELECT + ( + CAST ( NULL AS INTEGER ) ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT DISTINCT + COUNT( * ) + + + 56 col1
----
57

skipif mysql # not compatible
query I rowsort label-9232
SELECT DISTINCT + COUNT ( * ) + + + 56 col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT ALL - - MIN( ALL + + 62 ) col0
----
62

skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL - - MIN ( ALL + + 62 ) col0
----
62

query I rowsort
SELECT - 91 col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL NULLIF ( + + 70, - SUM( DISTINCT - 49 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL NULLIF ( + + 70, - SUM ( DISTINCT - 49 ) ) AS col2
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9236
SELECT + COALESCE ( - CAST( NULL AS SIGNED ), + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-9236
SELECT + COALESCE ( - CAST ( NULL AS INTEGER ), + 96 )
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9237
SELECT ALL 22 DIV + COUNT( * ) + + + 28 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL 22 / + COUNT ( * ) + + + 28 AS col0
----
50

query I rowsort
SELECT - ( - 2 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT + - ( - CAST( + + 7 AS SIGNED ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9239
SELECT + - ( - CAST ( + + 7 AS INTEGER ) ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL + - MAX( ALL - + 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL + - MAX ( ALL - + 37 ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9241
SELECT - - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT - - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT COUNT( * ) * + 84 col0
----
84

skipif mysql # not compatible
query I rowsort label-9242
SELECT COUNT ( * ) * + 84 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT + 74 + - 68 + + COUNT( * ) + 85
----
92

skipif mysql # not compatible
query I rowsort label-9243
SELECT + 74 + - 68 + + COUNT ( * ) + 85
----
92

query I rowsort
SELECT ALL - + 6 AS col0
----
-6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9245
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT + + CAST( - 89 AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT + + CAST ( - 89 AS REAL ) )
----
NULL

query I rowsort
SELECT ALL - 56 + - - 81 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT ( - + MAX( + 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-9247
SELECT ( - + MAX ( + 6 ) )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT - COUNT( * ) * - - NULLIF ( COUNT( * ), - 38 - - + 15 - 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-9248
SELECT - COUNT ( * ) * - - NULLIF ( COUNT ( * ), - 38 - - + 15 - 81 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL - - 90 + + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - - 90 + + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - + SUM( + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-9250
SELECT - + SUM ( + 82 )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9251
SELECT ALL + + ( - - CAST( - 74 AS SIGNED ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL + + ( - - CAST ( - 74 AS INTEGER ) ) AS col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-9252
SELECT DISTINCT 48 DIV + 10
----
4

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT 48 / + 10
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT DISTINCT COUNT( * ) * - 32 + - + MIN( 21 )
----
-53

skipif mysql # not compatible
query I rowsort label-9253
SELECT DISTINCT COUNT ( * ) * - 32 + - + MIN ( 21 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9254
SELECT + CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9255
SELECT ALL - 79 DIV CAST( + 92 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL - 79 / CAST ( + 92 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT 46 - COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-9256
SELECT 46 - COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT + 59 + COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT + 59 + COUNT ( * )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT ALL ( CAST( AVG ( ALL - 60 ) AS SIGNED ) )
----
-60

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL ( CAST ( AVG ( ALL - 60 ) AS INTEGER ) )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT - CAST( NULL AS SIGNED ) * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT - CAST ( NULL AS INTEGER ) * + 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9260
SELECT DISTINCT - 73 AS col0, 94 + COUNT( * )
----
-73
95

skipif mysql # not compatible
query II rowsort label-9260
SELECT DISTINCT - 73 AS col0, 94 + COUNT ( * )
----
-73
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT - COUNT( * ) + + - 50
----
-51

skipif mysql # not compatible
query I rowsort label-9261
SELECT - COUNT ( * ) + + - 50
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL MIN( + 64 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL MIN ( + 64 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL - CASE WHEN ( NULL ) IS NOT NULL THEN - + 69 ELSE NULL END + - ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - CASE WHEN ( NULL ) IS NOT NULL THEN - + 69 ELSE NULL END + - ( - + COUNT ( * ) )
----
NULL

query II rowsort
SELECT + 0, - 24 col2
----
0
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT - - COUNT( * ) * - 52 + - - 43 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-9265
SELECT - - COUNT ( * ) * - 52 + - - 43 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + 66 + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-9266
SELECT + 66 + - COUNT ( * )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9267
SELECT - CAST( - + 25 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-9267
SELECT - CAST ( - + 25 AS INTEGER )
----
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9268
SELECT DISTINCT + 43 DIV ( - CAST( - 51 AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9268
SELECT DISTINCT + 43 / ( - CAST ( - 51 AS INTEGER ) ) AS col1
----
0

query I rowsort
SELECT ALL 64 + ( - 30 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT ALL SUM( + + 8 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL SUM ( + + 8 ) AS col0
----
8

query I rowsort
SELECT DISTINCT - - 38 AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT - COUNT( * ) * 88 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT - COUNT ( * ) * 88 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-9273
SELECT - 28, - COUNT( * ) AS col2
----
-28
-1

skipif mysql # not compatible
query II rowsort label-9273
SELECT - 28, - COUNT ( * ) AS col2
----
-28
-1

query II rowsort
SELECT - 48 AS col0, + 20
----
-48
20

query I rowsort
SELECT ALL ( + - 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT DISTINCT - COUNT( * ) * - 51 AS col2
----
51

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT - COUNT ( * ) * - 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT + CASE 22 WHEN - 67 THEN NULL WHEN - - 3 THEN - + COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT + CASE 22 WHEN - 67 THEN NULL WHEN - - 3 THEN - + COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + ( - 95 ) + + - 25 AS col0
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-9279
SELECT DISTINCT ( + COUNT( * ) ) col2, + 68
----
1
68

skipif mysql # not compatible
query II rowsort label-9279
SELECT DISTINCT ( + COUNT ( * ) ) col2, + 68
----
1
68

query I rowsort
SELECT ALL + + 52 * + 51
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT ALL - + COUNT( * ) * + 89
----
-89

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL - + COUNT ( * ) * + 89
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9282
SELECT DISTINCT COUNT( * ) DIV 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT COUNT ( * ) / 46 col1
----
0

query I rowsort
SELECT ALL 35 * 49
----
1715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9284
SELECT - - COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9284
SELECT - - COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 72 AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT ALL + - 57 + CAST( - COUNT( ALL + - 7 ) AS SIGNED ) + - - 45 col0
----
-13

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL + - 57 + CAST ( - COUNT ( ALL + - 7 ) AS INTEGER ) + - - 45 col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT ALL - COUNT( * ) - + + COUNT( * ) + - + COUNT( 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-9287
SELECT ALL - COUNT ( * ) - + + COUNT ( * ) + - + COUNT ( 3 )
----
-3

query I rowsort
SELECT 15 * 80 AS col1
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT ALL - CAST( 20 AS SIGNED ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL - CAST ( 20 AS INTEGER ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - MIN( - 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - MIN ( - 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL + 44 * + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + 44 * + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT COUNT( ALL + 95 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9292
SELECT COUNT ( ALL + 95 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT 39 * COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9293
SELECT 39 * COUNT ( * ) AS col0
----
39

query I rowsort
SELECT DISTINCT - 96 + ( 79 ) col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9295
SELECT - + 66 - + 51 * CAST( - 3 AS SIGNED ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-9295
SELECT - + 66 - + 51 * CAST ( - 3 AS INTEGER ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9296
SELECT ALL + 69 AS col0, + COUNT( * ) AS col1
----
69
1

skipif mysql # not compatible
query II rowsort label-9296
SELECT ALL + 69 AS col0, + COUNT ( * ) AS col1
----
69
1

query I rowsort
SELECT - - 56 * 45 + + + 57
----
2577

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9298
SELECT DISTINCT AVG ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT AVG ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT + ( - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT + ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - - ( - - 57 ) * - 20
----
-1140

query I rowsort
SELECT - + 90 AS col0
----
-90

query I rowsort
SELECT ALL 31 col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - 28 - - + 4 + - SUM( 7 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-9303
SELECT - 28 - - + 4 + - SUM ( 7 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT ALL NULLIF ( + COUNT( * ), COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL NULLIF ( + COUNT ( * ), COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT + SUM( DISTINCT 73 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT + SUM ( DISTINCT 73 ) col2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT + - CAST( + 28 AS SIGNED ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-9306
SELECT + - CAST ( + 28 AS INTEGER ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT - - COUNT( * ) * 45 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-9307
SELECT - - COUNT ( * ) * 45 AS col0
----
45

query I rowsort
SELECT + 4 + - - 56
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9309
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 79 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-9309
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 79 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT ALL - 89 * + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-9310
SELECT ALL - 89 * + COUNT ( * )
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9311
SELECT + CAST( 16 AS SIGNED ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-9311
SELECT + CAST ( 16 AS INTEGER ) AS col1
----
16

query I rowsort
SELECT ALL + 63 * + 56 col2
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT DISTINCT + MIN( 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT + MIN ( 19 ) AS col2
----
19

query I rowsort
SELECT 87 * 47 col2
----
4089

onlyif mysql # aggregate syntax: 
query I rowsort label-9315
SELECT ALL + ( SUM( 75 ) ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL + ( SUM ( 75 ) ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT - COUNT( * ) + - 9
----
-10

skipif mysql # not compatible
query I rowsort label-9316
SELECT - COUNT ( * ) + - 9
----
-10

query I rowsort
SELECT - ( 27 ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9318
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + + 68 DIV COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + 68 / COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9319
SELECT + + COUNT( 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9319
SELECT + + COUNT ( 72 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 68 + 98 col0
----
166

query I rowsort
SELECT + 17 * 78 AS col2
----
1326

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT 62 DIV 74 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9322
SELECT 62 / 74 AS col2
----
0

query I rowsort
SELECT ALL - - 75 col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT + MIN( ALL - 29 ) + + COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9324
SELECT + MIN ( ALL - 29 ) + + COUNT ( * )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL + NULLIF ( + 47, - + COUNT( * ) )
----
47

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + NULLIF ( + 47, - + COUNT ( * ) )
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9326
SELECT DISTINCT + COUNT( * ), - 74 AS col1
----
1
-74

skipif mysql # not compatible
query II rowsort label-9326
SELECT DISTINCT + COUNT ( * ), - 74 AS col1
----
1
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9327
SELECT ALL + 56 DIV + COUNT( * ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-9327
SELECT ALL + 56 / + COUNT ( * ) AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL + 30 + - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL + 30 + - + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9329
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) / 8 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) / 8 col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9330
SELECT + + 19 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT + + 19 + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9331
SELECT - + CAST( NULL AS SIGNED ) * 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT - + CAST ( NULL AS INTEGER ) * 68 AS col1
----
NULL

query I rowsort
SELECT + - 67 + + - 4 + 44 AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9333
SELECT DISTINCT + + COUNT( ALL CAST( NULL AS SIGNED ) ) * + + COUNT( * ) + + 65 + ( 62 )
----
127

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT + + COUNT ( ALL CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) + + 65 + ( 62 )
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) ) * 25
----
25

skipif mysql # not compatible
query I rowsort label-9334
SELECT COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) ) * 25
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT ALL - ( + ( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL - ( + ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ( - 55 ) + - 34
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT 93 DIV + 31 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-9337
SELECT 93 / + 31 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT + COUNT( * ) + - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9338
SELECT + COUNT ( * ) + - + COUNT ( * )
----
0

query I rowsort
SELECT ALL + 76 - + + 30 AS col0
----
46

query II rowsort
SELECT ALL - 90 AS col0, 33 + - 73
----
-90
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT 53 + - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT 53 + - COUNT ( * ) AS col0
----
52

query I rowsort
SELECT 31 * - - 26 col2
----
806

query I rowsort
SELECT DISTINCT - ( + 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL - COUNT( * ) * + 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - COUNT ( * ) * + 50 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-9345
SELECT ALL + ( + ( + 40 ) ) AS col1, COUNT( * ) AS col2
----
40
1

skipif mysql # not compatible
query II rowsort label-9345
SELECT ALL + ( + ( + 40 ) ) AS col1, COUNT ( * ) AS col2
----
40
1

query I rowsort
SELECT DISTINCT + + 64 AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL COUNT( * ) + + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL COUNT ( * ) + + - 28
----
-27

query II rowsort
SELECT 50 AS col0, ( 29 )
----
50
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT COUNT( * ) + + 46
----
47

skipif mysql # not compatible
query I rowsort label-9349
SELECT COUNT ( * ) + + 46
----
47

query I rowsort
SELECT ALL + 46 + + + ( 16 ) AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT DISTINCT MAX( - + 46 ) - - 10 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT MAX ( - + 46 ) - - 10 AS col1
----
-36

query I rowsort
SELECT 9 col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT SUM( - 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT SUM ( - 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL SUM( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL SUM ( + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT DISTINCT + 72 + 36 + COUNT( * )
----
109

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT + 72 + 36 + COUNT ( * )
----
109

query II rowsort
SELECT 26 AS col2, + 12 + 21 + + 90
----
26
123

query I rowsort
SELECT ALL + + ( 23 )
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9358
SELECT ALL 26 DIV + - 7 + MIN( + + 42 )
----
39

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL 26 / + - 7 + MIN ( + + 42 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT - 96 + - COUNT( * ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-9359
SELECT - 96 + - COUNT ( * ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT + 21 * + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9360
SELECT + 21 * + COUNT ( * )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL - 94 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - 94 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9362
SELECT DISTINCT + 49 * ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT + 49 * ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9363
SELECT ALL COUNT( * ) DIV + 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9363
SELECT ALL COUNT ( * ) / + 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT DISTINCT MAX( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-9364
SELECT DISTINCT MAX ( 19 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9365
SELECT + + CAST( - + MIN( ALL - 94 ) AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-9365
SELECT + + CAST ( - + MIN ( ALL - 94 ) AS INTEGER )
----
94

query I rowsort
SELECT DISTINCT - 17 * 74
----
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT ALL SUM( DISTINCT - 20 ) col0
----
-20

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL SUM ( DISTINCT - 20 ) col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9368
SELECT - CAST( NULL AS SIGNED ) + + MIN( ALL - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9368
SELECT - CAST ( NULL AS INTEGER ) + + MIN ( ALL - 68 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT DISTINCT 4 * COUNT( - + 37 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT 4 * COUNT ( - + 37 ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT ALL ( + 82 ) * + CAST( NULL AS SIGNED ) + - AVG ( DISTINCT + 35 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL ( + 82 ) * + CAST ( NULL AS INTEGER ) + - AVG ( DISTINCT + 35 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT + CAST( - + 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-9371
SELECT + CAST ( - + 54 AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9372
SELECT COALESCE ( - 96, COUNT( * ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-9372
SELECT COALESCE ( - 96, COUNT ( * ) ) AS col2
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT ALL 80 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL 80 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( + - 6 ) AS col1
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9375
SELECT ALL ( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL ( - CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9376
SELECT 37 DIV 12
----
3

skipif mysql # not compatible
query I rowsort label-9376
SELECT 37 / 12
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT 82 * COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-9377
SELECT 82 * COUNT ( * )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9378
SELECT DISTINCT - CAST( + 39 AS SIGNED ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT - CAST ( + 39 AS INTEGER ) AS col1
----
-39

query I rowsort
SELECT 72 * - + 66 AS col2
----
-4752

query I rowsort
SELECT 93 * + 76
----
7068

query I rowsort
SELECT DISTINCT - ( - - ( 77 ) )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT ALL 45 / ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9382
SELECT ALL 45 / ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT + - MIN( ALL - 66 )
----
66

skipif mysql # not compatible
query I rowsort label-9383
SELECT + - MIN ( ALL - 66 )
----
66

query II rowsort
SELECT 4 AS col2, 59
----
4
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT CAST( + - SUM( ALL + - 9 ) AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-9385
SELECT CAST ( + - SUM ( ALL + - 9 ) AS INTEGER ) AS col1
----
9

query I rowsort
SELECT + + 93 + - ( + - 5 )
----
98

query I rowsort
SELECT 10 + + + NULLIF ( 3, + 6 ) * + 74 AS col0
----
232

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL - - COUNT( 25 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - - COUNT ( 25 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9389
SELECT DISTINCT 95 col1, 62 + + CAST( + COALESCE ( 63, 42 ) AS SIGNED ) * 73 * + ( + 77 )
----
95
354185

skipif mysql # not compatible
query II rowsort label-9389
SELECT DISTINCT 95 col1, 62 + + CAST ( + COALESCE ( 63, 42 ) AS INTEGER ) * 73 * + ( + 77 )
----
95
354185

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT - 34 * - - COUNT( * ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT - 34 * - - COUNT ( * ) AS col2
----
-34

query I rowsort
SELECT ALL + + 13 col1
----
13

query I rowsort
SELECT DISTINCT + 89 col2
----
89

query I rowsort
SELECT ALL + 37 * + 23 + - - 67
----
918

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + 76 * - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-9394
SELECT + 76 * - COUNT ( * )
----
-76

query I rowsort
SELECT DISTINCT 77 - - - 76
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9396
SELECT ALL + 3 AS col1, - 64 + - COUNT( * )
----
3
-65

skipif mysql # not compatible
query II rowsort label-9396
SELECT ALL + 3 AS col1, - 64 + - COUNT ( * )
----
3
-65

query I rowsort
SELECT ALL - + 82 * - - 75 AS col2
----
-6150

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9398
SELECT - 14, 73 * 48 + CAST( NULL AS SIGNED ) AS col0
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-9398
SELECT - 14, 73 * 48 + CAST ( NULL AS INTEGER ) AS col0
----
-14
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT + CAST( + + 95 AS SIGNED ) * - 22 AS col2
----
-2090

skipif mysql # not compatible
query I rowsort label-9399
SELECT + CAST ( + + 95 AS INTEGER ) * - 22 AS col2
----
-2090

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL COUNT( * ) * - + SUM( - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL COUNT ( * ) * - + SUM ( - 48 )
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9401
SELECT + CAST( + COUNT( * ) AS SIGNED ) - + 60 * 35 + - ( 66 ) DIV - + 31 + - + 41 + + 88 AS col0
----
-2050

skipif mysql # not compatible
query I rowsort label-9401
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) - + 60 * 35 + - ( 66 ) / - + 31 + - + 41 + + 88 AS col0
----
-2050

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL + 94 * COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL + 94 * COUNT ( * )
----
94

query I rowsort
SELECT ALL - 25 * + 69
----
-1725

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9404
SELECT + - 14 DIV - 71 * 35 col2, COALESCE ( - 94, - 30 * - + 34, - CAST( NULL AS SIGNED ) ) * 63 * + 40 DIV + CAST( NULL AS SIGNED ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9404
SELECT + - 14 / - 71 * 35 col2, COALESCE ( - 94, - 30 * - + 34, - CAST ( NULL AS INTEGER ) ) * 63 * + 40 / + CAST ( NULL AS INTEGER ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9405
SELECT + 33, + COUNT( * ) * + 26 AS col0
----
33
26

skipif mysql # not compatible
query II rowsort label-9405
SELECT + 33, + COUNT ( * ) * + 26 AS col0
----
33
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9406
SELECT ALL + + NULLIF ( 47, + 87 * + 76 ) DIV + 46
----
1

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL + + NULLIF ( 47, + 87 * + 76 ) / + 46
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9407
SELECT + COUNT( * ) * + - CAST( + + 68 AS SIGNED ) + - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9407
SELECT + COUNT ( * ) * + - CAST ( + + 68 AS INTEGER ) + - COUNT ( * )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9408
SELECT DISTINCT - COUNT( * ) * + - 34 + 5 + - 12 * 66 * + 32 + 39 + + MAX( CAST( + - 75 AS SIGNED ) ) + + 70 AS col2
----
-25271

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - COUNT ( * ) * + - 34 + 5 + - 12 * 66 * + 32 + 39 + + MAX ( CAST ( + - 75 AS INTEGER ) ) + + 70 AS col2
----
-25271

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT + + MIN( DISTINCT + 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT + + MIN ( DISTINCT + 78 ) AS col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9410
SELECT NULLIF ( - NULLIF ( + 24, 6 ), - + COUNT( * ) * - CAST( + 29 AS SIGNED ) )
----
-24

skipif mysql # not compatible
query I rowsort label-9410
SELECT NULLIF ( - NULLIF ( + 24, 6 ), - + COUNT ( * ) * - CAST ( + 29 AS INTEGER ) )
----
-24

query I rowsort
SELECT ALL 64 * - - 10 + - + 77 - + ( 45 ) + - 23
----
495

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9412
SELECT ALL ( NULLIF ( + - COALESCE ( - + 77, - 20 * + 71 ), + CAST( NULL AS SIGNED ) ) ) * - 44 - - NULLIF ( - 61, COUNT( * ) + - 88 ) + - 76 + - ( 56 ) * + 28 + + 63
----
-5030

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL ( NULLIF ( + - COALESCE ( - + 77, - 20 * + 71 ), + CAST ( NULL AS INTEGER ) ) ) * - 44 - - NULLIF ( - 61, COUNT ( * ) + - 88 ) + - 76 + - ( 56 ) * + 28 + + 63
----
-5030

query I rowsort
SELECT NULLIF ( - 7, - 70 ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT ALL - 46 * COUNT( * ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL - 46 * COUNT ( * ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT + COUNT( * ) * - 30 AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9415
SELECT DISTINCT + COUNT ( * ) * - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL MAX( DISTINCT 5 ) * - ( - 33 ) + + MIN( ALL + + 12 ) + + 16 + - COUNT( * ) * - NULLIF ( - 78, 18 ) * + COUNT( * ) - 70 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL MAX ( DISTINCT 5 ) * - ( - 33 ) + + MIN ( ALL + + 12 ) + + 16 + - COUNT ( * ) * - NULLIF ( - 78, 18 ) * + COUNT ( * ) - 70 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT - COUNT( * ) * - - SUM( DISTINCT + 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-9417
SELECT - COUNT ( * ) * - - SUM ( DISTINCT + 54 )
----
-54

query I rowsort
SELECT DISTINCT ( 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT - NULLIF ( + 35, + 72 * + ( - COUNT( + 44 ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-9419
SELECT - NULLIF ( + 35, + 72 * + ( - COUNT ( + 44 ) ) )
----
-35

query I rowsort
SELECT + 75 * 29 AS col2
----
2175

query I rowsort
SELECT DISTINCT NULLIF ( - 82, + 22 )
----
-82

query I rowsort
SELECT DISTINCT ( + 71 ) col0
----
71

query I rowsort
SELECT DISTINCT ( + + 28 )
----
28

query I rowsort
SELECT + 10 - + 68 + + 56 + + - ( - 87 ) + - + 22 * - 92 + - 34 * + + 9 AS col2
----
1803

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT - + COUNT( * ) + + ( + 74 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9425
SELECT - + COUNT ( * ) + + ( + 74 ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT - ( + SUM( ALL - 68 ) )
----
68

skipif mysql # not compatible
query I rowsort label-9426
SELECT - ( + SUM ( ALL - 68 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT DISTINCT MIN( + - 31 ) col2
----
-31

skipif mysql # not compatible
query I rowsort label-9427
SELECT DISTINCT MIN ( + - 31 ) col2
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-9428
SELECT + - 29 - 60 AS col2, MAX( DISTINCT 0 ) AS col0
----
-89
0

skipif mysql # not compatible
query II rowsort label-9428
SELECT + - 29 - 60 AS col2, MAX ( DISTINCT 0 ) AS col0
----
-89
0

query I rowsort
SELECT ALL - 65 + + + 6 + ( 12 ) AS col0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9430
SELECT + + 59 + + - COUNT( * ) DIV + 6 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9430
SELECT + + 59 + + - COUNT ( * ) / + 6 AS col1
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9431
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * - 50 + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT + - CAST ( NULL AS REAL ) * - 50 + 32 AS col0
----
NULL

query I rowsort
SELECT ALL 56 + 55 * 89
----
4951

onlyif mysql # aggregate syntax: 
query II rowsort label-9433
SELECT ALL NULLIF ( + 44, + 92 * - - ( - 28 ) / + + COALESCE ( - - 47, 29 ) * 59 * + 12 - + + 4 + 69 + 69 ) + COUNT( * ) AS col2, + 71 col1
----
45
71

skipif mysql # not compatible
query II rowsort label-9433
SELECT ALL NULLIF ( + 44, + 92 * - - ( - 28 ) / + + COALESCE ( - - 47, 29 ) * 59 * + 12 - + + 4 + 69 + 69 ) + COUNT ( * ) AS col2, + 71 col1
----
45
71

query I rowsort
SELECT ALL + + 78 col0
----
78

query II rowsort
SELECT - 83 * - 73, - 98 col2
----
6059
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9436
SELECT ALL - 39 / 45 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL - 39 / 45 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9437
SELECT + COUNT( * ) * - 10 * NULLIF ( + CAST( + 91 AS SIGNED ), - - 39 ) + 24
----
-886

skipif mysql # not compatible
query I rowsort label-9437
SELECT + COUNT ( * ) * - 10 * NULLIF ( + CAST ( + 91 AS INTEGER ), - - 39 ) + 24
----
-886

query I rowsort
SELECT DISTINCT 40 * - + 86 * 18 + 8
----
-61912

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9439
SELECT + ( + COALESCE ( + - 53, - 97 DIV - - 79 + + COUNT( * ) ) ) * + + ( - 41 ) * - + 68 + + ( + 35 ) AS col1
----
-147729

skipif mysql # not compatible
query I rowsort label-9439
SELECT + ( + COALESCE ( + - 53, - 97 / - - 79 + + COUNT ( * ) ) ) * + + ( - 41 ) * - + 68 + + ( + 35 ) AS col1
----
-147729

query II rowsort
SELECT DISTINCT - 32 AS col0, 57
----
-32
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT DISTINCT COUNT( * ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT COUNT ( * ) + + 55
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT DISTINCT 24 * COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT 24 * COUNT ( * ) AS col1
----
24

query I rowsort
SELECT ALL + 87 + + + 42 AS col2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT CAST( + AVG ( + + 47 ) AS SIGNED ) * - + 90
----
-4230

skipif mysql # not compatible
query I rowsort label-9444
SELECT CAST ( + AVG ( + + 47 ) AS INTEGER ) * - + 90
----
-4230

query I rowsort
SELECT ALL 59 * - 95
----
-5605

query I rowsort
SELECT DISTINCT 18 * - 96
----
-1728

query II rowsort
SELECT + 48 AS col1, - 50 AS col0
----
48
-50

query I rowsort
SELECT 2 + COALESCE ( - 21, - 52 + + 84 )
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9449
SELECT ALL 11 DIV - 2
----
-5

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL 11 / - 2
----
-5

query I rowsort
SELECT 73 * 52 AS col1
----
3796

query I rowsort
SELECT 79 + + - 66
----
13

query II rowsort
SELECT + 56, + 18 AS col1
----
56
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT + 3 * - 19 + - + 63 DIV + 40
----
-58

skipif mysql # not compatible
query I rowsort label-9453
SELECT + 3 * - 19 + - + 63 / + 40
----
-58

query I rowsort
SELECT 24 - - 46
----
70

query II rowsort
SELECT + 11, + 70 col1
----
11
70

query I rowsort
SELECT 98 + 80
----
178

query I rowsort
SELECT ALL 52 - + - 26
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT DISTINCT + CAST( + - 79 AS SIGNED ) * - ( + - 20 ) + - 43 + 88 * - + ( - ( + 49 ) )
----
2689

skipif mysql # not compatible
query I rowsort label-9458
SELECT DISTINCT + CAST ( + - 79 AS INTEGER ) * - ( + - 20 ) + - 43 + 88 * - + ( - ( + 49 ) )
----
2689

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT + 98 * + MAX( DISTINCT - + 78 )
----
-7644

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT + 98 * + MAX ( DISTINCT - + 78 )
----
-7644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT CAST( 19 AS SIGNED ) * + - ( - COALESCE ( - ( - - COALESCE ( - CASE - SUM( ALL - + 36 ) WHEN + 52 THEN + - 40 END, - - 89 ) ), 14 ) ) * + COUNT( * ) + 91 + + 57
----
-1543

skipif mysql # not compatible
query I rowsort label-9460
SELECT CAST ( 19 AS INTEGER ) * + - ( - COALESCE ( - ( - - COALESCE ( - CASE - SUM ( ALL - + 36 ) WHEN + 52 THEN + - 40 END, - - 89 ) ), 14 ) ) * + COUNT ( * ) + 91 + + 57
----
-1543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9461
SELECT + COUNT( * ) DIV + 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9461
SELECT + COUNT ( * ) / + 1 AS col1
----
1

query I rowsort
SELECT ALL + 69 + + 6 AS col0
----
75

query I rowsort
SELECT 68 * + - 37
----
-2516

query I rowsort
SELECT DISTINCT COALESCE ( - 34, ( + 31 ) )
----
-34

query I rowsort
SELECT DISTINCT - ( - + 49 ) + 49
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9466
SELECT - - COALESCE ( + + CAST( - 82 AS SIGNED ), - + 39 * - - 0 + + 59 )
----
-82

skipif mysql # not compatible
query I rowsort label-9466
SELECT - - COALESCE ( + + CAST ( - 82 AS INTEGER ), - + 39 * - - 0 + + 59 )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT + CAST( NULL AS SIGNED ) / 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT + CAST ( NULL AS INTEGER ) / 51 AS col2
----
NULL

query I rowsort
SELECT + 76 * + 59
----
4484

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT + 50 * + 78 * - MAX( - + 44 ) AS col0
----
171600

skipif mysql # not compatible
query I rowsort label-9469
SELECT + 50 * + 78 * - MAX ( - + 44 ) AS col0
----
171600

query I rowsort
SELECT ( - CASE + 94 WHEN + 46 THEN + - 22 END ) - + 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL + - 43 * - COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL + - 43 * - COUNT ( * ) AS col0
----
43

query I rowsort
SELECT ALL - 92 + 31 * - 32
----
-1084

query II rowsort
SELECT + 29, 43 * 93 AS col0
----
29
3999

query I rowsort
SELECT DISTINCT + 23 * ( - 33 ) * 54 AS col2
----
-40986

query I rowsort
SELECT - 17 * + 13 * - 59 col2
----
13039

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL - MIN( - 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL - MIN ( - 31 ) AS col2
----
31

query II rowsort
SELECT + + 40, + 63 AS col2
----
40
63

query I rowsort
SELECT ALL + 46 * - - 89 * + + 89 AS col0
----
364366

query I rowsort
SELECT ALL - 92 - - - 76
----
-168

query II rowsort
SELECT 59, 61 + - 45 AS col0
----
59
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT MIN( DISTINCT 57 ) * 24 + 26
----
1394

skipif mysql # not compatible
query I rowsort label-9481
SELECT MIN ( DISTINCT 57 ) * 24 + 26
----
1394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9482
SELECT + 93 * 76 + + - 32 - CAST( NULL AS SIGNED ) - - COUNT( * ) * 95 * - 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT + 93 * 76 + + - 32 - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * 95 * - 51 AS col0
----
NULL

query I rowsort
SELECT 18 * - 46 * + 7
----
-5796

query I rowsort
SELECT ALL 5 * - + 2 * 20 AS col1
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT + ( + 99 ) * - - 79 + - COALESCE ( + - 69, 70, + 48, + - COUNT( * ) * - 16, + 8 * - 84 + 71 ) + - COUNT( * ) AS col2
----
7889

skipif mysql # not compatible
query I rowsort label-9485
SELECT + ( + 99 ) * - - 79 + - COALESCE ( + - 69, 70, + 48, + - COUNT ( * ) * - 16, + 8 * - 84 + 71 ) + - COUNT ( * ) AS col2
----
7889

onlyif mysql # DIV for integer division: 
query I rowsort label-9486
SELECT DISTINCT - 2 DIV - - 24
----
0

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT - 2 / - - 24
----
0

query II rowsort
SELECT DISTINCT - 69 AS col0, 77 * - 74
----
-69
-5698

query I rowsort
SELECT 8 * - 54 AS col0
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL - MIN( DISTINCT - + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL - MIN ( DISTINCT - + 7 )
----
7

query II rowsort
SELECT DISTINCT - 59 AS col1, - 63
----
-59
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9491
SELECT ALL - 62, - 30 + + 41 + + 32 + - 97 DIV COUNT( * ) AS col2
----
-62
-54

skipif mysql # not compatible
query II rowsort label-9491
SELECT ALL - 62, - 30 + + 41 + + 32 + - 97 / COUNT ( * ) AS col2
----
-62
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT 98 DIV 75
----
1

skipif mysql # not compatible
query I rowsort label-9492
SELECT 98 / 75
----
1

query I rowsort
SELECT 33 * - 38 * 74 AS col0
----
-92796

query I rowsort
SELECT NULLIF ( - + 66, ( 78 ) ) * + - ( - - 4 ) * + 90 AS col0
----
23760

query I rowsort
SELECT 43 * 10
----
430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9496
SELECT ( - CAST( NULL AS SIGNED ) ) - 23 * 70 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT ( - CAST ( NULL AS INTEGER ) ) - 23 * 70 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9497
SELECT CAST( - 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-9497
SELECT CAST ( - 90 AS INTEGER )
----
-90

query II rowsort
SELECT DISTINCT + 58 col1, - 41 col2
----
58
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - COUNT( * ) + + - ( + + 13 )
----
-14

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - COUNT ( * ) + + - ( + + 13 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9500
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) + - - 45 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + - - 45 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL + + 21 + + COALESCE ( + 6, - - 51 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + + 21 + + COALESCE ( + 6, - - 51 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT + 8 - + + COUNT( ALL - - 30 )
----
7

skipif mysql # not compatible
query I rowsort label-9502
SELECT + 8 - + + COUNT ( ALL - - 30 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9503
SELECT ALL - COUNT( * ) * + COUNT( * ) * - CAST( - 23 AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - CAST ( - 23 AS INTEGER )
----
-23

query II rowsort
SELECT 9, 18 + 71 AS col2
----
9
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT + 52 + 37 + - SUM( ALL - 90 )
----
179

skipif mysql # not compatible
query I rowsort label-9505
SELECT + 52 + 37 + - SUM ( ALL - 90 )
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-9506
SELECT DISTINCT MAX( + 83 )
----
83

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT MAX ( + 83 )
----
83

query I rowsort
SELECT + 74 + + ( + + ( - - 11 ) )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT - 88 + + + COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9508
SELECT - 88 + + + COUNT ( * ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9509
SELECT - ( + AVG ( + + 83 ) ) - - - 51 + ( + 20 ) * 45 * 45 + COUNT( * ) * - + 35 + - CAST( NULL AS DECIMAL ) + - 20 * - - 31 + 61 * - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT - ( + AVG ( + + 83 ) ) - - - 51 + ( + 20 ) * 45 * 45 + COUNT ( * ) * - + 35 + - CAST ( NULL AS REAL ) + - 20 * - - 31 + 61 * - 77 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 2 AS col1, + 6 AS col0
----
2
6

query I rowsort
SELECT - 1 + + 49
----
48

query I rowsort
SELECT ALL - 30 - + 41 AS col2
----
-71

query I rowsort
SELECT - + 25 * 92
----
-2300

query I rowsort
SELECT ALL - ( 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT ALL SUM( DISTINCT + - 83 ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9515
SELECT ALL SUM ( DISTINCT + - 83 ) AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 8 * 5 * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 8 * 5 * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9517
SELECT - COUNT( * ) + - ( - + ( ( 86 ) ) ) AS col0, COUNT( * ) * - 86 AS col0
----
85
-86

skipif mysql # not compatible
query II rowsort label-9517
SELECT - COUNT ( * ) + - ( - + ( ( 86 ) ) ) AS col0, COUNT ( * ) * - 86 AS col0
----
85
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9518
SELECT ALL - 87 DIV + 6
----
-14

skipif mysql # not compatible
query I rowsort label-9518
SELECT ALL - 87 / + 6
----
-14

query I rowsort
SELECT - 42 * - 18 * + + ( + 60 )
----
45360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9520
SELECT - 89 * - CASE + + MIN( ALL 73 ) WHEN 32 + 18 + + CAST( NULL AS SIGNED ) * 73 THEN - 71 * - 55 * + + 90 + 8 - NULLIF ( + 75, + 85 + 88 ) * + 30 * - 55 + + 8 + - 69 END + - - NULLIF ( 92, 87 / + - 95 + - 38 + + + CAST( - COUNT( * ) AS DECIMAL ) + 79 + + + COUNT( * ) ) - 68 - 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT - 89 * - CASE + + MIN ( ALL 73 ) WHEN 32 + 18 + + CAST ( NULL AS INTEGER ) * 73 THEN - 71 * - 55 * + + 90 + 8 - NULLIF ( + 75, + 85 + 88 ) * + 30 * - 55 + + 8 + - 69 END + - - NULLIF ( 92, 87 / + - 95 + - 38 + + + CAST ( - COUNT ( * ) AS REAL ) + 79 + + + COUNT ( * ) ) - 68 - 73 AS col2
----
NULL

query I rowsort
SELECT CASE + + 94 WHEN - + 83 THEN + 83 * 54 WHEN - 69 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 15 * 62 col0
----
930

query I rowsort
SELECT NULLIF ( - 43, 82 ) AS col2
----
-43

query I rowsort
SELECT ALL + 24 * + 22 col1
----
528

query I rowsort
SELECT - 88 * + COALESCE ( + 0, + 11 * + 69 * 53 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT ALL - COUNT( * ) * + 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL - COUNT ( * ) * + 12 AS col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9527
SELECT ALL + COALESCE ( - 96, - COALESCE ( + 5, + + 76 + + 36, + CAST( + - CASE - + 41 WHEN 93 + + + COUNT( * ) * + - 79 * - - 86 * + COALESCE ( - 18, + - 10 ) THEN - + ( + COALESCE ( 73, + 34, ( 7 ) - 88 DIV 90 ) ) * COUNT( * ) ELSE - - 21 * - 12 * - 8 DIV + 90 END AS SIGNED ) + - COUNT( * ) + - 70 - + MIN( ALL + 51 ) * - 33 - + 69 ) + ( + - 6 ) + - 30 DIV + 80 )
----
-96

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + COALESCE ( - 96, - COALESCE ( + 5, + + 76 + + 36, + CAST ( + - CASE - + 41 WHEN 93 + + + COUNT ( * ) * + - 79 * - - 86 * + COALESCE ( - 18, + - 10 ) THEN - + ( + COALESCE ( 73, + 34, ( 7 ) - 88 / 90 ) ) * COUNT ( * ) ELSE - - 21 * - 12 * - 8 / + 90 END AS INTEGER ) + - COUNT ( * ) + - 70 - + MIN ( ALL + 51 ) * - 33 - + 69 ) + ( + - 6 ) + - 30 / + 80 )
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT DISTINCT - 98 * - CAST( NULL AS SIGNED ) / - 57 * - + CAST( NULL AS SIGNED ) * 13 * + ( + + 86 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT - 98 * - CAST ( NULL AS INTEGER ) / - 57 * - + CAST ( NULL AS INTEGER ) * 13 * + ( + + 86 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT DISTINCT + CASE 51 WHEN COUNT( * ) + + COUNT( * ) THEN - ( 4 ) ELSE + 72 + - 57 END
----
15

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT + CASE 51 WHEN COUNT ( * ) + + COUNT ( * ) THEN - ( 4 ) ELSE + 72 + - 57 END
----
15

query I rowsort
SELECT ALL + 88 * + 72 + + + 37
----
6373

query I rowsort
SELECT 16 * 84 * + 72 + - COALESCE ( 20, - 47, + ( - + 74 ) + + COALESCE ( + + 22, - 16 + + 2 * 89 + - 8 ) * - 49 ) AS col0
----
96748

query I rowsort
SELECT COALESCE ( - + 73, - 81 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT CASE + 97 WHEN 27 THEN - MAX( ALL - + 90 ) * - + 71 WHEN - COUNT( * ) / - 33 * - - 2 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9533
SELECT CASE + 97 WHEN 27 THEN - MAX ( ALL - + 90 ) * - + 71 WHEN - COUNT ( * ) / - 33 * - - 2 THEN NULL ELSE NULL END col2
----
NULL

query I rowsort
SELECT + 10 * - + 13 AS col2
----
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-9535
SELECT ALL - 10 * COUNT( 93 ) * - + 19 + - COUNT( - + 30 ) * - 0 + 85 - + 83 + + 66 AS col1, + 51 col2
----
258
51

skipif mysql # not compatible
query II rowsort label-9535
SELECT ALL - 10 * COUNT ( 93 ) * - + 19 + - COUNT ( - + 30 ) * - 0 + 85 - + 83 + + 66 AS col1, + 51 col2
----
258
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT + - COUNT( * ) + 16 + - CAST( NULL AS SIGNED ) * - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT + - COUNT ( * ) + 16 + - CAST ( NULL AS INTEGER ) * - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT DISTINCT - 27 * + - 64 + + 92 + COUNT( * ) + 37 col2
----
1858

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT - 27 * + - 64 + + 92 + COUNT ( * ) + 37 col2
----
1858

query I rowsort
SELECT - NULLIF ( 51, 13 * 58 / + AVG ( ALL - 68 ) ) AS col0
----
-51

query I rowsort
SELECT ALL 62 + - + 79 * - 42 * + 4 AS col0
----
13334

query II rowsort
SELECT ALL ( 76 ) AS col2, - 38 AS col2
----
76
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9541
SELECT ALL 89 DIV + COUNT( * ) + - + ( 81 ) DIV - 47
----
90

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL 89 / + COUNT ( * ) + - + ( 81 ) / - 47
----
90

query I rowsort
SELECT - + 14 * + 2
----
-28

query II rowsort
SELECT ALL + ( - + 88 ), + 57 * - 23 col0
----
-88
-1311

query I rowsort
SELECT DISTINCT - 1 * 81 + - - 71
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT - COALESCE ( + CASE - 11 WHEN + 28 - + 91 + - + 14 - 53 * + 39 * 46 THEN CAST( + ( 0 ) AS SIGNED ) WHEN + 96 THEN NULL ELSE + 20 END, + - 47 * - - 7 + + 31 + + 67 )
----
-20

skipif mysql # not compatible
query I rowsort label-9545
SELECT - COALESCE ( + CASE - 11 WHEN + 28 - + 91 + - + 14 - 53 * + 39 * 46 THEN CAST ( + ( 0 ) AS INTEGER ) WHEN + 96 THEN NULL ELSE + 20 END, + - 47 * - - 7 + + 31 + + 67 )
----
-20

query I rowsort
SELECT DISTINCT - 40 * + 4
----
-160

query I rowsort
SELECT + 18 * - 5
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT - 24 * COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-9548
SELECT - 24 * COUNT ( * ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT ALL - 83 * - - MIN( ALL 61 )
----
-5063

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL - 83 * - - MIN ( ALL 61 )
----
-5063

query II rowsort
SELECT 97 AS col2, 90
----
97
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9551
SELECT - MAX( DISTINCT ( - 39 ) ) - + 38 + 63 + 95 DIV + 88
----
65

skipif mysql # not compatible
query I rowsort label-9551
SELECT - MAX ( DISTINCT ( - 39 ) ) - + 38 + 63 + 95 / + 88
----
65

query I rowsort
SELECT - CASE - 77 WHEN + 73 * + 94 * + 73 * - 41 + + 66 THEN + 69 END * + 79 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9553
SELECT ALL + 34 AS col0, CASE + 21 WHEN + 95 DIV - - 6 THEN NULL ELSE + ( - - ( - - 92 ) ) DIV - 48 END + + 82 + + 66 + + + 84 * 1 * + - COUNT( * )
----
34
63

skipif mysql # not compatible
query II rowsort label-9553
SELECT ALL + 34 AS col0, CASE + 21 WHEN + 95 / - - 6 THEN NULL ELSE + ( - - ( - - 92 ) ) / - 48 END + + 82 + + 66 + + + 84 * 1 * + - COUNT ( * )
----
34
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9554
SELECT ALL + COUNT( * ) AS col1, ( - 38 ) DIV + 62
----
1
0

skipif mysql # not compatible
query II rowsort label-9554
SELECT ALL + COUNT ( * ) AS col1, ( - 38 ) / + 62
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9555
SELECT DISTINCT - 38 DIV + 23 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT - 38 / + 23 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9556
SELECT ALL + 57 DIV 90 col1
----
0

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL + 57 / 90 col1
----
0

query I rowsort
SELECT 30 * 26 - + 89
----
691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9558
SELECT - 28 * - CASE + - 12 WHEN + 32 THEN NULL WHEN + 70 + 28 + 65 + COUNT( * ) + 73 + - 82 + 19 DIV + AVG ( 99 ) + 65 * NULLIF ( COUNT( * ), - + 56 * 94 * - + 82 + + 39 * CAST( - 59 AS SIGNED ) * + 33 + + - 71 ) * + COUNT( * ) * - + 34 THEN NULL WHEN - + 39 + - + 50 THEN NULL ELSE + 76 DIV - + 8 + ( - 29 ) * + + 86 END
----
-70084

skipif mysql # not compatible
query I rowsort label-9558
SELECT - 28 * - CASE + - 12 WHEN + 32 THEN NULL WHEN + 70 + 28 + 65 + COUNT ( * ) + 73 + - 82 + 19 / + AVG ( 99 ) + 65 * NULLIF ( COUNT ( * ), - + 56 * 94 * - + 82 + + 39 * CAST ( - 59 AS INTEGER ) * + 33 + + - 71 ) * + COUNT ( * ) * - + 34 THEN NULL WHEN - + 39 + - + 50 THEN NULL ELSE + 76 / - + 8 + ( - 29 ) * + + 86 END
----
-70084

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT - 34 * 18 * - MAX( ALL + 23 )
----
14076

skipif mysql # not compatible
query I rowsort label-9559
SELECT - 34 * 18 * - MAX ( ALL + 23 )
----
14076

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9560
SELECT CAST( NULL AS SIGNED ), + ( - MIN( - + 63 ) ) AS col1
----
NULL
63

skipif mysql # not compatible
query II rowsort label-9560
SELECT CAST ( NULL AS INTEGER ), + ( - MIN ( - + 63 ) ) AS col1
----
NULL
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9561
SELECT ALL - 66 DIV - COUNT( * ) + COALESCE ( - CASE 84 WHEN - 67 * COALESCE ( + - COUNT( * ), + 73 - - - 11 ) - - 26 + + + 76 + + 49 THEN + 92 WHEN + CAST( - 77 AS SIGNED ) THEN COUNT( * ) * ( COUNT( * ) ) - MAX( DISTINCT - 68 ) + + CAST( + - 75 AS SIGNED ) ELSE - 27 * 43 * 60 - - CASE - 21 WHEN - - 63 THEN 90 WHEN + 93 * 0 THEN NULL ELSE - 71 END END, + 50 )
----
69797

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL - 66 / - COUNT ( * ) + COALESCE ( - CASE 84 WHEN - 67 * COALESCE ( + - COUNT ( * ), + 73 - - - 11 ) - - 26 + + + 76 + + 49 THEN + 92 WHEN + CAST ( - 77 AS INTEGER ) THEN COUNT ( * ) * ( COUNT ( * ) ) - MAX ( DISTINCT - 68 ) + + CAST ( + - 75 AS INTEGER ) ELSE - 27 * 43 * 60 - - CASE - 21 WHEN - - 63 THEN 90 WHEN + 93 * 0 THEN NULL ELSE - 71 END END, + 50 )
----
69797

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT + COUNT( * ) * + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT + COUNT ( * ) * + 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT - MIN( ALL 18 ) * + 46 + - 30 + + 17 + + - 89
----
-930

skipif mysql # not compatible
query I rowsort label-9563
SELECT - MIN ( ALL 18 ) * + 46 + - 30 + + 17 + + - 89
----
-930

query I rowsort
SELECT ALL + ( + 55 ) col0
----
55

query I rowsort
SELECT CASE - + 84 WHEN 39 THEN NULL WHEN + - 30 * + - 86 THEN - 92 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT - ( - - 60 ) * + - MAX( + 26 ) * + 72 * - COALESCE ( - 22, 92, - MIN( - 18 ) * + + 19 + - + 20 )
----
2471040

skipif mysql # not compatible
query I rowsort label-9566
SELECT - ( - - 60 ) * + - MAX ( + 26 ) * + 72 * - COALESCE ( - 22, 92, - MIN ( - 18 ) * + + 19 + - + 20 )
----
2471040

query I rowsort
SELECT ALL + - NULLIF ( 40, + ( 57 ) * - 21 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT + MIN( + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9568
SELECT + MIN ( + 95 ) AS col1
----
95

query I rowsort
SELECT ALL 37 * + 86 - + - 38 AS col0
----
3220

query II rowsort
SELECT ALL - + 73 AS col0, 38 AS col0
----
-73
38

query I rowsort
SELECT 23 - 34 AS col0
----
-11

query I rowsort
SELECT - 47 * + - 57 AS col0
----
2679

onlyif mysql # aggregate syntax: 
query II rowsort label-9573
SELECT + ( 89 ) + 54 AS col0, - 97 + + COUNT( + - 60 )
----
143
-96

skipif mysql # not compatible
query II rowsort label-9573
SELECT + ( 89 ) + 54 AS col0, - 97 + + COUNT ( + - 60 )
----
143
-96

query II rowsort
SELECT ALL 95 * - + 3 * 85 * + - 44 AS col1, - 83 * - - NULLIF ( + 89, - - 20 )
----
1065900
-7387

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT DISTINCT + 52 DIV - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT + 52 / - 60 AS col1
----
0

query I rowsort
SELECT DISTINCT + + 95 - 88 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9577
SELECT CAST( - 93 AS SIGNED ) * - - 95 * - COUNT( * ) + - 10 AS col0
----
8825

skipif mysql # not compatible
query I rowsort label-9577
SELECT CAST ( - 93 AS INTEGER ) * - - 95 * - COUNT ( * ) + - 10 AS col0
----
8825

onlyif mysql # aggregate syntax: 
query II rowsort label-9578
SELECT DISTINCT COUNT( * ), - 14 AS col1
----
1
-14

skipif mysql # not compatible
query II rowsort label-9578
SELECT DISTINCT COUNT ( * ), - 14 AS col1
----
1
-14

query I rowsort
SELECT ALL 62 * ( 84 )
----
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL 66 * - 69 + 57 * + COUNT( * ) * - 26 * - + 25 col0
----
32496

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL 66 * - 69 + 57 * + COUNT ( * ) * - 26 * - + 25 col0
----
32496

query III rowsort
SELECT + 45 * 31 * - 28 col2, + 66 col2, - 97
----
-39060
66
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT 41 + - - 83 - COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-9582
SELECT 41 + - - 83 - COUNT ( * )
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9583
SELECT - 19 * + - CAST( NULL AS DECIMAL ) * + - 53 + - 8 * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT - 19 * + - CAST ( NULL AS REAL ) * + - 53 + - 8 * + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9584
SELECT - - COUNT( * ), + 92 AS col1
----
1
92

skipif mysql # not compatible
query II rowsort label-9584
SELECT - - COUNT ( * ), + 92 AS col1
----
1
92

onlyif mysql # DIV for integer division: 
query II rowsort label-9585
SELECT 82 + - 20 + + + 94 DIV 50 DIV + 68 + + + 45 * - 18 - - 61 DIV 30 AS col0, 88 AS col2
----
-746
88

skipif mysql # not compatible
query II rowsort label-9585
SELECT 82 + - 20 + + + 94 / 50 / + 68 + + + 45 * - 18 - - 61 / 30 AS col0, 88 AS col2
----
-746
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT DISTINCT - ( + 76 ) + - 99 + - ( + + COUNT( * ) ) * - + MIN( ALL - 23 ) + + 93
----
-105

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT - ( + 76 ) + - 99 + - ( + + COUNT ( * ) ) * - + MIN ( ALL - 23 ) + + 93
----
-105

query I rowsort
SELECT DISTINCT 5 + + 90 + + + 17 AS col2
----
112

query I rowsort
SELECT NULLIF ( + 4, 33 ) + ( - - 46 )
----
50

query I rowsort
SELECT 33 * + 9 * + 34 * + 2 AS col2
----
20196

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT DISTINCT COUNT( * ) + - COUNT( * ) * - - ( + 87 )
----
-86

skipif mysql # not compatible
query I rowsort label-9590
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) * - - ( + 87 )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT ALL 99 + - CAST( NULL AS SIGNED ) * - ( 19 ) + + + 99 + - 36 / + ( + 71 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT ALL 99 + - CAST ( NULL AS INTEGER ) * - ( 19 ) + + + 99 + - 36 / + ( + 71 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - - 52, + - 34 )
----
-52

query I rowsort
SELECT ALL + 90 / + CASE - 38 WHEN 43 + + 83 THEN + + 98 - 1 + - 9 * - 89 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9594
SELECT DISTINCT + - 47 DIV + COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT + - 47 / + COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT COUNT( * ) * + 30 * - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9595
SELECT COUNT ( * ) * + 30 * - COUNT ( * ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + 4 * - - NULLIF ( - 45, COUNT( * ) * + 59 ) + + + 84
----
-96

skipif mysql # not compatible
query I rowsort label-9596
SELECT + 4 * - - NULLIF ( - 45, COUNT ( * ) * + 59 ) + + + 84
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT - 97 - - + CASE - 93 WHEN + + 8 THEN - COUNT( * ) ELSE NULL END / - + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9597
SELECT - 97 - - + CASE - 93 WHEN + + 8 THEN - COUNT ( * ) ELSE NULL END / - + 45 AS col0
----
NULL

query I rowsort
SELECT + 14 * - 45 * 34 + - NULLIF ( - + 67, - + 67 * AVG ( + 28 ) )
----
-21353

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9599
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) AS col2, + 18 * - 88 - 89
----
NULL
-1673

skipif mysql # not compatible
query II rowsort label-9599
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) AS col2, + 18 * - 88 - 89
----
NULL
-1673

onlyif mysql # aggregate syntax: 
query I rowsort label-9600
SELECT + CASE + 23 WHEN 78 THEN 71 + + COALESCE ( + 93, - + COUNT( * ) ) / - + 84 END + + 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT + CASE + 23 WHEN 78 THEN 71 + + COALESCE ( + 93, - + COUNT ( * ) ) / - + 84 END + + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT + NULLIF ( 99, - 33 * AVG ( ALL + ( - - NULLIF ( + 31, 68 ) ) ) * + 23 ) * + 68 + - 43 + - ( COUNT( * ) ) AS col2
----
6688

skipif mysql # not compatible
query I rowsort label-9601
SELECT + NULLIF ( 99, - 33 * AVG ( ALL + ( - - NULLIF ( + 31, 68 ) ) ) * + 23 ) * + 68 + - 43 + - ( COUNT ( * ) ) AS col2
----
6688

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9602
SELECT + COALESCE ( 85, + - MAX( DISTINCT - 79 ) DIV - 93 + - MIN( ALL + 68 ) ) * - 90 + 97
----
-7553

skipif mysql # not compatible
query I rowsort label-9602
SELECT + COALESCE ( 85, + - MAX ( DISTINCT - 79 ) / - 93 + - MIN ( ALL + 68 ) ) * - 90 + 97
----
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT + COUNT( * ) + 20 * - 43 + + COALESCE ( 4, COUNT( * ) * 29 )
----
-855

skipif mysql # not compatible
query I rowsort label-9603
SELECT + COUNT ( * ) + 20 * - 43 + + COALESCE ( 4, COUNT ( * ) * 29 )
----
-855

query II rowsort
SELECT 55 * + 11 col2, + 85 AS col0
----
605
85

query I rowsort
SELECT 99 + + 25
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT ALL CASE - ( + + MAX( ALL 7 ) ) WHEN - 57 THEN - 22 END * + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9606
SELECT ALL CASE - ( + + MAX ( ALL 7 ) ) WHEN - 57 THEN - 22 END * + 0 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9607
SELECT ALL NULLIF ( - CAST( NULL AS DECIMAL ), - 8 ) * - 56 * + 95 + - + COUNT( * ) + - + 48 + - + COUNT( * ) AS col1, + 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-9607
SELECT ALL NULLIF ( - CAST ( NULL AS REAL ), - 8 ) * - 56 * + 95 + - + COUNT ( * ) + - + 48 + - + COUNT ( * ) AS col1, + 11
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL + 65 + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL + 65 + - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL + SUM( DISTINCT + 28 ) * ( 37 )
----
1036

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL + SUM ( DISTINCT + 28 ) * ( 37 )
----
1036

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT ALL COUNT( * ) + 94 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL COUNT ( * ) + 94 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL + 39 + COUNT( * ) - + + 72 * + 5 + + - 86 AS col2
----
-406

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL + 39 + COUNT ( * ) - + + 72 * + 5 + + - 86 AS col2
----
-406

query I rowsort
SELECT DISTINCT ( + 95 ) + 53
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9613
SELECT ALL SUM( ALL - 0 ) + 42 + - 19 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL SUM ( ALL - 0 ) + 42 + - 19 / - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 46 AS col0, NULLIF ( + + 40, + - 93 ) AS col2
----
46
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT - MIN( - + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-9615
SELECT - MIN ( - + 60 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT 46 / - - CAST( NULL AS SIGNED ) * COUNT( * ) * - 82 * 84 * - - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT 46 / - - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 82 * 84 * - - 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT 17 - + 87 * - + 32 * + COUNT( * )
----
2801

skipif mysql # not compatible
query I rowsort label-9617
SELECT 17 - + 87 * - + 32 * + COUNT ( * )
----
2801

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT COUNT( * ) - - 25
----
26

skipif mysql # not compatible
query I rowsort label-9618
SELECT COUNT ( * ) - - 25
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT - MAX( DISTINCT + CAST( - 45 AS SIGNED ) )
----
45

skipif mysql # not compatible
query I rowsort label-9619
SELECT - MAX ( DISTINCT + CAST ( - 45 AS INTEGER ) )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9620
SELECT ALL - 18 * NULLIF ( - 31, ( + ( + 77 ) ) + - 85 + - 46 ) * - 63 - COUNT( * ) AS col0, + 71
----
-35155
71

skipif mysql # not compatible
query II rowsort label-9620
SELECT ALL - 18 * NULLIF ( - 31, ( + ( + 77 ) ) + - 85 + - 46 ) * - 63 - COUNT ( * ) AS col0, + 71
----
-35155
71

query II rowsort
SELECT CASE 18 WHEN - 66 * - + 50 THEN NULL WHEN - - 98 * + AVG ( - - 50 ) THEN + + 61 ELSE - 11 * - 88 END AS col2, 58 AS col0
----
968
58

query I rowsort
SELECT ALL - 78 col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL 44 * - COUNT( * ) - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL 44 * - COUNT ( * ) - COUNT ( * )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT ( - 76 ) + 35 - + - 4 - + - 95 + + - 10 DIV - + 43
----
58

skipif mysql # not compatible
query I rowsort label-9624
SELECT ( - 76 ) + 35 - + - 4 - + - 95 + + - 10 / - + 43
----
58

query I rowsort
SELECT DISTINCT + 35 * - 37 - + 14 AS col0
----
-1309

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT ALL 81 * 29 - - 22 DIV 52
----
2349

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL 81 * 29 - - 22 / 52
----
2349

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT - ( - CASE - 97 WHEN 20 + - 92 THEN 97 - COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE NULL END ) * - MIN( DISTINCT 33 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT - ( - CASE - 97 WHEN 20 + - 92 THEN 97 - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE NULL END ) * - MIN ( DISTINCT 33 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT COUNT( 50 )
----
1

skipif mysql # not compatible
query I rowsort label-9628
SELECT COUNT ( 50 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT COUNT( * ) * + 49 + + 38
----
87

skipif mysql # not compatible
query I rowsort label-9629
SELECT COUNT ( * ) * + 49 + + 38
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9630
SELECT DISTINCT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - ( + 26 ), 53 + 57 )
----
-26

query I rowsort
SELECT + ( NULLIF ( - ( - 55 ), 45 ) ) * 49
----
2695

query I rowsort
SELECT DISTINCT - 41 * 96
----
-3936

onlyif mysql # DIV for integer division: 
query I rowsort label-9634
SELECT - 14 DIV 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9634
SELECT - 14 / 45 AS col0
----
0

query I rowsort
SELECT 32 * + 97 + 28 AS col0
----
3132

query I rowsort
SELECT - 31 * + ( 28 ) AS col0
----
-868

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT ALL 37 DIV - 44 col0
----
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL 37 / - 44 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT + CASE 30 WHEN COUNT( * ) THEN NULL WHEN + 76 THEN + 61 + + NULLIF ( 11, + 5 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT + CASE 30 WHEN COUNT ( * ) THEN NULL WHEN + 76 THEN + 61 + + NULLIF ( 11, + 5 ) END
----
NULL

query I rowsort
SELECT + 23 * - 82 - ( + 84 - 67 )
----
-1903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9640
SELECT + 78 DIV ( COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-9640
SELECT + 78 / ( COUNT ( * ) )
----
78

query I rowsort
SELECT - 95 - 31 AS col1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT DISTINCT - 24 * - COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9642
SELECT DISTINCT - 24 * - COUNT ( * ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT ALL + MAX( 86 ) + 24
----
110

skipif mysql # not compatible
query I rowsort label-9643
SELECT ALL + MAX ( 86 ) + 24
----
110

query I rowsort
SELECT - ( + 99 ) + + 55
----
-44

query I rowsort
SELECT DISTINCT + 52 + 65
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT ALL - CASE + AVG ( DISTINCT 45 ) WHEN 48 THEN 8 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - CASE + AVG ( DISTINCT 45 ) WHEN 48 THEN 8 END + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9647
SELECT ALL + 70 + 91 * CASE - 8 + CAST( 28 AS SIGNED ) WHEN 4 + COALESCE ( 70, 77 / 15 ) THEN NULL WHEN 44 THEN NULL ELSE + NULLIF ( - CAST( NULL AS SIGNED ), AVG ( ALL 73 ) ) / - COUNT( * ) + 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + 70 + 91 * CASE - 8 + CAST ( 28 AS INTEGER ) WHEN 4 + COALESCE ( 70, 77 / 15 ) THEN NULL WHEN 44 THEN NULL ELSE + NULLIF ( - CAST ( NULL AS INTEGER ), AVG ( ALL 73 ) ) / - COUNT ( * ) + 38 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT - COUNT( - 95 ) * - COUNT( * ) - - 96
----
97

skipif mysql # not compatible
query I rowsort label-9648
SELECT - COUNT ( - 95 ) * - COUNT ( * ) - - 96
----
97

query I rowsort
SELECT ALL COALESCE ( - 92, + 62, - 46 * + 68 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT - COUNT( * ) + 76 * + COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-9650
SELECT - COUNT ( * ) + 76 * + COUNT ( * )
----
75

query I rowsort
SELECT - 17 - 15
----
-32

query I rowsort
SELECT ALL - 98 + 10 AS col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9653
SELECT - SUM( DISTINCT + CAST( 38 AS SIGNED ) ) + COUNT( 82 )
----
-37

skipif mysql # not compatible
query I rowsort label-9653
SELECT - SUM ( DISTINCT + CAST ( 38 AS INTEGER ) ) + COUNT ( 82 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT ALL + CAST( NULL AS SIGNED ) + + 99 * 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL + CAST ( NULL AS INTEGER ) + + 99 * 93 AS col1
----
NULL

query I rowsort
SELECT - 5 * - 57
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT - 81 + - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9656
SELECT - 81 + - COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT - MIN( DISTINCT 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9657
SELECT - MIN ( DISTINCT 72 ) AS col1
----
-72

query I rowsort
SELECT ALL - NULLIF ( 85, + COALESCE ( + 94, 45 * + 47 - 47 ) + 27 ) * + 68 AS col2
----
-5780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9659
SELECT - 58 + CAST( + COUNT( * ) + - 24 * + ( + COUNT( * ) * CASE 56 WHEN - 33 THEN COUNT( * ) ELSE NULL END ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT - 58 + CAST ( + COUNT ( * ) + - 24 * + ( + COUNT ( * ) * CASE 56 WHEN - 33 THEN COUNT ( * ) ELSE NULL END ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 34 + - 51 AS col0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT ALL 46 - - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL 46 - - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT - MIN( DISTINCT 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-9662
SELECT - MIN ( DISTINCT 14 ) AS col0
----
-14

query I rowsort
SELECT ALL - 8 * - 25 AS col2
----
200

query I rowsort
SELECT - 39 + - 22 col1
----
-61

query I rowsort
SELECT - COALESCE ( 25, 21 )
----
-25

query I rowsort
SELECT DISTINCT - CASE + 1 WHEN + 35 THEN NULL WHEN 38 THEN 36 END * - 11 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT ALL CAST( 43 AS SIGNED ) col2
----
43

skipif mysql # not compatible
query I rowsort label-9667
SELECT ALL CAST ( 43 AS INTEGER ) col2
----
43

query I rowsort
SELECT ( + 26 ) * 96 + 83
----
2579

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT - 92 DIV 98 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9669
SELECT - 92 / 98 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9670
SELECT + MIN( + CAST( ( 38 ) AS SIGNED ) ) * 75
----
2850

skipif mysql # not compatible
query I rowsort label-9670
SELECT + MIN ( + CAST ( ( 38 ) AS INTEGER ) ) * 75
----
2850

onlyif mysql # DIV for integer division: 
query I rowsort label-9671
SELECT 36 DIV ( 86 ) + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-9671
SELECT 36 / ( 86 ) + 76 AS col1
----
76

query I rowsort
SELECT + 70 * + 32
----
2240

query I rowsort
SELECT + + 62 + + ( + 3 )
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9674
SELECT ALL + COALESCE ( COUNT( * ), + 68 DIV - 3 )
----
1

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL + COALESCE ( COUNT ( * ), + 68 / - 3 )
----
1

query I rowsort
SELECT DISTINCT + + COALESCE ( - 76, 92 - - 25 ) AS col2
----
-76

query I rowsort
SELECT DISTINCT + - COALESCE ( 64, + 62 ) col1
----
-64

query I rowsort
SELECT ALL + ( - ( + 38 ) ) AS col1
----
-38

query I rowsort
SELECT DISTINCT + NULLIF ( - 19, 57 )
----
-19

query I rowsort
SELECT DISTINCT 84 * - 12
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT DISTINCT - 73 * - CASE - 81 WHEN - COUNT( * ) THEN + 50 WHEN + 75 THEN 99 * ( 97 ) END + COUNT( * ) * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT - 73 * - CASE - 81 WHEN - COUNT ( * ) THEN + 50 WHEN + 75 THEN 99 * ( 97 ) END + COUNT ( * ) * 8 AS col0
----
NULL

query I rowsort
SELECT ALL 33 * + 49 AS col1
----
1617

query I rowsort
SELECT + - 35 + 85 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT - COUNT( * ) * ( - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT - COUNT ( * ) * ( - 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT + 54 * - 37 + COALESCE ( 81, + 26, COUNT( * ) ) AS col2
----
-1917

skipif mysql # not compatible
query I rowsort label-9684
SELECT + 54 * - 37 + COALESCE ( 81, + 26, COUNT ( * ) ) AS col2
----
-1917

query I rowsort
SELECT - + ( - 31 ) - - 94 * 57
----
5389

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT + + COUNT( DISTINCT 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9686
SELECT + + COUNT ( DISTINCT 89 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL + + 33 * - ( + 5 * COUNT( * ) ) + + 14 AS col1
----
-151

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL + + 33 * - ( + 5 * COUNT ( * ) ) + + 14 AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT + - 85 + COUNT( - 23 ) * 10 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-9688
SELECT + - 85 + COUNT ( - 23 ) * 10 AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT ALL + + 0 * - NULLIF ( - ( 68 ), COUNT( * ) * 31 ) + 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL + + 0 * - NULLIF ( - ( 68 ), COUNT ( * ) * 31 ) + 98 AS col0
----
98

query I rowsort
SELECT DISTINCT 17 * - 97 col1
----
-1649

query I rowsort
SELECT ALL + + 1 * + 68 + 95
----
163

query I rowsort
SELECT ALL 83 * - 95 + - 43 AS col2
----
-7928

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT DISTINCT + NULLIF ( 20, 24 ) * + 71 + + CASE + ( SUM( - 36 ) ) WHEN ( + 43 ) - 40 THEN COALESCE ( - ( 57 ), + 0 - - 29, ( + ( 9 ) ) * 55, + 64 / + AVG ( ALL - 67 ) + COUNT( * ) ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT + NULLIF ( 20, 24 ) * + 71 + + CASE + ( SUM ( - 36 ) ) WHEN ( + 43 ) - 40 THEN COALESCE ( - ( 57 ), + 0 - - 29, ( + ( 9 ) ) * 55, + 64 / + AVG ( ALL - 67 ) + COUNT ( * ) ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9694
SELECT + CAST( NULL AS SIGNED ) * + COALESCE ( 70, 71, 95 / COUNT( * ), COALESCE ( ( - 22 ), SUM( ALL + CASE WHEN NOT ( NULLIF ( 81, + 81 ) ) <> NULL THEN NULL ELSE + ( ( - 10 ) ) + + 42 END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9694
SELECT + CAST ( NULL AS INTEGER ) * + COALESCE ( 70, 71, 95 / COUNT ( * ), COALESCE ( ( - 22 ), SUM ( ALL + CASE WHEN NOT ( NULLIF ( 81, + 81 ) ) <> NULL THEN NULL ELSE + ( ( - 10 ) ) + + 42 END ) ) )
----
NULL

query I rowsort
SELECT - 18 * - - 97 * + 14 + 77 * 57 AS col0
----
-20055

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT - 94 + + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-9696
SELECT - 94 + + COUNT ( * )
----
-93

query I rowsort
SELECT + 6 * - - ( 50 ) col1
----
300

query I rowsort
SELECT DISTINCT - 94 * + 95
----
-8930

query I rowsort
SELECT + 82 * + 83
----
6806

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9700
SELECT ALL - CASE - - CAST( NULL AS DECIMAL ) WHEN + 85 / + ( - ( 4 ) ) THEN - 79 ELSE NULL END * + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL - CASE - - CAST ( NULL AS REAL ) WHEN + 85 / + ( - ( 4 ) ) THEN - 79 ELSE NULL END * + 38
----
NULL

query I rowsort
SELECT DISTINCT + 21 - 58
----
-37

query I rowsort
SELECT ALL ( + - 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL - 3 - + COUNT( * ) * 27
----
-30

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - 3 - + COUNT ( * ) * 27
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - 52 * - - SUM( 74 )
----
-3848

skipif mysql # not compatible
query I rowsort label-9704
SELECT - 52 * - - SUM ( 74 )
----
-3848

query I rowsort
SELECT ALL - NULLIF ( - - 73, 73 ) * 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL CASE - CAST( + 87 AS SIGNED ) WHEN + SUM( - 0 ) THEN NULL WHEN + 22 * COUNT( * ) THEN NULL WHEN 47 THEN NULL ELSE + COUNT( * ) END col2
----
1

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL CASE - CAST ( + 87 AS INTEGER ) WHEN + SUM ( - 0 ) THEN NULL WHEN + 22 * COUNT ( * ) THEN NULL WHEN 47 THEN NULL ELSE + COUNT ( * ) END col2
----
1

query I rowsort
SELECT DISTINCT - ( + + ( 83 ) ) - 83 AS col1
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT + 98 + 34 + - COUNT( * ) * 32
----
100

skipif mysql # not compatible
query I rowsort label-9708
SELECT + 98 + 34 + - COUNT ( * ) * 32
----
100

query I rowsort
SELECT 32 * + 23
----
736

query I rowsort
SELECT 68 + + - 69 AS col2
----
-1

query I rowsort
SELECT 51 - + 82 AS col2
----
-31

query I rowsort
SELECT 87 * - 14
----
-1218

query I rowsort
SELECT 43 * + 10 * - 50 AS col2
----
-21500

query I rowsort
SELECT + 98 - - 5 AS col2
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT ALL + NULLIF ( + COUNT( ALL - 5 ), NULLIF ( 10, + 87 ) ) * COALESCE ( + 54, - 17, - 77 )
----
54

skipif mysql # not compatible
query I rowsort label-9715
SELECT ALL + NULLIF ( + COUNT ( ALL - 5 ), NULLIF ( 10, + 87 ) ) * COALESCE ( + 54, - 17, - 77 )
----
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9716
SELECT 36 DIV - CAST( + 26 AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9716
SELECT 36 / - CAST ( + 26 AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9717
SELECT ALL - CAST( NULL AS SIGNED ) * - 62 + 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL - CAST ( NULL AS INTEGER ) * - 62 + 15 AS col1
----
NULL

query I rowsort
SELECT ALL 60 + 53 + - 28
----
85

query I rowsort
SELECT DISTINCT - - 86 * + + 37 * 46
----
146372

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT DISTINCT + 44 + + 1 / + CASE 44 WHEN 78 THEN + COALESCE ( - ( 69 ), COUNT( - ( 98 ) ), 58 ) + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT + 44 + + 1 / + CASE 44 WHEN 78 THEN + COALESCE ( - ( 69 ), COUNT ( - ( 98 ) ), 58 ) + 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT ALL - 86 * CASE - 16 WHEN COALESCE ( 69, + 5 + MAX( ALL 4 + 58 * 23 ), + 56 ) - - 38 THEN + 7 - 46 * 45 END + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL - 86 * CASE - 16 WHEN COALESCE ( 69, + 5 + MAX ( ALL 4 + 58 * 23 ), + 56 ) - - 38 THEN + 7 - 46 * 45 END + - 92
----
NULL

query I rowsort
SELECT DISTINCT + 28 + - 44
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + - COALESCE ( - 36, MIN( - 77 ), 83, COUNT( * ) )
----
36

skipif mysql # not compatible
query I rowsort label-9723
SELECT + - COALESCE ( - 36, MIN ( - 77 ), 83, COUNT ( * ) )
----
36

query I rowsort
SELECT ALL - 95 + - 86 AS col0
----
-181

query I rowsort
SELECT DISTINCT 44 + - 58
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT + 52 * + COUNT( * ) + 37 * - NULLIF ( ( - 33 ), - COUNT( * ) ) AS col2
----
1273

skipif mysql # not compatible
query I rowsort label-9726
SELECT + 52 * + COUNT ( * ) + 37 * - NULLIF ( ( - 33 ), - COUNT ( * ) ) AS col2
----
1273

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT ALL - COUNT( + 26 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - COUNT ( + 26 ) col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9728
SELECT + 23 DIV 17
----
1

skipif mysql # not compatible
query I rowsort label-9728
SELECT + 23 / 17
----
1

query I rowsort
SELECT ALL 62 + - + 68 + 96
----
90

query I rowsort
SELECT ALL - 34 + 82 + 94 AS col1
----
142

query I rowsort
SELECT ALL 89 + - - 76 col2
----
165

query I rowsort
SELECT 79 * - 38 + + 87
----
-2915

query I rowsort
SELECT - 72 * - - 67
----
-4824

query I rowsort
SELECT ALL 24 + + 53 AS col2
----
77

query II rowsort
SELECT 49 AS col1, - 6 AS col2
----
49
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT - 77 * + 6 - - CAST( + 28 AS SIGNED )
----
-434

skipif mysql # not compatible
query I rowsort label-9736
SELECT - 77 * + 6 - - CAST ( + 28 AS INTEGER )
----
-434

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT 17 + - - NULLIF ( + ( 72 ), + COUNT( * ) + - COUNT( * ) ) * 16 AS col1
----
1169

skipif mysql # not compatible
query I rowsort label-9737
SELECT 17 + - - NULLIF ( + ( 72 ), + COUNT ( * ) + - COUNT ( * ) ) * 16 AS col1
----
1169

query I rowsort
SELECT ( + 52 ) + - + 33 + - NULLIF ( 65, AVG ( ALL 6 ) ) AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9739
SELECT DISTINCT COUNT( * ) * + 34
----
34

skipif mysql # not compatible
query I rowsort label-9739
SELECT DISTINCT COUNT ( * ) * + 34
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9740
SELECT 44 * + + 59 * - - 85 * - COUNT( * ) + 26 * - CAST( + 73 AS SIGNED ) AS col2
----
-222558

skipif mysql # not compatible
query I rowsort label-9740
SELECT 44 * + + 59 * - - 85 * - COUNT ( * ) + 26 * - CAST ( + 73 AS INTEGER ) AS col2
----
-222558

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT ALL COUNT( * ) * + 36
----
36

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL COUNT ( * ) * + 36
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9742
SELECT COUNT( * ) * - CASE WHEN ( + 50 ) NOT IN ( + 16 ) THEN NULL ELSE MIN( 54 ) + 94 * SUM( - 68 + + CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9742
SELECT COUNT ( * ) * - CASE WHEN ( + 50 ) NOT IN ( + 16 ) THEN NULL ELSE MIN ( 54 ) + 94 * SUM ( - 68 + + CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT DISTINCT + 62 DIV - - 66
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT DISTINCT + 62 / - - 66
----
0

query II rowsort
SELECT DISTINCT 52 col2, + 22 col2
----
52
22

query II rowsort
SELECT ALL 4 AS col1, - 50
----
4
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9746
SELECT COUNT( * ) + - 98 * 10 + - 34 DIV 90
----
-979

skipif mysql # not compatible
query I rowsort label-9746
SELECT COUNT ( * ) + - 98 * 10 + - 34 / 90
----
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT COUNT( * ) / CASE + + COALESCE ( 46, 98, 94 * COUNT( * ), COUNT( * ) ) WHEN 84 THEN NULL WHEN + COUNT( ALL 65 ) THEN NULL WHEN 59 THEN AVG ( + 26 ) + - 35 / CASE 2 WHEN 88 THEN NULL WHEN 93 THEN NULL WHEN + 70 THEN + 33 * + 43 ELSE 54 END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9747
SELECT COUNT ( * ) / CASE + + COALESCE ( 46, 98, 94 * COUNT ( * ), COUNT ( * ) ) WHEN 84 THEN NULL WHEN + COUNT ( ALL 65 ) THEN NULL WHEN 59 THEN AVG ( + 26 ) + - 35 / CASE 2 WHEN 88 THEN NULL WHEN 93 THEN NULL WHEN + 70 THEN + 33 * + 43 ELSE 54 END ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT 68 * COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-9748
SELECT 68 * COUNT ( * )
----
68

query I rowsort
SELECT 77 * - 36 AS col0
----
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-9750
SELECT ( + NULLIF ( 22, - COUNT( * ) ) ) + + 20
----
42

skipif mysql # not compatible
query I rowsort label-9750
SELECT ( + NULLIF ( 22, - COUNT ( * ) ) ) + + 20
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9751
SELECT ALL ( - ( 39 ) ) DIV + SUM( ALL + ( + 14 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL ( - ( 39 ) ) / + SUM ( ALL + ( + 14 ) )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9752
SELECT ( 78 ) DIV - 37 - + 5 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9752
SELECT ( 78 ) / - 37 - + 5 AS col1
----
-7

query I rowsort
SELECT 61 + + 58
----
119

query I rowsort
SELECT ALL - 73 * - 18
----
1314

query I rowsort
SELECT 67 * - - 30 * + + 83 * ( - 52 * ( 33 ) ) AS col1
----
-286280280

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL 61 + COALESCE ( - 5, + COUNT( * ) ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL 61 + COALESCE ( - 5, + COUNT ( * ) ) AS col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT ALL 65 + + 8 DIV + 5 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL 65 + + 8 / + 5 AS col0
----
66

query I rowsort
SELECT DISTINCT + ( + 52 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9759
SELECT ALL - 1 + 3 + 5 / AVG ( ALL + CAST( NULLIF ( CAST( - 16 AS SIGNED ), CAST( NULL AS SIGNED ) ) AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL - 1 + 3 + 5 / AVG ( ALL + CAST ( NULLIF ( CAST ( - 16 AS INTEGER ), CAST ( NULL AS INTEGER ) ) AS REAL ) ) AS col2
----
1

query I rowsort
SELECT 50 + + 43 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9761
SELECT ALL - CAST( 61 AS SIGNED ) * + COUNT( * ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL - CAST ( 61 AS INTEGER ) * + COUNT ( * ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT 38 + + - COUNT( * ) * - + 48 col0
----
86

skipif mysql # not compatible
query I rowsort label-9762
SELECT 38 + + - COUNT ( * ) * - + 48 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT MAX( DISTINCT - 63 ) * - + 8
----
504

skipif mysql # not compatible
query I rowsort label-9763
SELECT MAX ( DISTINCT - 63 ) * - + 8
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT MAX( - + 88 ) + 98
----
10

skipif mysql # not compatible
query I rowsort label-9764
SELECT MAX ( - + 88 ) + 98
----
10

query I rowsort
SELECT ALL - NULLIF ( - 25, 87 )
----
25

query I rowsort
SELECT ALL + 99 + - - 31
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-9767
SELECT + - COUNT( * ) AS col0, - 43
----
-1
-43

skipif mysql # not compatible
query II rowsort label-9767
SELECT + - COUNT ( * ) AS col0, - 43
----
-1
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-9768
SELECT ALL - 20 AS col1, + COUNT( * ) AS col1
----
-20
1

skipif mysql # not compatible
query II rowsort label-9768
SELECT ALL - 20 AS col1, + COUNT ( * ) AS col1
----
-20
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT 7 + + - 14 + + + COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-9769
SELECT 7 + + - 14 + + + COUNT ( * ) col2
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9770
SELECT ALL + - COUNT( * ) * 33 * + COUNT( * ) DIV 60
----
0

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL + - COUNT ( * ) * 33 * + COUNT ( * ) / 60
----
0

query I rowsort
SELECT - - 43 * + 90 + - - 58 AS col1
----
3928

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL - COUNT( DISTINCT 6 )
----
-1

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL - COUNT ( DISTINCT 6 )
----
-1

query I rowsort
SELECT DISTINCT 29 * + 28 + + 48 - - ( 7 ) * 51
----
1217

query I rowsort
SELECT DISTINCT + + 41 + + + 18 * - 78
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT DISTINCT 78 - + MIN( ALL 0 )
----
78

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT 78 - + MIN ( ALL 0 )
----
78

query I rowsort
SELECT 45 * + CASE + 19 WHEN 22 THEN + 82 WHEN - 60 * - 46 THEN - 31 * - 48 + - 6 * - 57 END
----
NULL

query I rowsort
SELECT ALL + + 16 * + - 60 AS col2
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + 70 + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-9778
SELECT + 70 + COUNT ( * )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9779
SELECT 9 + - - CAST( 89 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-9779
SELECT 9 + - - CAST ( 89 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT 11 * - - NULLIF ( COUNT( * ), + 95 * + COALESCE ( + SUM( ALL 61 ) * 49 + 95, + 3, 58 + - 53 ) )
----
11

skipif mysql # not compatible
query I rowsort label-9780
SELECT 11 * - - NULLIF ( COUNT ( * ), + 95 * + COALESCE ( + SUM ( ALL 61 ) * 49 + 95, + 3, 58 + - 53 ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT COALESCE ( - - 19, 78, 90, + COUNT( * ) ) * 93 AS col2
----
1767

skipif mysql # not compatible
query I rowsort label-9781
SELECT COALESCE ( - - 19, 78, 90, + COUNT ( * ) ) * 93 AS col2
----
1767

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9782
SELECT ALL - CAST( - + ( CAST( + 86 AS SIGNED ) ) AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL - CAST ( - + ( CAST ( + 86 AS INTEGER ) ) AS INTEGER ) AS col0
----
86

query I rowsort
SELECT ALL - 48 * + 26
----
-1248

query I rowsort
SELECT DISTINCT - ( - 86 ) AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT ALL 29 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL 29 / - 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT NULLIF ( - + 38, + CAST( NULL AS SIGNED ) ) * 31 + - 68
----
-1246

skipif mysql # not compatible
query I rowsort label-9786
SELECT NULLIF ( - + 38, + CAST ( NULL AS INTEGER ) ) * 31 + - 68
----
-1246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9787
SELECT ALL - CAST( 51 AS SIGNED ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL - CAST ( 51 AS INTEGER ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT DISTINCT - COUNT( - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT - COUNT ( - 61 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9789
SELECT 46 * 51 DIV - 89 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-9789
SELECT 46 * 51 / - 89 AS col1
----
-26

query I rowsort
SELECT ALL 23 * + 86
----
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT 76 * + COALESCE ( + + 66, 94 * - COUNT( * ) - - 59 ) + 5 AS col1
----
5021

skipif mysql # not compatible
query I rowsort label-9791
SELECT 76 * + COALESCE ( + + 66, 94 * - COUNT ( * ) - - 59 ) + 5 AS col1
----
5021

query I rowsort
SELECT DISTINCT 69 * + 24 * - - 85 * 25 * - 84
----
-295596000

query I rowsort
SELECT - 75 * + 94 AS col1
----
-7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9794
SELECT ALL 87 * + NULLIF ( - NULLIF ( - 57, - 74 + 39 ), CAST( 3 AS SIGNED ) )
----
4959

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 87 * + NULLIF ( - NULLIF ( - 57, - 74 + 39 ), CAST ( 3 AS INTEGER ) )
----
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT - COALESCE ( - NULLIF ( + + NULLIF ( + MAX( - 23 ), - ( ( 84 ) ) * 88 ), 45 * + 48 + 83 ), + 90 * - 95 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-9795
SELECT - COALESCE ( - NULLIF ( + + NULLIF ( + MAX ( - 23 ), - ( ( 84 ) ) * 88 ), 45 * + 48 + 83 ), + 90 * - 95 ) AS col2
----
-23

query I rowsort
SELECT ALL 63 + - 54 + 47
----
56

query I rowsort
SELECT DISTINCT 22 * + - 28
----
-616

onlyif mysql # aggregate syntax: 
query II rowsort label-9798
SELECT - SUM( ALL 84 ) AS col1, COUNT( * ) * 60
----
-84
60

skipif mysql # not compatible
query II rowsort label-9798
SELECT - SUM ( ALL 84 ) AS col1, COUNT ( * ) * 60
----
-84
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT DISTINCT 74 + - COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT 74 + - COUNT ( * ) AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT DISTINCT 86 * - + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT 86 * - + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 88 + 67 + - 39 + + - 59
----
-119

query I rowsort
SELECT ALL + + 61 + 57
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT 76 + - 22 + 9 * + - COUNT( 56 ) col1
----
45

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT 76 + - 22 + 9 * + - COUNT ( 56 ) col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT + - 55 + + + 34 * - ( + + 34 ) + + SUM( ALL 71 + + 22 )
----
-1118

skipif mysql # not compatible
query I rowsort label-9804
SELECT + - 55 + + + 34 * - ( + + 34 ) + + SUM ( ALL 71 + + 22 )
----
-1118

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT DISTINCT + 86 DIV - - 96 + - + 12 * + 50 * + 79 + - 86 * - 63 AS col2
----
-41982

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + 86 / - - 96 + - + 12 * + 50 * + 79 + - 86 * - 63 AS col2
----
-41982

query I rowsort
SELECT ALL 95 + + - 48 AS col0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT ALL + CASE - 98 WHEN 13 * - - 59 + - 64 THEN 4 DIV - MAX( + 6 DIV - 23 ) WHEN 36 * 46 THEN NULL ELSE 39 * ( 30 ) END + 19 * - 76
----
-274

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL + CASE - 98 WHEN 13 * - - 59 + - 64 THEN 4 / - MAX ( + 6 / - 23 ) WHEN 36 * 46 THEN NULL ELSE 39 * ( 30 ) END + 19 * - 76
----
-274

onlyif mysql # DIV for integer division: 
query I rowsort label-9808
SELECT + 78 DIV + 86 * + 32 * + 93
----
0

skipif mysql # not compatible
query I rowsort label-9808
SELECT + 78 / + 86 * + 32 * + 93
----
0

query I rowsort
SELECT ALL + 67 + - + 35 + + + 34
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT + COUNT( * ) * 79 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT + COUNT ( * ) * 79 AS col2
----
79

query I rowsort
SELECT DISTINCT ( 52 ) * + 36 * + 16
----
29952

query I rowsort
SELECT - - 6 * 89 * ( + 79 ) * - 46 AS col0
----
-1940556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9813
SELECT DISTINCT - - 49 * CAST( 67 AS SIGNED ) - - 55
----
3338

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT - - 49 * CAST ( 67 AS INTEGER ) - - 55
----
3338

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9814
SELECT - - CAST( - 39 AS DECIMAL ) / - + CASE + NULLIF ( 60, 18 ) WHEN 72 THEN - COUNT( * ) WHEN MAX( ALL 64 ) THEN 25 ELSE NULL END - - 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT - - CAST ( - 39 AS REAL ) / - + CASE + NULLIF ( 60, 18 ) WHEN 72 THEN - COUNT ( * ) WHEN MAX ( ALL 64 ) THEN 25 ELSE NULL END - - 29 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT CAST( + 69 AS SIGNED ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-9815
SELECT CAST ( + 69 AS INTEGER ) AS col2
----
69

query I rowsort
SELECT ALL + ( + 19 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT DISTINCT + 62 * + 85 * COALESCE ( - ( + 78 ), + COUNT( * ) ) AS col0
----
-411060

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + 62 * + 85 * COALESCE ( - ( + 78 ), + COUNT ( * ) ) AS col0
----
-411060

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT - COUNT( * ) * 44
----
-44

skipif mysql # not compatible
query I rowsort label-9818
SELECT - COUNT ( * ) * 44
----
-44

query I rowsort
SELECT ALL + 44 * + 7
----
308

query I rowsort
SELECT COALESCE ( + 12, - 87 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9821
SELECT ALL + AVG ( ALL 82 ) * - 90 - + 87 - MAX( DISTINCT 20 ) + + AVG ( CAST( NULL AS SIGNED ) ) * - 97 / 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL + AVG ( ALL 82 ) * - 90 - + 87 - MAX ( DISTINCT 20 ) + + AVG ( CAST ( NULL AS INTEGER ) ) * - 97 / 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT ALL + COUNT( + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL + COUNT ( + 19 )
----
1

query I rowsort
SELECT 81 * - 93 + + 63
----
-7470

onlyif mysql # aggregate syntax: 
query I rowsort label-9824
SELECT NULLIF ( 76, - COUNT( * ) + - 59 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-9824
SELECT NULLIF ( 76, - COUNT ( * ) + - 59 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT COUNT( * ) * + ( COUNT( * ) ) + - 67
----
-66

skipif mysql # not compatible
query I rowsort label-9825
SELECT COUNT ( * ) * + ( COUNT ( * ) ) + - 67
----
-66

query I rowsort
SELECT - 45 + - 96 * + 33
----
-3213

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL + 5 * + 93 + MAX( + 96 )
----
561

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL + 5 * + 93 + MAX ( + 96 )
----
561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9828
SELECT ALL 73 * + - CAST( NULL AS SIGNED ) + + - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL 73 * + - CAST ( NULL AS INTEGER ) + + - 16 AS col1
----
NULL

query I rowsort
SELECT ALL 9 + 2 * + 85 + - - COALESCE ( + 80, - 83 ) * 97 AS col0
----
7939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT DISTINCT CAST( + 16 AS SIGNED )
----
16

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT CAST ( + 16 AS INTEGER )
----
16

query I rowsort
SELECT - + 84 * + 77
----
-6468

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT + + 79 + + COUNT( * ) - - 26
----
106

skipif mysql # not compatible
query I rowsort label-9832
SELECT + + 79 + + COUNT ( * ) - - 26
----
106

query I rowsort
SELECT DISTINCT 79 * + + 22 col2
----
1738

query I rowsort
SELECT ALL 83 + + 81
----
164

onlyif mysql # aggregate syntax: 
query II rowsort label-9835
SELECT - COUNT( + 13 ) + 67 AS col0, + 6 * - 26 AS col0
----
66
-156

skipif mysql # not compatible
query II rowsort label-9835
SELECT - COUNT ( + 13 ) + 67 AS col0, + 6 * - 26 AS col0
----
66
-156

query I rowsort
SELECT - 67 + 25
----
-42

query I rowsort
SELECT ALL - 7 * - 95 * - + 4 AS col2
----
-2660

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT + NULLIF ( 52, NULLIF ( + 29, SUM( DISTINCT + ( + 21 ) ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-9838
SELECT + NULLIF ( 52, NULLIF ( + 29, SUM ( DISTINCT + ( + 21 ) ) ) )
----
52

query I rowsort
SELECT ALL - - 37 - - 37 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT SUM( - 52 ) AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT SUM ( - 52 ) AS col2
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9841
SELECT ALL - MIN( ALL - 54 ) - - 57, - 95 AS col0
----
111
-95

skipif mysql # not compatible
query II rowsort label-9841
SELECT ALL - MIN ( ALL - 54 ) - - 57, - 95 AS col0
----
111
-95

query I rowsort
SELECT + - 52 * ( - 18 ) * - 49
----
-45864

query I rowsort
SELECT + + 77 + + 72
----
149

query I rowsort
SELECT + 69 * - + 92 - - 36
----
-6312

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT + COUNT( * ) * - 89 + - 33 - 0
----
-122

skipif mysql # not compatible
query I rowsort label-9845
SELECT + COUNT ( * ) * - 89 + - 33 - 0
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-9846
SELECT ALL 8 DIV - 74 + - 50 + - 8 DIV - 89 AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL 8 / - 74 + - 50 + - 8 / - 89 AS col1
----
-50

query II rowsort
SELECT + + 62 AS col2, CASE - 8 WHEN - + 0 * - + 87 + + 0 THEN - 97 * 33 ELSE NULL END / NULLIF ( + 78, 22 + - NULLIF ( 10, 76 / - 56 ) * 14 ) + + 97 / 19 AS col0
----
62
NULL

query II rowsort
SELECT + - 5 AS col1, + 28 AS col1
----
-5
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT ALL + COUNT( * ) * 39 + COUNT( ALL - 33 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9849
SELECT ALL + COUNT ( * ) * 39 + COUNT ( ALL - 33 ) AS col1
----
40

query I rowsort
SELECT + + 25 + - 76
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9851
SELECT ALL + 98 AS col0, 20 - CAST( ( + 52 ) AS SIGNED )
----
98
-32

skipif mysql # not compatible
query II rowsort label-9851
SELECT ALL + 98 AS col0, 20 - CAST ( ( + 52 ) AS INTEGER )
----
98
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT ALL + 76 * COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL + 76 * COUNT ( * )
----
76

query I rowsort
SELECT DISTINCT ( - + 60 ) * 44 AS col0
----
-2640

query I rowsort
SELECT ALL 17 * + 76 AS col0
----
1292

query I rowsort
SELECT 76 * 11 + + 14
----
850

query II rowsort
SELECT 3 AS col0, + 82 * + 91
----
3
7462

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT + 26 DIV - 79 + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-9857
SELECT + 26 / - 79 + 32 AS col2
----
32

query II rowsort
SELECT 78 AS col1, ( - - 76 )
----
78
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT 71 + + COUNT( * ) * + + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9859
SELECT 71 + + COUNT ( * ) * + + COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query III rowsort label-9860
SELECT ALL - 13 + - - 9, + 33 + - COUNT( * ) AS col2, - 91 AS col2
----
-4
32
-91

skipif mysql # not compatible
query III rowsort label-9860
SELECT ALL - 13 + - - 9, + 33 + - COUNT ( * ) AS col2, - 91 AS col2
----
-4
32
-91

query II rowsort
SELECT 21, 33 + 42 AS col0
----
21
75

query II rowsort
SELECT ALL - 23 AS col0, 22 * + 92 - 34 + 8 + + 2
----
-23
2000

query I rowsort
SELECT ALL + 86 + + 72 + - 65 - - + 65 + + 3 * - 95 AS col1
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9864
SELECT 71 DIV ( - - COUNT( - - 40 ) )
----
71

skipif mysql # not compatible
query I rowsort label-9864
SELECT 71 / ( - - COUNT ( - - 40 ) )
----
71

query I rowsort
SELECT ALL - 14 + + + 7 + - ( ( - 41 ) ) AS col1
----
34

query II rowsort
SELECT 16, + 53 * - 75 AS col0
----
16
-3975

onlyif mysql # DIV for integer division: 
query I rowsort label-9867
SELECT ALL - 41 DIV - 34 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL - 41 / - 34 AS col1
----
1

query II rowsort
SELECT 97, - 45 AS col2
----
97
-45

query I rowsort
SELECT 67 * + 35 * - 44
----
-103180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9870
SELECT ALL + + 89 + COUNT( - - 57 ) + 0 DIV 41
----
90

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL + + 89 + COUNT ( - - 57 ) + 0 / 41
----
90

query II rowsort
SELECT - 35 AS col0, - 69
----
-35
-69

query I rowsort
SELECT DISTINCT + - 47 - - - 57 AS col0
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT - ( + CAST( - + 28 AS SIGNED ) )
----
28

skipif mysql # not compatible
query I rowsort label-9873
SELECT - ( + CAST ( - + 28 AS INTEGER ) )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT DISTINCT - 46, + COUNT( * ) col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-9874
SELECT DISTINCT - 46, + COUNT ( * ) col2
----
-46
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL + 87 - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL + 87 - COUNT ( * )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9876
SELECT 5 DIV + 64 - + + 23
----
-23

skipif mysql # not compatible
query I rowsort label-9876
SELECT 5 / + 64 - + + 23
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9877
SELECT ALL - 76 DIV - + MIN( ALL - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL - 76 / - + MIN ( ALL - 63 )
----
-1

query II rowsort
SELECT ALL - 64 AS col2, 91 + - - 38 + + 53 AS col1
----
-64
182

query I rowsort
SELECT - 0 * + 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT - MAX( 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-9880
SELECT - MAX ( 70 )
----
-70

query II rowsort
SELECT DISTINCT 86, + 87 * - + 97 AS col1
----
86
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT + 67 * + CASE - 31 WHEN AVG ( + - 81 ) + - COUNT( * ) / 81 THEN + 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9882
SELECT + 67 * + CASE - 31 WHEN AVG ( + - 81 ) + - COUNT ( * ) / 81 THEN + 73 END
----
NULL

query I rowsort
SELECT ALL + 35 * - - 92
----
3220

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT COUNT( DISTINCT + - 39 )
----
1

skipif mysql # not compatible
query I rowsort label-9884
SELECT COUNT ( DISTINCT + - 39 )
----
1

query I rowsort
SELECT + 80 - NULLIF ( 65, ( + 3 ) )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT ALL - MAX( ALL - ( 60 ) ) col0
----
60

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL - MAX ( ALL - ( 60 ) ) col0
----
60

query II rowsort
SELECT DISTINCT - 94, + 24 AS col2
----
-94
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9888
SELECT DISTINCT - CASE COUNT( * ) WHEN - - COUNT( + - 76 ) THEN CAST( NULL AS SIGNED ) - + - 46 WHEN + 19 * 97 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT - CASE COUNT ( * ) WHEN - - COUNT ( + - 76 ) THEN CAST ( NULL AS INTEGER ) - + - 46 WHEN + 19 * 97 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9889
SELECT ALL - CAST( + - 19 AS SIGNED ) AS col0, 63 + - NULLIF ( - + 12, + COUNT( * ) ) col1
----
19
75

skipif mysql # not compatible
query II rowsort label-9889
SELECT ALL - CAST ( + - 19 AS INTEGER ) AS col0, 63 + - NULLIF ( - + 12, + COUNT ( * ) ) col1
----
19
75

query II rowsort
SELECT DISTINCT 76 + - + 46 * 16 AS col0, 70
----
-660
70

query I rowsort
SELECT 62 * 64 AS col2
----
3968

onlyif mysql # aggregate syntax: 
query II rowsort label-9892
SELECT ALL COUNT( * ) + COUNT( * ) AS col1, SUM( DISTINCT + 11 ) col2
----
2
11

skipif mysql # not compatible
query II rowsort label-9892
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col1, SUM ( DISTINCT + 11 ) col2
----
2
11

query I rowsort
SELECT ALL 64 + + 87
----
151

query I rowsort
SELECT ( 40 ) * - 75
----
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT ALL MIN( + 50 ) + - + 84
----
-34

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL MIN ( + 50 ) + - + 84
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT ALL + 82 + + 41 - - ( + 54 ) + + - 94 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + 82 + + 41 - - ( + 54 ) + + - 94 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 * 82 + - 93
----
1383

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT ALL 98 + 26 * - - COUNT( * ) col0
----
124

skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL 98 + 26 * - - COUNT ( * ) col0
----
124

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9899
SELECT 77 + + 62 DIV - CAST( - + 44 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-9899
SELECT 77 + + 62 / - CAST ( - + 44 AS INTEGER )
----
78

query I rowsort
SELECT 12 * - + 53 * 98 col1
----
-62328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9901
SELECT ALL - MIN( DISTINCT - 34 ) col0, ( + 52 ) DIV + 13 + + 77
----
34
81

skipif mysql # not compatible
query II rowsort label-9901
SELECT ALL - MIN ( DISTINCT - 34 ) col0, ( + 52 ) / + 13 + + 77
----
34
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9902
SELECT 50 + - 50 - + 62 DIV - + MAX( DISTINCT + 86 ) + - - 44
----
44

skipif mysql # not compatible
query I rowsort label-9902
SELECT 50 + - 50 - + 62 / - + MAX ( DISTINCT + 86 ) + - - 44
----
44

query I rowsort
SELECT ALL 5 - 7 + + - 1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT ALL CAST( + 0 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL CAST ( + 0 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9905
SELECT ALL - + CAST( NULL AS DECIMAL ) - - + 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - + CAST ( NULL AS REAL ) - - + 14 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT COUNT( * ) * + + ( 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9906
SELECT COUNT ( * ) * + + ( 40 ) AS col2
----
40

query I rowsort
SELECT - 62 + + + ( - 76 )
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9908
SELECT ALL 45 DIV MIN( + - 34 ) * + 2
----
-2

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL 45 / MIN ( + - 34 ) * + 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT DISTINCT MIN( DISTINCT + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT MIN ( DISTINCT + 43 )
----
43

query I rowsort
SELECT 7 * + 94 * + + 28 AS col0
----
18424

query I rowsort
SELECT 50 * - 59 AS col0
----
-2950

query I rowsort
SELECT DISTINCT - ( + + 99 ) * - 71 + 25 AS col1
----
7054

query I rowsort
SELECT - + CASE + 31 WHEN + + 14 THEN - 25 END AS col1
----
NULL

query I rowsort
SELECT 30 * + + 84
----
2520

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9915
SELECT ALL CAST( NULL AS DECIMAL ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL CAST ( NULL AS REAL ) * 65
----
NULL

query I rowsort
SELECT + 78 + - + 80
----
-2

query II rowsort
SELECT - - 23 + - NULLIF ( + 51, + 69 ) * + 30 AS col1, 53
----
-1507
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT - COUNT( * ) * - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9918
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT - 14 + - - NULLIF ( + - 37, + 63 * - + COUNT( DISTINCT + 56 ) * 90 + 99 ) - + NULLIF ( - 78, + 90 ) * 93
----
7203

skipif mysql # not compatible
query I rowsort label-9919
SELECT - 14 + - - NULLIF ( + - 37, + 63 * - + COUNT ( DISTINCT + 56 ) * 90 + 99 ) - + NULLIF ( - 78, + 90 ) * 93
----
7203

onlyif mysql # aggregate syntax: 
query II rowsort label-9920
SELECT 11 AS col2, - 22 + + 99 - - COUNT( * ) * - 57 AS col1
----
11
20

skipif mysql # not compatible
query II rowsort label-9920
SELECT 11 AS col2, - 22 + + 99 - - COUNT ( * ) * - 57 AS col1
----
11
20

query I rowsort
SELECT ALL - 58 + 51 - + 92 AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9922
SELECT DISTINCT CASE 38 WHEN CAST( NULL AS SIGNED ) THEN - + 85 WHEN + 27 + 22 * + 96 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT CASE 38 WHEN CAST ( NULL AS INTEGER ) THEN - + 85 WHEN + 27 + 22 * + 96 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT + COUNT( ALL + 12 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9923
SELECT + COUNT ( ALL + 12 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9924
SELECT + COUNT( * ) DIV 48 DIV + 22 + + COUNT( * ) AS col1, - 5 * 1 * - 20 + + + MAX( DISTINCT - 85 ) + + 68 DIV - 49 AS col2
----
1
14

skipif mysql # not compatible
query II rowsort label-9924
SELECT + COUNT ( * ) / 48 / + 22 + + COUNT ( * ) AS col1, - 5 * 1 * - 20 + + + MAX ( DISTINCT - 85 ) + + 68 / - 49 AS col2
----
1
14

query I rowsort
SELECT - 46 + + - 23 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL 49 * + - 89 * 63 + 75 * + COUNT( - + 76 ) AS col1
----
-274668

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL 49 * + - 89 * 63 + 75 * + COUNT ( - + 76 ) AS col1
----
-274668

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT DISTINCT - 41 * - - MAX( DISTINCT + - 44 ) * + 53 + + - 93
----
95519

skipif mysql # not compatible
query I rowsort label-9927
SELECT DISTINCT - 41 * - - MAX ( DISTINCT + - 44 ) * + 53 + + - 93
----
95519

onlyif mysql # aggregate syntax: 
query II rowsort label-9928
SELECT + COUNT( * ) col1, - ( + - 22 )
----
1
22

skipif mysql # not compatible
query II rowsort label-9928
SELECT + COUNT ( * ) col1, - ( + - 22 )
----
1
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9929
SELECT COALESCE ( + - COALESCE ( + CAST( NULL AS SIGNED ), 5 * + + 24 ), - NULLIF ( 46, + 66 ) * + COUNT( * ), CAST( - 52 AS SIGNED ) )
----
-120

skipif mysql # not compatible
query I rowsort label-9929
SELECT COALESCE ( + - COALESCE ( + CAST ( NULL AS INTEGER ), 5 * + + 24 ), - NULLIF ( 46, + 66 ) * + COUNT ( * ), CAST ( - 52 AS INTEGER ) )
----
-120

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-9930
SELECT + 74 * + + COUNT( - - CAST( ( - ( - - 70 ) ) AS DECIMAL ) ) DIV 87 + - - 97 DIV 70 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9930
SELECT + 74 * + + COUNT ( - - CAST ( ( - ( - - 70 ) ) AS REAL ) ) / 87 + - - 97 / 70 AS col0
----
1

query I rowsort
SELECT ALL 86 * 1 + + 11 AS col2
----
97

query II rowsort
SELECT NULLIF ( + - 97, 37 ), 39 AS col1
----
-97
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9933
SELECT + 92 + + - 55 DIV - 22
----
94

skipif mysql # not compatible
query I rowsort label-9933
SELECT + 92 + + - 55 / - 22
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT - CASE 31 WHEN - - 21 THEN COUNT( 1 ) END * + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT - CASE 31 WHEN - - 21 THEN COUNT ( 1 ) END * + - 13
----
NULL

query I rowsort
SELECT + 68 + + 82 + 0
----
150

query I rowsort
SELECT + 86 * + 38
----
3268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9937
SELECT DISTINCT SUM( 76 ) DIV 18 + 4 * - NULLIF ( - - 64, - + 18 ) * ( 98 ) + 59 AS col1
----
-25025

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT SUM ( 76 ) / 18 + 4 * - NULLIF ( - - 64, - + 18 ) * ( 98 ) + 59 AS col1
----
-25025

query II rowsort
SELECT ALL + 51 AS col1, 38 AS col0
----
51
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT DISTINCT COUNT( * ) * + + 51 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT COUNT ( * ) * + + 51 AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT DISTINCT + 97 DIV + - 60 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9940
SELECT DISTINCT + 97 / + - 60 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT ALL - - 93 * 72 DIV + 92 - - 65
----
137

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL - - 93 * 72 / + 92 - - 65
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9942
SELECT + + COUNT( * ) DIV + 64 * - 95 + + 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9942
SELECT + + COUNT ( * ) / + 64 * - 95 + + 81 AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9943
SELECT DISTINCT + 9 * - CAST( NULL AS SIGNED ) + - + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT DISTINCT + 9 * - CAST ( NULL AS INTEGER ) + - + 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT + - 39 * + MAX( + 24 ) + - 1
----
-937

skipif mysql # not compatible
query I rowsort label-9944
SELECT + - 39 * + MAX ( + 24 ) + - 1
----
-937

query II rowsort
SELECT + 42, 98 AS col2
----
42
98

query I rowsort
SELECT + ( + 57 ) AS col1
----
57

query I rowsort
SELECT ALL + 59 * + 32 * ( - + NULLIF ( + 97, - 15 + - 1 + - 50 + 50 ) )
----
-183136

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT + COUNT( - - CASE + - 84 WHEN - + COALESCE ( 94, + - 84 ) * 78 THEN NULL WHEN - - 49 + + 32 THEN - 92 / 44 + + 1 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT + COUNT ( - - CASE + - 84 WHEN - + COALESCE ( 94, + - 84 ) * 78 THEN NULL WHEN - - 49 + + 32 THEN - 92 / 44 + + 1 ELSE NULL END )
----
0

query II rowsort
SELECT DISTINCT 48, 24 AS col0
----
48
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL - SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL - SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 79 + + 90 col0
----
169

query I rowsort
SELECT DISTINCT - 85 col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT DISTINCT SUM( + - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT SUM ( + - 61 )
----
-61

query I rowsort
SELECT DISTINCT + - 5 + + - 26 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL MIN( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL MIN ( + 14 )
----
14

query I rowsort
SELECT ALL - 32 + 97
----
65

query I rowsort
SELECT ALL 46 + 78 * + - 24 + 21 AS col2
----
-1805

query II rowsort
SELECT - COALESCE ( + 86, + 87 ) col1, 32 AS col2
----
-86
32

query I rowsort
SELECT - 8 + - 94 + + - 10
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL + + 63 + SUM( ALL + 50 ) AS col0
----
113

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL + + 63 + SUM ( ALL + 50 ) AS col0
----
113

query I rowsort
SELECT ( - - ( + 56 ) )
----
56

query I rowsort
SELECT + 53 - - 93 + - - ( - + ( 97 ) ) * + 51 col1
----
-4801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9963
SELECT ALL NULLIF ( CAST( - - 54 AS SIGNED ), - - SUM( ALL + 46 ) )
----
54

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL NULLIF ( CAST ( - - 54 AS INTEGER ), - - SUM ( ALL + 46 ) )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9964
SELECT ALL CAST( NULL AS SIGNED ) * + 45 AS col2, - COUNT( * ) * - COUNT( * ) + 75 + - 73 AS col2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9964
SELECT ALL CAST ( NULL AS INTEGER ) * + 45 AS col2, - COUNT ( * ) * - COUNT ( * ) + 75 + - 73 AS col2
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT + 82 + - COUNT( * ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT + 82 + - COUNT ( * ) AS col0
----
81

query I rowsort
SELECT ALL ( - - COALESCE ( - + 74, - 9 ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT + 0 - + - 45 * MAX( DISTINCT + 98 )
----
4410

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT + 0 - + - 45 * MAX ( DISTINCT + 98 )
----
4410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT - CAST( + - 3 AS SIGNED ) * + 23
----
69

skipif mysql # not compatible
query I rowsort label-9968
SELECT - CAST ( + - 3 AS INTEGER ) * + 23
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9969
SELECT - CAST( NULL AS SIGNED ) / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9969
SELECT - CAST ( NULL AS INTEGER ) / + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9970
SELECT + COUNT( DISTINCT - + ( CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9970
SELECT + COUNT ( DISTINCT - + ( CAST ( NULL AS INTEGER ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT + 32 DIV 15 * - 6 - - 84 + + ( - 66 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9971
SELECT + 32 / 15 * - 6 - - 84 + + ( - 66 ) AS col2
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9972
SELECT - 80 - - CASE WHEN NULL BETWEEN ( CAST( 91 AS DECIMAL ) ) AND ( 61 ) THEN NULL ELSE 45 + 27 END AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-9972
SELECT - 80 - - CASE WHEN NULL BETWEEN ( CAST ( 91 AS REAL ) ) AND ( 61 ) THEN NULL ELSE 45 + 27 END AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT + NULLIF ( - COUNT( * ), - - ( + 6 ) * MAX( ALL + 5 ) + - + 3 * 9 * 89 / 88 + ( 67 + - 22 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9973
SELECT + NULLIF ( - COUNT ( * ), - - ( + 6 ) * MAX ( ALL + 5 ) + - + 3 * 9 * 89 / 88 + ( 67 + - 22 ) )
----
-1

query I rowsort
SELECT DISTINCT + 10 * + + 13
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9975
SELECT ALL + 92 * - 74 DIV + - COUNT( * )
----
6808

skipif mysql # not compatible
query I rowsort label-9975
SELECT ALL + 92 * - 74 / + - COUNT ( * )
----
6808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9976
SELECT - 74 DIV - 9 - + 77 + SUM( - + 97 ) + - 95 + + + 30 + + - 2 * 16 AS col0
----
-263

skipif mysql # not compatible
query I rowsort label-9976
SELECT - 74 / - 9 - + 77 + SUM ( - + 97 ) + - 95 + + + 30 + + - 2 * 16 AS col0
----
-263

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9977
SELECT - CAST( - 48 AS SIGNED ) * 89 + + 68 col1, ( + + 97 ) * - 3
----
4340
-291

skipif mysql # not compatible
query II rowsort label-9977
SELECT - CAST ( - 48 AS INTEGER ) * 89 + + 68 col1, ( + + 97 ) * - 3
----
4340
-291

onlyif mysql # aggregate syntax: 
query II rowsort label-9978
SELECT + + 53 * MIN( - 28 ) + + + 69 + + 26 AS col0, 88 + + COUNT( ALL - - 42 )
----
-1389
89

skipif mysql # not compatible
query II rowsort label-9978
SELECT + + 53 * MIN ( - 28 ) + + + 69 + + 26 AS col0, 88 + + COUNT ( ALL - - 42 )
----
-1389
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT ALL + - 98 * 47 * + MAX( DISTINCT 49 ) + ( + 41 ) + + 7 * - 52 AS col0
----
-226017

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL + - 98 * 47 * + MAX ( DISTINCT 49 ) + ( + 41 ) + + 7 * - 52 AS col0
----
-226017

query I rowsort
SELECT - 20 + + + 36
----
16

query I rowsort
SELECT ALL - + 99 * + 2 + 29
----
-169

query I rowsort
SELECT + ( - 10 ) + + 34 col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9983
SELECT + - 42 DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-9983
SELECT + - 42 / + - 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9984
SELECT DISTINCT + 38 * COUNT( * ) + - 76 * 50 * - CAST( NULL AS SIGNED ) / + + 98 * - + COALESCE ( + 97, 65 * - 24, - 82 ) + - NULLIF ( - CAST( NULL AS DECIMAL ), COUNT( * ) - 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT + 38 * COUNT ( * ) + - 76 * 50 * - CAST ( NULL AS INTEGER ) / + + 98 * - + COALESCE ( + 97, 65 * - 24, - 82 ) + - NULLIF ( - CAST ( NULL AS REAL ), COUNT ( * ) - 85 ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 91 * - 20 col2
----
-1820

query I rowsort
SELECT ALL + 3 + + - 92
----
-89

query II rowsort
SELECT DISTINCT 34 + - + 47 AS col2, 65
----
-13
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9988
SELECT + 27 DIV 98 * - 19
----
0

skipif mysql # not compatible
query I rowsort label-9988
SELECT + 27 / 98 * - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT 98 + - - MAX( DISTINCT - - COALESCE ( 21, - 9 ) ) * - - 13 * - 68 * + 27 * + 75 * - 44 + + 61 * 7
----
1654052925

skipif mysql # not compatible
query I rowsort label-9989
SELECT 98 + - - MAX ( DISTINCT - - COALESCE ( 21, - 9 ) ) * - - 13 * - 68 * + 27 * + 75 * - 44 + + 61 * 7
----
1654052925

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL + SUM( 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL + SUM ( 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9991
SELECT ALL ( - 78 ) + + 44 + - - MIN( DISTINCT 50 ) DIV - 84 + COALESCE ( 81, - - 99 - 87, - 17 + ( COALESCE ( 49, COUNT( * ) * MIN( ALL - 37 ) + - 27 ) ) * - 67 ) * 58
----
4664

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL ( - 78 ) + + 44 + - - MIN ( DISTINCT 50 ) / - 84 + COALESCE ( 81, - - 99 - 87, - 17 + ( COALESCE ( 49, COUNT ( * ) * MIN ( ALL - 37 ) + - 27 ) ) * - 67 ) * 58
----
4664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT ALL 19 * - + CAST( - 44 AS SIGNED )
----
836

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL 19 * - + CAST ( - 44 AS INTEGER )
----
836

query I rowsort
SELECT ALL 23 + + 46
----
69

query II rowsort
SELECT DISTINCT 35, - 53 AS col1
----
35
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT 46 - - - MAX( - 85 ) + + + 32 * - + 24 * - ( + - 62 ) AS col2
----
-47485

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT 46 - - - MAX ( - 85 ) + + + 32 * - + 24 * - ( + - 62 ) AS col2
----
-47485

query I rowsort
SELECT 51 + - 21 - - + 54 + - 96 AS col0
----
-12

query I rowsort
SELECT 87 + ( 65 )
----
152

query I rowsort
SELECT 90 + - 46
----
44

query I rowsort
SELECT ALL 81 * - 53 AS col2
----
-4293

