sqllogictest
Artifact Content
Not logged in

Artifact 01d1790c0ea77e53449b0f5fe210a7c0bc758e13:


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 - + 54 * + 71 AS col2
----
-3834

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL COUNT ( * ) + 86 col1
----
87

query I rowsort
SELECT + 93 + - 49
----
44

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT MAX( DISTINCT 62 ) - 36 * 5
----
-118

skipif mysql # not compatible
query I rowsort label-10
SELECT MAX ( DISTINCT 62 ) - 36 * 5
----
-118

onlyif mysql # DIV for integer division: 
query I rowsort label-11
SELECT DISTINCT 40 DIV - - 17 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT 40 / - - 17 AS col2
----
2

query I rowsort
SELECT + 38 * 90 col2
----
3420

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

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

query I rowsort
SELECT + 90 * + 61 + + 89
----
5579

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ( - 58 ) col2
----
-58

query I rowsort
SELECT - 28 * - ( - 94 ) + + + 30 AS col1
----
-2602

onlyif mysql # DIV for integer division: 
query I rowsort label-23
SELECT DISTINCT 39 * 14 DIV - 59 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT 39 * 14 / - 59 AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT ALL - 30 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL - 30 / 68 AS col1
----
0

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

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

query I rowsort
SELECT - 50 * 47 AS col2
----
-2350

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

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

query I rowsort
SELECT DISTINCT 40 + - 90 AS col2
----
-50

query I rowsort
SELECT - 24 + - 37 AS col2
----
-61

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT + 6 DIV 24 col2
----
0

skipif mysql # not compatible
query I rowsort label-31
SELECT + 6 / 24 col2
----
0

query I rowsort
SELECT ALL - 70 * - 85
----
5950

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT DISTINCT + 46 * + SUM( ALL 79 ) AS col0
----
3634

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT + 46 * + SUM ( ALL 79 ) AS col0
----
3634

query I rowsort
SELECT - ( + 76 ) * - 89 AS col0
----
6764

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

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

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

query I rowsort
SELECT ALL NULLIF ( ( 41 ), - 53 )
----
41

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

skipif mysql # not compatible
query I rowsort label-39
SELECT - MAX ( 29 )
----
-29

query I rowsort
SELECT ALL - 67 + - 90 col1
----
-157

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

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

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

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

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

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

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

query I rowsort
SELECT + + 55 * - 64
----
-3520

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT DISTINCT + MIN( 33 ) + 65 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + MIN ( 33 ) + 65 AS col1
----
98

query I rowsort
SELECT + 44 * 16 AS col1
----
704

query I rowsort
SELECT 53 * + 26
----
1378

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT DISTINCT + 54 * SUM( ALL - 2 )
----
-108

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT + 54 * SUM ( ALL - 2 )
----
-108

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

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

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

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

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

query I rowsort
SELECT ( - + 88 ) * 62
----
-5456

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT SUM( - 10 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-60
SELECT SUM ( - 10 ) AS col0
----
-10

query I rowsort
SELECT ALL 29 * 80 * + 18 AS col2
----
41760

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT + COUNT( * ) + - MAX( 26 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-62
SELECT + COUNT ( * ) + - MAX ( 26 ) AS col2
----
-25

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

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

query I rowsort
SELECT ALL - COALESCE ( + 85, + 29 ) * 3 AS col1
----
-255

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

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

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

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

query I rowsort
SELECT - COALESCE ( + 61, - 75 )
----
-61

query II rowsort
SELECT ALL 43 col1, + 27
----
43
27

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-74
SELECT + CASE WHEN ( NULL ) IS NULL THEN - + CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-74
SELECT + CASE WHEN ( NULL ) IS NULL THEN - + CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT ALL - 28 DIV + 23
----
-1

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL - 28 / + 23
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-76
SELECT - 70 * - + CAST( - 40 AS SIGNED ) AS col2
----
-2800

skipif mysql # not compatible
query I rowsort label-76
SELECT - 70 * - + CAST ( - 40 AS INTEGER ) AS col2
----
-2800

query I rowsort
SELECT - 34 * + + 84
----
-2856

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

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

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

query I rowsort
SELECT ALL + 11 + 35 AS col2
----
46

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

query I rowsort
SELECT - 47 - 9 AS col2
----
-56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT - NULLIF ( + - MIN( - 71 ), + - 15 )
----
-71

skipif mysql # not compatible
query I rowsort label-84
SELECT - NULLIF ( + - MIN ( - 71 ), + - 15 )
----
-71

query II rowsort
SELECT - 24 + - - 64 AS col2, 81 AS col1
----
40
81

query II rowsort
SELECT - 88 * 54 AS col1, 48 AS col1
----
-4752
48

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

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

query II rowsort
SELECT ALL + 26, 39 + 12 AS col1
----
26
51

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-90
SELECT COALESCE ( - COUNT( * ), COUNT( * ) ) * + + COUNT( * ) DIV + MIN( - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-90
SELECT COALESCE ( - COUNT ( * ), COUNT ( * ) ) * + + COUNT ( * ) / + MIN ( - 76 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-91
SELECT - MIN( ALL + 36 ) AS col0, + 50
----
-36
50

skipif mysql # not compatible
query II rowsort label-91
SELECT - MIN ( ALL + 36 ) AS col0, + 50
----
-36
50

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

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

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

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

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

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

query I rowsort
SELECT ALL 80 * + - 88 col1
----
-7040

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL COUNT( * ) * 59 * - + 34 col1
----
-2006

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL COUNT ( * ) * 59 * - + 34 col1
----
-2006

query I rowsort
SELECT - 79 - + - 30
----
-49

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

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

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

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

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

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

query I rowsort
SELECT + 3 * + 61
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT ALL 17 * - COUNT( * ) - - 82 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-102
SELECT ALL 17 * - COUNT ( * ) - - 82 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-103
SELECT ALL - 91 + + COUNT( * ) DIV - 33 * - + SUM( - 49 )
----
-91

skipif mysql # not compatible
query I rowsort label-103
SELECT ALL - 91 + + COUNT ( * ) / - 33 * - + SUM ( - 49 )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT COUNT( * ) + + - 28 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-104
SELECT COUNT ( * ) + + - 28 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-105
SELECT 19, COUNT( * ) col1
----
19
1

skipif mysql # not compatible
query II rowsort label-105
SELECT 19, COUNT ( * ) col1
----
19
1

query II rowsort
SELECT 27 col2, 61
----
27
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT DISTINCT ( COUNT( DISTINCT 55 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT ( COUNT ( DISTINCT 55 ) ) AS col0
----
1

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

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

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

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

query I rowsort
SELECT DISTINCT 48 * 76 AS col2
----
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT 60 + MAX( - 97 )
----
-37

skipif mysql # not compatible
query I rowsort label-113
SELECT 60 + MAX ( - 97 )
----
-37

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

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

query I rowsort
SELECT ALL 20 * 5
----
100

query I rowsort
SELECT 25 + + 87
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-117
SELECT DISTINCT CAST( - 22 AS SIGNED ) * + 89 + - - COUNT( * ) AS col1
----
-1957

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT CAST ( - 22 AS INTEGER ) * + 89 + - - COUNT ( * ) AS col1
----
-1957

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT ALL - 37 DIV - + 9 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL - 37 / - + 9 AS col1
----
4

query I rowsort
SELECT DISTINCT - 28 * - 14
----
392

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

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

query I rowsort
SELECT - 49 * - 94 + 90
----
4696

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

query I rowsort
SELECT + 16 * + 66
----
1056

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT - - 34 DIV + 61 - - 97
----
97

skipif mysql # not compatible
query I rowsort label-124
SELECT - - 34 / + 61 - - 97
----
97

query II rowsort
SELECT ALL + 58 AS col2, 54 + 73 AS col0
----
58
127

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

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

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

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

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

query I rowsort
SELECT - 86 + 59 AS col1
----
-27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-131
SELECT - + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) * - MIN( + - 9 ) + - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT - + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) * - MIN ( + - 9 ) + - - 93 AS col2
----
NULL

query I rowsort
SELECT 68 - + 72 * + + ( - 30 ) AS col0
----
2228

query I rowsort
SELECT ( - 12 ) * 56 col0
----
-672

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT 71 - COUNT( - 13 )
----
70

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT 71 - COUNT ( - 13 )
----
70

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

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL 75 / - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT - 16 DIV 86 * - ( 37 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-137
SELECT - 16 / 86 * - ( 37 ) AS col2
----
0

query I rowsort
SELECT - 48 * + - 24 + - 12
----
1140

query I rowsort
SELECT ALL - 56 * 40 AS col1
----
-2240

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

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

query I rowsort
SELECT ALL COALESCE ( - - 15, - 81 )
----
15

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

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

query II rowsort
SELECT DISTINCT 98, + 83 col1
----
98
83

query I rowsort
SELECT DISTINCT + 43 * 17
----
731

query I rowsort
SELECT - 39 * - + 91
----
3549

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT MAX( DISTINCT + 40 ) + COUNT( * ) col2
----
41

skipif mysql # not compatible
query I rowsort label-148
SELECT MAX ( DISTINCT + 40 ) + COUNT ( * ) col2
----
41

query I rowsort
SELECT ALL 75 * + - 18 * + 29 AS col1
----
-39150

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

skipif mysql # not compatible
query I rowsort label-150
SELECT CAST ( NULL AS INTEGER ) * 81 AS col1
----
NULL

query I rowsort
SELECT ALL + 33 * + + 8 AS col0
----
264

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

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

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

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

query I rowsort
SELECT - CASE + ( - 45 ) WHEN - + 1 THEN + + 99 END * 26 AS col2
----
NULL

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT ALL - 71 DIV - 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL - 71 / - 52 AS col1
----
1

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

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

query I rowsort
SELECT DISTINCT + - 11 + + 9
----
-2

query I rowsort
SELECT 54 * + + 97 col1
----
5238

query I rowsort
SELECT 85 * + 3
----
255

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

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

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

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

query I rowsort
SELECT ALL 9 * 80
----
720

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-172
SELECT ALL + 82 * - + ( + CAST( NULL AS SIGNED ) ) + CAST( - - 31 AS DECIMAL ) * - - 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + 82 * - + ( + CAST ( NULL AS INTEGER ) ) + CAST ( - - 31 AS REAL ) * - - 28 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-173
SELECT + MAX ( + 17 )
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-174
SELECT DISTINCT CAST( - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-174
SELECT DISTINCT CAST ( - 83 AS INTEGER )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + + 88 + - COUNT( ALL 47 )
----
87

skipif mysql # not compatible
query I rowsort label-175
SELECT + + 88 + - COUNT ( ALL 47 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT 3 * MAX( - 50 )
----
-150

skipif mysql # not compatible
query I rowsort label-176
SELECT 3 * MAX ( - 50 )
----
-150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT ALL 28 + - MAX( ALL + 0 )
----
28

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL 28 + - MAX ( ALL + 0 )
----
28

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

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

query I rowsort
SELECT + ( + 24 ) * + 45
----
1080

query I rowsort
SELECT 75 + 3
----
78

query I rowsort
SELECT ALL + 99 + - 91
----
8

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-184
SELECT DISTINCT + 61, + COUNT( 91 ) AS col1
----
61
1

skipif mysql # not compatible
query II rowsort label-184
SELECT DISTINCT + 61, + COUNT ( 91 ) AS col1
----
61
1

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-187
SELECT DISTINCT CAST( 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-187
SELECT DISTINCT CAST ( 46 AS INTEGER ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT ALL 94 + + 66 + COUNT( * )
----
161

skipif mysql # not compatible
query I rowsort label-188
SELECT ALL 94 + + 66 + COUNT ( * )
----
161

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

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

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

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

query I rowsort
SELECT + NULLIF ( 92, + 7 )
----
92

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

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

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

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

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

query I rowsort
SELECT ALL 50 + - 76
----
-26

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

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

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

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

query I rowsort
SELECT ALL NULLIF ( 71, - + 82 )
----
71

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

skipif mysql # not compatible
query I rowsort label-200
SELECT SUM ( ( + 86 ) )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT 94 DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-201
SELECT 94 / 76
----
1

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 50 col1
----
-50

query I rowsort
SELECT DISTINCT - 41 col2
----
-41

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

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

query I rowsort
SELECT - 45 * 81
----
-3645

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - + 62 + + 59 AS col0
----
-3

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

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

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

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

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

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

query I rowsort
SELECT 11 * + ( 60 ) * + - 49
----
-32340

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

skipif mysql # not compatible
query I rowsort label-225
SELECT 45 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT ALL + COUNT( * ) * + + 52 * + 90 AS col2
----
4680

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + COUNT ( * ) * + + 52 * + 90 AS col2
----
4680

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-230
SELECT COUNT ( * ) + + 61 - ( - - 85 ) AS col0
----
-23

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

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

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

query I rowsort
SELECT + 73 * - 1 AS col0
----
-73

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-236
SELECT - 2 + + + CAST ( - COUNT ( * ) AS INTEGER )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-237
SELECT + AVG ( DISTINCT - 9 ) / + 97 * - CAST( NULL AS SIGNED ) * + + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-237
SELECT + AVG ( DISTINCT - 9 ) / + 97 * - CAST ( NULL AS INTEGER ) * + + 83 AS col2
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT 26 * - + 87
----
-2262

query II rowsort
SELECT - 67, + 29 AS col2
----
-67
29

query I rowsort
SELECT ALL 24 * + - 25 AS col1
----
-600

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

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

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

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

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

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

query I rowsort
SELECT - 15 * + 84
----
-1260

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-248
SELECT ALL - 82 * + 61 + - COUNT( * ) AS col0, 58
----
-5003
58

skipif mysql # not compatible
query II rowsort label-248
SELECT ALL - 82 * + 61 + - COUNT ( * ) AS col0, 58
----
-5003
58

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

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

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

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

query I rowsort
SELECT - 92 * 94 AS col0
----
-8648

query II rowsort
SELECT ALL - 99 AS col1, - 68 AS col2
----
-99
-68

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

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

query I rowsort
SELECT 33 + + 74 AS col1
----
107

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT + 64 / MIN ( 55 ) AS col0
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-269
SELECT ALL - - COUNT( * ), - 71 + COUNT( ALL + 80 ) AS col0
----
1
-70

skipif mysql # not compatible
query II rowsort label-269
SELECT ALL - - COUNT ( * ), - 71 + COUNT ( ALL + 80 ) AS col0
----
1
-70

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

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

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

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

query I rowsort
SELECT 45 * + + 47 AS col0
----
2115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT MIN( ALL 95 ) + - + 41 DIV + - COUNT( * )
----
136

skipif mysql # not compatible
query I rowsort label-273
SELECT MIN ( ALL 95 ) + - + 41 / + - COUNT ( * )
----
136

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

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT - 88 + + + NULLIF ( + COUNT( * ), 51 )
----
-87

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT - 88 + + + NULLIF ( + COUNT ( * ), 51 )
----
-87

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT 77 + - + COUNT( * ) * - 53
----
130

skipif mysql # not compatible
query I rowsort label-277
SELECT 77 + - + COUNT ( * ) * - 53
----
130

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

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

query I rowsort
SELECT ( 23 ) - 25 AS col2
----
-2

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

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

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

skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT - 87 + - - ( COUNT ( * ) ) AS col1
----
-86

query I rowsort
SELECT + 83 + 23
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-283
SELECT - CAST( - 58 AS SIGNED ) * - - 15
----
870

skipif mysql # not compatible
query I rowsort label-283
SELECT - CAST ( - 58 AS INTEGER ) * - - 15
----
870

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

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

query II rowsort
SELECT - 89 AS col1, - 91
----
-89
-91

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-287
SELECT ALL + MAX( - - 20 ) AS col2, 19
----
20
19

skipif mysql # not compatible
query II rowsort label-287
SELECT ALL + MAX ( - - 20 ) AS col2, 19
----
20
19

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT 39 * - MIN( - + 69 )
----
2691

skipif mysql # not compatible
query I rowsort label-288
SELECT 39 * - MIN ( - + 69 )
----
2691

query I rowsort
SELECT ALL 21 * - 36 AS col2
----
-756

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT ALL + 87 DIV - 77 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-291
SELECT ALL + 87 / - 77 AS col0
----
-1

query I rowsort
SELECT ALL + NULLIF ( + 60, - 44 ) AS col1
----
60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT - 33 * - - 98 / - ( + CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT - 33 * - - 98 / - ( + CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-295
SELECT - 66 DIV - 28
----
2

skipif mysql # not compatible
query I rowsort label-295
SELECT - 66 / - 28
----
2

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

skipif mysql # not compatible
query I rowsort label-296
SELECT + + 31 / 36
----
0

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

query I rowsort
SELECT + 97 * - + 17
----
-1649

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

onlyif mysql # DIV for integer division: 
query I rowsort label-300
SELECT DISTINCT - 7 DIV - + 13 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT - 7 / - + 13 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-302
SELECT + + 91 * COUNT( * ) - + - 84 DIV 91 AS col1
----
91

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

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

query I rowsort
SELECT DISTINCT - - 24
----
24

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

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

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

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

skipif mysql # not compatible
query I rowsort label-307
SELECT CAST ( NULL AS INTEGER ) * 61 / 31 AS col2
----
NULL

query II rowsort
SELECT 69 AS col2, - 61
----
69
-61

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

query I rowsort
SELECT DISTINCT - 69 * - + 71
----
4899

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

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

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

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

query I rowsort
SELECT DISTINCT - 18 * 74 - - + 47
----
-1285

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-319
SELECT DISTINCT - 48 * + COUNT( * ) DIV + NULLIF ( - COUNT( ALL + 60 ), - 19 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT - 48 * + COUNT ( * ) / + NULLIF ( - COUNT ( ALL + 60 ), - 19 ) AS col1
----
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-321
SELECT ALL COUNT( + 11 ) * - CAST( - - COUNT( * ) AS SIGNED ) - - + ( 4 )
----
3

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL COUNT ( + 11 ) * - CAST ( - - COUNT ( * ) AS INTEGER ) - - + ( 4 )
----
3

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

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

query I rowsort
SELECT DISTINCT 12 + - ( 65 ) AS col1
----
-53

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

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

query II rowsort
SELECT ALL - 57, 40 col0
----
-57
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-326
SELECT ALL + 40 + + ( + 87 ) + ( + 74 ) DIV - COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL + 40 + + ( + 87 ) + ( + 74 ) / - COUNT ( * ) AS col0
----
53

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-329
SELECT 51 * + + 52 AS col0, + CAST( NULL AS SIGNED ) AS col2
----
2652
NULL

skipif mysql # not compatible
query II rowsort label-329
SELECT 51 * + + 52 AS col0, + CAST ( NULL AS INTEGER ) AS col2
----
2652
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-331
SELECT - - 20 DIV - CAST( + ( + + ( - 33 ) ) AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-331
SELECT - - 20 / - CAST ( + ( + + ( - 33 ) ) AS INTEGER ) AS col1
----
0

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

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

query I rowsort
SELECT ALL - 82 * - 27 AS col2
----
2214

query II rowsort
SELECT - 58 AS col2, 0 AS col0
----
-58
0

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

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

query I rowsort
SELECT DISTINCT + - 96 col1
----
-96

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

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

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

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

query II rowsort
SELECT - 87 col2, 76 + - 45
----
-87
31

query I rowsort
SELECT DISTINCT - 36 * - 27
----
972

query I rowsort
SELECT + + 97 * + 30
----
2910

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

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

query I rowsort
SELECT 15 * 9 AS col0
----
135

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

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

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

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

query II rowsort
SELECT ALL 13 AS col0, 17 AS col0
----
13
17

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 96 + - 98
----
-194

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

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

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

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

query I rowsort
SELECT DISTINCT + + ( - + 41 ) * - - 47
----
-1927

onlyif mysql # DIV for integer division: 
query I rowsort label-360
SELECT ALL 65 DIV + - 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL 65 / + - 78 col0
----
0

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

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

query I rowsort
SELECT - 53 + + 58
----
5

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

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

query I rowsort
SELECT ALL 61 * 78 AS col0
----
4758

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

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

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

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

query II rowsort
SELECT + - 80 + + - 97 * + 51, 66 AS col1
----
-5027
66

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

query I rowsort
SELECT - 71 + 37 + + 95
----
61

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

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

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

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

query I rowsort
SELECT 5 - - 43
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-373
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + - 50 ) * - - 66 + + 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-373
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + - 50 ) * - - 66 + + 71 AS col1
----
NULL

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

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

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

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

query I rowsort
SELECT - 31 - - ( ( + 8 ) )
----
-23

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

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

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

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

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

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

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

query I rowsort
SELECT - 43 + + - 88
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-384
SELECT ALL 79 * COUNT( CAST( ( - 15 ) AS SIGNED ) ) + - 92 + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-384
SELECT ALL 79 * COUNT ( CAST ( ( - 15 ) AS INTEGER ) ) + - 92 + COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT + COUNT( * ) + - + MAX( DISTINCT 6 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-385
SELECT + COUNT ( * ) + - + MAX ( DISTINCT 6 ) AS col1
----
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-387
SELECT ALL COUNT( * ) DIV - 60 + + + ( + ( 10 ) ) AS col1
----
10

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

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

skipif mysql # not compatible
query I rowsort label-388
SELECT SUM ( - 63 ) AS col2
----
-63

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

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

query I rowsort
SELECT 10 * 66 * + 32
----
21120

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

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT + MAX( ALL + 62 ) + + 51 AS col2
----
113

skipif mysql # not compatible
query I rowsort label-392
SELECT + MAX ( ALL + 62 ) + + 51 AS col2
----
113

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

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

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

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL 72 - + - COUNT ( * ) + 80 AS col1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-395
SELECT + CAST( + + 43 AS SIGNED ) + + 1, + 99 col2
----
44
99

skipif mysql # not compatible
query II rowsort label-395
SELECT + CAST ( + + 43 AS INTEGER ) + + 1, + 99 col2
----
44
99

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

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

query I rowsort
SELECT - NULLIF ( 50, 78 )
----
-50

query I rowsort
SELECT DISTINCT - 79 * 46 AS col0
----
-3634

query I rowsort
SELECT ALL - 62 * 30 col1
----
-1860

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT ALL 66 DIV 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL 66 / 40 AS col1
----
1

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT + 91 DIV 68
----
1

skipif mysql # not compatible
query I rowsort label-406
SELECT + 91 / 68
----
1

query I rowsort
SELECT ALL ( - 9 ) + + 61 AS col0
----
52

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-415
SELECT ALL 83 + CAST( + 62 AS SIGNED ) AS col2
----
145

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL 83 + CAST ( + 62 AS INTEGER ) AS col2
----
145

query I rowsort
SELECT DISTINCT + + 85 + - ( 66 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT MAX( DISTINCT + - 27 ) * - - 43
----
-1161

skipif mysql # not compatible
query I rowsort label-417
SELECT MAX ( DISTINCT + - 27 ) * - - 43
----
-1161

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-418
SELECT 57 AS col2, 55 + 14 * - CAST( NULL AS SIGNED )
----
57
NULL

skipif mysql # not compatible
query II rowsort label-418
SELECT 57 AS col2, 55 + 14 * - CAST ( NULL AS INTEGER )
----
57
NULL

query I rowsort
SELECT ALL 13 * + + 59 col0
----
767

query I rowsort
SELECT DISTINCT 48 * - 50
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT 12 + - + 31 * + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT 12 + - + 31 * + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT + COUNT( * ) * 64 * - 92 col2
----
-5888

skipif mysql # not compatible
query I rowsort label-422
SELECT + COUNT ( * ) * 64 * - 92 col2
----
-5888

query II rowsort
SELECT - + 82 AS col2, 2 + 89
----
-82
91

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT ALL + COALESCE ( - 89, - - COUNT( * ), 38 - COUNT( * ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL + COALESCE ( - 89, - - COUNT ( * ), 38 - COUNT ( * ) ) AS col2
----
-89

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT NULLIF ( - + 71, + COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT NULLIF ( - + 71, + COUNT ( * ) )
----
-71

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

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

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

query I rowsort
SELECT 47 * + - 77
----
-3619

query I rowsort
SELECT DISTINCT - 26 * + - ( 30 ) AS col1
----
780

query I rowsort
SELECT - 8 + 1
----
-7

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( + - 60 ) * + 0 + + - 52
----
-52

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-442
SELECT - COUNT( * ) DIV + 69 * + 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT - COUNT ( * ) / + 69 * + 2 AS col2
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT ALL - - ( + COUNT( * ) ) * + + 62 * - + 44 AS col2
----
-2728

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL - - ( + COUNT ( * ) ) * + + 62 * - + 44 AS col2
----
-2728

query I rowsort
SELECT + 30 * - 18
----
-540

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

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

query I rowsort
SELECT + 94 + - 35 AS col0
----
59

query II rowsort
SELECT 70, + 31 AS col2
----
70
31

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

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

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

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

skipif mysql # not compatible
query I rowsort label-452
SELECT + MIN ( 33 )
----
33

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 82 + + + 51 AS col0
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-459
SELECT DISTINCT COUNT( * ), 16 * 2 AS col0
----
1
32

skipif mysql # not compatible
query II rowsort label-459
SELECT DISTINCT COUNT ( * ), 16 * 2 AS col0
----
1
32

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 38 + 1
----
-37

query I rowsort
SELECT - - 48 * 69 + - 57 AS col1
----
3255

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT COALESCE ( - + 65, + NULLIF ( - + COUNT( * ), - 8 - + 98 ) ) col2
----
-65

skipif mysql # not compatible
query I rowsort label-478
SELECT COALESCE ( - + 65, + NULLIF ( - + COUNT ( * ), - 8 - + 98 ) ) col2
----
-65

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

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

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

query I rowsort
SELECT 72 + - 25
----
47

query I rowsort
SELECT ALL 23 + + 77 col2
----
100

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT ALL + 72 DIV + 19
----
3

skipif mysql # not compatible
query I rowsort label-485
SELECT ALL + 72 / + 19
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-486
SELECT DISTINCT 94 AS col1, + COUNT( * ) - - ( - 65 )
----
94
-64

skipif mysql # not compatible
query II rowsort label-486
SELECT DISTINCT 94 AS col1, + COUNT ( * ) - - ( - 65 )
----
94
-64

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL MIN( - 54 ) * COUNT( * ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL MIN ( - 54 ) * COUNT ( * ) AS col1
----
-54

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

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

query I rowsort
SELECT + 81 * + 53
----
4293

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT DISTINCT - CAST( - - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT - CAST ( - - 67 AS INTEGER )
----
-67

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

query I rowsort
SELECT ALL - 71 * - 49 AS col2
----
3479

query I rowsort
SELECT DISTINCT + 5 + - - 69
----
74

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

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

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

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

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

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

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

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

query I rowsort
SELECT 61 * + - 98 AS col2
----
-5978

query I rowsort
SELECT DISTINCT - 70 + + 89 AS col1
----
19

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

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

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

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

query II rowsort
SELECT - 6 AS col2, 54 AS col1
----
-6
54

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

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

query I rowsort
SELECT + 55 * + - ( - ( + 12 ) ) + 96
----
756

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

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL MIN ( - 9 )
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT ALL - 64 DIV + 61 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL - 64 / + 61 AS col1
----
-1

query I rowsort
SELECT ALL + 74 + - 80 AS col1
----
-6

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

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

query I rowsort
SELECT ALL 29 + - 38 col0
----
-9

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT ALL + MIN( DISTINCT - 53 ) DIV 87 - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL + MIN ( DISTINCT - 53 ) / 87 - COUNT ( * )
----
-1

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - ( + NULLIF ( 55, 32 ) )
----
-55

query I rowsort
SELECT ALL - 64 - + 4
----
-68

query I rowsort
SELECT 34 + - 55
----
-21

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 52 + - - 21 col2
----
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT ALL + 60 * - MIN( DISTINCT - 2 )
----
120

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL + 60 * - MIN ( DISTINCT - 2 )
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT + + MIN( + 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-541
SELECT + + MIN ( + 52 ) AS col0
----
52

query I rowsort
SELECT + 83 * - - ( - - 4 )
----
332

query II rowsort
SELECT DISTINCT - 36, + 25 AS col0
----
-36
25

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

skipif mysql # not compatible
query I rowsort label-544
SELECT - 70 + + ( + - 69 ) / + - CAST ( NULL AS INTEGER )
----
NULL

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

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-550
SELECT + 4 * 83 + - COUNT ( * ) AS col1
----
331

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL - + 49 - + MAX( 46 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL - + 49 - + MAX ( 46 ) AS col0
----
-95

query I rowsort
SELECT DISTINCT 75 + + ( 74 ) AS col0
----
149

query II rowsort
SELECT 92, + 57 AS col0
----
92
57

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

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

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

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

query I rowsort
SELECT ALL + 68 + 6 * - 49 AS col2
----
-226

query I rowsort
SELECT DISTINCT - + 45 - + 75 AS col2
----
-120

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

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

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

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL - 10 * - COUNT ( * ) + - COUNT ( * ) AS col0
----
9

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 57 + + + 61 AS col1
----
118

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

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

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

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

query I rowsort
SELECT - 94 * + 39 * - 29
----
106314

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

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

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

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

query I rowsort
SELECT ALL 16 * + 48 AS col0
----
768

onlyif mysql # aggregate syntax: 
query I rowsort label-577
SELECT - MAX( ( - - 64 ) ) col0
----
-64

skipif mysql # not compatible
query I rowsort label-577
SELECT - MAX ( ( - - 64 ) ) col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-578
SELECT 90 DIV + NULLIF ( 77, 29 )
----
1

skipif mysql # not compatible
query I rowsort label-578
SELECT 90 / + NULLIF ( 77, 29 )
----
1

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

skipif mysql # not compatible
query I rowsort label-579
SELECT - COUNT ( * ) - + 44 AS col0
----
-45

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

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

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

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

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

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

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

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

query II rowsort
SELECT - 1, 26 AS col2
----
-1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT - MIN( - 17 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-585
SELECT - MIN ( - 17 ) AS col2
----
17

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT + 5 * + MIN( ALL + 10 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-590
SELECT + 5 * + MIN ( ALL + 10 ) AS col2
----
50

query I rowsort
SELECT - 41 + - 32 + 7 + + 73
----
7

query I rowsort
SELECT DISTINCT + 43 + + 95 AS col1
----
138

query I rowsort
SELECT 2 + - 70
----
-68

query I rowsort
SELECT 76 * + 41 AS col2
----
3116

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

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

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

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

query I rowsort
SELECT 63 * - 35 AS col1
----
-2205

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

query I rowsort
SELECT + 76 + 73 AS col2
----
149

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

query I rowsort
SELECT + + NULLIF ( 52, 65 ) * + 46
----
2392

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-604
SELECT + - ( + 79 ) * - 66 * - SUM( - CAST( - 43 AS DECIMAL ) / + ( CAST( NULL AS SIGNED ) ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT + - ( + 79 ) * - 66 * - SUM ( - CAST ( - 43 AS REAL ) / + ( CAST ( NULL AS INTEGER ) ) ) col2
----
NULL

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

query I rowsort
SELECT ALL + 8 + + 4
----
12

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

query I rowsort
SELECT 79 + + 0 col1
----
79

query I rowsort
SELECT DISTINCT - + 38 * - + 92
----
3496

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

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

skipif mysql # not compatible
query I rowsort label-611
SELECT - CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) + - 88
----
-89

query I rowsort
SELECT DISTINCT + 34 - + 30 AS col0
----
4

query I rowsort
SELECT ALL 94 - + - 71
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT COUNT( ALL 76 ) * - 78
----
-78

skipif mysql # not compatible
query I rowsort label-614
SELECT COUNT ( ALL 76 ) * - 78
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-615
SELECT + CAST( + + MAX( ALL 41 ) AS SIGNED ) * 88
----
3608

skipif mysql # not compatible
query I rowsort label-615
SELECT + CAST ( + + MAX ( ALL 41 ) AS INTEGER ) * 88
----
3608

query I rowsort
SELECT ALL 6 - - 65 AS col0
----
71

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

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

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

skipif mysql # not compatible
query I rowsort label-618
SELECT - 32 / - CAST ( NULL AS INTEGER ) + 48 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-619
SELECT DISTINCT CAST( - 29 AS SIGNED ) * + 91 AS col1
----
-2639

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT CAST ( - 29 AS INTEGER ) * + 91 AS col1
----
-2639

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT - - NULLIF ( - 27, + 67 + - - COUNT( * ) - 48 ) + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-621
SELECT - - NULLIF ( - 27, + 67 + - - COUNT ( * ) - 48 ) + COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT - - 99 + 50 AS col0
----
149

query II rowsort
SELECT + + ( + 27 ), 48 col2
----
27
48

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

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

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

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

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

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

query I rowsort
SELECT ALL 35 + + 10 AS col0
----
45

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-630
SELECT - CAST( - 59 AS SIGNED ) AS col0, MIN( + - 85 ) AS col1
----
59
-85

skipif mysql # not compatible
query II rowsort label-630
SELECT - CAST ( - 59 AS INTEGER ) AS col0, MIN ( + - 85 ) AS col1
----
59
-85

query II rowsort
SELECT ( ( - - 7 ) ) AS col0, + 37
----
7
37

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

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

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

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

query I rowsort
SELECT 46 * - 14
----
-644

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

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

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

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

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

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

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

query I rowsort
SELECT + 93 * 92 AS col2
----
8556

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT + 3 * - SUM( 65 ) * + MIN( ALL 93 )
----
-18135

skipif mysql # not compatible
query I rowsort label-640
SELECT + 3 * - SUM ( 65 ) * + MIN ( ALL 93 )
----
-18135

query II rowsort
SELECT + 27 AS col2, + 94
----
27
94

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

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

query I rowsort
SELECT DISTINCT - + 61 * + + 85 AS col2
----
-5185

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

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

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

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

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

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

query I rowsort
SELECT 42 * - 76 AS col0
----
-3192

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

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

query II rowsort
SELECT + 33, 34 AS col0
----
33
34

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

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

query II rowsort
SELECT 63 AS col1, 0 AS col0
----
63
0

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

skipif mysql # not compatible
query I rowsort label-653
SELECT + SUM ( + + 79 )
----
79

query I rowsort
SELECT + 51 - - 68 AS col1
----
119

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

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-658
SELECT DISTINCT - + 32 * 31 DIV COUNT( * )
----
-992

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT - + 32 * 31 / COUNT ( * )
----
-992

query I rowsort
SELECT DISTINCT 89 * - - 88
----
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-660
SELECT - NULLIF ( + COUNT( DISTINCT + 26 ), + 27 * - 37 * + MAX( ALL + 64 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-660
SELECT - NULLIF ( + COUNT ( DISTINCT + 26 ), + 27 * - 37 * + MAX ( ALL + 64 ) )
----
-1

query I rowsort
SELECT DISTINCT - 45 * - 97
----
4365

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL + SUM( DISTINCT + + 7 ) col0
----
7

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + SUM ( DISTINCT + + 7 ) col0
----
7

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

query I rowsort
SELECT ALL - 46 * + 34 AS col1
----
-1564

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

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

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

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

query I rowsort
SELECT DISTINCT + 62 * 32
----
1984

query I rowsort
SELECT ALL - 54 col0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT DISTINCT - 8 + 71 + + - 46 * + ( - SUM( + - 11 ) ) AS col1
----
-443

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT - 8 + 71 + + - 46 * + ( - SUM ( + - 11 ) ) AS col1
----
-443

query I rowsort
SELECT DISTINCT 22 * + - 22
----
-484

query I rowsort
SELECT DISTINCT 9 * + 84 + + 90
----
846

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT + - 51 + - SUM( ALL - 61 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-674
SELECT + - 51 + - SUM ( ALL - 61 ) AS col0
----
10

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-677
SELECT - 48 AS col2, - 38 * - + CAST( NULL AS SIGNED )
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-677
SELECT - 48 AS col2, - 38 * - + CAST ( NULL AS INTEGER )
----
-48
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-678
SELECT ALL + COUNT( * ), 57 - - 73 * + 2 col1
----
1
203

skipif mysql # not compatible
query II rowsort label-678
SELECT ALL + COUNT ( * ), 57 - - 73 * + 2 col1
----
1
203

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-682
SELECT ALL - 20 DIV + - 95 col1
----
0

skipif mysql # not compatible
query I rowsort label-682
SELECT ALL - 20 / + - 95 col1
----
0

query I rowsort
SELECT - 79 * 46 AS col0
----
-3634

onlyif mysql # DIV for integer division: 
query I rowsort label-684
SELECT - 6 DIV - + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-684
SELECT - 6 / - + 92 AS col1
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT 46 * 52 + COUNT( * ) * - 79
----
2313

skipif mysql # not compatible
query I rowsort label-687
SELECT 46 * 52 + COUNT ( * ) * - 79
----
2313

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 64 + - + ( + 14 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-693
SELECT DISTINCT CAST( 76 AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-693
SELECT DISTINCT CAST ( 76 AS INTEGER ) AS col2
----
76

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

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

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

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

query I rowsort
SELECT ALL + 3 * + + 71
----
213

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

onlyif mysql # DIV for integer division: 
query I rowsort label-698
SELECT - 16 DIV + ( - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-698
SELECT - 16 / + ( - 60 )
----
0

query I rowsort
SELECT ALL - 69 + - 52 col0
----
-121

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

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

query I rowsort
SELECT ALL + 40 + 24
----
64

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

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

query I rowsort
SELECT - - 49 col2
----
49

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT ALL 34 DIV + - 7
----
-4

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL 34 / + - 7
----
-4

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

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

query I rowsort
SELECT - 63 * + 6 AS col1
----
-378

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 34 * 68
----
-2312

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT DISTINCT - MIN( ALL - ( + 4 ) ) * + 23 * 39 col1
----
3588

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT - MIN ( ALL - ( + 4 ) ) * + 23 * 39 col1
----
3588

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

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

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

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

query I rowsort
SELECT 24 * - 18 AS col1
----
-432

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT DISTINCT - + 74 DIV - 40
----
1

skipif mysql # not compatible
query I rowsort label-721
SELECT DISTINCT - + 74 / - 40
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-723
SELECT - 79 * CAST( NULL AS DECIMAL ) AS col2, NULLIF ( ( - COUNT( * ) ), 80 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-723
SELECT - 79 * CAST ( NULL AS REAL ) AS col2, NULLIF ( ( - COUNT ( * ) ), 80 )
----
NULL
-1

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

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

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

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

query I rowsort
SELECT - 81 - - 60 AS col2
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-728
SELECT COUNT( * ) AS col2, - 29 DIV - 60
----
1
0

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

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

query I rowsort
SELECT 53 * + 31
----
1643

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

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

query I rowsort
SELECT DISTINCT - 63 + - 62 col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT - + 51 * + MIN( DISTINCT 26 )
----
-1326

skipif mysql # not compatible
query I rowsort label-733
SELECT - + 51 * + MIN ( DISTINCT 26 )
----
-1326

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

query I rowsort
SELECT ALL 81 - 55 + - 44
----
-18

query II rowsort
SELECT + 69 * 1 AS col1, - 53 AS col1
----
69
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-737
SELECT ALL + + 22, - NULLIF ( - COUNT( DISTINCT + 3 ), + 0 ) AS col2
----
22
1

skipif mysql # not compatible
query II rowsort label-737
SELECT ALL + + 22, - NULLIF ( - COUNT ( DISTINCT + 3 ), + 0 ) AS col2
----
22
1

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 7 * + - 11 AS col0
----
-77

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

skipif mysql # not compatible
query II rowsort label-743
SELECT DISTINCT + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) col0, + 90
----
1
90

query I rowsort
SELECT 16 * - 57 AS col0
----
-912

query I rowsort
SELECT DISTINCT + 39 + + + 9
----
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-747
SELECT - - CAST( + - COALESCE ( - COUNT( * ), + + 65 ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-747
SELECT - - CAST ( + - COALESCE ( - COUNT ( * ), + + 65 ) AS INTEGER ) col0
----
1

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT + COUNT( NULLIF ( - - 97, 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-754
SELECT + COUNT ( NULLIF ( - - 97, 22 ) )
----
1

query I rowsort
SELECT ALL - 23 + 64
----
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-757
SELECT COUNT( * ) * + + 73 - CAST( + 81 AS SIGNED ) col2
----
-8

skipif mysql # not compatible
query I rowsort label-757
SELECT COUNT ( * ) * + + 73 - CAST ( + 81 AS INTEGER ) col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT 91 + - + 20 * + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-758
SELECT 91 + - + 20 * + COUNT ( * ) AS col0
----
71

query II rowsort
SELECT 72, - 34 AS col2
----
72
-34

query I rowsort
SELECT ALL + + 80 + + 12 + - - 19
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-761
SELECT ALL 17 AS col0, COALESCE ( + 36, COUNT( * ) )
----
17
36

skipif mysql # not compatible
query II rowsort label-761
SELECT ALL 17 AS col0, COALESCE ( + 36, COUNT ( * ) )
----
17
36

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-763
SELECT ALL 58 DIV - 62
----
0

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL 58 / - 62
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-766
SELECT - 29 AS col2, MIN( 88 ) col1
----
-29
88

skipif mysql # not compatible
query II rowsort label-766
SELECT - 29 AS col2, MIN ( 88 ) col1
----
-29
88

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 36 * + 19 * + + 34 + - 76 AS col0
----
-23332

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT - COUNT( * ) + - + MIN( - + 79 )
----
78

skipif mysql # not compatible
query I rowsort label-773
SELECT - COUNT ( * ) + - + MIN ( - + 79 )
----
78

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT - MIN( + 62 ) - - 20 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-775
SELECT - MIN ( + 62 ) - - 20 AS col1
----
-42

query I rowsort
SELECT - CASE WHEN NOT NULL <> NULL THEN - 17 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 66 col0
----
-66

query I rowsort
SELECT 25 * - 46
----
-1150

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-781
SELECT 11 * - COUNT ( * ) * + 16 AS col0
----
-176

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

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL ( 19 ) / - - COUNT ( * )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-783
SELECT ALL - 70 AS col1, - MAX( - - 28 ) AS col1
----
-70
-28

skipif mysql # not compatible
query II rowsort label-783
SELECT ALL - 70 AS col1, - MAX ( - - 28 ) AS col1
----
-70
-28

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

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

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

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

query I rowsort
SELECT DISTINCT ( - 56 ) * 68 AS col2
----
-3808

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

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

query I rowsort
SELECT + - 51 * - 32
----
1632

query I rowsort
SELECT DISTINCT - 12 * - + 28
----
336

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

query I rowsort
SELECT - + 24 * + 99 col0
----
-2376

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

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

query I rowsort
SELECT ALL 72 + - 77
----
-5

query I rowsort
SELECT - 51 * 46
----
-2346

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT - COUNT( * ) - - 8 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-796
SELECT - COUNT ( * ) - - 8 AS col0
----
7

query I rowsort
SELECT 40 * - 96 AS col1
----
-3840

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

skipif mysql # not compatible
query I rowsort label-798
SELECT ALL - SUM ( ALL 35 )
----
-35

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

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

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

skipif mysql # not compatible
query I rowsort label-800
SELECT - MAX ( ALL - 38 )
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-801
SELECT - + SUM( 9 ) AS col1, COUNT( * ) + + 41
----
-9
42

skipif mysql # not compatible
query II rowsort label-801
SELECT - + SUM ( 9 ) AS col1, COUNT ( * ) + + 41
----
-9
42

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

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT MIN ( 34 )
----
34

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT + 26 DIV + - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-804
SELECT + 26 / + - 90 AS col1
----
0

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

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

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

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

query I rowsort
SELECT - 52 + 33
----
-19

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

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

query I rowsort
SELECT - 92 + 98
----
6

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

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-815
SELECT - SUM ( DISTINCT 96 )
----
-96

query I rowsort
SELECT + 8 - 95
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT ALL MIN( - 18 ) * 80 AS col0
----
-1440

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL MIN ( - 18 ) * 80 AS col0
----
-1440

query I rowsort
SELECT 33 + + - 84 AS col0
----
-51

query I rowsort
SELECT - 94 + 69
----
-25

query I rowsort
SELECT 7 + + 23
----
30

query I rowsort
SELECT ALL 55 * - + NULLIF ( + 56, 1 )
----
-3080

onlyif mysql # DIV for integer division: 
query I rowsort label-822
SELECT DISTINCT - - 56 DIV - 43 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT - - 56 / - 43 AS col2
----
-1

query I rowsort
SELECT 52 * + 34
----
1768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-824
SELECT + NULLIF ( + - 48, + COUNT( * ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-824
SELECT + NULLIF ( + - 48, + COUNT ( * ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 55 + - 52
----
3

query I rowsort
SELECT DISTINCT 15 * - ( + 51 )
----
-765

onlyif mysql # aggregate syntax: 
query II rowsort label-827
SELECT DISTINCT + 37 + + + COUNT( * ), - 57 AS col0
----
38
-57

skipif mysql # not compatible
query II rowsort label-827
SELECT DISTINCT + 37 + + + COUNT ( * ), - 57 AS col0
----
38
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT + + COUNT( * ) * - + 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-828
SELECT + + COUNT ( * ) * - + 74 AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-829
SELECT + SUM( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-829
SELECT + SUM ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-830
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT - COUNT( + 32 ) + COUNT( 27 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-831
SELECT - COUNT ( + 32 ) + COUNT ( 27 ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT - 37 * 19 DIV - - 74
----
-9

skipif mysql # not compatible
query I rowsort label-832
SELECT - 37 * 19 / - - 74
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT - COUNT( DISTINCT 15 ) * - 49
----
49

skipif mysql # not compatible
query I rowsort label-833
SELECT - COUNT ( DISTINCT 15 ) * - 49
----
49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-834
SELECT 39, CAST( NULL AS DECIMAL ) col2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-834
SELECT 39, CAST ( NULL AS REAL ) col2
----
39
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-835
SELECT + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-835
SELECT + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT + 6 * - COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-836
SELECT + 6 * - COUNT ( * ) col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-837
SELECT ALL - 89 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - 89 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT COUNT( * ) * MIN( - - ( - - 70 ) )
----
70

skipif mysql # not compatible
query I rowsort label-838
SELECT COUNT ( * ) * MIN ( - - ( - - 70 ) )
----
70

query I rowsort
SELECT ALL + 19 - 33 + - 76 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT - 74 * COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT - 74 * COUNT ( * ) AS col0
----
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-841
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-841
SELECT DISTINCT + CAST ( NULL AS REAL ) + - + 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT - CASE + + COUNT( * ) WHEN 24 THEN SUM( + 40 ) / COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT - CASE + + COUNT ( * ) WHEN 24 THEN SUM ( + 40 ) / COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-843
SELECT - ( COUNT( * ) ) AS col0, - 50 col0
----
-1
-50

skipif mysql # not compatible
query II rowsort label-843
SELECT - ( COUNT ( * ) ) AS col0, - 50 col0
----
-1
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-844
SELECT DISTINCT SUM( DISTINCT + ( - - 14 ) ) AS col0, 5 AS col1
----
14
5

skipif mysql # not compatible
query II rowsort label-844
SELECT DISTINCT SUM ( DISTINCT + ( - - 14 ) ) AS col0, 5 AS col1
----
14
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-845
SELECT + 98 - CAST( NULL AS DECIMAL ) - - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-845
SELECT + 98 - CAST ( NULL AS REAL ) - - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 59 - 57
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT 5 DIV + 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-847
SELECT 5 / + 22 AS col1
----
0

query I rowsort
SELECT DISTINCT + ( - 93 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT ALL + COUNT( * ) + + ( - + 95 ) col1
----
-94

skipif mysql # not compatible
query I rowsort label-849
SELECT ALL + COUNT ( * ) + + ( - + 95 ) col1
----
-94

query I rowsort
SELECT 84 * 87 AS col1
----
7308

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT DISTINCT + SUM( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT + SUM ( 14 )
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT DISTINCT + 98 + 19 DIV - 54
----
98

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT + 98 + 19 / - 54
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT ALL ( + COUNT( ALL - 88 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL ( + COUNT ( ALL - 88 ) ) AS col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-854
SELECT ALL + + CAST( NULL AS DECIMAL ) * + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL + + CAST ( NULL AS REAL ) * + 93 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-855
SELECT - - 26 DIV - ( - - 60 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-855
SELECT - - 26 / - ( - - 60 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 29 + 86 AS col1
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-857
SELECT - ( - COUNT( * ) ) - + ( - + COUNT( - + CAST( - - 33 AS SIGNED ) ) )
----
2

skipif mysql # not compatible
query I rowsort label-857
SELECT - ( - COUNT ( * ) ) - + ( - + COUNT ( - + CAST ( - - 33 AS INTEGER ) ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT ALL + MAX( - - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL + MAX ( - - 50 )
----
50

query I rowsort
SELECT ALL - ( - + 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT + 36 * ( + ( + COUNT( * ) ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT + 36 * ( + ( + COUNT ( * ) ) ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL + + MAX( DISTINCT - 7 ) + 99
----
92

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL + + MAX ( DISTINCT - 7 ) + 99
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT ALL + 70 DIV + 26 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL + 70 / + 26 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT ALL - 26 + + COUNT( * ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-863
SELECT ALL - 26 + + COUNT ( * ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-864
SELECT ALL 0 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL 0 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-866
SELECT ALL - + ( + 44 ) col0, + COUNT( * ) * + 59 col0
----
-44
59

skipif mysql # not compatible
query II rowsort label-866
SELECT ALL - + ( + 44 ) col0, + COUNT ( * ) * + 59 col0
----
-44
59

query I rowsort
SELECT ALL 20 * + 50 AS col0
----
1000

query I rowsort
SELECT DISTINCT 17 * + - 15
----
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT - - COUNT( * ) + - 7
----
-6

skipif mysql # not compatible
query I rowsort label-869
SELECT - - COUNT ( * ) + - 7
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL + - COUNT( DISTINCT + 79 )
----
-1

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + - COUNT ( DISTINCT + 79 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT - 32 DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-871
SELECT - 32 / 95 AS col1
----
0

query I rowsort
SELECT DISTINCT ( 36 )
----
36

query I rowsort
SELECT ALL 60 * - + 77
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT + COUNT( * ) + + 85
----
86

skipif mysql # not compatible
query I rowsort label-874
SELECT + COUNT ( * ) + + 85
----
86

query I rowsort
SELECT 21 + - 47
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-876
SELECT + 6, + MAX( - 33 ) AS col1
----
6
-33

skipif mysql # not compatible
query II rowsort label-876
SELECT + 6, + MAX ( - 33 ) AS col1
----
6
-33

query II rowsort
SELECT + 63, + 30 AS col2
----
63
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-878
SELECT 37 * - 13 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT 37 * - 13 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL COUNT( * ) + - COUNT( * ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT - SUM( - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-880
SELECT - SUM ( - 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL 56 * COUNT( * ) + - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL 56 * COUNT ( * ) + - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT - 54 + - COUNT( - 31 )
----
-55

skipif mysql # not compatible
query I rowsort label-882
SELECT - 54 + - COUNT ( - 31 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-883
SELECT ALL - 81 DIV - COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - 81 / - COUNT ( * )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-884
SELECT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-884
SELECT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ( + 35 )
----
35

query I rowsort
SELECT COALESCE ( + - NULLIF ( + 97, - + 34 * 83 ), - + 5 )
----
-97

query I rowsort
SELECT + ( - - 1 )
----
1

query I rowsort
SELECT ( - 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-889
SELECT 94, ( + MIN( 40 ) ) AS col2
----
94
40

skipif mysql # not compatible
query II rowsort label-889
SELECT 94, ( + MIN ( 40 ) ) AS col2
----
94
40

query II rowsort
SELECT 99, - 60 AS col0
----
99
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + COUNT( * ) * + COUNT( * ) - + ( - 26 ) col1
----
27

skipif mysql # not compatible
query I rowsort label-891
SELECT + COUNT ( * ) * + COUNT ( * ) - + ( - 26 ) col1
----
27

query I rowsort
SELECT ALL 19 * - - 94 AS col1
----
1786

onlyif mysql # aggregate syntax: 
query I rowsort label-893
SELECT DISTINCT + 97 * - SUM( + 26 ) AS col0
----
-2522

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT + 97 * - SUM ( + 26 ) AS col0
----
-2522

query I rowsort
SELECT + - 9 * - 12 AS col2
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-895
SELECT ALL + AVG ( ALL + CAST( NULL AS SIGNED ) ) + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-895
SELECT ALL + AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - 65
----
NULL

query I rowsort
SELECT - 27 + 35
----
8

query I rowsort
SELECT ALL ( + 9 )
----
9

query I rowsort
SELECT ALL 55 + + + 45
----
100

query I rowsort
SELECT + ( - - 4 ) col1
----
4

query I rowsort
SELECT + ( 58 )
----
58

query I rowsort
SELECT ( - + 79 ) AS col1
----
-79

query I rowsort
SELECT ( + COALESCE ( + 26, - + 17 ) )
----
26

query I rowsort
SELECT ( - 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT ALL + 43 * 82 + COUNT( * )
----
3527

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL + 43 * 82 + COUNT ( * )
----
3527

query II rowsort
SELECT 51 AS col1, 32 AS col0
----
51
32

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT + - SUM( - 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-906
SELECT + - SUM ( - 0 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT 8 + + NULLIF ( + 34, + MAX( DISTINCT + + 39 ) ) * + - 21 AS col0
----
-706

skipif mysql # not compatible
query I rowsort label-907
SELECT 8 + + NULLIF ( + 34, + MAX ( DISTINCT + + 39 ) ) * + - 21 AS col0
----
-706

query I rowsort
SELECT DISTINCT - ( ( 89 ) ) AS col2
----
-89

query I rowsort
SELECT + NULLIF ( - 69, + 28 ) * 75
----
-5175

query I rowsort
SELECT + 24 + + 53 * 10
----
554

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT - NULLIF ( 15, 62 * COUNT( * ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-911
SELECT - NULLIF ( 15, 62 * COUNT ( * ) ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-912
SELECT ALL + 81, - MIN( 47 ) col1
----
81
-47

skipif mysql # not compatible
query II rowsort label-912
SELECT ALL + 81, - MIN ( 47 ) col1
----
81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-913
SELECT CAST( - 11 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-913
SELECT CAST ( - 11 AS INTEGER )
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT DISTINCT + COUNT( * ) * + + ( - + CAST( NULL AS SIGNED ) ) + - 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT DISTINCT + COUNT ( * ) * + + ( - + CAST ( NULL AS INTEGER ) ) + - 96 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 65 * 7 col0
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT SUM( - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-916
SELECT SUM ( - 9 )
----
-9

query I rowsort
SELECT - 54 * - 87 col0
----
4698

query I rowsort
SELECT ALL 1 - + - 43
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-919
SELECT ALL CAST( MAX( DISTINCT - 76 ) AS SIGNED )
----
-76

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL CAST ( MAX ( DISTINCT - 76 ) AS INTEGER )
----
-76

query I rowsort
SELECT ALL 79 - 74 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT + 94 + - + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT + 94 + - + COUNT ( * )
----
93

query II rowsort
SELECT ALL - 69 AS col1, - 14 AS col2
----
-69
-14

query I rowsort
SELECT ALL 73 * - 73
----
-5329

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT ALL COUNT( + - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-924
SELECT ALL COUNT ( + - 31 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT DISTINCT - 98 + + COUNT( + + 20 )
----
-97

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - 98 + + COUNT ( + + 20 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT DISTINCT - COUNT( * ) * + - 22
----
22

skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT - COUNT ( * ) * + - 22
----
22

query I rowsort
SELECT DISTINCT + 52 * - 76
----
-3952

onlyif mysql # DIV for integer division: 
query I rowsort label-928
SELECT + 78 DIV 2
----
39

skipif mysql # not compatible
query I rowsort label-928
SELECT + 78 / 2
----
39

query I rowsort
SELECT + 24 + + 17
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT DISTINCT COUNT( * ) + 13 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT COUNT ( * ) + 13 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT - NULLIF ( + 31, + 6 / 99 * + - 85 + + COUNT( * ) )
----
-31

skipif mysql # not compatible
query I rowsort label-931
SELECT - NULLIF ( + 31, + 6 / 99 * + - 85 + + COUNT ( * ) )
----
-31

query I rowsort
SELECT - + 99 * - 89 AS col1
----
8811

query I rowsort
SELECT - ( + + 41 ) AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-934
SELECT + CAST( 55 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-934
SELECT + CAST ( 55 AS INTEGER ) AS col0
----
55

query I rowsort
SELECT ALL - ( - + 11 ) col2
----
11

query I rowsort
SELECT - 32 - - - 42 + + 81
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT - 30 + - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-937
SELECT - 30 + - COUNT ( * )
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT 48 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-938
SELECT 48 / + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT SUM( + + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-939
SELECT SUM ( + + 29 )
----
29

query I rowsort
SELECT 44 * - 53
----
-2332

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT SUM( - + 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-941
SELECT SUM ( - + 85 )
----
-85

query I rowsort
SELECT 34 - 68 AS col1
----
-34

query I rowsort
SELECT DISTINCT + + COALESCE ( - 18, - + 79 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT MIN( DISTINCT - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-944
SELECT MIN ( DISTINCT - 68 )
----
-68

query I rowsort
SELECT DISTINCT ( 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT ALL 77 - + COUNT( * ) + - 92 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL 77 - + COUNT ( * ) + - 92 AS col2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT ALL + CAST( - - AVG ( ALL + 1 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL + CAST ( - - AVG ( ALL + 1 ) AS INTEGER ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT DISTINCT + + 3 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT + + 3 / - 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT - 83 * - COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-949
SELECT - 83 * - COUNT ( * ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT - MIN( + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-950
SELECT - MIN ( + 90 ) AS col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-951
SELECT - 1 * - + COUNT( * ) DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-951
SELECT - 1 * - + COUNT ( * ) / - 87
----
0

query I rowsort
SELECT - 92 * - ( - 5 ) + - 16 AS col1
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-953
SELECT - SUM( ALL 75 ) + + COUNT( * ) col1
----
-74

skipif mysql # not compatible
query I rowsort label-953
SELECT - SUM ( ALL 75 ) + + COUNT ( * ) col1
----
-74

query I rowsort
SELECT ALL - + 61 + 96
----
35

query I rowsort
SELECT + 36 + - 2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT + 83 + + + COUNT( + + 63 ) + - 48 * COUNT( * ) * + 40 + COUNT( * ) AS col1
----
-1835

skipif mysql # not compatible
query I rowsort label-956
SELECT + 83 + + + COUNT ( + + 63 ) + - 48 * COUNT ( * ) * + 40 + COUNT ( * ) AS col1
----
-1835

query I rowsort
SELECT DISTINCT + - 60 col1
----
-60

query I rowsort
SELECT ALL + ( + 10 ) col1
----
10

query I rowsort
SELECT DISTINCT - 99 * - - 49
----
-4851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT + COUNT( * ) DIV + ( - 11 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-960
SELECT + COUNT ( * ) / + ( - 11 ) AS col1
----
0

query I rowsort
SELECT - ( + + 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT + COUNT( * ) + + 23 col2
----
24

skipif mysql # not compatible
query I rowsort label-962
SELECT + COUNT ( * ) + + 23 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT + COUNT( * ) + ( - 29 ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-963
SELECT + COUNT ( * ) + ( - 29 ) AS col1
----
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-964
SELECT - 19 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT - 19 + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 9 * 16
----
144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-966
SELECT ALL - 87 + + COUNT( * ) DIV - - 96
----
-87

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL - 87 + + COUNT ( * ) / - - 96
----
-87

query I rowsort
SELECT 79 + 3 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT ALL 24 + MAX( DISTINCT CAST( NULL AS SIGNED ) ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL 24 + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * + 88
----
NULL

query I rowsort
SELECT ALL + ( + 63 ) AS col0
----
63

query I rowsort
SELECT ALL + ( - 7 ) AS col1
----
-7

query I rowsort
SELECT ALL - 43 * + - 76
----
3268

onlyif mysql # aggregate syntax: 
query II rowsort label-972
SELECT DISTINCT + 43 AS col1, ( + - COUNT( * ) )
----
43
-1

skipif mysql # not compatible
query II rowsort label-972
SELECT DISTINCT + 43 AS col1, ( + - COUNT ( * ) )
----
43
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-973
SELECT ALL COUNT( * ) DIV + COUNT( * ) + + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL COUNT ( * ) / + COUNT ( * ) + + - 56
----
-55

query II rowsort
SELECT DISTINCT - ( + - 52 ), - 34 AS col0
----
52
-34

query I rowsort
SELECT ( + 22 ) + + - 34 AS col0
----
-12

query I rowsort
SELECT ALL + - ( - 80 ) + + 70
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-977
SELECT CAST( - - COUNT( * ) AS SIGNED ) + + ( 55 )
----
56

skipif mysql # not compatible
query I rowsort label-977
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + + ( 55 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT COUNT( * ) + 4 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-978
SELECT COUNT ( * ) + 4 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT MIN( DISTINCT - - 33 ) * ( + + 72 ) AS col0
----
2376

skipif mysql # not compatible
query I rowsort label-979
SELECT MIN ( DISTINCT - - 33 ) * ( + + 72 ) AS col0
----
2376

query I rowsort
SELECT ALL - ( + 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT ALL - + COUNT( * ) + + + ( + - 63 ) col1
----
-64

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL - + COUNT ( * ) + + + ( + - 63 ) col1
----
-64

query II rowsort
SELECT 94, 70 AS col2
----
94
70

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT DISTINCT - 52 + + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-983
SELECT DISTINCT - 52 + + COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL 43 * - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL 43 * - COUNT ( * )
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-985
SELECT DISTINCT + 83 DIV 37 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT + 83 / 37 AS col2
----
2

query I rowsort
SELECT + - 36 col2
----
-36

query I rowsort
SELECT ALL + + 96 - - 52 + 40
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT + CAST( NULL AS SIGNED ) / + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-988
SELECT + CAST ( NULL AS INTEGER ) / + 89
----
NULL

query I rowsort
SELECT + 18 + + 7 AS col2
----
25

query I rowsort
SELECT - ( - 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-991
SELECT - COUNT( * ) + 34 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-991
SELECT - COUNT ( * ) + 34 AS col2
----
33

query I rowsort
SELECT ALL ( + ( + 27 ) )
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-993
SELECT ALL COUNT( * ), 17 - COUNT( * ) col0
----
1
16

skipif mysql # not compatible
query II rowsort label-993
SELECT ALL COUNT ( * ), 17 - COUNT ( * ) col0
----
1
16

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL + COUNT( * ) * - 3 col0
----
-3

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL + COUNT ( * ) * - 3 col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT ALL - - SUM( DISTINCT - 38 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL - - SUM ( DISTINCT - 38 ) AS col0
----
-38

query I rowsort
SELECT 28 + 88
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT 85 + - COUNT( * ) * 81 - + + 83
----
-79

skipif mysql # not compatible
query I rowsort label-997
SELECT 85 + - COUNT ( * ) * 81 - + + 83
----
-79

query I rowsort
SELECT 98 * - 11 AS col2
----
-1078

query II rowsort
SELECT ALL + 48, + 98 AS col2
----
48
98

query II rowsort
SELECT DISTINCT + + 50 AS col1, + 18
----
50
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT + MAX( - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1001
SELECT + MAX ( - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT - ( + + 63 ) AS col1, ( + COUNT( * ) ) * - 61
----
-63
-61

skipif mysql # not compatible
query II rowsort label-1002
SELECT - ( + + 63 ) AS col1, ( + COUNT ( * ) ) * - 61
----
-63
-61

query I rowsort
SELECT - + ( - - ( + 58 ) ) AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT DISTINCT + COUNT( * ) * - 25 col1
----
-25

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT + COUNT ( * ) * - 25 col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1005
SELECT ( + CAST( NULL AS SIGNED ) ) * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1005
SELECT ( + CAST ( NULL AS INTEGER ) ) * 73
----
NULL

query I rowsort
SELECT 11 - 81
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT ALL - SUM( 39 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL - SUM ( 39 ) AS col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1008
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT 21 DIV + ( 72 ) + 11 DIV 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1009
SELECT 21 / + ( 72 ) + 11 / 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1010
SELECT ALL MAX( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-1010
SELECT ALL MAX ( 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT - 1 - + SUM( ALL - 66 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-1011
SELECT - 1 - + SUM ( ALL - 66 ) AS col2
----
65

query I rowsort
SELECT ( + 24 ) AS col0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1013
SELECT ALL 14 DIV - 39
----
0

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL 14 / - 39
----
0

query I rowsort
SELECT - + 1 + + 85
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT ALL - + MAX( DISTINCT ( + 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL - + MAX ( DISTINCT ( + 4 ) )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1016
SELECT + MAX( ALL - 15 ) DIV + COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1016
SELECT + MAX ( ALL - 15 ) / + COUNT ( * ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT MIN( ALL - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-1017
SELECT MIN ( ALL - 99 ) AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1018
SELECT DISTINCT - MAX( ALL + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT DISTINCT - MAX ( ALL + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1019
SELECT DISTINCT + + ( + - ( COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT + + ( + - ( COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT + + MIN( + ( + 31 ) ) * + 30
----
930

skipif mysql # not compatible
query I rowsort label-1020
SELECT + + MIN ( + ( + 31 ) ) * + 30
----
930

query II rowsort
SELECT 53, + 25 col1
----
53
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT - COUNT( * ) + + 62 + 29
----
90

skipif mysql # not compatible
query I rowsort label-1022
SELECT - COUNT ( * ) + + 62 + 29
----
90

query I rowsort
SELECT DISTINCT + - ( + 38 )
----
-38

query I rowsort
SELECT ALL + 1 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT DISTINCT 38 + + + COUNT( * ) col0
----
39

skipif mysql # not compatible
query I rowsort label-1025
SELECT DISTINCT 38 + + + COUNT ( * ) col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1026
SELECT 5 + - COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1026
SELECT 5 + - COUNT ( * ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1027
SELECT ALL 36 / + - CAST( NULL AS DECIMAL ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL 36 / + - CAST ( NULL AS REAL ) * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT ALL COUNT( + NULLIF ( + 93, + 69 ) ) * - + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL COUNT ( + NULLIF ( + 93, + 69 ) ) * - + COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT + COUNT( DISTINCT - + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-1029
SELECT + COUNT ( DISTINCT - + 55 )
----
1

query I rowsort
SELECT - 78 + + 84 AS col0
----
6

query I rowsort
SELECT - ( + - 19 ) + - 57 AS col2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT DISTINCT + 96 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1032
SELECT DISTINCT + 96 * - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 69 + - 57
----
12

query II rowsort
SELECT 80 col1, 55 AS col2
----
80
55

query I rowsort
SELECT ALL + + ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT ALL - - COUNT( * ) * COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1036
SELECT ALL - - COUNT ( * ) * COUNT ( * ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1037
SELECT DISTINCT 25 DIV 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT 25 / 99 AS col0
----
0

query I rowsort
SELECT DISTINCT + ( + 41 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1039
SELECT ( 9 ), COUNT( * ) AS col0
----
9
1

skipif mysql # not compatible
query II rowsort label-1039
SELECT ( 9 ), COUNT ( * ) AS col0
----
9
1

query I rowsort
SELECT ( 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT COUNT( ALL - ( - 73 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1041
SELECT COUNT ( ALL - ( - 73 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT + COUNT( * ) * + - 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1042
SELECT + COUNT ( * ) * + - 5 AS col1
----
-5

query I rowsort
SELECT ALL 13 + + + 84 col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1044
SELECT DISTINCT 5 * COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-1044
SELECT DISTINCT 5 * COUNT ( * )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL - MIN( - 17 )
----
17

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - MIN ( - 17 )
----
17

onlyif mysql # DIV for integer division: 
query II rowsort label-1046
SELECT - 26 + + 68, 1 DIV + - 74 AS col1
----
42
0

skipif mysql # not compatible
query II rowsort label-1046
SELECT - 26 + + 68, 1 / + - 74 AS col1
----
42
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT + COUNT( DISTINCT - + 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1047
SELECT + COUNT ( DISTINCT - + 44 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1048
SELECT ALL + COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT ALL + MIN( DISTINCT 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + MIN ( DISTINCT 93 ) AS col1
----
93

query I rowsort
SELECT ALL + ( + - 96 ) AS col2
----
-96

query I rowsort
SELECT ALL + - 44 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT + 77 * - 11 - COUNT( * ) col0
----
-848

skipif mysql # not compatible
query I rowsort label-1052
SELECT + 77 * - 11 - COUNT ( * ) col0
----
-848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1053
SELECT 49 + + - CAST( NULL AS SIGNED ) * - + 90 * 94 + + + 17 + + 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1053
SELECT 49 + + - CAST ( NULL AS INTEGER ) * - + 90 * 94 + + + 17 + + 76 col0
----
NULL

query I rowsort
SELECT DISTINCT - 75 - 26 + - 30
----
-131

query I rowsort
SELECT DISTINCT - ( + - 86 ) AS col0
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1056
SELECT ALL - 78 DIV COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL - 78 / COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT - ( + MIN( - 73 ) ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-1057
SELECT - ( + MIN ( - 73 ) ) AS col2
----
73

query I rowsort
SELECT 89 * + 42 AS col0
----
3738

onlyif mysql # aggregate syntax: 
query II rowsort label-1059
SELECT ALL - COUNT( * ) AS col1, 30 AS col0
----
-1
30

skipif mysql # not compatible
query II rowsort label-1059
SELECT ALL - COUNT ( * ) AS col1, 30 AS col0
----
-1
30

query I rowsort
SELECT ALL + - 91 + - - 71 AS col2
----
-20

query I rowsort
SELECT 75 + + - 72 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT - MAX( - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-1062
SELECT - MAX ( - 70 )
----
70

query I rowsort
SELECT + 29 + + 93 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT - SUM( - 89 )
----
89

skipif mysql # not compatible
query I rowsort label-1064
SELECT - SUM ( - 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT DISTINCT + + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT + + ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT - MAX( - + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-1066
SELECT - MAX ( - + 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT - MAX( ALL - 96 )
----
96

skipif mysql # not compatible
query I rowsort label-1067
SELECT - MAX ( ALL - 96 )
----
96

query I rowsort
SELECT DISTINCT + + 88 col2
----
88

query I rowsort
SELECT - 80 + - 87 AS col2
----
-167

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT ALL - COUNT( * ), + 35 + + 38 col0
----
-1
73

skipif mysql # not compatible
query II rowsort label-1070
SELECT ALL - COUNT ( * ), + 35 + + 38 col0
----
-1
73

query I rowsort
SELECT 95 + - + 87
----
8

query I rowsort
SELECT DISTINCT - 95 * + 76 AS col1
----
-7220

query I rowsort
SELECT DISTINCT - 61 * - + 51
----
3111

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT - MAX( ALL 1 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1074
SELECT - MAX ( ALL 1 ) AS col2
----
-1

query I rowsort
SELECT + ( - ( + - 44 ) ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1076
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) * - + CAST( NULL AS SIGNED ) + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) * - + CAST ( NULL AS INTEGER ) + + 99 AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( + - 50, 40 )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT + MIN( ALL + 62 ) + - - 36 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-1078
SELECT + MIN ( ALL + 62 ) + - - 36 AS col2
----
98

query I rowsort
SELECT ALL 10 * + 2
----
20

query I rowsort
SELECT - ( - 75 ) col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1081
SELECT + 10 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1081
SELECT + 10 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1082
SELECT ALL + ( + + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1082
SELECT ALL + ( + + COUNT ( * ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1083
SELECT ALL CAST( - 67 AS SIGNED ) + + ( - MIN( - - 52 ) )
----
-119

skipif mysql # not compatible
query I rowsort label-1083
SELECT ALL CAST ( - 67 AS INTEGER ) + + ( - MIN ( - - 52 ) )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT DISTINCT - 73 + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT - 73 + COUNT ( * )
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1085
SELECT SUM( ALL - - CAST( NULL AS DECIMAL ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT SUM ( ALL - - CAST ( NULL AS REAL ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 30 * - + 66
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1087
SELECT 74 * - CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1087
SELECT 74 * - CAST ( NULL AS REAL ) * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 65 + - 49 AS col2
----
-114

query I rowsort
SELECT - + ( 97 ) col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT MIN( DISTINCT ( 32 ) ) col2
----
32

skipif mysql # not compatible
query I rowsort label-1090
SELECT MIN ( DISTINCT ( 32 ) ) col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT MIN( ALL + + 11 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-1091
SELECT MIN ( ALL + + 11 ) col2
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1092
SELECT ALL - 95 + - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL - 95 + - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT + - ( - + MIN( ALL + 88 ) )
----
88

skipif mysql # not compatible
query I rowsort label-1093
SELECT + - ( - + MIN ( ALL + 88 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT DISTINCT - COUNT( * ) + - - 18 + - 21 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT - COUNT ( * ) + - - 18 + - 21 AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1095
SELECT DISTINCT 17 + - 67 DIV + COUNT( * ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1095
SELECT DISTINCT 17 + - 67 / + COUNT ( * ) AS col0
----
-50

query I rowsort
SELECT ALL ( - - 91 ) AS col2
----
91

query I rowsort
SELECT ALL - 94 * + 93
----
-8742

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT + 17 DIV - + 14
----
-1

skipif mysql # not compatible
query I rowsort label-1098
SELECT + 17 / - + 14
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1099
SELECT ALL + + CAST( - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + + CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT - - 44 * 91
----
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT + MIN( - 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-1101
SELECT + MIN ( - 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT + - 60 * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-1102
SELECT + - 60 * - COUNT ( * )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1103
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT 93 * 91
----
8463

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1106
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - - ( + 57 )
----
57

query I rowsort
SELECT DISTINCT NULLIF ( - 54, + 17 )
----
-54

query II rowsort
SELECT - 17, - 92 AS col0
----
-17
-92

query II rowsort
SELECT - 20, - 94 col2
----
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT - COUNT( DISTINCT + 12 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1111
SELECT - COUNT ( DISTINCT + 12 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1112
SELECT DISTINCT 94 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1112
SELECT DISTINCT 94 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( 57 ) * + 66 col2
----
3762

query I rowsort
SELECT DISTINCT + ( 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1115
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1115
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - ( - 99 ) col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT DISTINCT + 63 + COUNT( DISTINCT - ( - 79 ) )
----
64

skipif mysql # not compatible
query I rowsort label-1117
SELECT DISTINCT + 63 + COUNT ( DISTINCT - ( - 79 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL + COUNT( * ) - 57 * - - MIN( 96 ) AS col0
----
-5471

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL + COUNT ( * ) - 57 * - - MIN ( 96 ) AS col0
----
-5471

onlyif mysql # DIV for integer division: 
query I rowsort label-1119
SELECT ALL + 65 DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-1119
SELECT ALL + 65 / + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ALL - COUNT( + 72 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL - COUNT ( + 72 ) AS col2
----
-1

query II rowsort
SELECT ALL 90 AS col1, 2
----
90
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT COUNT( * ) * 70
----
70

skipif mysql # not compatible
query I rowsort label-1122
SELECT COUNT ( * ) * 70
----
70

query I rowsort
SELECT ALL 28 * - - 49 col2
----
1372

query I rowsort
SELECT ALL - + ( - - ( - 47 ) ) * 1
----
47

query I rowsort
SELECT - - 61 * + ( + 86 ) AS col2
----
5246

query II rowsort
SELECT 37 * 97 - - 44 AS col0, ( + + 27 ) AS col2
----
3633
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT + CAST( - 50 AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1127
SELECT + CAST ( - 50 AS INTEGER ) AS col0
----
-50

query I rowsort
SELECT DISTINCT + 70 * - 45
----
-3150

query I rowsort
SELECT DISTINCT - 72 - 65 AS col1
----
-137

query I rowsort
SELECT + 1 + + 91
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT ALL 5 + - 17 - - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL 5 + - 17 - - COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT ALL + COUNT( * ) * 83 col2
----
83

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL + COUNT ( * ) * 83 col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1133
SELECT ALL - CAST( NULL AS SIGNED ) * 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL - CAST ( NULL AS INTEGER ) * 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL - COUNT( ALL - 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - COUNT ( ALL - 52 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT + MAX( ALL 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-1135
SELECT + MAX ( ALL 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT MAX( 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1136
SELECT MAX ( 55 ) AS col1
----
55

query I rowsort
SELECT 8 * + 62
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT COUNT( - + 50 )
----
1

skipif mysql # not compatible
query I rowsort label-1138
SELECT COUNT ( - + 50 )
----
1

query I rowsort
SELECT + 92 * 66
----
6072

query I rowsort
SELECT + + ( - ( + + 85 ) )
----
-85

query I rowsort
SELECT - - 93 col1
----
93

query I rowsort
SELECT - - 32 + - 4 AS col0
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1143
SELECT + COUNT( * ), - COUNT( * ) AS col0
----
1
-1

skipif mysql # not compatible
query II rowsort label-1143
SELECT + COUNT ( * ), - COUNT ( * ) AS col0
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1145
SELECT + 85 AS col2, ( + COUNT( * ) )
----
85
1

skipif mysql # not compatible
query II rowsort label-1145
SELECT + 85 AS col2, ( + COUNT ( * ) )
----
85
1

query I rowsort
SELECT DISTINCT - - 51 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL - - ( - 10 ) + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL - - ( - 10 ) + - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL + COUNT( * ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + COUNT ( * ) + 55
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT + COUNT( * ) + - MAX( ALL - 15 )
----
16

skipif mysql # not compatible
query I rowsort label-1149
SELECT + COUNT ( * ) + - MAX ( ALL - 15 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1150
SELECT MIN( ALL - 86 ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1150
SELECT MIN ( ALL - 86 ) AS col1
----
-86

query I rowsort
SELECT - 51 * - - 11 col0
----
-561

query I rowsort
SELECT - + ( + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT ALL 92 * COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL 92 * COUNT ( * )
----
92

query I rowsort
SELECT 53 * 73 AS col0
----
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL MIN( DISTINCT + 18 )
----
18

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL MIN ( DISTINCT + 18 )
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1156
SELECT - ( CAST( NULL AS DECIMAL ) ) * - - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-1156
SELECT - ( CAST ( NULL AS REAL ) ) * - - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT - SUM( - - 22 ) AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-1157
SELECT - SUM ( - - 22 ) AS col1
----
-22

query I rowsort
SELECT + 28 + + 98 AS col2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL + MIN( ALL 36 )
----
36

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL + MIN ( ALL 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT + COUNT( * ) - + COUNT( * ) + + + 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1160
SELECT + COUNT ( * ) - + COUNT ( * ) + + + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT ALL COUNT( * ) - - - ( + 28 )
----
-27

skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL COUNT ( * ) - - - ( + 28 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + ( + MIN( ALL + ( + 69 ) ) ) - - ( + COUNT( - + 30 ) ) col2
----
70

skipif mysql # not compatible
query I rowsort label-1162
SELECT + ( + MIN ( ALL + ( + 69 ) ) ) - - ( + COUNT ( - + 30 ) ) col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT ALL + SUM( + 2 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL + SUM ( + 2 ) AS col0
----
2

query I rowsort
SELECT ALL 20 * 7 AS col1
----
140

query I rowsort
SELECT ALL + - ( 78 )
----
-78

query I rowsort
SELECT ALL - 86 * + 22 AS col1
----
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT - 69 * - COUNT( * ) * - COUNT( + ( + 39 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-1167
SELECT - 69 * - COUNT ( * ) * - COUNT ( + ( + 39 ) ) AS col1
----
-69

query I rowsort
SELECT DISTINCT + ( - 15 )
----
-15

query II rowsort
SELECT ALL - 35, 1 - - 22 col1
----
-35
23

query I rowsort
SELECT ALL - ( ( + 97 ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT DISTINCT - MAX( + ( - - 18 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT - MAX ( + ( - - 18 ) ) AS col2
----
-18

query I rowsort
SELECT DISTINCT + + 31 + + - 10 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT 50 * COUNT( * ) + COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-1173
SELECT 50 * COUNT ( * ) + COUNT ( * )
----
51

query I rowsort
SELECT DISTINCT ( ( + 73 ) )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT - + MAX( DISTINCT - - 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-1175
SELECT - + MAX ( DISTINCT - - 13 ) AS col0
----
-13

query I rowsort
SELECT ALL ( + + 34 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ( + + ( COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1177
SELECT ( + + ( COUNT ( * ) ) )
----
1

query I rowsort
SELECT ALL + + 9 AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT + - ( 95 ) - 81 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1179
SELECT + - ( 95 ) - 81 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1180
SELECT 31 AS col0, MIN( ALL 95 )
----
31
95

skipif mysql # not compatible
query II rowsort label-1180
SELECT 31 AS col0, MIN ( ALL 95 )
----
31
95

query I rowsort
SELECT ( - + 2 )
----
-2

query I rowsort
SELECT ALL - + 82 col1
----
-82

query II rowsort
SELECT - 3 AS col1, - ( - 74 ) AS col1
----
-3
74

query I rowsort
SELECT + 4 + 12 AS col2
----
16

query I rowsort
SELECT + 79 * 63 AS col2
----
4977

query I rowsort
SELECT DISTINCT + 8 * 93 AS col1
----
744

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT - COUNT( * ) + 5
----
4

skipif mysql # not compatible
query I rowsort label-1187
SELECT - COUNT ( * ) + 5
----
4

query I rowsort
SELECT DISTINCT ( - 85 ) col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT + 56 + - SUM( DISTINCT - 86 ) AS col1
----
142

skipif mysql # not compatible
query I rowsort label-1189
SELECT + 56 + - SUM ( DISTINCT - 86 ) AS col1
----
142

query I rowsort
SELECT DISTINCT ( - 94 ) AS col0
----
-94

query I rowsort
SELECT ALL - - 60 AS col0
----
60

query I rowsort
SELECT 61 + - ( 21 ) AS col2
----
40

query II rowsort
SELECT DISTINCT - 61 AS col2, 62
----
-61
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT 25 * - + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-1194
SELECT 25 * - + COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT - 91 * - + COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-1195
SELECT - 91 * - + COUNT ( * ) AS col1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1196
SELECT DISTINCT - 57 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT - 57 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT COUNT( * ) DIV + 4 * - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT COUNT ( * ) / + 4 * - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL 57 * + COUNT( * ) col2
----
57

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL 57 * + COUNT ( * ) col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT MAX( ALL + 6 )
----
6

skipif mysql # not compatible
query I rowsort label-1199
SELECT MAX ( ALL + 6 )
----
6

query I rowsort
SELECT + 97 * - + 71 AS col1
----
-6887

query I rowsort
SELECT - 56 * - - 3 * + 15
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1202
SELECT DISTINCT + CAST( ( - - COUNT( * ) ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT + CAST ( ( - - COUNT ( * ) ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL - COUNT( * ) - 5
----
-6

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - COUNT ( * ) - 5
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT DISTINCT SUM( DISTINCT + - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-1204
SELECT DISTINCT SUM ( DISTINCT + - 98 ) AS col1
----
-98

query I rowsort
SELECT - 37 + + + 74 AS col0
----
37

query I rowsort
SELECT ALL - 80 + + + ( - 48 ) * 29 AS col2
----
-1472

query I rowsort
SELECT 63 * + - 70
----
-4410

query I rowsort
SELECT DISTINCT - - 36 AS col2
----
36

query I rowsort
SELECT DISTINCT - ( - ( + - 34 ) ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT ALL 79 * + COUNT( * ) * + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL 79 * + COUNT ( * ) * + COUNT ( * ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT ALL + - MIN( - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + - MIN ( - 48 )
----
48

query I rowsort
SELECT ALL + ( - 75 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-1213
SELECT DISTINCT - 19 AS col2, COUNT( * ) + - + 56 AS col1
----
-19
-55

skipif mysql # not compatible
query II rowsort label-1213
SELECT DISTINCT - 19 AS col2, COUNT ( * ) + - + 56 AS col1
----
-19
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT DISTINCT + 67 - + COUNT( * ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT + 67 - + COUNT ( * ) AS col2
----
66

query I rowsort
SELECT ALL + 53 - - + 50
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL + ( - + COUNT( * ) ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL + ( - + COUNT ( * ) ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT + MAX( ALL - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-1217
SELECT + MAX ( ALL - + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1218
SELECT - SUM( ALL - - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-1218
SELECT - SUM ( ALL - - 26 )
----
-26

query I rowsort
SELECT - 27 + - 84
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT + ( + ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1220
SELECT + ( + ( - + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT - 68 * - 14 * - 25 AS col0
----
-23800

query I rowsort
SELECT ( + + 92 )
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1223
SELECT - + 53 / 96 * + 23 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1223
SELECT - + 53 / 96 * + 23 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT 36 + + COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-1224
SELECT 36 + + COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT DISTINCT MAX( - - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT MAX ( - - 66 ) AS col2
----
66

query I rowsort
SELECT ALL 87 * + 25
----
2175

query I rowsort
SELECT ALL - 0 + - 25
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT DISTINCT - 83 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1228
SELECT DISTINCT - 83 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1229
SELECT - 5 DIV + - 43 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1229
SELECT - 5 / + - 43 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT SUM( + - 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-1230
SELECT SUM ( + - 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT MAX( - + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-1231
SELECT MAX ( - + 2 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1232
SELECT + - 98 DIV + ( - + ( - 72 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1232
SELECT + - 98 / + ( - + ( - 72 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1233
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) AS col2
----
1

query I rowsort
SELECT ALL + + 17 * 44 AS col1
----
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1235
SELECT - - 65 + - CAST( - 50 AS SIGNED ) AS col0
----
115

skipif mysql # not compatible
query I rowsort label-1235
SELECT - - 65 + - CAST ( - 50 AS INTEGER ) AS col0
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1236
SELECT 81 DIV - 23 + + ( - + MIN( ALL + + 88 ) ) * + ( - 6 )
----
525

skipif mysql # not compatible
query I rowsort label-1236
SELECT 81 / - 23 + + ( - + MIN ( ALL + + 88 ) ) * + ( - 6 )
----
525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1237
SELECT ALL - 3 DIV + + 65 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL - 3 / + + 65 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT 47 * - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-1238
SELECT 47 * - COUNT ( * )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT 98 + - MIN( DISTINCT + 34 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-1239
SELECT 98 + - MIN ( DISTINCT + 34 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT DISTINCT ( - + 96 ) * + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-1240
SELECT DISTINCT ( - + 96 ) * + COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT DISTINCT 32 * ( + - 94 )
----
-3008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT + - 10 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + - 10 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 61 col2
----
61

query I rowsort
SELECT + 9 - - 57 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1245
SELECT + COUNT( * ) + - - 94
----
95

skipif mysql # not compatible
query I rowsort label-1245
SELECT + COUNT ( * ) + - - 94
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT + SUM( + 31 )
----
31

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT + SUM ( + 31 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL 69 - NULLIF ( MAX( DISTINCT + 34 ), 83 )
----
35

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL 69 - NULLIF ( MAX ( DISTINCT + 34 ), 83 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT - MAX( - 56 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-1248
SELECT - MAX ( - 56 ) AS col2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1249
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 19 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 19 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1250
SELECT + 77 * + CAST( NULL AS SIGNED ) - - - COUNT( * ) + + ( + - 99 ), 76 col1
----
NULL
76

skipif mysql # not compatible
query II rowsort label-1250
SELECT + 77 * + CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + + ( + - 99 ), 76 col1
----
NULL
76

query I rowsort
SELECT ALL - - 78 col1
----
78

query I rowsort
SELECT 10 + + + 43 AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1253
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - ( + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - ( + 28 )
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( + 99, + 85 ) AS col1
----
-99

query I rowsort
SELECT ALL - 59 * - 23
----
1357

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT ALL ( - 42 ) * COUNT( * ) * - 60 AS col1
----
2520

skipif mysql # not compatible
query I rowsort label-1256
SELECT ALL ( - 42 ) * COUNT ( * ) * - 60 AS col1
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT DISTINCT + - 83 * + ( + 47 ) + + COUNT( * )
----
-3900

skipif mysql # not compatible
query I rowsort label-1257
SELECT DISTINCT + - 83 * + ( + 47 ) + + COUNT ( * )
----
-3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1258
SELECT + 63 + - + CAST( COUNT( * ) AS SIGNED ) * + - 11 col1
----
74

skipif mysql # not compatible
query I rowsort label-1258
SELECT + 63 + - + CAST ( COUNT ( * ) AS INTEGER ) * + - 11 col1
----
74

query I rowsort
SELECT DISTINCT ( - 30 )
----
-30

query II rowsort
SELECT 95 col0, 13
----
95
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT + MIN( DISTINCT + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-1261
SELECT + MIN ( DISTINCT + 63 ) AS col1
----
63

query I rowsort
SELECT + 95 + + 66
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT ALL + CAST( 11 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL + CAST ( 11 AS INTEGER ) AS col1
----
11

query I rowsort
SELECT DISTINCT 3 + - 5 - - - 90 AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT ( + COUNT( * ) ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1265
SELECT ( + COUNT ( * ) ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT DISTINCT - COUNT( DISTINCT 57 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT - COUNT ( DISTINCT 57 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1267
SELECT 82 DIV + 27 * COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1267
SELECT 82 / + 27 * COUNT ( * ) AS col1
----
3

query I rowsort
SELECT + 9 - 78
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT MIN( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-1269
SELECT MIN ( ALL - 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT + COUNT( * ) + - - 47 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-1270
SELECT + COUNT ( * ) + - - 47 AS col0
----
48

query I rowsort
SELECT - 6 + - + 45
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT - + 14 DIV - 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1272
SELECT - + 14 / - 69 AS col2
----
0

query I rowsort
SELECT + ( - 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL + COUNT( ALL 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL + COUNT ( ALL 19 ) AS col2
----
1

query I rowsort
SELECT DISTINCT - ( + + 31 )
----
-31

query II rowsort
SELECT ALL - 30 AS col1, 21 AS col2
----
-30
21

query I rowsort
SELECT ALL + 50 * + 93 AS col0
----
4650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1278
SELECT ALL - + ( + CAST( NULL AS SIGNED ) ) + MIN( DISTINCT + + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1278
SELECT ALL - + ( + CAST ( NULL AS INTEGER ) ) + MIN ( DISTINCT + + 58 ) AS col0
----
NULL

query I rowsort
SELECT ALL - 1 * 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL - COUNT( * ) + 75 col0
----
74

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL - COUNT ( * ) + 75 col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT ALL 37 * - - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-1281
SELECT ALL 37 * - - COUNT ( * )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT ALL + CAST( NULL AS SIGNED ) / 48 * 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + CAST ( NULL AS INTEGER ) / 48 * 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1283
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1283
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1284
SELECT DISTINCT + 23 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT + 23 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 33 AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1286
SELECT ALL CAST( - - 12 AS SIGNED ) + - + 16 + COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL CAST ( - - 12 AS INTEGER ) + - + 16 + COUNT ( * ) AS col2
----
-3

query I rowsort
SELECT + 32 * - + 67 * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1288
SELECT + ( - + COUNT( * ) ) + + 41, 81 AS col0
----
40
81

skipif mysql # not compatible
query II rowsort label-1288
SELECT + ( - + COUNT ( * ) ) + + 41, 81 AS col0
----
40
81

query I rowsort
SELECT + 78 * + 93
----
7254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1290
SELECT - CAST( + - NULLIF ( - - 78, - 50 ) AS SIGNED ) + - - 7
----
85

skipif mysql # not compatible
query I rowsort label-1290
SELECT - CAST ( + - NULLIF ( - - 78, - 50 ) AS INTEGER ) + - - 7
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1291
SELECT DISTINCT - 37 DIV 34 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT - 37 / 34 AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT + 55 * - ( - - CAST( 16 AS SIGNED ) ) AS col1
----
-880

skipif mysql # not compatible
query I rowsort label-1292
SELECT + 55 * - ( - - CAST ( 16 AS INTEGER ) ) AS col1
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT DISTINCT + ( COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT + ( COUNT ( * ) ) col0
----
1

query I rowsort
SELECT + + ( - 37 ) * - 16
----
592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT ALL + CAST( - ( 56 ) AS SIGNED ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL + CAST ( - ( 56 ) AS INTEGER ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL - + ( + COUNT( * ) ) * - MIN( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL - + ( + COUNT ( * ) ) * - MIN ( + 14 )
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1297
SELECT ALL - NULLIF ( + 89, - - 53 + + COUNT( * ) ) DIV - SUM( ALL - 52 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - NULLIF ( + 89, - - 53 + + COUNT ( * ) ) / - SUM ( ALL - 52 ) AS col2
----
-1

query I rowsort
SELECT ALL - + 2 AS col1
----
-2

query I rowsort
SELECT DISTINCT - - 20 col2
----
20

query I rowsort
SELECT DISTINCT 16 - + 81 AS col0
----
-65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1301
SELECT - COUNT( - CAST( NULL AS DECIMAL ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1301
SELECT - COUNT ( - CAST ( NULL AS REAL ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1302
SELECT ALL + 90 col2, - NULLIF ( 51, + - COUNT( * ) ) * 60 AS col0
----
90
-3060

skipif mysql # not compatible
query II rowsort label-1302
SELECT ALL + 90 col2, - NULLIF ( 51, + - COUNT ( * ) ) * 60 AS col0
----
90
-3060

query I rowsort
SELECT DISTINCT 41 * 81 * - 13 AS col0
----
-43173

onlyif mysql # aggregate syntax: 
query I rowsort label-1304
SELECT - - 92 * - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-1304
SELECT - - 92 * - - COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT MAX( - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1305
SELECT MAX ( - 60 ) AS col0
----
-60

query I rowsort
SELECT - + 69 AS col0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1307
SELECT + 13 DIV - - 74 - - 9 + + + 18
----
27

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 13 / - - 74 - - 9 + + + 18
----
27

query I rowsort
SELECT ALL + + 7 AS col1
----
7

query I rowsort
SELECT DISTINCT + ( - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-1310
SELECT ALL + 20, - COUNT( * ) AS col0
----
20
-1

skipif mysql # not compatible
query II rowsort label-1310
SELECT ALL + 20, - COUNT ( * ) AS col0
----
20
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL + COUNT( - - 14 )
----
1

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL + COUNT ( - - 14 )
----
1

query I rowsort
SELECT ( - 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1313
SELECT + ( + NULLIF ( 35, + COUNT( * ) ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-1313
SELECT + ( + NULLIF ( 35, + COUNT ( * ) ) ) AS col0
----
35

query I rowsort
SELECT + ( + - 71 )
----
-71

query I rowsort
SELECT DISTINCT - ( + ( + + 84 ) ) + + - 70
----
-154

query I rowsort
SELECT + 39 * 68
----
2652

query I rowsort
SELECT - - ( - 85 ) AS col1
----
-85

query I rowsort
SELECT 4 * - + 37 AS col1
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL + MAX( - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL + MAX ( - 57 )
----
-57

query II rowsort
SELECT - + 58 * 92, + 47 AS col2
----
-5336
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1321
SELECT - 75 * + MAX( 41 ) AS col1
----
-3075

skipif mysql # not compatible
query I rowsort label-1321
SELECT - 75 * + MAX ( 41 ) AS col1
----
-3075

query I rowsort
SELECT ( + + 77 ) AS col1
----
77

query I rowsort
SELECT ALL 24 * + 89 AS col1
----
2136

query I rowsort
SELECT + 96 + + 92 AS col2
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL 97 + COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL 97 + COUNT ( * ) AS col1
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT ALL - 53 DIV - - 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - 53 / - - 98 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT - COUNT( * ) * + 95
----
-95

skipif mysql # not compatible
query I rowsort label-1327
SELECT - COUNT ( * ) * + 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1328
SELECT DISTINCT - - CAST( + ( - COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-1328
SELECT DISTINCT - - CAST ( + ( - COUNT ( * ) ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT - 62 + + COUNT( * ) col2
----
-61

skipif mysql # not compatible
query I rowsort label-1329
SELECT - 62 + + COUNT ( * ) col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL COUNT( * ) * 50 + + 82
----
132

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL COUNT ( * ) * 50 + + 82
----
132

query I rowsort
SELECT ALL 48 * + 10 AS col2
----
480

query I rowsort
SELECT + + 46 col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT - COUNT( * ) + - 72 AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1333
SELECT - COUNT ( * ) + - 72 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT + 18 * + 93 + + + 34 * + COUNT( + + 40 ) AS col0
----
1708

skipif mysql # not compatible
query I rowsort label-1334
SELECT + 18 * + 93 + + + 34 * + COUNT ( + + 40 ) AS col0
----
1708

query I rowsort
SELECT ALL 79 * - ( - 18 ) col2
----
1422

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1336
SELECT - ( + + SUM( ALL - CAST( NULL AS DECIMAL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT - ( + + SUM ( ALL - CAST ( NULL AS REAL ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + COUNT( + + 3 )
----
1

skipif mysql # not compatible
query I rowsort label-1337
SELECT + COUNT ( + + 3 )
----
1

query I rowsort
SELECT + - 19 * - + 42 AS col1
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ALL + MAX( DISTINCT + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + MAX ( DISTINCT + 13 )
----
13

query I rowsort
SELECT ALL - 62 * - - COALESCE ( - 29, - 58, - 47 ) AS col2
----
1798

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT ALL - MIN( ALL 24 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-1341
SELECT ALL - MIN ( ALL 24 ) AS col1
----
-24

query I rowsort
SELECT - 78 * - 46 AS col1
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT + 99 + + COUNT( * ) + - 87 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-1343
SELECT + 99 + + COUNT ( * ) + - 87 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT + SUM( ALL - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-1344
SELECT + SUM ( ALL - 45 )
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-1345
SELECT + COUNT( * ) AS col2, + ( - 20 )
----
1
-20

skipif mysql # not compatible
query II rowsort label-1345
SELECT + COUNT ( * ) AS col2, + ( - 20 )
----
1
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT MIN( ALL - 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-1346
SELECT MIN ( ALL - 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1347
SELECT ALL ( - CAST( - - SUM( ALL + 59 ) AS SIGNED ) )
----
-59

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL ( - CAST ( - - SUM ( ALL + 59 ) AS INTEGER ) )
----
-59

query I rowsort
SELECT + + 45 + + - 8
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT + SUM( ALL 58 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1349
SELECT + SUM ( ALL 58 ) AS col0
----
58

query I rowsort
SELECT ( ( 9 ) )
----
9

query I rowsort
SELECT ( - 91 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1352
SELECT COUNT( * ), + 13 + 21 AS col0
----
1
34

skipif mysql # not compatible
query II rowsort label-1352
SELECT COUNT ( * ), + 13 + 21 AS col0
----
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT 3 + - COUNT( * ) * + 66 * + 8
----
-525

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT 3 + - COUNT ( * ) * + 66 * + 8
----
-525

query I rowsort
SELECT ALL 44 + + 92 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT DISTINCT - COUNT( - 33 ) + + 23
----
22

skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT - COUNT ( - 33 ) + + 23
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1356
SELECT DISTINCT - ( + CAST( - + 24 AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT - ( + CAST ( - + 24 AS INTEGER ) )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1357
SELECT ( 36 ) DIV + COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-1357
SELECT ( 36 ) / + COUNT ( * ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT COUNT( * ) * COUNT( * ) AS col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-1358
SELECT COUNT ( * ) * COUNT ( * ) AS col1, - COUNT ( * )
----
1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT DISTINCT + - 55 DIV + ( - - 25 )
----
-2

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + - 55 / + ( - - 25 )
----
-2

query I rowsort
SELECT DISTINCT ( + + 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1361
SELECT + 82 AS col0, - COUNT( * )
----
82
-1

skipif mysql # not compatible
query II rowsort label-1361
SELECT + 82 AS col0, - COUNT ( * )
----
82
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT MAX( DISTINCT 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1362
SELECT MAX ( DISTINCT 15 ) AS col1
----
15

query II rowsort
SELECT 15 AS col2, 76
----
15
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT ALL + COUNT( DISTINCT - 33 )
----
1

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + COUNT ( DISTINCT - 33 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1365
SELECT - 75 - + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1365
SELECT - 75 - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1366
SELECT ALL ( COUNT( * ) ), + 40 DIV + - 69 AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-1366
SELECT ALL ( COUNT ( * ) ), + 40 / + - 69 AS col0
----
1
0

query I rowsort
SELECT + ( - + 87 ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT - + COUNT( * ) + + 66 * - - 86
----
5675

skipif mysql # not compatible
query I rowsort label-1368
SELECT - + COUNT ( * ) + + 66 * - - 86
----
5675

query I rowsort
SELECT - ( - + 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT DISTINCT COUNT( - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-1370
SELECT DISTINCT COUNT ( - 41 )
----
1

query I rowsort
SELECT ALL - 82 + - + 96
----
-178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1372
SELECT 26 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1372
SELECT 26 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 32 * 32 AS col0
----
1024

query I rowsort
SELECT + 53 * 54
----
2862

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT - - COUNT( * ) - - 22 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT - - COUNT ( * ) - - 22 AS col2
----
23

query I rowsort
SELECT 93 - - ( 78 )
----
171

query I rowsort
SELECT DISTINCT 32 * + + 50
----
1600

query I rowsort
SELECT ALL 67 * - 70
----
-4690

query I rowsort
SELECT DISTINCT 9 * + 14 + 25
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1380
SELECT + CASE COUNT( - 4 ) WHEN 43 THEN NULL ELSE - CAST( NULL AS SIGNED ) * + 51 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1380
SELECT + CASE COUNT ( - 4 ) WHEN 43 THEN NULL ELSE - CAST ( NULL AS INTEGER ) * + 51 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL ( + ( COUNT( * ) ) ) * - 19 + + ( 85 )
----
66

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL ( + ( COUNT ( * ) ) ) * - 19 + + ( 85 )
----
66

query I rowsort
SELECT DISTINCT + 40 * + 40
----
1600

query I rowsort
SELECT - ( - 25 ) AS col2
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1385
SELECT + 1 * - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1385
SELECT + 1 * - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 66, + - 85 )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1387
SELECT 81 * - - ( NULLIF ( + CAST( - 49 AS SIGNED ), 49 ) ) + COUNT( * )
----
-3968

skipif mysql # not compatible
query I rowsort label-1387
SELECT 81 * - - ( NULLIF ( + CAST ( - 49 AS INTEGER ), 49 ) ) + COUNT ( * )
----
-3968

query I rowsort
SELECT ALL - 1 + + - 1
----
-2

query I rowsort
SELECT 1 * 83
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - MAX( ALL - 27 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1390
SELECT - MAX ( ALL - 27 ) AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1391
SELECT ALL 18 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-1391
SELECT ALL 18 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
18
NULL

query I rowsort
SELECT DISTINCT 3 * 93 AS col2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + COUNT( * ) + 44
----
45

skipif mysql # not compatible
query I rowsort label-1393
SELECT + COUNT ( * ) + 44
----
45

query I rowsort
SELECT - ( - + 19 ) AS col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1395
SELECT - COUNT( * ) * - 4 * 21 - - CAST( NULL AS SIGNED ) * 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1395
SELECT - COUNT ( * ) * - 4 * 21 - - CAST ( NULL AS INTEGER ) * 48 AS col2
----
NULL

query I rowsort
SELECT - 8 * - 83
----
664

query I rowsort
SELECT ( - - ( 89 ) ) AS col0
----
89

query I rowsort
SELECT ALL + ( - - 22 ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT NULLIF ( + + CAST( + 18 AS SIGNED ), + 52 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-1399
SELECT NULLIF ( + + CAST ( + 18 AS INTEGER ), + 52 ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1400
SELECT + COALESCE ( - 90, - CAST( + - COUNT( * ) AS SIGNED ) )
----
-90

skipif mysql # not compatible
query I rowsort label-1400
SELECT + COALESCE ( - 90, - CAST ( + - COUNT ( * ) AS INTEGER ) )
----
-90

query I rowsort
SELECT 55 - - 74 - 84
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1402
SELECT CAST( NULL AS SIGNED ) * 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT CAST ( NULL AS INTEGER ) * 65 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1403
SELECT ALL - 0 AS col2, 69 + + COUNT( * ) * - + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1403
SELECT ALL - 0 AS col2, 69 + + COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL + 39 * - + COUNT( * ) * 64 AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL + 39 * - + COUNT ( * ) * 64 AS col0
----
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1405
SELECT ALL - NULLIF ( - 90, + - 15 ), + CAST( NULL AS SIGNED ) AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-1405
SELECT ALL - NULLIF ( - 90, + - 15 ), + CAST ( NULL AS INTEGER ) AS col0
----
90
NULL

query I rowsort
SELECT 37 + + + 51 AS col1
----
88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1407
SELECT - CAST( NULL AS DECIMAL ) + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1407
SELECT - CAST ( NULL AS REAL ) + + 88 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1408
SELECT COUNT( 34 )
----
1

skipif mysql # not compatible
query I rowsort label-1408
SELECT COUNT ( 34 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT + 47 * + - COUNT( * ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT + 47 * + - COUNT ( * ) AS col1
----
-47

query I rowsort
SELECT ( - - 15 ) AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1411
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - - 23 + 7
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT - SUM( - + 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1413
SELECT - SUM ( - + 3 ) AS col2
----
3

query I rowsort
SELECT - 72 * + 60
----
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT DISTINCT - NULLIF ( - 4, + + COUNT( * ) ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - NULLIF ( - 4, + + COUNT ( * ) ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1416
SELECT 33 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1416
SELECT 33 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1417
SELECT 66 DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-1417
SELECT 66 / 91
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1418
SELECT + - 82 AS col0, COUNT( * ) AS col2
----
-82
1

skipif mysql # not compatible
query II rowsort label-1418
SELECT + - 82 AS col0, COUNT ( * ) AS col2
----
-82
1

query I rowsort
SELECT ALL - 93 * - + 7 AS col2
----
651

query I rowsort
SELECT ALL 20 + 26 AS col2
----
46

query I rowsort
SELECT DISTINCT - + 64 col2
----
-64

query I rowsort
SELECT - 57 + + 2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1423
SELECT ALL SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - - 16 + + 27
----
43

query I rowsort
SELECT DISTINCT + ( + 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT DISTINCT ( ( - + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT ( ( - + COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1427
SELECT ALL 60 + - ( + COUNT( * ) ) + COUNT( * ) AS col0, + 76
----
60
76

skipif mysql # not compatible
query II rowsort label-1427
SELECT ALL 60 + - ( + COUNT ( * ) ) + COUNT ( * ) AS col0, + 76
----
60
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1428
SELECT ALL - 77 + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-1428
SELECT ALL - 77 + - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1429
SELECT + COUNT( * ) DIV - + 68 + 8
----
8

skipif mysql # not compatible
query I rowsort label-1429
SELECT + COUNT ( * ) / - + 68 + 8
----
8

query I rowsort
SELECT + + 34 AS col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT + + COUNT( * ) * + 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1431
SELECT + + COUNT ( * ) * + 53 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT + 8 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT + 8 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 14 * - 10
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1434
SELECT ALL - ( CAST( AVG ( 78 ) AS SIGNED ) )
----
-78

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - ( CAST ( AVG ( 78 ) AS INTEGER ) )
----
-78

query I rowsort
SELECT ALL 84 + - - 17
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-1436
SELECT ( - MAX( ALL 98 ) ) - - 15, 61 AS col2
----
-83
61

skipif mysql # not compatible
query II rowsort label-1436
SELECT ( - MAX ( ALL 98 ) ) - - 15, 61 AS col2
----
-83
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT + 60 + - + MIN( ALL - 21 ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-1437
SELECT + 60 + - + MIN ( ALL - 21 ) AS col2
----
81

query I rowsort
SELECT ALL + 99 * + 7
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT - ( + + COUNT( * ) ) + MAX( - 96 )
----
-97

skipif mysql # not compatible
query I rowsort label-1439
SELECT - ( + + COUNT ( * ) ) + MAX ( - 96 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL COUNT( * ) * - + ( - COUNT( * ) ) + - 52 col0
----
-51

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL COUNT ( * ) * - + ( - COUNT ( * ) ) + - 52 col0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1441
SELECT - 82 * - 9, - COUNT( * ) DIV - COUNT( * ) AS col2
----
738
1

skipif mysql # not compatible
query II rowsort label-1441
SELECT - 82 * - 9, - COUNT ( * ) / - COUNT ( * ) AS col2
----
738
1

query I rowsort
SELECT + 67 * + 23
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT ALL SUM( DISTINCT ( 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-1443
SELECT ALL SUM ( DISTINCT ( 4 ) )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1444
SELECT ALL - ( - + CAST( + - COUNT( * ) AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL - ( - + CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - ( - 55 ) AS col0
----
55

query I rowsort
SELECT ALL + + 80 col1
----
80

query I rowsort
SELECT DISTINCT + ( + 98 ) col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT CAST( + + 55 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-1448
SELECT CAST ( + + 55 AS INTEGER ) AS col0
----
55

query I rowsort
SELECT DISTINCT 73 + + 29
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1450
SELECT ALL + 71 + - 8 DIV + 39
----
71

skipif mysql # not compatible
query I rowsort label-1450
SELECT ALL + 71 + - 8 / + 39
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT - + MIN( + 38 ) col1
----
-38

skipif mysql # not compatible
query I rowsort label-1451
SELECT - + MIN ( + 38 ) col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1452
SELECT ALL + ( + - ( ( + - SUM( 62 ) ) ) ) + + CAST( + + 28 AS SIGNED )
----
90

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL + ( + - ( ( + - SUM ( 62 ) ) ) ) + + CAST ( + + 28 AS INTEGER )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT MAX( + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1453
SELECT MAX ( + 78 ) AS col2
----
78

query II rowsort
SELECT - 66 AS col2, + ( + 97 ) AS col2
----
-66
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1455
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT ALL - MAX( + ( - - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL - MAX ( + ( - - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT ALL COUNT( * ) * - 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL COUNT ( * ) * - 58 AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1458
SELECT DISTINCT - CAST( - 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT - CAST ( - 63 AS INTEGER )
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT ALL - - CAST( - 42 AS SIGNED ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL - - CAST ( - 42 AS INTEGER ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1460
SELECT ALL + - COUNT( * ) + + 88
----
87

skipif mysql # not compatible
query I rowsort label-1460
SELECT ALL + - COUNT ( * ) + + 88
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT - SUM( DISTINCT + - 72 ) * COUNT( * ) col1
----
72

skipif mysql # not compatible
query I rowsort label-1461
SELECT - SUM ( DISTINCT + - 72 ) * COUNT ( * ) col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT ALL COUNT( * ) * - 95
----
-95

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL COUNT ( * ) * - 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1463
SELECT ( MAX( ALL ( + - CAST( 46 AS SIGNED ) ) ) )
----
-46

skipif mysql # not compatible
query I rowsort label-1463
SELECT ( MAX ( ALL ( + - CAST ( 46 AS INTEGER ) ) ) )
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1464
SELECT ALL + CAST( + - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL + CAST ( + - 10 AS INTEGER )
----
-10

query I rowsort
SELECT ALL + + 17
----
17

query I rowsort
SELECT DISTINCT - + 90 col0
----
-90

query I rowsort
SELECT DISTINCT - ( + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT ALL - COUNT( * ) + 52 col1
----
51

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL - COUNT ( * ) + 52 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL COUNT( * ) + - SUM( 17 )
----
-16

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL COUNT ( * ) + - SUM ( 17 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1470
SELECT ALL 13 DIV - CAST( - 81 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL 13 / - CAST ( - 81 AS INTEGER ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT DISTINCT CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1472
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( + 50 ) + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( + 50 ) + + 90 AS col2
----
NULL

query I rowsort
SELECT ALL ( + 56 )
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1474
SELECT DISTINCT 43, - COUNT( * ) AS col1
----
43
-1

skipif mysql # not compatible
query II rowsort label-1474
SELECT DISTINCT 43, - COUNT ( * ) AS col1
----
43
-1

query I rowsort
SELECT - ( + 63 ) col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - MIN( DISTINCT 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-1476
SELECT - MIN ( DISTINCT 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT ALL - COUNT( * ) * - - 3 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1477
SELECT ALL - COUNT ( * ) * - - 3 AS col1
----
-3

query I rowsort
SELECT ( + 1 ) AS col1
----
1

query I rowsort
SELECT ALL 12 * - 12 * 45 AS col2
----
-6480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT ALL + 79 * + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL + 79 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT DISTINCT - 25 * - COUNT( * ) + + 47 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1481
SELECT DISTINCT - 25 * - COUNT ( * ) + + 47 AS col1
----
72

query I rowsort
SELECT 33 + 84 AS col1
----
117

query I rowsort
SELECT 3 * + 89
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL + - 67 * - MAX( 3 ) col0
----
201

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + - 67 * - MAX ( 3 ) col0
----
201

query I rowsort
SELECT ALL + 16 col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1486
SELECT COUNT( + - CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT COUNT ( + - CAST ( NULL AS REAL ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT MIN( DISTINCT + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-1487
SELECT MIN ( DISTINCT + - 53 )
----
-53

query I rowsort
SELECT - - 22 - + 3
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT - 36 + - 49 DIV - + 54
----
-36

skipif mysql # not compatible
query I rowsort label-1489
SELECT - 36 + - 49 / - + 54
----
-36

query I rowsort
SELECT DISTINCT - ( 40 ) AS col2
----
-40

query I rowsort
SELECT ALL - ( 86 ) AS col2
----
-86

query I rowsort
SELECT ALL - ( + - 24 ) col2
----
24

query I rowsort
SELECT 2 * + 39 col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL + CAST( NULL AS SIGNED ) - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL + CAST ( NULL AS INTEGER ) - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT DISTINCT MIN( DISTINCT 85 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT MIN ( DISTINCT 85 ) AS col0
----
85

query I rowsort
SELECT COALESCE ( + ( + 27 ), - 43 ) AS col0
----
27

query I rowsort
SELECT ALL + 38 * + 80 AS col2
----
3040

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT + COUNT( DISTINCT + 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1498
SELECT + COUNT ( DISTINCT + 74 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT + + MIN( DISTINCT - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1499
SELECT + + MIN ( DISTINCT - 41 ) AS col0
----
-41

query II rowsort
SELECT 72, - 22 AS col2
----
72
-22

query I rowsort
SELECT ALL + 48 - 66
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT + COUNT( * ) + - - 96
----
97

skipif mysql # not compatible
query I rowsort label-1502
SELECT + COUNT ( * ) + - - 96
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT DISTINCT + COUNT( ALL - + 94 ) * + - 43
----
-43

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT + COUNT ( ALL - + 94 ) * + - 43
----
-43

query II rowsort
SELECT ALL - 48, 19 col0
----
-48
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1505
SELECT ALL - ( - CAST( - COUNT( * ) AS SIGNED ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL - ( - CAST ( - COUNT ( * ) AS INTEGER ) ) col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1506
SELECT ALL - CAST( NULL AS SIGNED ) + - 57 + - COUNT( * ) / + 55 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL - CAST ( NULL AS INTEGER ) + - 57 + - COUNT ( * ) / + 55 AS col1
----
NULL

query I rowsort
SELECT - + 37 col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1508
SELECT - CAST( NULL AS DECIMAL ) + + 14 - - - 78 AS col1, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1508
SELECT - CAST ( NULL AS REAL ) + + 14 - - - 78 AS col1, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1510
SELECT 10 AS col1, + COUNT( * ) * 79
----
10
79

skipif mysql # not compatible
query II rowsort label-1510
SELECT 10 AS col1, + COUNT ( * ) * 79
----
10
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT - COUNT( + 96 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1511
SELECT - COUNT ( + 96 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT ALL COUNT( * ) + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL COUNT ( * ) + - 98
----
-97

query I rowsort
SELECT + + ( 56 ) col2
----
56

query II rowsort
SELECT 49 + - 91 * - 52, + 60 col0
----
4781
60

onlyif mysql # DIV for integer division: 
query I rowsort label-1515
SELECT ALL 41 DIV - 7 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL 41 / - 7 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1516
SELECT CAST( NULL AS SIGNED ) / + - ( - 3 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1516
SELECT CAST ( NULL AS INTEGER ) / + - ( - 3 ) col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 37 )
----
-37

query I rowsort
SELECT + 66 * 89 AS col2
----
5874

query II rowsort
SELECT ALL 11 AS col1, 91
----
11
91

query I rowsort
SELECT 6 - + + 60 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT 96 * COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-1521
SELECT 96 * COUNT ( * ) AS col2
----
96

query I rowsort
SELECT DISTINCT 47 * + 2 AS col2
----
94

query II rowsort
SELECT - - 40, ( 50 ) AS col0
----
40
50

query I rowsort
SELECT DISTINCT + - ( + 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT MAX( - - 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-1525
SELECT MAX ( - - 75 ) AS col1
----
75

query I rowsort
SELECT + 70 + + 30 col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1527
SELECT 87 AS col1, + 14 + COUNT( * ) AS col2
----
87
15

skipif mysql # not compatible
query II rowsort label-1527
SELECT 87 AS col1, + 14 + COUNT ( * ) AS col2
----
87
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1528
SELECT + NULLIF ( + COUNT( * ), + COUNT( * ) ) + + + ( SUM( 44 ) ), + 96 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-1528
SELECT + NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + + + ( SUM ( 44 ) ), + 96 AS col0
----
NULL
96

query I rowsort
SELECT + + 53 + + 94
----
147

query I rowsort
SELECT ALL - 98 + - - ( + - 41 ) AS col1
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT ALL + - ( COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL + - ( COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT ALL CAST( NULL AS SIGNED ) * + ( 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL CAST ( NULL AS INTEGER ) * + ( 47 )
----
NULL

query I rowsort
SELECT ALL - 86 - - 89
----
3

query I rowsort
SELECT 95 * + 16
----
1520

query I rowsort
SELECT 37 + + 72 AS col1
----
109

query I rowsort
SELECT ALL + + 75 - + 66 AS col1
----
9

query I rowsort
SELECT DISTINCT - 30 col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT DISTINCT + 53 * - COUNT( * ) + 16
----
-37

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT + 53 * - COUNT ( * ) + 16
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1539
SELECT ALL + MAX( ALL + ( - - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + MAX ( ALL + ( - - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

query I rowsort
SELECT + NULLIF ( + + 73, 33 )
----
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1541
SELECT ALL - CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) * - ( + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL - CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) * - ( + - 66 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT + MAX( DISTINCT + + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-1542
SELECT + MAX ( DISTINCT + + 12 )
----
12

query I rowsort
SELECT + 94 + 63 AS col1
----
157

query II rowsort
SELECT - 94, 65 col0
----
-94
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL COUNT( 93 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL COUNT ( 93 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1546
SELECT DISTINCT ( - - ( CAST( + - MAX( + 27 ) AS SIGNED ) ) ) AS col1, 22 AS col1
----
-27
22

skipif mysql # not compatible
query II rowsort label-1546
SELECT DISTINCT ( - - ( CAST ( + - MAX ( + 27 ) AS INTEGER ) ) ) AS col1, 22 AS col1
----
-27
22

query I rowsort
SELECT DISTINCT 23 col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT ALL + COUNT( * ) + 42
----
43

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL + COUNT ( * ) + 42
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT ALL - SUM( 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-1549
SELECT ALL - SUM ( 14 )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1550
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT DISTINCT + COUNT( * ) * - + 53
----
-53

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT + COUNT ( * ) * - + 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT + NULLIF ( + 80, - 38 ) * 17 - + COUNT( * )
----
1359

skipif mysql # not compatible
query I rowsort label-1552
SELECT + NULLIF ( + 80, - 38 ) * 17 - + COUNT ( * )
----
1359

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT ALL - + MIN( - + 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL - + MIN ( - + 8 ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT - SUM( ALL - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1554
SELECT - SUM ( ALL - 93 ) AS col1
----
93

query I rowsort
SELECT - 22 * - - 19 * + + 32 AS col1
----
-13376

query I rowsort
SELECT ALL - NULLIF ( - 47, - - 45 ) AS col2
----
47

query I rowsort
SELECT 75 + + 75
----
150

query I rowsort
SELECT 92 + + + 90 AS col0
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1559
SELECT + COUNT( * ) + + + COUNT( * ) * - CAST( NULL AS SIGNED ) * - 32 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT + COUNT ( * ) + + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * - 32 col0
----
NULL

query II rowsort
SELECT DISTINCT + 7 AS col1, - 17 col0
----
7
-17

query I rowsort
SELECT ( 70 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT - COUNT( * ) * - 21 * - - 38 AS col2
----
798

skipif mysql # not compatible
query I rowsort label-1562
SELECT - COUNT ( * ) * - 21 * - - 38 AS col2
----
798

query I rowsort
SELECT ( + + 72 )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-1564
SELECT ALL + COUNT( * ) AS col0, 71 + + 12
----
1
83

skipif mysql # not compatible
query II rowsort label-1564
SELECT ALL + COUNT ( * ) AS col0, 71 + + 12
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT + NULLIF ( - COUNT( * ), - + COUNT( * ) + + 87 * 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-1565
SELECT + NULLIF ( - COUNT ( * ), - + COUNT ( * ) + + 87 * 63 )
----
-1

query II rowsort
SELECT + 31 AS col0, + 45
----
31
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT + + COUNT( 56 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1567
SELECT + + COUNT ( 56 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1568
SELECT ALL 29 * + COUNT( * ) - 24 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL 29 * + COUNT ( * ) - 24 AS col2
----
5

query I rowsort
SELECT DISTINCT ( - + 74 ) AS col2
----
-74

query I rowsort
SELECT + 94 * - + 41 AS col1
----
-3854

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT ALL + ( - COUNT( * ) ) + COUNT( * ) + 53
----
53

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL + ( - COUNT ( * ) ) + COUNT ( * ) + 53
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT + ( - SUM( - 76 ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1572
SELECT + ( - SUM ( - 76 ) ) AS col1
----
76

query I rowsort
SELECT ALL - - 58 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1574
SELECT + - ( 39 ) * + CAST( NULL AS SIGNED ) + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-1574
SELECT + - ( 39 ) * + CAST ( NULL AS INTEGER ) + - 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT + ( - - ( - COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1575
SELECT + ( - - ( - COUNT ( * ) ) ) AS col2
----
-1

query I rowsort
SELECT 77 * - 11 - + - 63
----
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT - MIN( + ( - 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-1577
SELECT - MIN ( + ( - 17 ) )
----
17

query I rowsort
SELECT ALL + 11 + 33 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL - COUNT( * ) + + - 10
----
-11

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - COUNT ( * ) + + - 10
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT MIN( - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT MIN ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-1581
SELECT DISTINCT 94, - COUNT( * ) AS col0
----
94
-1

skipif mysql # not compatible
query II rowsort label-1581
SELECT DISTINCT 94, - COUNT ( * ) AS col0
----
94
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT ALL - - 52 * + + ( + MIN( - 66 ) ) AS col0
----
-3432

skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL - - 52 * + + ( + MIN ( - 66 ) ) AS col0
----
-3432

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1583
SELECT ALL - 78 * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - 78 * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT DISTINCT + 31 * - COUNT( * ) - - 24
----
-7

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + 31 * - COUNT ( * ) - - 24
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT - - 7 DIV - - 21
----
0

skipif mysql # not compatible
query I rowsort label-1585
SELECT - - 7 / - - 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT - 36 + ( - MAX( DISTINCT 44 ) )
----
-80

skipif mysql # not compatible
query I rowsort label-1586
SELECT - 36 + ( - MAX ( DISTINCT 44 ) )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1587
SELECT + COUNT( * ) DIV CAST( - - 57 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1587
SELECT + COUNT ( * ) / CAST ( - - 57 AS INTEGER ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1588
SELECT ALL + ( + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL + ( + + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1589
SELECT DISTINCT CAST( + 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT CAST ( + 56 AS INTEGER )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1590
SELECT DISTINCT CAST( ( - ( + 12 ) ) AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT CAST ( ( - ( + 12 ) ) AS INTEGER )
----
-12

query I rowsort
SELECT ALL 87 * + 58 AS col0
----
5046

query I rowsort
SELECT DISTINCT 5 * - 61 AS col2
----
-305

query I rowsort
SELECT - 82 + - 60
----
-142

query I rowsort
SELECT DISTINCT - 7 col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1595
SELECT ALL + 52 * - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL + 52 * - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 82 * + ( - + 88 )
----
-7216

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT ALL - 89 * - + MIN( + 10 ) AS col0
----
890

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - 89 * - + MIN ( + 10 ) AS col0
----
890

query I rowsort
SELECT ALL - 80 * + 30 AS col0
----
-2400

query I rowsort
SELECT - 80 * ( 52 )
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT + SUM( ALL + - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-1600
SELECT + SUM ( ALL + - 85 )
----
-85

query I rowsort
SELECT DISTINCT 77 * - 7
----
-539

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1602
SELECT ALL + COUNT( * ) DIV + 61 col0
----
0

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL + COUNT ( * ) / + 61 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT + COUNT( 9 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1603
SELECT + COUNT ( 9 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1604
SELECT ALL - CAST( 72 AS SIGNED ) + - COUNT( * ) * + COUNT( * ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - CAST ( 72 AS INTEGER ) + - COUNT ( * ) * + COUNT ( * ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT ALL COUNT( ALL + 58 )
----
1

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL COUNT ( ALL + 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1606
SELECT - 96 + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1606
SELECT - 96 + COUNT ( * )
----
-95

query I rowsort
SELECT ( + 31 ) AS col0
----
31

query I rowsort
SELECT ALL 64 * - 86 AS col2
----
-5504

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL 32 * + COUNT( + 50 ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL 32 * + COUNT ( + 50 ) AS col1
----
32

query I rowsort
SELECT DISTINCT - 39 * + ( + 98 ) AS col0
----
-3822

query I rowsort
SELECT ALL - ( + + 32 )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1612
SELECT 6 DIV - 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1612
SELECT 6 / - 51 AS col1
----
0

query I rowsort
SELECT ALL - + 52 AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1614
SELECT ALL - CAST( - 84 AS SIGNED ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - CAST ( - 84 AS INTEGER ) AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1615
SELECT ( SUM( ALL - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ( SUM ( ALL - CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT ALL - 49 AS col1, ( - + 18 ) AS col0
----
-49
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1617
SELECT ALL COUNT( * ) + - - 53
----
54

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL COUNT ( * ) + - - 53
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT 77 + SUM( DISTINCT + 0 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT 77 + SUM ( DISTINCT + 0 ) AS col0
----
77

query I rowsort
SELECT ( + - 86 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1620
SELECT + CAST( NULL AS SIGNED ) * + COUNT( 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1620
SELECT + CAST ( NULL AS INTEGER ) * + COUNT ( 95 )
----
NULL

query I rowsort
SELECT ALL - 62 * - + 83 AS col0
----
5146

query II rowsort
SELECT 33 AS col1, 6
----
33
6

query I rowsort
SELECT DISTINCT + 17 * + 79
----
1343

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT ALL + COUNT( * ) * 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + COUNT ( * ) * 0 AS col2
----
0

query I rowsort
SELECT ALL + - 55 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT - + 51 + - - MAX( DISTINCT 14 )
----
-37

skipif mysql # not compatible
query I rowsort label-1626
SELECT - + 51 + - - MAX ( DISTINCT 14 )
----
-37

query I rowsort
SELECT ALL + - 67 + - 29
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL COUNT( * ) + + 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL COUNT ( * ) + + 32 AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT ALL - ( - 1 ) DIV + 72 col2
----
0

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - ( - 1 ) / + 72 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT ALL - 41 DIV - + 50
----
0

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL - 41 / - + 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ALL - SUM( ALL + - 51 ) col2
----
51

skipif mysql # not compatible
query I rowsort label-1631
SELECT ALL - SUM ( ALL + - 51 ) col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT DISTINCT - 38 * + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-1632
SELECT DISTINCT - 38 * + COUNT ( * )
----
-38

query I rowsort
SELECT - ( 67 ) + 34
----
-33

query I rowsort
SELECT ALL + - 33
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1635
SELECT + MAX( ALL CAST( - - 76 AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-1635
SELECT + MAX ( ALL CAST ( - - 76 AS INTEGER ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1636
SELECT MIN( - - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-1636
SELECT MIN ( - - 8 )
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1637
SELECT DISTINCT 41 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT 41 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1638
SELECT + 23 DIV + 17
----
1

skipif mysql # not compatible
query I rowsort label-1638
SELECT + 23 / + 17
----
1

query I rowsort
SELECT ALL - 5 * ( 8 )
----
-40

query I rowsort
SELECT - 45 * + 97 col2
----
-4365

query I rowsort
SELECT + CASE + - ( + 23 ) WHEN - 45 THEN + 8 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT SUM( + 10 ) * + 24 * 90
----
21600

skipif mysql # not compatible
query I rowsort label-1642
SELECT SUM ( + 10 ) * + 24 * 90
----
21600

query I rowsort
SELECT ALL + 24 * - 68
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT 62 * + 28 * COUNT( * ) AS col2
----
1736

skipif mysql # not compatible
query I rowsort label-1644
SELECT 62 * + 28 * COUNT ( * ) AS col2
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1646
SELECT - COUNT( * ) AS col0, + 42 AS col1
----
-1
42

skipif mysql # not compatible
query II rowsort label-1646
SELECT - COUNT ( * ) AS col0, + 42 AS col1
----
-1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT + COUNT( * ) * + 43 * 58 - + + 81
----
2413

skipif mysql # not compatible
query I rowsort label-1647
SELECT + COUNT ( * ) * + 43 * 58 - + + 81
----
2413

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT 9 - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-1648
SELECT 9 - COUNT ( * )
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1649
SELECT + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT SUM( + + ( - 87 ) )
----
-87

skipif mysql # not compatible
query I rowsort label-1650
SELECT SUM ( + + ( - 87 ) )
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1651
SELECT - CAST( + 47 AS SIGNED ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1651
SELECT - CAST ( + 47 AS INTEGER ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT + COUNT( * ) * - + COUNT( DISTINCT 51 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( DISTINCT 51 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT + COUNT( * ) * - 1 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1653
SELECT + COUNT ( * ) * - 1 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1654
SELECT + 86 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 86 * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT - - ( + + 86 )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1656
SELECT - CAST( + 78 AS SIGNED )
----
-78

skipif mysql # not compatible
query I rowsort label-1656
SELECT - CAST ( + 78 AS INTEGER )
----
-78

query I rowsort
SELECT ALL ( - 23 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL + MIN( DISTINCT - 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + MIN ( DISTINCT - 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT ALL - + ( + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1659
SELECT ALL - + ( + COUNT ( * ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT ALL + 99 + CAST( NULL AS SIGNED ) * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + 99 + CAST ( NULL AS INTEGER ) * + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT DISTINCT - + MIN( DISTINCT - 50 )
----
50

skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT - + MIN ( DISTINCT - 50 )
----
50

query I rowsort
SELECT ALL - - 76 + + 64 + + 9 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-1663
SELECT ALL - COUNT( * ) + 77
----
76

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL - COUNT ( * ) + 77
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT + MAX( DISTINCT - 10 ) + MAX( - 13 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-1664
SELECT + MAX ( DISTINCT - 10 ) + MAX ( - 13 ) AS col1
----
-23

query I rowsort
SELECT ALL + 29 * - - 5
----
145

query I rowsort
SELECT ALL + - ( + 20 ) AS col0
----
-20

query I rowsort
SELECT ALL ( 86 ) AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1668
SELECT ALL - 13 DIV CAST( + 78 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1668
SELECT ALL - 13 / CAST ( + 78 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT + - COUNT( - 55 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1669
SELECT + - COUNT ( - 55 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1670
SELECT ALL + + 34 col0, - COUNT( * ) AS col2
----
34
-1

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL + + 34 col0, - COUNT ( * ) AS col2
----
34
-1

query I rowsort
SELECT DISTINCT - 12 + 38 - 38
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1672
SELECT MIN( + 78 ) AS col1, - 78
----
78
-78

skipif mysql # not compatible
query II rowsort label-1672
SELECT MIN ( + 78 ) AS col1, - 78
----
78
-78

query I rowsort
SELECT DISTINCT - - 71 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1674
SELECT ALL 85 DIV COUNT( * ) + - + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL 85 / COUNT ( * ) + - + COUNT ( * )
----
84

query I rowsort
SELECT 53 * + + 60 AS col0
----
3180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1676
SELECT ( - COUNT( * ) ) + + COUNT( * ) DIV - - 25 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1676
SELECT ( - COUNT ( * ) ) + + COUNT ( * ) / - - 25 col0
----
-1

query I rowsort
SELECT 23 * + + 87 col0
----
2001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1678
SELECT + COUNT( * ) DIV - - COUNT( * ) - + 87 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-1678
SELECT + COUNT ( * ) / - - COUNT ( * ) - + 87 AS col1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1679
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) + + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT + SUM( DISTINCT - 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-1680
SELECT + SUM ( DISTINCT - 52 ) AS col1
----
-52

query I rowsort
SELECT ( + 28 )
----
28

query I rowsort
SELECT + NULLIF ( 64, + AVG ( ALL + 72 ) )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1683
SELECT DISTINCT - 35 DIV 58
----
0

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - 35 / 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT - COUNT( ALL - + 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-1684
SELECT - COUNT ( ALL - + 53 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1685
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1685
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT 83 + - + 88 AS col1
----
-5

query I rowsort
SELECT ALL 6 + + 75
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT COUNT( * ) * - + 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-1688
SELECT COUNT ( * ) * - + 20 AS col0
----
-20

query II rowsort
SELECT ALL 77 col1, - 69
----
77
-69

query I rowsort
SELECT 32 + 88 col2
----
120

query I rowsort
SELECT ALL + ( + - ( - 51 ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT ALL 83 + - COUNT( * ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL 83 + - COUNT ( * ) AS col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1693
SELECT + 57 - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT + 57 - COUNT ( * ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - MIN( DISTINCT + 47 ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-1694
SELECT - MIN ( DISTINCT + 47 ) col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT MAX( + ( - - 15 ) ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1695
SELECT MAX ( + ( - - 15 ) ) AS col0
----
15

query I rowsort
SELECT ALL 76 * 45 col0
----
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1697
SELECT + COUNT( ALL + + CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1697
SELECT + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT COUNT( * ) + + 86 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-1698
SELECT COUNT ( * ) + + 86 AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1699
SELECT DISTINCT - COUNT( + - 99 ) AS col1, ( - ( CAST( NULL AS SIGNED ) ) ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1699
SELECT DISTINCT - COUNT ( + - 99 ) AS col1, ( - ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT - - 24 + + 35 + COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-1700
SELECT - - 24 + + 35 + COUNT ( * ) AS col2
----
60

query I rowsort
SELECT DISTINCT 18 * + - 70
----
-1260

query I rowsort
SELECT ( + 37 ) AS col2
----
37

query I rowsort
SELECT + 63 * + + 22 AS col1
----
1386

query I rowsort
SELECT + ( - 11 ) col2
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-1705
SELECT - COUNT( * ) AS col2, 65 AS col0
----
-1
65

skipif mysql # not compatible
query II rowsort label-1705
SELECT - COUNT ( * ) AS col2, 65 AS col0
----
-1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT ALL + + COUNT( * ) - + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + + COUNT ( * ) - + + COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT ( 56 ) AS col1
----
56

query I rowsort
SELECT - 11 - + 19 * 14 AS col2
----
-277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1709
SELECT DISTINCT - ( + - 94 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT - ( + - 94 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL 6 + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL 6 + - COUNT ( * )
----
5

query I rowsort
SELECT + 26 * + 13 AS col2
----
338

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT CAST( NULL AS SIGNED ) + + - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1712
SELECT CAST ( NULL AS INTEGER ) + + - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT - 4 * 7 * + ( - MAX( DISTINCT 95 ) ) * - COUNT( * ) AS col0
----
-2660

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT - 4 * 7 * + ( - MAX ( DISTINCT 95 ) ) * - COUNT ( * ) AS col0
----
-2660

query I rowsort
SELECT 83 * - 89 AS col0
----
-7387

onlyif mysql # aggregate syntax: 
query II rowsort label-1715
SELECT - 79, COUNT( * ) col0
----
-79
1

skipif mysql # not compatible
query II rowsort label-1715
SELECT - 79, COUNT ( * ) col0
----
-79
1

query I rowsort
SELECT + 22 - - - 44 AS col1
----
-22

query I rowsort
SELECT - 68 * + - 45 AS col2
----
3060

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT DISTINCT - 34 * - COUNT( * ) - + + COUNT( DISTINCT + 46 ) + 48
----
81

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT - 34 * - COUNT ( * ) - + + COUNT ( DISTINCT + 46 ) + 48
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1719
SELECT ALL - - 94 DIV COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - - 94 / COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL - COUNT( * ) + - 57 AS col1
----
-58

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - COUNT ( * ) + - 57 AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-1721
SELECT + - 60 DIV 44 + 58 + 83 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-1721
SELECT + - 60 / 44 + 58 + 83 AS col1
----
140

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1722
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT CAST ( NULL AS REAL ) + + 76 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT + 36 * - ( COUNT( * ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-1723
SELECT + 36 * - ( COUNT ( * ) ) AS col0
----
-36

query I rowsort
SELECT DISTINCT - ( + + 4 ) AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1725
SELECT 76 - + - COUNT( DISTINCT 60 ) DIV + 30 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1725
SELECT 76 - + - COUNT ( DISTINCT 60 ) / + 30 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT SUM( - + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-1726
SELECT SUM ( - + 75 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1727
SELECT DISTINCT COUNT( * ) / - CAST( NULL AS SIGNED ) * - - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - - 72
----
NULL

query I rowsort
SELECT + 58 - + 34 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT + MIN( ALL - 13 )
----
-13

skipif mysql # not compatible
query I rowsort label-1729
SELECT + MIN ( ALL - 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT - MIN( - 79 ) col1
----
79

skipif mysql # not compatible
query I rowsort label-1730
SELECT - MIN ( - 79 ) col1
----
79

query I rowsort
SELECT + 86 * - 93
----
-7998

query I rowsort
SELECT ALL 68 + - 54 AS col0
----
14

query I rowsort
SELECT + - 11 + + + 90
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT ALL + ( - COUNT( * ) ) AS col0, - 26
----
-1
-26

skipif mysql # not compatible
query II rowsort label-1734
SELECT ALL + ( - COUNT ( * ) ) AS col0, - 26
----
-1
-26

query I rowsort
SELECT + 9 * - - 13
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT DISTINCT + CAST( - 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT + CAST ( - 98 AS INTEGER )
----
-98

query I rowsort
SELECT + + 1 + - - 13 + + 15 AS col0
----
29

query I rowsort
SELECT + 14 * + 38
----
532

query II rowsort
SELECT 25 * - 28, + 35 col2
----
-700
35

query II rowsort
SELECT ALL + 10 + - 0 AS col1, - 9 col2
----
10
-9

query I rowsort
SELECT + 87 * - - ( + + ( + 59 ) )
----
5133

query I rowsort
SELECT 96 * + 80 AS col1
----
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT 34 + COUNT( * ) col0
----
35

skipif mysql # not compatible
query I rowsort label-1743
SELECT 34 + COUNT ( * ) col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT COUNT( DISTINCT - + 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1744
SELECT COUNT ( DISTINCT - + 28 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT SUM( - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-1745
SELECT SUM ( - 56 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT ALL SUM( DISTINCT + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL SUM ( DISTINCT + 11 ) AS col1
----
11

query I rowsort
SELECT ALL + 10 + 7
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1748
SELECT + CAST( - CAST( - 64 AS SIGNED ) AS SIGNED ) * COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-1748
SELECT + CAST ( - CAST ( - 64 AS INTEGER ) AS INTEGER ) * COUNT ( * ) AS col0
----
64

query I rowsort
SELECT ALL + ( - 4 )
----
-4

query I rowsort
SELECT + ( ( 24 ) ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT ALL - 57 + COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL - 57 + COUNT ( * )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT - - SUM( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-1752
SELECT - - SUM ( 15 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT - 64 DIV 80
----
0

skipif mysql # not compatible
query I rowsort label-1753
SELECT - 64 / 80
----
0

query I rowsort
SELECT ALL + ( + 74 ) AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1755
SELECT - + COUNT( - 47 ) * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT - + COUNT ( - 47 ) * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1756
SELECT + + CAST( - 71 AS SIGNED ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-1756
SELECT + + CAST ( - 71 AS INTEGER ) AS col2
----
-71

query II rowsort
SELECT 1, 56 AS col0
----
1
56

query II rowsort
SELECT ALL - 68, 40 AS col0
----
-68
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT - + 20 * SUM( ALL + 4 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT - + 20 * SUM ( ALL + 4 ) AS col2
----
-80

query II rowsort
SELECT + + 94 AS col2, - 43
----
94
-43

query I rowsort
SELECT DISTINCT 24 + + - 18 + + 36 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT MIN( + - 45 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1762
SELECT MIN ( + - 45 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT + + COUNT( + 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1763
SELECT + + COUNT ( + 37 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT - COUNT( DISTINCT + - 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-1764
SELECT - COUNT ( DISTINCT + - 21 )
----
-1

query I rowsort
SELECT DISTINCT ( - - 16 )
----
16

query I rowsort
SELECT - ( 4 ) AS col0
----
-4

query I rowsort
SELECT DISTINCT - + 48 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT 98 * - - COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-1768
SELECT 98 * - - COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL COUNT( * ) + - 53 AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL COUNT ( * ) + - 53 AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1770
SELECT DISTINCT COUNT( * ) DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT COUNT ( * ) / + - COUNT ( * )
----
-1

query I rowsort
SELECT 13 * - 98
----
-1274

query I rowsort
SELECT ALL + ( 56 ) col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT - + MIN( + + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - + MIN ( + + 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1774
SELECT MAX( 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-1774
SELECT MAX ( 44 ) AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1775
SELECT DISTINCT 45 + 10 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT 45 + 10 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1776
SELECT ALL CAST( NULL AS DECIMAL ) + + - 35 * - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL CAST ( NULL AS REAL ) + + - 35 * - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT - COUNT( * ) - - 67
----
66

skipif mysql # not compatible
query I rowsort label-1777
SELECT - COUNT ( * ) - - 67
----
66

query I rowsort
SELECT DISTINCT ( 83 ) * - - 60 AS col0
----
4980

query I rowsort
SELECT + 52 - - 9 * - 50
----
-398

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT DISTINCT - 98 + + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - 98 + + COUNT ( * )
----
-97

query I rowsort
SELECT ALL - ( - + 60 ) AS col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1782
SELECT DISTINCT - COUNT( * ) DIV - MAX( - 97 ) AS col2, 90
----
0
90

skipif mysql # not compatible
query II rowsort label-1782
SELECT DISTINCT - COUNT ( * ) / - MAX ( - 97 ) AS col2, 90
----
0
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1783
SELECT ALL - CAST( NULL AS SIGNED ) * - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL - CAST ( NULL AS INTEGER ) * - 81
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1784
SELECT ALL COUNT( * ) AS col1, 26
----
1
26

skipif mysql # not compatible
query II rowsort label-1784
SELECT ALL COUNT ( * ) AS col1, 26
----
1
26

query I rowsort
SELECT ALL - ( + 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1786
SELECT DISTINCT CAST( - 48 AS SIGNED ) col1
----
-48

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT CAST ( - 48 AS INTEGER ) col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1787
SELECT ALL 93 DIV + 28
----
3

skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL 93 / + 28
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1788
SELECT ALL 57 DIV SUM( ALL 66 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL 57 / SUM ( ALL 66 ) col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1789
SELECT ALL - 19 DIV - 59 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - 19 / - 59 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT DISTINCT - 69 * COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT - 69 * COUNT ( * )
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1791
SELECT ALL CAST( NULL AS SIGNED ) - + - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL CAST ( NULL AS INTEGER ) - + - 6 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT - MAX( ALL 24 ) col0
----
-24

skipif mysql # not compatible
query I rowsort label-1792
SELECT - MAX ( ALL 24 ) col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT 16 * MIN( + 87 )
----
1392

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT 16 * MIN ( + 87 )
----
1392

query I rowsort
SELECT + ( 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT + COUNT( * ) + + + 93
----
94

skipif mysql # not compatible
query I rowsort label-1795
SELECT + COUNT ( * ) + + + 93
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT + COUNT( * ) + + 82
----
83

skipif mysql # not compatible
query I rowsort label-1796
SELECT + COUNT ( * ) + + 82
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT - ( - NULLIF ( 10, ( SUM( - 94 ) ) ) ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-1797
SELECT - ( - NULLIF ( 10, ( SUM ( - 94 ) ) ) ) AS col2
----
10

query I rowsort
SELECT ALL + 55 - - + ( - - 24 )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1799
SELECT - COUNT( * ) + + + CAST( + 9 AS SIGNED ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-1799
SELECT - COUNT ( * ) + + + CAST ( + 9 AS INTEGER ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT - COUNT( * ) * 88 * + 20 AS col1
----
-1760

skipif mysql # not compatible
query I rowsort label-1800
SELECT - COUNT ( * ) * 88 * + 20 AS col1
----
-1760

query I rowsort
SELECT + 28 * + 19 AS col0
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT MIN( - - 91 ) col0
----
91

skipif mysql # not compatible
query I rowsort label-1802
SELECT MIN ( - - 91 ) col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT ALL - CAST( + - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - CAST ( + - 55 AS INTEGER )
----
55

query I rowsort
SELECT ALL + 81 * - - 37 AS col1
----
2997

onlyif mysql # DIV for integer division: 
query I rowsort label-1805
SELECT ALL ( - 79 ) DIV + + 98
----
0

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL ( - 79 ) / + + 98
----
0

query I rowsort
SELECT DISTINCT 29 * - 94 AS col1
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL 39 + + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL 39 + + COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT 9 * - - 56 + + + COUNT( * ) - 63
----
442

skipif mysql # not compatible
query I rowsort label-1808
SELECT 9 * - - 56 + + + COUNT ( * ) - 63
----
442

query I rowsort
SELECT DISTINCT + + ( - 49 ) AS col0
----
-49

query I rowsort
SELECT ALL + + ( - + 94 ) col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1811
SELECT + COUNT( * ) * + CAST( - - 67 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-1811
SELECT + COUNT ( * ) * + CAST ( - - 67 AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT DISTINCT MIN( 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT MIN ( 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT - SUM( DISTINCT 74 ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-1813
SELECT - SUM ( DISTINCT 74 ) AS col2
----
-74

query I rowsort
SELECT - 40 + + - 15
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT ALL 78 * + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL 78 * + COUNT ( * )
----
78

query I rowsort
SELECT 92 * 81 AS col0
----
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL - 1 - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL - 1 - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT 17 * 89
----
1513

query I rowsort
SELECT 87 * + 3 AS col0
----
261

query I rowsort
SELECT + 70 * 4 AS col0
----
280

query I rowsort
SELECT ALL - ( - 50 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT COUNT( * ) + - + 14 col0
----
-13

skipif mysql # not compatible
query I rowsort label-1822
SELECT COUNT ( * ) + - + 14 col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL 75 DIV - 70
----
-1

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 75 / - 70
----
-1

query I rowsort
SELECT + + 4 + + ( + 49 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1825
SELECT - COUNT( * ) * + 12
----
-12

skipif mysql # not compatible
query I rowsort label-1825
SELECT - COUNT ( * ) * + 12
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT + ( CAST( NULL AS SIGNED ) ) * 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT + ( CAST ( NULL AS INTEGER ) ) * 78 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1827
SELECT + CAST( NULL AS SIGNED ) * + - ( - 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1827
SELECT + CAST ( NULL AS INTEGER ) * + - ( - 22 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT COALESCE ( 83, NULLIF ( + 72, COUNT( * ) ) )
----
83

skipif mysql # not compatible
query I rowsort label-1828
SELECT COALESCE ( 83, NULLIF ( + 72, COUNT ( * ) ) )
----
83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1829
SELECT ALL COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL COUNT ( * ) * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1830
SELECT + COUNT( * ) AS col2, 12
----
1
12

skipif mysql # not compatible
query II rowsort label-1830
SELECT + COUNT ( * ) AS col2, 12
----
1
12

query I rowsort
SELECT - ( + 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL + MIN( 62 ) + - 97 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + MIN ( 62 ) + - 97 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1833
SELECT MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 79 * - 5 AS col0
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT COUNT( * ) * CASE 53 WHEN - 72 THEN NULL ELSE 38 END
----
38

skipif mysql # not compatible
query I rowsort label-1835
SELECT COUNT ( * ) * CASE 53 WHEN - 72 THEN NULL ELSE 38 END
----
38

query I rowsort
SELECT DISTINCT - 14 * + NULLIF ( - + 70, - 63 ) * - 97
----
-95060

query I rowsort
SELECT 76 * - 76
----
-5776

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT + 93 + + COUNT( ALL + 37 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT + 93 + + COUNT ( ALL + 37 ) AS col0
----
94

query I rowsort
SELECT 76 * + + 58 * + 10 AS col1
----
44080

onlyif mysql # aggregate syntax: 
query II rowsort label-1840
SELECT ALL - ( ( + 10 ) ) AS col2, - COUNT( * )
----
-10
-1

skipif mysql # not compatible
query II rowsort label-1840
SELECT ALL - ( ( + 10 ) ) AS col2, - COUNT ( * )
----
-10
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1841
SELECT DISTINCT 58 DIV + COUNT( * ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT 58 / + COUNT ( * ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT ALL 57 * + + ( - COUNT( * ) ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL 57 * + + ( - COUNT ( * ) ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1843
SELECT ALL + COUNT( - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL + COUNT ( - 12 ) AS col2
----
1

query I rowsort
SELECT + ( 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT - COUNT( * ) + 62
----
61

skipif mysql # not compatible
query I rowsort label-1845
SELECT - COUNT ( * ) + 62
----
61

query I rowsort
SELECT DISTINCT + + 20 AS col1
----
20

query I rowsort
SELECT - + 43 + 67 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT ALL - 11 + + COUNT( * ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-1848
SELECT ALL - 11 + + COUNT ( * ) col1
----
-10

query I rowsort
SELECT DISTINCT 40 + 86 AS col2
----
126

query I rowsort
SELECT 17 - - 25 + ( + 20 ) AS col1
----
62

query I rowsort
SELECT DISTINCT - 35 * - 48 AS col2
----
1680

query I rowsort
SELECT - 5 + + - 61 AS col2
----
-66

query I rowsort
SELECT ALL - - COALESCE ( + 74, + - 21, 28 ) col0
----
74

query I rowsort
SELECT ALL 27 * 28
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - MAX( DISTINCT + 16 ) AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-1855
SELECT - MAX ( DISTINCT + 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT - 92 + + COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-1856
SELECT - 92 + + COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT + 50 - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-1857
SELECT + 50 - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT - ( - CASE + 43 WHEN - 70 THEN NULL WHEN 70 THEN NULL ELSE COUNT( * ) END )
----
1

skipif mysql # not compatible
query I rowsort label-1858
SELECT - ( - CASE + 43 WHEN - 70 THEN NULL WHEN 70 THEN NULL ELSE COUNT ( * ) END )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT + 96 + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1859
SELECT + 96 + + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT + 85 + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-1860
SELECT + 85 + + COUNT ( * )
----
86

query I rowsort
SELECT - 98 + - - 37
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1862
SELECT - COUNT( * ), + ( + - 32 ) * COUNT( * ) col2
----
-1
-32

skipif mysql # not compatible
query II rowsort label-1862
SELECT - COUNT ( * ), + ( + - 32 ) * COUNT ( * ) col2
----
-1
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1863
SELECT + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT + + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1864
SELECT ( - CAST( - 92 AS DECIMAL ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ( - CAST ( - 92 AS REAL ) ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL - ( + - ( + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL - ( + - ( + COUNT ( * ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL + CAST( + 33 AS SIGNED ) + + 50 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + CAST ( + 33 AS INTEGER ) + + 50 AS col1
----
83

query I rowsort
SELECT - ( - - 36 ) + - - 88 col2
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1868
SELECT 36 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT 36 / + 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + MIN( - 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-1869
SELECT + MIN ( - 5 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT + MAX( ALL + - 47 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1870
SELECT + MAX ( ALL + - 47 ) AS col1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1871
SELECT COUNT( * ) DIV + CAST( + 94 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1871
SELECT COUNT ( * ) / + CAST ( + 94 AS INTEGER ) col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL MAX( + 90 )
----
90

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL MAX ( + 90 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1873
SELECT DISTINCT - SUM( DISTINCT - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - SUM ( DISTINCT - 79 )
----
79

query I rowsort
SELECT - + 10 - - - ( 76 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1875
SELECT - - NULLIF ( + CAST( COUNT( * ) AS SIGNED ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1875
SELECT - - NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1876
SELECT - SUM( ALL + 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-1876
SELECT - SUM ( ALL + 78 ) AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT DISTINCT + COUNT( * ) * + - 48 col0
----
-48

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT + COUNT ( * ) * + - 48 col0
----
-48

query I rowsort
SELECT 60 + + + 19
----
79

query I rowsort
SELECT ALL - 98 * 96 AS col0
----
-9408

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT 6 AS col1, 47 + + - COUNT( * ) AS col1
----
6
46

skipif mysql # not compatible
query II rowsort label-1880
SELECT 6 AS col1, 47 + + - COUNT ( * ) AS col1
----
6
46

query I rowsort
SELECT - 81 + + + 10 col2
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-1882
SELECT - MIN( - + 60 ) AS col2, - 65
----
60
-65

skipif mysql # not compatible
query II rowsort label-1882
SELECT - MIN ( - + 60 ) AS col2, - 65
----
60
-65

query I rowsort
SELECT ALL + + 65 AS col2
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1884
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1885
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( DISTINCT 76 ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT 76 ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL + 44 col1, 11 col0
----
44
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1887
SELECT ALL + - CAST( 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL + - CAST ( 67 AS INTEGER )
----
-67

query I rowsort
SELECT DISTINCT + ( - 32 )
----
-32

query I rowsort
SELECT 14 * + 66 * + 56 + + 60
----
51804

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT 74 * + COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1890
SELECT 74 * + COUNT ( * ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL 8 + + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL 8 + + COUNT ( * )
----
9

query I rowsort
SELECT ALL - + 70 col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL - + MAX( - - 74 ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL - + MAX ( - - 74 ) AS col0
----
-74

query I rowsort
SELECT ALL 22 * - 25 * 33 AS col2
----
-18150

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL COUNT( * ) + + + 21 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL COUNT ( * ) + + + 21 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT ALL + COUNT( DISTINCT 74 )
----
1

skipif mysql # not compatible
query I rowsort label-1896
SELECT ALL + COUNT ( DISTINCT 74 )
----
1

query I rowsort
SELECT ALL + - 50 col1
----
-50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1898
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + - CAST ( NULL AS REAL ) AS col1
----
NULL

query II rowsort
SELECT + 9, 60 + 49 AS col0
----
9
109

query I rowsort
SELECT ALL 80 + - 88
----
-8

query I rowsort
SELECT ALL ( + 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT - SUM( DISTINCT - 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1902
SELECT - SUM ( DISTINCT - 72 ) AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT DISTINCT SUM( + ( - ( + + CAST( - - 31 AS SIGNED ) ) ) )
----
-31

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT SUM ( + ( - ( + + CAST ( - - 31 AS INTEGER ) ) ) )
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-1904
SELECT COUNT( * ) AS col0, - 2
----
1
-2

skipif mysql # not compatible
query II rowsort label-1904
SELECT COUNT ( * ) AS col0, - 2
----
1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1905
SELECT + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ( - 76 )
----
-76

query I rowsort
SELECT + 49 * + + ( - 57 )
----
-2793

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT ALL SUM( ALL + 42 ) * - - MAX( + ( - 21 ) )
----
-882

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL SUM ( ALL + 42 ) * - - MAX ( + ( - 21 ) )
----
-882

query I rowsort
SELECT - + 42 col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT ALL + SUM( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL + SUM ( + 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL - 24 + - COUNT( * ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL - 24 + - COUNT ( * ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT - + COUNT( * ) + 99 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT - + COUNT ( * ) + 99 AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1913
SELECT ALL COUNT( * ) DIV + - 48 AS col1, 59
----
0
59

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL COUNT ( * ) / + - 48 AS col1, 59
----
0
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1914
SELECT - 64 + + CAST( NULL AS SIGNED ) + - 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT - 64 + + CAST ( NULL AS INTEGER ) + - 74 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT ALL - COUNT( * ) + - + 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL - COUNT ( * ) + - + 85 AS col2
----
-86

query I rowsort
SELECT ALL + - 26 * - 97 + - 82 - + 10
----
2430

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT COUNT( * ) * - SUM( + 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT COUNT ( * ) * - SUM ( + 26 )
----
-26

query I rowsort
SELECT + 44 - + 15
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1919
SELECT - CAST( - 95 AS SIGNED ) * + 43 * COUNT( * )
----
4085

skipif mysql # not compatible
query I rowsort label-1919
SELECT - CAST ( - 95 AS INTEGER ) * + 43 * COUNT ( * )
----
4085

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT MAX( - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-1920
SELECT MAX ( - 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1921
SELECT - - MAX( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 20 - + 87 col2
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT ALL + 65 * ( - COUNT( * ) ) + - + 50 AS col2
----
-115

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL + 65 * ( - COUNT ( * ) ) + - + 50 AS col2
----
-115

query I rowsort
SELECT ALL + ( + 1 ) AS col1
----
1

query I rowsort
SELECT ALL + 2 * + + ( 53 ) AS col1
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT ALL - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL ( + + 76 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL + COUNT( * ) * + ( - - 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + COUNT ( * ) * + ( - - 93 ) AS col1
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1929
SELECT ALL 91 DIV 9 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL 91 / 9 AS col1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1930
SELECT ALL + ( COUNT( * ) ) + + CAST( - MIN( - 80 ) AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-1930
SELECT ALL + ( COUNT ( * ) ) + + CAST ( - MIN ( - 80 ) AS INTEGER )
----
81

query I rowsort
SELECT - 97 * - 62
----
6014

query II rowsort
SELECT 59 + - 12 AS col1, + 6
----
47
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT MAX( + 95 ) + - - 65 AS col2
----
160

skipif mysql # not compatible
query I rowsort label-1933
SELECT MAX ( + 95 ) + - - 65 AS col2
----
160

query I rowsort
SELECT 98 + - - 26
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1935
SELECT DISTINCT - CAST( + + 10 AS SIGNED ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT - CAST ( + + 10 AS INTEGER ) AS col0
----
-10

query I rowsort
SELECT ALL 49 * 81 AS col0
----
3969

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL + NULLIF ( + 92, COUNT( * ) - - COUNT( * ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL + NULLIF ( + 92, COUNT ( * ) - - COUNT ( * ) ) AS col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT - CAST( NULL AS SIGNED ) + + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT - CAST ( NULL AS INTEGER ) + + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT + CASE + COUNT( * ) WHEN + - 75 THEN 7 * 95 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1939
SELECT + CASE + COUNT ( * ) WHEN + - 75 THEN 7 * 95 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1940
SELECT + 62 DIV + - MAX( ALL + 89 )
----
0

skipif mysql # not compatible
query I rowsort label-1940
SELECT + 62 / + - MAX ( ALL + 89 )
----
0

query I rowsort
SELECT - 26 + - 44
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT ALL CAST( NULL AS SIGNED ) / - 45 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL CAST ( NULL AS INTEGER ) / - 45 col1
----
NULL

query I rowsort
SELECT DISTINCT 33 * - 36
----
-1188

query I rowsort
SELECT DISTINCT + - 35 col0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1945
SELECT + - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1945
SELECT + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 0 * - + 1 - + 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1947
SELECT DISTINCT - 58 * + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT - 58 * + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-1948
SELECT - 66, MIN( ALL + + 21 ) AS col2
----
-66
21

skipif mysql # not compatible
query II rowsort label-1948
SELECT - 66, MIN ( ALL + + 21 ) AS col2
----
-66
21

query II rowsort
SELECT DISTINCT 27 AS col2, - 77
----
27
-77

query II rowsort
SELECT ALL 85, 59 AS col0
----
85
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1951
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) - - 70
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1952
SELECT - COUNT( * ) AS col0, + 59
----
-1
59

skipif mysql # not compatible
query II rowsort label-1952
SELECT - COUNT ( * ) AS col0, + 59
----
-1
59

query I rowsort
SELECT + ( + - 88 ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT 28 - - COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-1954
SELECT 28 - - COUNT ( * )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1955
SELECT + - COUNT( * ) AS col2, + 13 + CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1955
SELECT + - COUNT ( * ) AS col2, + 13 + CAST ( NULL AS INTEGER )
----
-1
NULL

query I rowsort
SELECT + 20 + + 7 AS col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1957
SELECT + 67 DIV + + COUNT( * ) AS col2, MAX( - - ( 28 ) ) col0
----
67
28

skipif mysql # not compatible
query II rowsort label-1957
SELECT + 67 / + + COUNT ( * ) AS col2, MAX ( - - ( 28 ) ) col0
----
67
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1958
SELECT - CAST( NULL AS SIGNED ) + - - 46 + + 18 * - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT - CAST ( NULL AS INTEGER ) + - - 46 + + 18 * - 97
----
NULL

query I rowsort
SELECT + 13 * + - ( - 2 )
----
26

query I rowsort
SELECT + 15 * + ( + 93 ) col0
----
1395

onlyif mysql # DIV for integer division: 
query I rowsort label-1961
SELECT - 79 DIV - 19
----
4

skipif mysql # not compatible
query I rowsort label-1961
SELECT - 79 / - 19
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT - - 65 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT - - 65 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT - MAX( + - 57 ) + - 51 + - COUNT( * ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT - MAX ( + - 57 ) + - 51 + - COUNT ( * ) AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT ALL CAST( NULL AS SIGNED ) + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL CAST ( NULL AS INTEGER ) + 69
----
NULL

query I rowsort
SELECT DISTINCT 18 - 97 AS col1
----
-79

query I rowsort
SELECT ALL - ( + 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT + COUNT( * ) * - 24 + + 25 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1967
SELECT + COUNT ( * ) * - 24 + + 25 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT ALL + COUNT( * ) * - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT DISTINCT CAST( NULL AS SIGNED ) * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 65
----
NULL

query I rowsort
SELECT DISTINCT 61 + + + 52 AS col0
----
113

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1971
SELECT 0 col2, CAST( NULL AS DECIMAL )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1971
SELECT 0 col2, CAST ( NULL AS REAL )
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1972
SELECT ALL + 1 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1972
SELECT ALL + 1 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1973
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1974
SELECT 71 AS col1, COUNT( * ) AS col2
----
71
1

skipif mysql # not compatible
query II rowsort label-1974
SELECT 71 AS col1, COUNT ( * ) AS col2
----
71
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT + - 75 - - ( - COUNT( DISTINCT + + 97 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-1975
SELECT + - 75 - - ( - COUNT ( DISTINCT + + 97 ) )
----
-76

onlyif mysql # aggregate syntax: 
query III rowsort label-1976
SELECT ALL 44 AS col2, - ( + COUNT( * ) ) AS col1, COUNT( * ) col0
----
44
-1
1

skipif mysql # not compatible
query III rowsort label-1976
SELECT ALL 44 AS col2, - ( + COUNT ( * ) ) AS col1, COUNT ( * ) col0
----
44
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT + SUM( ALL 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-1977
SELECT + SUM ( ALL 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT ALL + MAX( ALL + + ( - 8 ) ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL + MAX ( ALL + + ( - 8 ) ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + - COUNT( + 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-1979
SELECT + - COUNT ( + 36 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1980
SELECT + 95 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1980
SELECT + 95 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1981
SELECT DISTINCT + ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT + ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 25 * + 98 AS col1
----
2450

query I rowsort
SELECT - 28 * - 30
----
840

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT ALL + 69 DIV 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL + 69 / 45 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1985
SELECT DISTINCT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 48 col0
----
-48

query I rowsort
SELECT - 68 * - ( + NULLIF ( 87, - - 87 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT ALL - 13 + + - COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL - 13 + + - COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-1989
SELECT - 29 AS col0, - MIN( ALL 61 ) AS col2
----
-29
-61

skipif mysql # not compatible
query II rowsort label-1989
SELECT - 29 AS col0, - MIN ( ALL 61 ) AS col2
----
-29
-61

query I rowsort
SELECT DISTINCT + ( 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT ALL 43 * + ( - COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-1991
SELECT ALL 43 * + ( - COUNT ( * ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1992
SELECT DISTINCT COUNT( * ) * - 73 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT COUNT ( * ) * - 73 AS col1
----
-73

query I rowsort
SELECT ALL + 35 - + 72
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT - COUNT( ALL + 73 )
----
-1

skipif mysql # not compatible
query I rowsort label-1994
SELECT - COUNT ( ALL + 73 )
----
-1

query I rowsort
SELECT DISTINCT ( 70 ) AS col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT + 30 + - CAST( + 92 AS SIGNED )
----
-62

skipif mysql # not compatible
query I rowsort label-1996
SELECT + 30 + - CAST ( + 92 AS INTEGER )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1997
SELECT ALL + MAX( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + MAX ( ALL CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1998
SELECT ALL CAST( 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL CAST ( 9 AS INTEGER )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT COUNT( * ) + - ( - 75 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1999
SELECT COUNT ( * ) + - ( - 75 ) AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT DISTINCT - CAST( - 35 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2000
SELECT DISTINCT - CAST ( - 35 AS INTEGER ) AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL - COUNT( * ) + - + 23 col2
----
-24

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - COUNT ( * ) + - + 23 col2
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2002
SELECT ALL + CAST( NULL AS SIGNED ) / 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + CAST ( NULL AS INTEGER ) / 29 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2003
SELECT ALL 26 AS col1, + NULLIF ( 30, + CAST( NULL AS SIGNED ) ) AS col0
----
26
30

skipif mysql # not compatible
query II rowsort label-2003
SELECT ALL 26 AS col1, + NULLIF ( 30, + CAST ( NULL AS INTEGER ) ) AS col0
----
26
30

query II rowsort
SELECT ALL 37 AS col0, + 41 AS col1
----
37
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL - COUNT( ALL + + 45 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL - COUNT ( ALL + + 45 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2006
SELECT ALL + CAST( + - COUNT( * ) AS SIGNED ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL + CAST ( + - COUNT ( * ) AS INTEGER ) col0
----
-1

query I rowsort
SELECT + 42 + - 46
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT + COUNT( * ) + - 56
----
-55

skipif mysql # not compatible
query I rowsort label-2008
SELECT + COUNT ( * ) + - 56
----
-55

query I rowsort
SELECT 34 + + 28
----
62

query I rowsort
SELECT DISTINCT 85 col1
----
85

query I rowsort
SELECT - + 40 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT ALL + CAST( NULL AS SIGNED ) + + + 21 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + CAST ( NULL AS INTEGER ) + + + 21 * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2013
SELECT ALL - 79 AS col0, + ( - CASE 94 WHEN + - 39 THEN NULL WHEN 25 THEN COUNT( * ) END ) AS col2
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-2013
SELECT ALL - 79 AS col0, + ( - CASE 94 WHEN + - 39 THEN NULL WHEN 25 THEN COUNT ( * ) END ) AS col2
----
-79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT DISTINCT - MAX( + 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-2014
SELECT DISTINCT - MAX ( + 6 ) AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT + MAX( - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-2015
SELECT + MAX ( - 17 )
----
-17

query I rowsort
SELECT + 29 * 17 col1
----
493

query II rowsort
SELECT DISTINCT + 83 col1, - 41
----
83
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT + 0 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT + 0 * + - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - ( - + COUNT( * ) ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2019
SELECT - ( - + COUNT ( * ) ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT - 8 + + + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2020
SELECT - 8 + + + COUNT ( * ) AS col2
----
-7

query I rowsort
SELECT - 85 * - ( 21 ) AS col1
----
1785

query I rowsort
SELECT - 49 * 69 AS col0
----
-3381

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT + ( 58 ) DIV 12
----
4

skipif mysql # not compatible
query I rowsort label-2023
SELECT + ( 58 ) / 12
----
4

query I rowsort
SELECT ALL - + 59 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT - + 68 * 35 + - COUNT( * )
----
-2381

skipif mysql # not compatible
query I rowsort label-2025
SELECT - + 68 * 35 + - COUNT ( * )
----
-2381

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL 59 * - + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL 59 * - + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT 42 + - COUNT( * ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2027
SELECT 42 + - COUNT ( * ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT COUNT( * ) + + + 11
----
12

skipif mysql # not compatible
query I rowsort label-2028
SELECT COUNT ( * ) + + + 11
----
12

query I rowsort
SELECT 65 * - + 86 col1
----
-5590

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - COUNT( * ) + + 14 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2030
SELECT - COUNT ( * ) + + 14 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL 36 - + COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL 36 - + COUNT ( * )
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2032
SELECT + ( + 38 ) + + SUM( - ( - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2032
SELECT + ( + 38 ) + + SUM ( - ( - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT + COUNT( 18 )
----
1

skipif mysql # not compatible
query I rowsort label-2033
SELECT + COUNT ( 18 )
----
1

query I rowsort
SELECT + + 73 - - 75
----
148

query I rowsort
SELECT DISTINCT ( + - 8 )
----
-8

query I rowsort
SELECT - 21 col1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT 17 - - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT 17 - - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2038
SELECT DISTINCT + ( 32 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT DISTINCT + ( 32 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL + 23 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + 23 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2040
SELECT CAST( 95 AS SIGNED ) + + 82 AS col1
----
177

skipif mysql # not compatible
query I rowsort label-2040
SELECT CAST ( 95 AS INTEGER ) + + 82 AS col1
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2041
SELECT DISTINCT + COUNT( DISTINCT + CAST( NULL AS DECIMAL ) ) * 92 - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT + COUNT ( DISTINCT + CAST ( NULL AS REAL ) ) * 92 - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT ALL 55 * - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL 55 * - COUNT ( * )
----
-55

query I rowsort
SELECT + 0 * 21 - + 29 AS col2
----
-29

query I rowsort
SELECT ALL + 95 * + - 40 col0
----
-3800

query I rowsort
SELECT - 36 + - 60 AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT + - COUNT( * ) + - COUNT( * ) * + + 90
----
-91

skipif mysql # not compatible
query I rowsort label-2046
SELECT + - COUNT ( * ) + - COUNT ( * ) * + + 90
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2047
SELECT + CAST( AVG ( - 55 ) AS SIGNED ) + - COUNT( * ) - + + COUNT( * ) DIV - 80 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-2047
SELECT + CAST ( AVG ( - 55 ) AS INTEGER ) + - COUNT ( * ) - + + COUNT ( * ) / - 80 AS col0
----
-56

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2048
SELECT - CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT - CAST ( - - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2049
SELECT ALL + CAST( NULL AS SIGNED ) * + - 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 10 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2050
SELECT DISTINCT 61 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT 61 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + CASE + 95 WHEN + 62 THEN + ( 77 ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2052
SELECT ALL - 88 DIV - 35 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL - 88 / - 35 AS col2
----
2

query I rowsort
SELECT DISTINCT - 81 col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT COUNT( * ) - 2
----
-1

skipif mysql # not compatible
query I rowsort label-2054
SELECT COUNT ( * ) - 2
----
-1

query I rowsort
SELECT COALESCE ( - 50, 84 ) AS col2
----
-50

query I rowsort
SELECT DISTINCT - 39 - + - 1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT DISTINCT - MAX( - + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT - MAX ( - + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT ALL - MIN( ALL 86 ) + - 3 col0
----
-89

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL - MIN ( ALL 86 ) + - 3 col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2059
SELECT - - 55 DIV + - COUNT( * ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-2059
SELECT - - 55 / + - COUNT ( * ) col2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2060
SELECT + CAST( NULL AS SIGNED ) / 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2060
SELECT + CAST ( NULL AS INTEGER ) / 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2061
SELECT ALL COUNT( DISTINCT - 20 ) DIV - CAST( - 62 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2061
SELECT ALL COUNT ( DISTINCT - 20 ) / - CAST ( - 62 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT - 38 - + COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-2062
SELECT - 38 - + COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2063
SELECT + COUNT( * ) AS col2, - 66
----
1
-66

skipif mysql # not compatible
query II rowsort label-2063
SELECT + COUNT ( * ) AS col2, - 66
----
1
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT ALL + MAX( + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL + MAX ( + 80 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT - ( + + COUNT( * ) ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2065
SELECT - ( + + COUNT ( * ) ) * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL 43 + - 18 AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT + ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2067
SELECT + ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT ALL + 33 * + ( - - COUNT( * ) ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + 33 * + ( - - COUNT ( * ) ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2069
SELECT ALL + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 83 * 30
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT 87 + MAX( 13 ) AS col2
----
100

skipif mysql # not compatible
query I rowsort label-2071
SELECT 87 + MAX ( 13 ) AS col2
----
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2072
SELECT ALL 38 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL 38 + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 13 + - 9
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT 53 * COUNT( * ) col1
----
53

skipif mysql # not compatible
query I rowsort label-2074
SELECT 53 * COUNT ( * ) col1
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2075
SELECT + - COALESCE ( CAST( NULL AS SIGNED ), + COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2075
SELECT + - COALESCE ( CAST ( NULL AS INTEGER ), + COUNT ( * ) ) AS col2
----
-1

query II rowsort
SELECT - 81 AS col0, - 90 * 30
----
-81
-2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2077
SELECT DISTINCT + 96 AS col0, - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
96
NULL

skipif mysql # not compatible
query II rowsort label-2077
SELECT DISTINCT + 96 AS col0, - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
96
NULL

query I rowsort
SELECT - - 83 * 23 col1
----
1909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2079
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT - - SUM( ALL 65 ) + + COUNT( * ) + - 29 + + 44 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2080
SELECT - - SUM ( ALL 65 ) + + COUNT ( * ) + - 29 + + 44 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT COUNT( - - NULLIF ( 27, + 28 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2081
SELECT COUNT ( - - NULLIF ( 27, + 28 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT - MAX( + 46 ) + ( COUNT( * ) ) + + 11 AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-2082
SELECT - MAX ( + 46 ) + ( COUNT ( * ) ) + + 11 AS col1
----
-34

query I rowsort
SELECT - ( + 51 )
----
-51

query I rowsort
SELECT - + 10 + 63 + - ( - + 29 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT ALL CAST( + + 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL CAST ( + + 35 AS INTEGER ) AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT + 41 + - + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2086
SELECT + 41 + - + COUNT ( * ) AS col2
----
40

query I rowsort
SELECT - - 84 col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2088
SELECT ALL - COUNT( * ) - - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL - COUNT ( * ) - - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT 23 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT 23 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 17 col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT 53 * COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-2091
SELECT 53 * COUNT ( * )
----
53

query I rowsort
SELECT + - ( - + 90 ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2093
SELECT ALL - + CAST( 64 AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL - + CAST ( 64 AS INTEGER )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT 97 * + COUNT ( * )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT ALL 8 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL 8 / - 43
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT 22 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2096
SELECT 22 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2097
SELECT 12 DIV + - 58 DIV - - COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT 12 / + - 58 / - - COUNT ( * ) col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL + CAST( + + 82 AS SIGNED ) col0
----
82

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + CAST ( + + 82 AS INTEGER ) col0
----
82

query I rowsort
SELECT ALL 50 * - - 51 + - ( - 56 ) AS col2
----
2606

query I rowsort
SELECT + 76 + 75 AS col0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2101
SELECT - CAST( - 10 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-2101
SELECT - CAST ( - 10 AS INTEGER )
----
10

query I rowsort
SELECT DISTINCT + ( ( + 39 ) ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2103
SELECT ALL + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2103
SELECT ALL + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT + NULLIF ( COUNT( * ), - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-2104
SELECT + NULLIF ( COUNT ( * ), - 16 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2105
SELECT ALL ( - CAST( 42 AS SIGNED ) )
----
-42

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL ( - CAST ( 42 AS INTEGER ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL + ( - 51 ) + - + 71 + - + MIN( 59 ) AS col1
----
-181

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + ( - 51 ) + - + 71 + - + MIN ( 59 ) AS col1
----
-181

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT 65 * COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-2107
SELECT 65 * COUNT ( * )
----
65

query I rowsort
SELECT 46 + - 81 AS col2
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2109
SELECT ALL CAST( NULL AS SIGNED ) + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL CAST ( NULL AS INTEGER ) + + 72
----
NULL

query II rowsort
SELECT 26, - 56 col2
----
26
-56

query II rowsort
SELECT - - 91 AS col1, - 95
----
91
-95

query I rowsort
SELECT ALL - 46 + - + 79
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL + - COUNT( * ) + + 66 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL + - COUNT ( * ) + + 66 AS col0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2114
SELECT ALL 34, CAST( NULL AS SIGNED ) AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-2114
SELECT ALL 34, CAST ( NULL AS INTEGER ) AS col2
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - MAX( - - 21 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2115
SELECT - MAX ( - - 21 ) AS col2
----
-21

query I rowsort
SELECT ALL - 95 + + 18 - - + 13 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT - SUM( 99 )
----
-99

skipif mysql # not compatible
query I rowsort label-2117
SELECT - SUM ( 99 )
----
-99

query I rowsort
SELECT ALL - 88 * + 60 AS col2
----
-5280

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT ALL - 66 - COUNT( * ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL - 66 - COUNT ( * ) col0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2120
SELECT + 84 - - - 91 + - 73, + COUNT( * ) AS col1
----
-80
1

skipif mysql # not compatible
query II rowsort label-2120
SELECT + 84 - - - 91 + - 73, + COUNT ( * ) AS col1
----
-80
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2121
SELECT DISTINCT + CAST( 56 AS SIGNED ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT + CAST ( 56 AS INTEGER ) AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2122
SELECT CAST( + + ( + COUNT( * ) ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2122
SELECT CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2123
SELECT CAST( + 54 AS SIGNED ) col2
----
54

skipif mysql # not compatible
query I rowsort label-2123
SELECT CAST ( + 54 AS INTEGER ) col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT COUNT( * ) * + 12 col2
----
12

skipif mysql # not compatible
query I rowsort label-2124
SELECT COUNT ( * ) * + 12 col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT DISTINCT - COUNT( * ) + 60 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT - COUNT ( * ) + 60 AS col2
----
59

query I rowsort
SELECT DISTINCT - - 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2127
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT DISTINCT COALESCE ( + - SUM( ALL - 44 ), - 22 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT COALESCE ( + - SUM ( ALL - 44 ), - 22 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT ALL COUNT( * ) + + - 36 * 89 AS col2
----
-3203

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL COUNT ( * ) + + - 36 * 89 AS col2
----
-3203

query I rowsort
SELECT - 66 + 55 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2131
SELECT ALL COUNT( * ) + - CAST( - 20 AS SIGNED ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL COUNT ( * ) + - CAST ( - 20 AS INTEGER ) AS col1
----
21

query I rowsort
SELECT - 4 + - 76 AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2133
SELECT CAST( COUNT( * ) AS SIGNED ) * - COUNT( * ) * + 90 + - - COUNT( + 20 ) col2
----
-89

skipif mysql # not compatible
query I rowsort label-2133
SELECT CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * + 90 + - - COUNT ( + 20 ) col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2134
SELECT ALL CAST( NULL AS DECIMAL ) * - COUNT( * ), - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2134
SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ), - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

query I rowsort
SELECT DISTINCT - + 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT 19 * + - COUNT( * ) AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2136
SELECT 19 * + - COUNT ( * ) AS col2
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT DISTINCT - 65 - - CAST( - + 10 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT - 65 - - CAST ( - + 10 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT COUNT( ALL 28 )
----
1

skipif mysql # not compatible
query I rowsort label-2138
SELECT COUNT ( ALL 28 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT ALL 17 AS col1, COUNT( * ) AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-2139
SELECT ALL 17 AS col1, COUNT ( * ) AS col2
----
17
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2140
SELECT ALL ( 90 ) DIV + 39 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL ( 90 ) / + 39 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT COUNT( * ) * + - 41 * + - 34 AS col1
----
1394

skipif mysql # not compatible
query I rowsort label-2141
SELECT COUNT ( * ) * + - 41 * + - 34 AS col1
----
1394

onlyif mysql # DIV for integer division: 
query I rowsort label-2142
SELECT + 54 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-2142
SELECT + 54 / + 79
----
0

query I rowsort
SELECT DISTINCT + 82 * + - 53
----
-4346

query II rowsort
SELECT ALL 48 AS col1, 20 col1
----
48
20

query I rowsort
SELECT 0 + 39 + + 84
----
123

query I rowsort
SELECT DISTINCT - 82 * - 13
----
1066

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL 72 * + COUNT( * ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL 72 * + COUNT ( * ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL - 93 + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - 93 + COUNT ( * )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2149
SELECT DISTINCT - MAX( - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT - MAX ( - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT - ( - + 15 ) + 65 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT 10 * + - ( + - COUNT( * ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2151
SELECT 10 * + - ( + - COUNT ( * ) ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT - COUNT( * ) * + - 60
----
60

skipif mysql # not compatible
query I rowsort label-2152
SELECT - COUNT ( * ) * + - 60
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT + + COUNT( * ) + + 83 - - + COUNT( * ) + + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-2153
SELECT + + COUNT ( * ) + + 83 - - + COUNT ( * ) + + + COUNT ( * )
----
86

query I rowsort
SELECT - - 28 + - 26
----
2

query I rowsort
SELECT ALL ( 35 ) AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2156
SELECT CAST( NULL AS SIGNED ), - 71 AS col0
----
NULL
-71

skipif mysql # not compatible
query II rowsort label-2156
SELECT CAST ( NULL AS INTEGER ), - 71 AS col0
----
NULL
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2157
SELECT - + 13 AS col1, + ( + COUNT( * ) ) * 23 AS col2
----
-13
23

skipif mysql # not compatible
query II rowsort label-2157
SELECT - + 13 AS col1, + ( + COUNT ( * ) ) * 23 AS col2
----
-13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT 39 * - COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2158
SELECT 39 * - COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT ALL - - ( + 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL COUNT( ALL 41 ) + + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL COUNT ( ALL 41 ) + + - COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2161
SELECT ALL 41 AS col2, 73 DIV 90 AS col2
----
41
0

skipif mysql # not compatible
query II rowsort label-2161
SELECT ALL 41 AS col2, 73 / 90 AS col2
----
41
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT - MIN( - - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-2162
SELECT - MIN ( - - 63 ) AS col2
----
-63

query II rowsort
SELECT ALL 63, 68 AS col1
----
63
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT DISTINCT + MAX( + - ( + 45 ) ) * + 6 AS col1
----
-270

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + MAX ( + - ( + 45 ) ) * + 6 AS col1
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - MAX( ALL - 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2165
SELECT - MAX ( ALL - 93 ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT + COUNT( * ) * + 56
----
56

skipif mysql # not compatible
query I rowsort label-2166
SELECT + COUNT ( * ) * + 56
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2167
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * + 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2167
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * + 12 AS col0
----
-12

query I rowsort
SELECT - 36 + - - 96
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2169
SELECT ALL - 39 * - - CAST( - 94 AS SIGNED ) AS col2
----
3666

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL - 39 * - - CAST ( - 94 AS INTEGER ) AS col2
----
3666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT CAST( - 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT CAST ( - 77 AS INTEGER )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2171
SELECT DISTINCT CAST( + 59 AS SIGNED )
----
59

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT CAST ( + 59 AS INTEGER )
----
59

query I rowsort
SELECT 67 * + 94
----
6298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2173
SELECT DISTINCT COUNT( * ) - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT COUNT ( * ) - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2174
SELECT - 47, - COUNT( * ) col1
----
-47
-1

skipif mysql # not compatible
query II rowsort label-2174
SELECT - 47, - COUNT ( * ) col1
----
-47
-1

query I rowsort
SELECT ALL - 58 + - 62
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT MAX( DISTINCT + - 80 ) col2
----
-80

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT MAX ( DISTINCT + - 80 ) col2
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2177
SELECT ALL COUNT( ALL + 19 ) DIV - 70
----
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL COUNT ( ALL + 19 ) / - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT SUM( ALL + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2178
SELECT SUM ( ALL + 20 ) AS col1
----
20

query I rowsort
SELECT ALL - 68 - 91 AS col2
----
-159

query I rowsort
SELECT - + ( ( + 95 ) )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + SUM( ALL 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-2181
SELECT + SUM ( ALL 91 ) AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT - ( + - 73 ) AS col2
----
73

query I rowsort
SELECT ALL + 23 - + 75 AS col2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT DISTINCT - CAST( - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - CAST ( - 3 AS INTEGER )
----
3

query I rowsort
SELECT + 84 + - + 81
----
3

query I rowsort
SELECT ALL - - ( + - 60 )
----
-60

query I rowsort
SELECT ALL + ( + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL 24 + + - COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL 24 + + - COUNT ( * ) AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2190
SELECT + ( + ( + 78 ) ) * - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT + ( + ( + 78 ) ) * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT ALL + 62 AS col2, 95 col0
----
62
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2192
SELECT + CAST( NULL AS SIGNED ) + + 21 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT + CAST ( NULL AS INTEGER ) + + 21 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT + - 31 + - COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT + - 31 + - COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL - CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT + - 72 > + COUNT( * ) THEN + + 44 END col2
----
-44

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL - CASE WHEN NULL IS NOT NULL THEN NULL WHEN NOT + - 72 > + COUNT ( * ) THEN + + 44 END col2
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2195
SELECT + ( - 28 ) - - - COUNT( * ) + - 87 DIV 87 DIV - + 85 * - 39
----
-29

skipif mysql # not compatible
query I rowsort label-2195
SELECT + ( - 28 ) - - - COUNT ( * ) + - 87 / 87 / - + 85 * - 39
----
-29

query I rowsort
SELECT + 1 * 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT ( - - ( - + COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT ( - - ( - + COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT CAST( - + 33 AS SIGNED ) col1
----
-33

skipif mysql # not compatible
query I rowsort label-2198
SELECT CAST ( - + 33 AS INTEGER ) col1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-2199
SELECT ALL - 11 * - - COUNT( * ) col2, ( + + 87 )
----
-11
87

skipif mysql # not compatible
query II rowsort label-2199
SELECT ALL - 11 * - - COUNT ( * ) col2, ( + + 87 )
----
-11
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT 17 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT 17 / 64 AS col1
----
0

query I rowsort
SELECT 78 + - 49 AS col0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2202
SELECT DISTINCT - 55 + - + CAST( + - 54 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT - 55 + - + CAST ( + - 54 AS INTEGER ) AS col0
----
-1

query II rowsort
SELECT ALL + 38 + 5, ( - ( + 98 ) ) col1
----
43
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2204
SELECT ALL - - SUM( DISTINCT - 58 ) AS col0, + COUNT( * ) AS col0
----
-58
1

skipif mysql # not compatible
query II rowsort label-2204
SELECT ALL - - SUM ( DISTINCT - 58 ) AS col0, + COUNT ( * ) AS col0
----
-58
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2205
SELECT ALL 24 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL 24 / - 49
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT + CAST( NULL AS SIGNED ) / 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT + CAST ( NULL AS INTEGER ) / 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL NULLIF ( + COUNT( * ), + + COUNT( * ) ) + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL NULLIF ( + COUNT ( * ), + + COUNT ( * ) ) + 28
----
NULL

query I rowsort
SELECT DISTINCT 17 + - 49 * - 2 AS col0
----
115

query I rowsort
SELECT + 46 * 53
----
2438

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT MIN( + - 95 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-2210
SELECT MIN ( + - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT - COUNT( * ) - - 79 + - COUNT( * ) * - - MIN( DISTINCT 41 )
----
37

skipif mysql # not compatible
query I rowsort label-2211
SELECT - COUNT ( * ) - - 79 + - COUNT ( * ) * - - MIN ( DISTINCT 41 )
----
37

query I rowsort
SELECT + + ( - 54 ) * - + 54 + + 50 AS col1
----
2966

query I rowsort
SELECT - 22 * + 48 AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query II rowsort label-2214
SELECT + COUNT( * ), 70 AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-2214
SELECT + COUNT ( * ), 70 AS col1
----
1
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT - MAX( - 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2215
SELECT - MAX ( - 38 ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT DISTINCT - MIN( 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-2216
SELECT DISTINCT - MIN ( 89 )
----
-89

query I rowsort
SELECT + ( 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT ALL - COUNT( DISTINCT - 80 )
----
-1

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - COUNT ( DISTINCT - 80 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2219
SELECT DISTINCT + 57 DIV + + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + 57 / + + 48 AS col1
----
1

query I rowsort
SELECT + 64 * + 5
----
320

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - MAX( DISTINCT 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-2221
SELECT - MAX ( DISTINCT 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT - SUM( + 24 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-2222
SELECT - SUM ( + 24 ) AS col2
----
-24

query I rowsort
SELECT - 12 * + 76
----
-912

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + MIN( + 22 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + MIN ( + 22 ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT 47 + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-2225
SELECT 47 + + COUNT ( * )
----
48

query I rowsort
SELECT ALL 86 + 28 col2
----
114

query I rowsort
SELECT DISTINCT - - 4 - 87 AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT + ( + COUNT( * ) ) * 95
----
95

skipif mysql # not compatible
query I rowsort label-2228
SELECT + ( + COUNT ( * ) ) * 95
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT + COUNT( * ) * - COALESCE ( ( + 60 ) * 32, + 98 )
----
-1920

skipif mysql # not compatible
query I rowsort label-2229
SELECT + COUNT ( * ) * - COALESCE ( ( + 60 ) * 32, + 98 )
----
-1920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2230
SELECT CAST( + 62 AS SIGNED ) * + 9
----
558

skipif mysql # not compatible
query I rowsort label-2230
SELECT CAST ( + 62 AS INTEGER ) * + 9
----
558

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2231
SELECT 58 DIV + MIN( ALL - 97 )
----
0

skipif mysql # not compatible
query I rowsort label-2231
SELECT 58 / + MIN ( ALL - 97 )
----
0

query I rowsort
SELECT ALL + - 35 AS col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + + MAX( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-2233
SELECT + + MAX ( - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL + 49 * - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL + 49 * - COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT DISTINCT - 44 * COUNT( * ) * 66
----
-2904

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - 44 * COUNT ( * ) * 66
----
-2904

query I rowsort
SELECT + 94 + + + 70 AS col0
----
164

query II rowsort
SELECT + - 14 AS col0, 20 AS col1
----
-14
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT DISTINCT + 30 AS col2, COUNT( * )
----
30
1

skipif mysql # not compatible
query II rowsort label-2238
SELECT DISTINCT + 30 AS col2, COUNT ( * )
----
30
1

query I rowsort
SELECT ALL 22 * 5 col0
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2240
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * + 86 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * + 86 AS col1
----
86

query I rowsort
SELECT ALL - - 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT SUM( ALL - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-2242
SELECT SUM ( ALL - 42 ) AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 39 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL + + COUNT( * ) * + 39 AS col0
----
39

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + + COUNT ( * ) * + 39 AS col0
----
39

query I rowsort
SELECT 54 * 41 col1
----
2214

query I rowsort
SELECT ALL 31 * 37 col2
----
1147

query I rowsort
SELECT - ( + 21 ) col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT + ( - 45 ) + + - MIN( ALL - 83 )
----
38

skipif mysql # not compatible
query I rowsort label-2248
SELECT + ( - 45 ) + + - MIN ( ALL - 83 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - - COUNT( * ) * - 4
----
-4

skipif mysql # not compatible
query I rowsort label-2249
SELECT - - COUNT ( * ) * - 4
----
-4

query I rowsort
SELECT + + ( 10 ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - 99 * MAX( - NULLIF ( - 80, ( + - 58 ) ) )
----
-7920

skipif mysql # not compatible
query I rowsort label-2251
SELECT - 99 * MAX ( - NULLIF ( - 80, ( + - 58 ) ) )
----
-7920

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT DISTINCT 46 DIV - + 61 * - 68
----
0

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT 46 / - + 61 * - 68
----
0

query I rowsort
SELECT DISTINCT - 34 + + - 93
----
-127

query I rowsort
SELECT ALL 57 + - 86 col2
----
-29

query I rowsort
SELECT DISTINCT - 68 * 95
----
-6460

query II rowsort
SELECT + 40 AS col1, + 29 + 57
----
40
86

query I rowsort
SELECT DISTINCT ( + - 66 )
----
-66

query I rowsort
SELECT ( 2 ) AS col0
----
2

query I rowsort
SELECT ALL 98 - + - 85 col2
----
183

query I rowsort
SELECT + - ( - 82 ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT 85 + - COUNT( * ) + + 68 AS col2
----
152

skipif mysql # not compatible
query I rowsort label-2261
SELECT 85 + - COUNT ( * ) + + 68 AS col2
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT + + MIN( + 61 ) * - COUNT( * ) - 60 + + 44
----
-77

skipif mysql # not compatible
query I rowsort label-2262
SELECT + + MIN ( + 61 ) * - COUNT ( * ) - 60 + + 44
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2263
SELECT NULLIF ( - - CAST( NULL AS SIGNED ), - + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT NULLIF ( - - CAST ( NULL AS INTEGER ), - + 93 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2264
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 16 + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 16 + 53
----
NULL

query I rowsort
SELECT + - 52 * - 49 AS col2
----
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2266
SELECT DISTINCT - + 16 DIV CAST( - 30 AS SIGNED ) + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT - + 16 / CAST ( - 30 AS INTEGER ) + + COUNT ( * )
----
1

query I rowsort
SELECT - + 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL ( ( COUNT( * ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL ( ( COUNT ( * ) ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ( - COUNT( * ) ) * - 11 + 56
----
67

skipif mysql # not compatible
query I rowsort label-2269
SELECT ( - COUNT ( * ) ) * - 11 + 56
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL + COUNT( ALL - ( + 85 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL + COUNT ( ALL - ( + 85 ) )
----
1

query I rowsort
SELECT - 74 * 7 AS col2
----
-518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT DISTINCT - CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 42 AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT ( 13 ) + CAST( NULL AS SIGNED ) * - - 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT ( 13 ) + CAST ( NULL AS INTEGER ) * - - 93 AS col2
----
NULL

query I rowsort
SELECT - 10 * 79 * + + 23 * + 19
----
-345230

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - 27 + + ( + COUNT( * ) )
----
-26

skipif mysql # not compatible
query I rowsort label-2276
SELECT - 27 + + ( + COUNT ( * ) )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT MAX( DISTINCT - + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-2277
SELECT MAX ( DISTINCT - + 46 )
----
-46

query I rowsort
SELECT - - 14 + - - 67 col1
----
81

query II rowsort
SELECT ALL + 36, 48 col1
----
36
48

query I rowsort
SELECT ALL ( + + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT + - CAST( + 59 AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-2281
SELECT + - CAST ( + 59 AS INTEGER )
----
-59

query I rowsort
SELECT DISTINCT + + ( - 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-2283
SELECT - COUNT( * ), 90 AS col1
----
-1
90

skipif mysql # not compatible
query II rowsort label-2283
SELECT - COUNT ( * ), 90 AS col1
----
-1
90

query I rowsort
SELECT - 16 + - 22 AS col0
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT ALL + CAST( NULL AS SIGNED ) + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL + CAST ( NULL AS INTEGER ) + 26 AS col1
----
NULL

query I rowsort
SELECT ALL - + 21 * - 60 AS col2
----
1260

query I rowsort
SELECT ALL ( + 25 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT CAST( NULL AS SIGNED ) * + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2288
SELECT CAST ( NULL AS INTEGER ) * + 40 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 90 col2
----
90

query I rowsort
SELECT - 35 + - 18
----
-53

query I rowsort
SELECT DISTINCT + - 50 AS col1
----
-50

query I rowsort
SELECT - ( - 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2293
SELECT + 11 * + - COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-2293
SELECT + 11 * + - COUNT ( * ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT MAX( - 87 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-2294
SELECT MAX ( - 87 ) AS col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2295
SELECT ALL CAST( - + 44 AS SIGNED ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL CAST ( - + 44 AS INTEGER ) AS col0
----
-44

query I rowsort
SELECT + 36 - + 92 AS col0
----
-56

query I rowsort
SELECT DISTINCT 75 * - + 48 AS col0
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT 74 * - COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-2298
SELECT 74 * - COUNT ( * ) AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT CAST( NULL AS SIGNED ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT CAST ( NULL AS INTEGER ) * 25
----
NULL

query I rowsort
SELECT ALL ( - - 9 )
----
9

query II rowsort
SELECT 68 AS col2, - 89 AS col2
----
68
-89

query II rowsort
SELECT + 1, 43 AS col1
----
1
43

query I rowsort
SELECT ALL + 76 * 50
----
3800

query I rowsort
SELECT DISTINCT + ( + + 84 ) col2
----
84

query I rowsort
SELECT ALL + 89 - - 21
----
110

query I rowsort
SELECT ALL - NULLIF ( - 86, - 63 ) - 84 AS col0
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2307
SELECT - 29 + - COUNT( * ) col2, 36
----
-30
36

skipif mysql # not compatible
query II rowsort label-2307
SELECT - 29 + - COUNT ( * ) col2, 36
----
-30
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2308
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col0, 78 + COUNT( * ) AS col1
----
-1
79

skipif mysql # not compatible
query II rowsort label-2308
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col0, 78 + COUNT ( * ) AS col1
----
-1
79

query I rowsort
SELECT ( + ( 99 ) )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2310
SELECT + CAST( + COUNT( * ) AS SIGNED ), + ( 77 ) AS col2
----
1
77

skipif mysql # not compatible
query II rowsort label-2310
SELECT + CAST ( + COUNT ( * ) AS INTEGER ), + ( 77 ) AS col2
----
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT - 4 * COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-2311
SELECT - 4 * COUNT ( * ) AS col1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2312
SELECT ALL + 57 * MIN( DISTINCT - CAST( ( - 12 ) AS SIGNED ) ) AS col2
----
684

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL + 57 * MIN ( DISTINCT - CAST ( ( - 12 ) AS INTEGER ) ) AS col2
----
684

query I rowsort
SELECT ALL 57 + 36
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT - - COUNT( * ) * 62 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2314
SELECT - - COUNT ( * ) * 62 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT DISTINCT + COUNT( * ) * + 74 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT + COUNT ( * ) * + 74 AS col2
----
74

query I rowsort
SELECT ALL - 52 * + 44
----
-2288

query I rowsort
SELECT ALL + - ( - + 76 )
----
76

query I rowsort
SELECT + 57 + + 87 - 39
----
105

query I rowsort
SELECT + 37 + 29
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT - COUNT( * ) * 25
----
-25

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT - COUNT ( * ) * 25
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT ALL - 35 + + - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL - 35 + + - COUNT ( * )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT + 10 + CAST( NULL AS SIGNED ) * + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2322
SELECT + 10 + CAST ( NULL AS INTEGER ) * + + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT ALL COUNT( DISTINCT - 76 )
----
1

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL COUNT ( DISTINCT - 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT ( COUNT( + 68 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2324
SELECT ( COUNT ( + 68 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT - 51 DIV + 40 + + + ( 63 )
----
62

skipif mysql # not compatible
query I rowsort label-2325
SELECT - 51 / + 40 + + + ( 63 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT ALL COUNT( * ) - + SUM( ALL 90 ) col1
----
-89

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL COUNT ( * ) - + SUM ( ALL 90 ) col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT + ( - + COUNT( * ) ) * - - 62 + + + 31
----
-31

skipif mysql # not compatible
query I rowsort label-2327
SELECT + ( - + COUNT ( * ) ) * - - 62 + + + 31
----
-31

query I rowsort
SELECT - 39 * 82 AS col2
----
-3198

query I rowsort
SELECT ALL + 85 + - 10
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2330
SELECT - + 52 * AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2330
SELECT - + 52 * AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2331
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2332
SELECT DISTINCT ( - COUNT( - 13 ) ) * COUNT( * ) AS col2, COUNT( * )
----
-1
1

skipif mysql # not compatible
query II rowsort label-2332
SELECT DISTINCT ( - COUNT ( - 13 ) ) * COUNT ( * ) AS col2, COUNT ( * )
----
-1
1

query I rowsort
SELECT + 80 * 86
----
6880

onlyif mysql # aggregate syntax: 
query II rowsort label-2334
SELECT - ( + - 80 ) AS col1, - COUNT( * ) AS col0
----
80
-1

skipif mysql # not compatible
query II rowsort label-2334
SELECT - ( + - 80 ) AS col1, - COUNT ( * ) AS col0
----
80
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + COUNT( * ) - 6
----
-5

skipif mysql # not compatible
query I rowsort label-2335
SELECT + COUNT ( * ) - 6
----
-5

query I rowsort
SELECT ( - 29 ) AS col2
----
-29

query I rowsort
SELECT ALL + 8 * 94
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT - COUNT( * ) * + MAX( ALL - 24 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL - 24 ) col1
----
24

query I rowsort
SELECT DISTINCT 12 - + 61 AS col2
----
-49

query II rowsort
SELECT 0 AS col2, - 1 col1
----
0
-1

query I rowsort
SELECT DISTINCT 34 + - 17
----
17

query II rowsort
SELECT 32 AS col0, + 40 AS col2
----
32
40

query II rowsort
SELECT DISTINCT - 85 AS col2, - 42
----
-85
-42

query I rowsort
SELECT ALL 29 * - 65
----
-1885

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT + COUNT( * ) + + 65 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-2345
SELECT + COUNT ( * ) + + 65 AS col0
----
66

query I rowsort
SELECT DISTINCT 44 * 99 AS col1
----
4356

query I rowsort
SELECT - - 8 col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2348
SELECT CAST( 82 AS SIGNED ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2348
SELECT CAST ( 82 AS INTEGER ) AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2349
SELECT CAST( - 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-2349
SELECT CAST ( - 34 AS INTEGER )
----
-34

query I rowsort
SELECT + ( + 85 ) AS col2
----
85

query II rowsort
SELECT ALL + 62, 87 col2
----
62
87

query I rowsort
SELECT ALL + ( - 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT MIN( 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2353
SELECT MIN ( 65 ) AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT + + 40 * - - COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-2354
SELECT + + 40 * - - COUNT ( * ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT DISTINCT + COUNT( * ) + - 98
----
-97

skipif mysql # not compatible
query I rowsort label-2355
SELECT DISTINCT + COUNT ( * ) + - 98
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT DISTINCT - MIN( + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT - MIN ( + 48 ) AS col1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT DISTINCT - + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - + COUNT ( * ) col2
----
-1

query I rowsort
SELECT ALL NULLIF ( - - 2, + + 23 ) AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2360
SELECT + ( + + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2360
SELECT + ( + + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT - 77 + + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-2361
SELECT - 77 + + - COUNT ( * )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2362
SELECT ALL + CAST( NULL AS SIGNED ) + - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT COUNT( * ) + + 78
----
79

skipif mysql # not compatible
query I rowsort label-2363
SELECT COUNT ( * ) + + 78
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT ( + COUNT( * ) ) * - 58 + + COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2364
SELECT ( + COUNT ( * ) ) * - 58 + + COUNT ( * ) AS col1
----
-57

query I rowsort
SELECT ALL - ( - 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT + - COUNT( * ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + - COUNT ( * ) * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + - 8 col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT DISTINCT MAX( ALL - 26 ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-2368
SELECT DISTINCT MAX ( ALL - 26 ) AS col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2369
SELECT COUNT( * ) AS col2, - CAST( 10 AS SIGNED )
----
1
-10

skipif mysql # not compatible
query II rowsort label-2369
SELECT COUNT ( * ) AS col2, - CAST ( 10 AS INTEGER )
----
1
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT ALL 55 + - ( + - MIN( 99 ) ) col0
----
154

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL 55 + - ( + - MIN ( 99 ) ) col0
----
154

query I rowsort
SELECT ALL 88 + + 25 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL + MIN( DISTINCT - 83 ) + - 97 + 13 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL + MIN ( DISTINCT - 83 ) + - 97 + 13 AS col1
----
-167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2373
SELECT ALL + CAST( NULL AS SIGNED ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2373
SELECT ALL + CAST ( NULL AS INTEGER ) * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2375
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * - 28 AS col1, - 20 AS col0
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-2375
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 28 AS col1, - 20 AS col0
----
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT 12 + - ( + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-2376
SELECT 12 + - ( + COUNT ( * ) )
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2377
SELECT CAST( NULL AS DECIMAL ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT CAST ( NULL AS REAL ) * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT + MIN( ALL - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-2378
SELECT + MIN ( ALL - 88 )
----
-88

query I rowsort
SELECT + - 77 - - 49 * 71 AS col1
----
3402

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT ALL + CAST( - 73 AS SIGNED ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL + CAST ( - 73 AS INTEGER ) AS col2
----
-73

query I rowsort
SELECT - ( - + 2 ) AS col0
----
2

query I rowsort
SELECT ALL 90 - 26
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2383
SELECT DISTINCT 39 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT 39 / 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT + + COUNT( * ) + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2384
SELECT + + COUNT ( * ) + COUNT ( * ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL 90 * + - COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL 90 * + - COUNT ( * )
----
-90

query I rowsort
SELECT ALL 11 - - - ( + 59 )
----
-48

query I rowsort
SELECT ALL + 67 * - 50
----
-3350

query I rowsort
SELECT DISTINCT - 64 col1
----
-64

query I rowsort
SELECT - + ( + + 64 )
----
-64

query I rowsort
SELECT 22 + + - 93 AS col2
----
-71

query I rowsort
SELECT ALL 5 * - + 49
----
-245

query I rowsort
SELECT + 33 * + 60
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - + COUNT( * ) * - 70 + - 81 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2393
SELECT - + COUNT ( * ) * - 70 + - 81 AS col1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT - + 70 DIV 2 col0
----
-35

skipif mysql # not compatible
query I rowsort label-2394
SELECT - + 70 / 2 col0
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT ALL - - 30 DIV - + 21
----
-1

skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL - - 30 / - + 21
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2396
SELECT - COUNT( + - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT - COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT + COUNT( + ( - - 33 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2397
SELECT + COUNT ( + ( - - 33 ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT + COUNT( ALL + - 77 )
----
1

skipif mysql # not compatible
query I rowsort label-2398
SELECT + COUNT ( ALL + - 77 )
----
1

query I rowsort
SELECT DISTINCT - ( + 58 ) * 8 AS col2
----
-464

query I rowsort
SELECT + ( 14 )
----
14

query I rowsort
SELECT - 80 + - 96
----
-176

onlyif mysql # aggregate syntax: 
query II rowsort label-2402
SELECT ALL + - ( - COUNT( * ) ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2402
SELECT ALL + - ( - COUNT ( * ) ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-2403
SELECT DISTINCT + + 87 col0, 52 DIV + 49 AS col0
----
87
1

skipif mysql # not compatible
query II rowsort label-2403
SELECT DISTINCT + + 87 col0, 52 / + 49 AS col0
----
87
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2404
SELECT - ( - COUNT( * ) ) DIV - 43 col1
----
0

skipif mysql # not compatible
query I rowsort label-2404
SELECT - ( - COUNT ( * ) ) / - 43 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT - 87 + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-2405
SELECT - 87 + COUNT ( * )
----
-86

query I rowsort
SELECT - NULLIF ( + 24, - - COALESCE ( - 60, 5 ) ) col2
----
-24

query I rowsort
SELECT - ( + - ( - 72 ) ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT + 43 + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-2408
SELECT + 43 + + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT - COUNT( - 95 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2409
SELECT - COUNT ( - 95 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2410
SELECT DISTINCT + CAST( + + 50 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT + CAST ( + + 50 AS INTEGER )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2411
SELECT DISTINCT 13 AS col1, + CAST( NULL AS SIGNED ) * COUNT( * ) * - 82
----
13
NULL

skipif mysql # not compatible
query II rowsort label-2411
SELECT DISTINCT 13 AS col1, + CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 82
----
13
NULL

query I rowsort
SELECT + 67 - 64 AS col1
----
3

query I rowsort
SELECT + 71 * + 60 AS col0
----
4260

query I rowsort
SELECT ALL 70 + + 10 col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT ALL 40 + - + ( + COUNT( * ) )
----
39

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL 40 + - + ( + COUNT ( * ) )
----
39

query I rowsort
SELECT ALL 84 * - 22 AS col2
----
-1848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2417
SELECT - COUNT( * ) DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-2417
SELECT - COUNT ( * ) / - 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2418
SELECT - COUNT( * ) DIV + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2418
SELECT - COUNT ( * ) / + 55 AS col1
----
0

query I rowsort
SELECT DISTINCT + 80 * 4
----
320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT - 41 + - COUNT( * ) DIV 66 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2420
SELECT - 41 + - COUNT ( * ) / 66 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT + COUNT( * ) - + COUNT( * ) * + 28
----
-27

skipif mysql # not compatible
query I rowsort label-2421
SELECT + COUNT ( * ) - + COUNT ( * ) * + 28
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT DISTINCT ( - 67 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT DISTINCT ( - 67 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT DISTINCT + 86 * COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-2423
SELECT DISTINCT + 86 * COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT - ( COUNT( * ) ) * 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - ( COUNT ( * ) ) * 40 AS col2
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-2425
SELECT DISTINCT - 86, + COUNT( * ) AS col0
----
-86
1

skipif mysql # not compatible
query II rowsort label-2425
SELECT DISTINCT - 86, + COUNT ( * ) AS col0
----
-86
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT ALL - 99, COUNT( * ) AS col0
----
-99
1

skipif mysql # not compatible
query II rowsort label-2426
SELECT ALL - 99, COUNT ( * ) AS col0
----
-99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2427
SELECT DISTINCT + COUNT( * ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT + COUNT ( * ) / 96
----
0

query I rowsort
SELECT - 99 + - ( + 18 )
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT + MAX( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2429
SELECT + MAX ( + 1 ) AS col0
----
1

query I rowsort
SELECT 41 + 45 AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2431
SELECT COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT COUNT ( * ) + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL - COUNT( * ) * + 27 * COUNT( * ) * 22 col1
----
-594

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - COUNT ( * ) * + 27 * COUNT ( * ) * 22 col1
----
-594

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2433
SELECT COUNT( * ) DIV 5
----
0

skipif mysql # not compatible
query I rowsort label-2433
SELECT COUNT ( * ) / 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL + COUNT( * ) * - 73 + + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL + COUNT ( * ) * - 73 + + COUNT ( * )
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT ALL - 80 DIV - 54 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - 80 / - 54 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT DISTINCT MAX( ALL - - ( + 53 ) ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-2436
SELECT DISTINCT MAX ( ALL - - ( + 53 ) ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT + COALESCE ( + - COUNT( * ), - 21 )
----
-1

skipif mysql # not compatible
query I rowsort label-2437
SELECT + COALESCE ( + - COUNT ( * ), - 21 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2438
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT DISTINCT - COUNT( * ) + 12
----
11

skipif mysql # not compatible
query I rowsort label-2439
SELECT DISTINCT - COUNT ( * ) + 12
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT + 69 + + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT + 69 + + COUNT ( * )
----
70

query I rowsort
SELECT - 92 * 53
----
-4876

query I rowsort
SELECT DISTINCT - + ( - 69 )
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2443
SELECT ALL CAST( NULL AS DECIMAL ) * + + 39 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL CAST ( NULL AS REAL ) * + + 39 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT ALL - 21 DIV - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - 21 / - COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT ALL MIN( ALL + - ( - - 43 ) ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL MIN ( ALL + - ( - - 43 ) ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT ALL + - 89 * + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-2446
SELECT ALL + - 89 * + COUNT ( * )
----
-89

query I rowsort
SELECT + + 35 AS col0
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2448
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT CAST ( NULL AS REAL ) * - 78 AS col2
----
NULL

query II rowsort
SELECT ALL 56, + 98 + + 33 AS col2
----
56
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2450
SELECT - MIN( CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT + + 44 * 3 col2
----
132

query II rowsort
SELECT ALL + 14 AS col0, + 60
----
14
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL - - SUM( ALL + - 43 ) * - COUNT( * ) + + + ( + 39 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - - SUM ( ALL + - 43 ) * - COUNT ( * ) + + + ( + 39 ) col2
----
82

query I rowsort
SELECT ALL ( + + 86 ) col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT DISTINCT - 59 + - COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT - 59 + - COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT - 9 * + 50 + + ( 51 ) AS col2
----
-399

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT + COUNT( ALL + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-2457
SELECT + COUNT ( ALL + 78 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2458
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2459
SELECT ALL COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 21 AS col1, 79
----
21
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT - - MAX( - 57 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-2461
SELECT - - MAX ( - 57 ) AS col1
----
-57

query I rowsort
SELECT ALL - ( + ( - + ( - + 50 ) ) ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2463
SELECT ALL 87 - + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL 87 - + COUNT ( * )
----
86

query I rowsort
SELECT ALL 14 * - 53
----
-742

query I rowsort
SELECT ALL + 54 - + + 12 AS col2
----
42

query I rowsort
SELECT ALL - + 67 AS col1
----
-67

query II rowsort
SELECT 61 AS col2, 4
----
61
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2468
SELECT 4, COUNT( * ) AS col0
----
4
1

skipif mysql # not compatible
query II rowsort label-2468
SELECT 4, COUNT ( * ) AS col0
----
4
1

query I rowsort
SELECT ( + - 49 ) * 20 AS col0
----
-980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2470
SELECT ALL + COUNT( * ) + + COUNT( * ) DIV + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL + COUNT ( * ) + + COUNT ( * ) / + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT 22 + - 73 AS col0
----
-51

query II rowsort
SELECT ALL 31 AS col1, + 91
----
31
91

query I rowsort
SELECT 98 * + - 56 + + - ( + - 22 )
----
-5466

query I rowsort
SELECT + 94 - - ( - 19 ) + - ( + 49 ) AS col1
----
26

query I rowsort
SELECT - 66 + - - 99 + + + 47 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT + - ( - + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2476
SELECT + - ( - + COUNT ( * ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2477
SELECT - 33 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT - 33 / 98
----
0

query I rowsort
SELECT ALL + ( + 36 ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT + 64 * + COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2479
SELECT + 64 * + COUNT ( * ) AS col1
----
64

query I rowsort
SELECT ALL - 72 - - + 12
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2481
SELECT ALL - CAST( - - 84 AS SIGNED ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL - CAST ( - - 84 AS INTEGER ) col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT - 71 - - COUNT( * ), COUNT( * ) AS col1
----
-70
1

skipif mysql # not compatible
query II rowsort label-2482
SELECT - 71 - - COUNT ( * ), COUNT ( * ) AS col1
----
-70
1

query I rowsort
SELECT - 8 * - - 72
----
-576

query I rowsort
SELECT ( - 78 ) AS col0
----
-78

query I rowsort
SELECT 6 * + 23
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT COUNT( * ) * + MIN( DISTINCT - 53 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-2486
SELECT COUNT ( * ) * + MIN ( DISTINCT - 53 ) col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2487
SELECT ALL - 17 / - + CAST( NULL AS SIGNED ) / - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - 17 / - + CAST ( NULL AS INTEGER ) / - - COUNT ( * )
----
NULL

query I rowsort
SELECT 97 * + 63 AS col1
----
6111

query I rowsort
SELECT ALL 33 * 65 AS col0
----
2145

query I rowsort
SELECT ALL + + 93 AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2491
SELECT - COUNT( * ) DIV COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2491
SELECT - COUNT ( * ) / COUNT ( * ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT + 92 DIV - 34
----
-2

skipif mysql # not compatible
query I rowsort label-2492
SELECT + 92 / - 34
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT COUNT( ALL 23 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2493
SELECT COUNT ( ALL 23 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2494
SELECT 79, COUNT( ALL - 20 ) AS col1
----
79
1

skipif mysql # not compatible
query II rowsort label-2494
SELECT 79, COUNT ( ALL - 20 ) AS col1
----
79
1

query I rowsort
SELECT ALL + + 94 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL COALESCE ( MAX( DISTINCT - + 92 ), + COUNT( * ) ) + 40 * - 29
----
-1252

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL COALESCE ( MAX ( DISTINCT - + 92 ), + COUNT ( * ) ) + 40 * - 29
----
-1252

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT - COUNT( * ) + 1
----
0

skipif mysql # not compatible
query I rowsort label-2497
SELECT - COUNT ( * ) + 1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2498
SELECT - - 21, + COUNT( * ) AS col0
----
21
1

skipif mysql # not compatible
query II rowsort label-2498
SELECT - - 21, + COUNT ( * ) AS col0
----
21
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT - ( - - 95 ) DIV 8 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2499
SELECT - ( - - 95 ) / 8 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL COUNT( * ) + 85 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL COUNT ( * ) + 85 AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2501
SELECT DISTINCT MAX( DISTINCT 62 ) AS col0, - CAST( NULL AS SIGNED )
----
62
NULL

skipif mysql # not compatible
query II rowsort label-2501
SELECT DISTINCT MAX ( DISTINCT 62 ) AS col0, - CAST ( NULL AS INTEGER )
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL - COUNT( * ) - - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT ALL - COUNT ( * ) - - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT + NULLIF ( + 45, 95 + + COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-2503
SELECT + NULLIF ( + 45, 95 + + COUNT ( * ) )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + 79 * + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-2504
SELECT + 79 * + COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT MIN( ALL + - 29 )
----
-29

skipif mysql # not compatible
query I rowsort label-2505
SELECT MIN ( ALL + - 29 )
----
-29

query II rowsort
SELECT + 5 AS col2, + 34 AS col0
----
5
34

query I rowsort
SELECT ALL ( + - 98 )
----
-98

query I rowsort
SELECT ALL + - 51 + - 66
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2509
SELECT - COUNT( * ) DIV + ( - ( 56 ) ) + + 9
----
9

skipif mysql # not compatible
query I rowsort label-2509
SELECT - COUNT ( * ) / + ( - ( 56 ) ) + + 9
----
9

query I rowsort
SELECT ALL + ( - 23 )
----
-23

query I rowsort
SELECT DISTINCT + - 82 * + ( - 95 ) * - 50 AS col0
----
-389500

query I rowsort
SELECT + 50 - + - 13 AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2513
SELECT DISTINCT + 88 DIV + - COUNT( * ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT + 88 / + - COUNT ( * ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2514
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2515
SELECT 66 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT 66 / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT - COUNT( * ) + + 14
----
13

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - COUNT ( * ) + + 14
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2517
SELECT DISTINCT + COUNT( * ) DIV + - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT + COUNT ( * ) / + - 26 AS col0
----
0

query I rowsort
SELECT 23 * - 12 AS col0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT + COUNT( * ) * - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + COUNT ( * ) * - + 81
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2520
SELECT COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2521
SELECT - COUNT( * ) AS col0, - SUM( DISTINCT + - 66 )
----
-1
66

skipif mysql # not compatible
query II rowsort label-2521
SELECT - COUNT ( * ) AS col0, - SUM ( DISTINCT + - 66 )
----
-1
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2522
SELECT CAST( COUNT( * ) AS SIGNED ) - 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-2522
SELECT CAST ( COUNT ( * ) AS INTEGER ) - 99 AS col0
----
-98

query I rowsort
SELECT + + ( - + 17 ) AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2524
SELECT ALL + + COUNT( * ) AS col1, + CAST( NULL AS SIGNED ) col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2524
SELECT ALL + + COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER ) col0
----
1
NULL

query I rowsort
SELECT - 51 + - ( - 60 )
----
9

query I rowsort
SELECT DISTINCT + ( 22 ) + - 74
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT ( + + MIN( 60 ) ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT ( + + MIN ( 60 ) ) AS col2
----
60

query I rowsort
SELECT DISTINCT 96 + 35 AS col0
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT + CAST( NULL AS SIGNED ) * - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT + CAST ( NULL AS INTEGER ) * - - 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + - MIN( 8 ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-2530
SELECT + - MIN ( 8 ) col0
----
-8

query I rowsort
SELECT + + ( 71 ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + + COUNT( - 81 )
----
1

skipif mysql # not compatible
query I rowsort label-2532
SELECT + + COUNT ( - 81 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT ALL - + COUNT( * ) * COUNT( * ) - 93 AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2533
SELECT ALL - + COUNT ( * ) * COUNT ( * ) - 93 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-2534
SELECT + SUM( - 19 ), + COUNT( * ) AS col2
----
-19
1

skipif mysql # not compatible
query II rowsort label-2534
SELECT + SUM ( - 19 ), + COUNT ( * ) AS col2
----
-19
1

query I rowsort
SELECT - 73 * + 76
----
-5548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2536
SELECT ALL + 11 + + + 42 + - 90 DIV + 60 * - + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL + 11 + + + 42 + - 90 / + 60 * - + COUNT ( * ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2537
SELECT ALL 49 * + COUNT( ALL + 2 ), COUNT( * ) AS col2
----
49
1

skipif mysql # not compatible
query II rowsort label-2537
SELECT ALL 49 * + COUNT ( ALL + 2 ), COUNT ( * ) AS col2
----
49
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT 0 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT ALL - MAX( + 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL - MAX ( + 98 )
----
-98

query I rowsort
SELECT DISTINCT - - ( - - 62 ) AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT 65 + MIN( + 22 ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2541
SELECT 65 + MIN ( + 22 ) AS col2
----
87

query I rowsort
SELECT DISTINCT - 70 * + 1
----
-70

query II rowsort
SELECT ALL - ( - 90 ), - 63 AS col1
----
90
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2544
SELECT DISTINCT + + COUNT( ALL - + CAST( NULL AS SIGNED ) ) + - - NULLIF ( - - CAST( NULL AS DECIMAL ), - 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + + COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) + - - NULLIF ( - - CAST ( NULL AS REAL ), - 39 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 84 + + 21
----
-63

query II rowsort
SELECT 85, 83 col2
----
85
83

query II rowsort
SELECT ALL 47 AS col1, - 74 * - 11 AS col1
----
47
814

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT - CAST( NULL AS SIGNED ) - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2548
SELECT - CAST ( NULL AS INTEGER ) - 88 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2549
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, ( - 91 )
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-2549
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, ( - 91 )
----
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT ALL COUNT( 27 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL COUNT ( 27 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT DISTINCT + NULLIF ( - ( + COUNT( * ) ), + 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + NULLIF ( - ( + COUNT ( * ) ), + 86 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT DISTINCT MAX( ALL 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT MAX ( ALL 34 ) AS col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2553
SELECT DISTINCT + COUNT( * ) AS col2, 13 DIV COUNT( * )
----
1
13

skipif mysql # not compatible
query II rowsort label-2553
SELECT DISTINCT + COUNT ( * ) AS col2, 13 / COUNT ( * )
----
1
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL MAX( - - 36 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL MAX ( - - 36 ) AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT - SUM( ALL 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - SUM ( ALL 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT ALL - SUM( ALL + - 31 ) col2
----
31

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - SUM ( ALL + - 31 ) col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2557
SELECT - CAST( - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT - CAST ( - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT DISTINCT + + 75 * - MIN( ALL + 61 ) - 18
----
-4593

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT + + 75 * - MIN ( ALL + 61 ) - 18
----
-4593

query I rowsort
SELECT ( - + 10 ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2560
SELECT + 83, - CAST( + 41 AS SIGNED ) + - - COUNT( * ) AS col2
----
83
-40

skipif mysql # not compatible
query II rowsort label-2560
SELECT + 83, - CAST ( + 41 AS INTEGER ) + - - COUNT ( * ) AS col2
----
83
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2561
SELECT CAST( NULL AS SIGNED ) - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT CAST ( NULL AS INTEGER ) - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT ALL - MAX( 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL - MAX ( 69 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT + COUNT( * ) * + + 19 col0
----
19

skipif mysql # not compatible
query I rowsort label-2563
SELECT + COUNT ( * ) * + + 19 col0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT ALL 72 / + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL 72 / + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2565
SELECT - + SUM( - 50 ) AS col2, + CAST( + 74 AS SIGNED ) AS col0
----
50
74

skipif mysql # not compatible
query II rowsort label-2565
SELECT - + SUM ( - 50 ) AS col2, + CAST ( + 74 AS INTEGER ) AS col0
----
50
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT ALL - COALESCE ( - 64, COUNT( * ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - COALESCE ( - 64, COUNT ( * ) ) AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT ALL - 73 DIV + + 74
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT ALL - 73 / + + 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + 77 * - + COUNT( * ) * + COUNT( DISTINCT - 30 )
----
-77

skipif mysql # not compatible
query I rowsort label-2568
SELECT + 77 * - + COUNT ( * ) * + COUNT ( DISTINCT - 30 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT - MAX( 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-2569
SELECT - MAX ( 87 )
----
-87

query I rowsort
SELECT - - 46 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT ALL CAST( 19 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL CAST ( 19 AS INTEGER )
----
19

query I rowsort
SELECT - COALESCE ( - 79, 53 ) AS col1
----
79

query I rowsort
SELECT DISTINCT ( + + ( - - 45 ) ) col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT DISTINCT + 0 DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT + 0 / 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT - 36 + - SUM( + - 16 )
----
-20

skipif mysql # not compatible
query I rowsort label-2575
SELECT - 36 + - SUM ( + - 16 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2576
SELECT CAST( COUNT( * ) AS SIGNED ) - - - 50
----
-49

skipif mysql # not compatible
query I rowsort label-2576
SELECT CAST ( COUNT ( * ) AS INTEGER ) - - - 50
----
-49

query I rowsort
SELECT ALL - 93 + - 19
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT COUNT( ( + - 98 ) ) + - 11 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-2578
SELECT COUNT ( ( + - 98 ) ) + - 11 AS col2
----
-10

query I rowsort
SELECT ALL - + 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT + MIN( 35 )
----
35

skipif mysql # not compatible
query I rowsort label-2580
SELECT + MIN ( 35 )
----
35

query II rowsort
SELECT ALL 79 AS col2, 21
----
79
21

query I rowsort
SELECT + 7 + + - 39
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - + 30 + NULLIF ( COUNT( * ), + 88 )
----
-29

skipif mysql # not compatible
query I rowsort label-2583
SELECT - + 30 + NULLIF ( COUNT ( * ), + 88 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL - 67 * - + ( MIN( ALL 95 ) )
----
6365

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL - 67 * - + ( MIN ( ALL 95 ) )
----
6365

onlyif mysql # aggregate syntax: 
query II rowsort label-2585
SELECT COUNT( * ) AS col0, - 66 AS col2
----
1
-66

skipif mysql # not compatible
query II rowsort label-2585
SELECT COUNT ( * ) AS col0, - 66 AS col2
----
1
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2586
SELECT + COUNT( * ) DIV + + 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2586
SELECT + COUNT ( * ) / + + 27 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2587
SELECT + 1 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT + 1 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + + SUM( ALL 4 ) * ( + 70 )
----
280

skipif mysql # not compatible
query I rowsort label-2588
SELECT + + SUM ( ALL 4 ) * ( + 70 )
----
280

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2589
SELECT - COUNT( * ) DIV + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2589
SELECT - COUNT ( * ) / + COUNT ( * ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2590
SELECT 88 * + CAST( + COUNT( * ) AS SIGNED )
----
88

skipif mysql # not compatible
query I rowsort label-2590
SELECT 88 * + CAST ( + COUNT ( * ) AS INTEGER )
----
88

query I rowsort
SELECT 62 + 15
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + MIN( + - 71 ) + - + COUNT( * ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-2592
SELECT + MIN ( + - 71 ) + - + COUNT ( * ) AS col1
----
-72

query I rowsort
SELECT - 15 + - 92
----
-107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2594
SELECT CAST( - COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-2594
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-1

query I rowsort
SELECT + - 52 col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL - + SUM( ALL - 93 )
----
93

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL - + SUM ( ALL - 93 )
----
93

query I rowsort
SELECT 88 * + + 58 AS col2
----
5104

query I rowsort
SELECT ALL + 89 * + + 18 AS col1
----
1602

query I rowsort
SELECT ALL + 14 col1
----
14

query I rowsort
SELECT DISTINCT + - 69 * 5 * - 16 AS col0
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT - 62 * + COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-2601
SELECT - 62 * + COUNT ( * )
----
-62

query I rowsort
SELECT ALL + 4 * - - 83 AS col1
----
332

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT 12 AS col1, COUNT( * )
----
12
1

skipif mysql # not compatible
query II rowsort label-2603
SELECT 12 AS col1, COUNT ( * )
----
12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + 37 * - ( MAX( DISTINCT - 0 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 37 * - ( MAX ( DISTINCT - 0 ) ) AS col2
----
0

query I rowsort
SELECT - + 77 * + 20 - - 93 + + 7 AS col2
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT + + 22 + + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-2606
SELECT + + 22 + + COUNT ( * ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT + MAX( ( + 73 ) )
----
73

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + MAX ( ( + 73 ) )
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2608
SELECT 27 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-2608
SELECT 27 / - 90
----
0

query II rowsort
SELECT DISTINCT - ( 76 ) AS col0, + 64 AS col0
----
-76
64

query I rowsort
SELECT DISTINCT 6 * - - 85
----
510

query I rowsort
SELECT 48 * + 26
----
1248

query I rowsort
SELECT ALL - - 58 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL COUNT( * ) * + 47
----
47

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL COUNT ( * ) * + 47
----
47

query I rowsort
SELECT 82 * + 3
----
246

query I rowsort
SELECT 88 - NULLIF ( - 52, - - 59 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT MIN( ALL + + 17 )
----
17

skipif mysql # not compatible
query I rowsort label-2616
SELECT MIN ( ALL + + 17 )
----
17

query I rowsort
SELECT 70 + + 14 AS col1
----
84

query I rowsort
SELECT ALL + 36 - - 58 AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + COUNT( * ) + 48 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-2619
SELECT + COUNT ( * ) + 48 AS col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - COUNT( * ) * + - 60 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-2620
SELECT - COUNT ( * ) * + - 60 AS col1
----
60

query II rowsort
SELECT ( 92 ) AS col0, 38 AS col2
----
92
38

query I rowsort
SELECT ALL - ( + - 9 ) AS col0
----
9

query I rowsort
SELECT + 77 + - 4
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2624
SELECT + 64 * - 57 * 27 AS col1, CAST( NULL AS SIGNED )
----
-98496
NULL

skipif mysql # not compatible
query II rowsort label-2624
SELECT + 64 * - 57 * 27 AS col1, CAST ( NULL AS INTEGER )
----
-98496
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2625
SELECT 46 * + CAST( NULL AS SIGNED ) + - 39 * 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT 46 * + CAST ( NULL AS INTEGER ) + - 39 * 77 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT 47 DIV 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2626
SELECT 47 / 26 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + COUNT( * ) * - COUNT( * ) + + 81
----
80

skipif mysql # not compatible
query I rowsort label-2627
SELECT + COUNT ( * ) * - COUNT ( * ) + + 81
----
80

query I rowsort
SELECT DISTINCT 85 * + 2 col1
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT DISTINCT - COUNT( * ) + 58
----
57

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT - COUNT ( * ) + 58
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2630
SELECT DISTINCT - COUNT( * ) * 7
----
-7

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT - COUNT ( * ) * 7
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT - COUNT( - 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-2631
SELECT - COUNT ( - 75 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL - - COUNT( DISTINCT 24 )
----
1

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL - - COUNT ( DISTINCT 24 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2633
SELECT + CAST( 14 AS SIGNED ) * + 58 AS col0
----
812

skipif mysql # not compatible
query I rowsort label-2633
SELECT + CAST ( 14 AS INTEGER ) * + 58 AS col0
----
812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2634
SELECT + + CAST( - 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-2634
SELECT + + CAST ( - 47 AS INTEGER )
----
-47

query I rowsort
SELECT DISTINCT + 86 + 82 AS col1
----
168

query I rowsort
SELECT ALL - 28 + 31 * - 38 AS col0
----
-1206

query I rowsort
SELECT ( - 41 ) * - 58
----
2378

query I rowsort
SELECT 16 * + 46 AS col2
----
736

query I rowsort
SELECT - 59 * 24 * 4 AS col2
----
-5664

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2640
SELECT DISTINCT + + CAST( + - COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + + CAST ( + - COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT - + ( 33 ) * + COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-2641
SELECT - + ( 33 ) * + COUNT ( * )
----
-33

query I rowsort
SELECT + 25 * + ( + 47 ) AS col0
----
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT COUNT( - 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2643
SELECT COUNT ( - 68 ) AS col1
----
1

query I rowsort
SELECT ALL ( - 53 ) + - + 32 col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL ( + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL ( + - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL + 91 * + 30 AS col0
----
2730

query I rowsort
SELECT DISTINCT ( + 23 ) AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT ALL MIN( ALL + - 1 ) + 79 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL MIN ( ALL + - 1 ) + 79 AS col2
----
78

query I rowsort
SELECT DISTINCT 19 - + ( 61 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT DISTINCT - 78 - + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-2650
SELECT DISTINCT - 78 - + COUNT ( * )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT - COUNT( * ) * - 33 col2
----
33

skipif mysql # not compatible
query I rowsort label-2651
SELECT - COUNT ( * ) * - 33 col2
----
33

query II rowsort
SELECT ALL - 75 AS col2, 35 AS col2
----
-75
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT + COUNT( + 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2653
SELECT + COUNT ( + 24 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2654
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-2654
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - 43 + + + 54 AS col1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2656
SELECT CAST( + ( + + 24 ) AS SIGNED ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-2656
SELECT CAST ( + ( + + 24 ) AS INTEGER ) AS col0
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2657
SELECT ALL - 89 DIV + MIN( ALL - 96 ) + - 8 col2
----
-8

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - 89 / + MIN ( ALL - 96 ) + - 8 col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2658
SELECT ALL 8 * + 95 + COUNT( * ) / 39 + + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL 8 * + 95 + COUNT ( * ) / 39 + + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT + + COUNT( * ) * + 30 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-2659
SELECT + + COUNT ( * ) * + 30 AS col2
----
30

query I rowsort
SELECT DISTINCT + 2 col0
----
2

query I rowsort
SELECT DISTINCT + 8 + + + 59 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL + 24 * - - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL + 24 * - - COUNT ( * )
----
24

query I rowsort
SELECT ALL - ( + - 13 ) AS col0
----
13

query I rowsort
SELECT ALL - ( - 54 ) AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2665
SELECT ALL - CAST( NULL AS SIGNED ) * - - 91 * COUNT( * ) + ( + 68 ) + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 91 * COUNT ( * ) + ( + 68 ) + 19
----
NULL

query I rowsort
SELECT ALL + 85 + + 57 * + 79
----
4588

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT + 82 * CAST( - 14 AS SIGNED ) * + 11
----
-12628

skipif mysql # not compatible
query I rowsort label-2667
SELECT + 82 * CAST ( - 14 AS INTEGER ) * + 11
----
-12628

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2668
SELECT ALL - COUNT( * ) * - + 91 DIV + ( - ( - 41 ) ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL - COUNT ( * ) * - + 91 / + ( - ( - 41 ) ) col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL + COUNT( DISTINCT + 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL + COUNT ( DISTINCT + 66 ) AS col0
----
1

query I rowsort
SELECT - 78 - + 54
----
-132

query I rowsort
SELECT DISTINCT ( + 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL - ( - COUNT( * ) ) - + + 2 - + COUNT( * ) * - 0
----
-1

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL - ( - COUNT ( * ) ) - + + 2 - + COUNT ( * ) * - 0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + COUNT( * ) + - - 38
----
39

skipif mysql # not compatible
query I rowsort label-2673
SELECT + COUNT ( * ) + - - 38
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT ALL - NULLIF ( + COUNT( * ), - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-2674
SELECT ALL - NULLIF ( + COUNT ( * ), - 8 )
----
-1

query I rowsort
SELECT ALL - ( - - 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2676
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2676
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - - 21 + - - 60 AS col1
----
81

query I rowsort
SELECT ALL + 45 col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT MAX( ALL 15 )
----
15

skipif mysql # not compatible
query I rowsort label-2679
SELECT MAX ( ALL 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - COUNT( * ) * - + 98
----
98

skipif mysql # not compatible
query I rowsort label-2680
SELECT - COUNT ( * ) * - + 98
----
98

query I rowsort
SELECT - - 40 + + + 51
----
91

query I rowsort
SELECT ALL + ( - 68 ) AS col1
----
-68

query I rowsort
SELECT ( - 72 ) AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT - COUNT( - 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT - COUNT ( - 11 )
----
-1

query I rowsort
SELECT + 95 + + - 47 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + - COUNT( ALL 55 )
----
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + - COUNT ( ALL 55 )
----
0

query I rowsort
SELECT + NULLIF ( + - ( - 0 ), - - 80 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT - COUNT( * ) * + COUNT( * ) * + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2688
SELECT - COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT ALL + 67 + COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL + 67 + COUNT ( * )
----
68

query I rowsort
SELECT - 40 + + 65
----
25

query I rowsort
SELECT ( - - 14 )
----
14

query I rowsort
SELECT + - 6 * - 75 AS col1
----
450

query I rowsort
SELECT ALL - 89 * 59 * 22
----
-115522

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT COUNT( * ) * - + COUNT( + + 23 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2694
SELECT COUNT ( * ) * - + COUNT ( + + 23 ) AS col1
----
-1

query I rowsort
SELECT ALL - ( + + 75 )
----
-75

query I rowsort
SELECT DISTINCT - ( + 8 ) + - 45 AS col1
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2697
SELECT + + CAST( + 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-2697
SELECT + + CAST ( + 82 AS INTEGER )
----
82

query I rowsort
SELECT DISTINCT - - 17 AS col1
----
17

query I rowsort
SELECT ( + 63 ) AS col0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT ALL 42 DIV + + 6
----
7

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL 42 / + + 6
----
7

query I rowsort
SELECT - 77 * + 63
----
-4851

query I rowsort
SELECT + ( + - 15 ) AS col1
----
-15

query I rowsort
SELECT DISTINCT ( - - 94 )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2704
SELECT ALL + 40 + + CAST( + COUNT( * ) AS SIGNED ) + ( - - 14 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL + 40 + + CAST ( + COUNT ( * ) AS INTEGER ) + ( - - 14 ) AS col0
----
55

query I rowsort
SELECT - ( - 38 ) col2
----
38

query I rowsort
SELECT ALL + + 98 col2
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2707
SELECT ALL 25 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL 25 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT DISTINCT 60 + COUNT( * ) + + 26 + - COUNT( * ) * CAST( NULL AS SIGNED ) * + 15 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT DISTINCT 60 + COUNT ( * ) + + 26 + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 15 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT + COUNT( * ) * - - 43 col2
----
43

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + COUNT ( * ) * - - 43 col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT 38 * + - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-2710
SELECT 38 * + - COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL SUM( + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL SUM ( + - 49 )
----
-49

query I rowsort
SELECT ALL - 5 * - - 82
----
-410

onlyif mysql # aggregate syntax: 
query II rowsort label-2713
SELECT + COUNT( * ) AS col2, + 12
----
1
12

skipif mysql # not compatible
query II rowsort label-2713
SELECT + COUNT ( * ) AS col2, + 12
----
1
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT COUNT( * ) + - - 85
----
86

skipif mysql # not compatible
query I rowsort label-2714
SELECT COUNT ( * ) + - - 85
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT 32 * + COUNT( * ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2715
SELECT 32 * + COUNT ( * ) AS col0
----
32

query I rowsort
SELECT 77 + + ( + 84 ) AS col0
----
161

query I rowsort
SELECT DISTINCT + ( + 13 )
----
13

query I rowsort
SELECT ALL - 50 + + 80 + - - 81 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT 13 * - 36 * COUNT( * )
----
-468

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT 13 * - 36 * COUNT ( * )
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT SUM( DISTINCT + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-2720
SELECT SUM ( DISTINCT + 49 )
----
49

query I rowsort
SELECT + 88 - + 53
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT + 16 * + CAST( NULL AS SIGNED ) * - 95 * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT + 16 * + CAST ( NULL AS INTEGER ) * - 95 * - 42 AS col1
----
NULL

query I rowsort
SELECT ALL - + 13 + 75 AS col2
----
62

query I rowsort
SELECT + 88 + 65 AS col2
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT DISTINCT - + 58 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - + 58 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - ( + + 58 )
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2727
SELECT ALL + 80 DIV + 35 - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + 80 / + 35 - COUNT ( * )
----
1

query I rowsort
SELECT + 93 * + 68 AS col1
----
6324

query II rowsort
SELECT + 67 AS col2, + 71 * - 12 AS col2
----
67
-852

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2730
SELECT ALL + 54 * + 75 AS col2, ( + - COUNT( * ) ) DIV 41 * - COUNT( * ) AS col0
----
4050
0

skipif mysql # not compatible
query II rowsort label-2730
SELECT ALL + 54 * + 75 AS col2, ( + - COUNT ( * ) ) / 41 * - COUNT ( * ) AS col0
----
4050
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT 87 * COUNT( * ) DIV - COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-2731
SELECT 87 * COUNT ( * ) / - COUNT ( * ) AS col2
----
-87

query I rowsort
SELECT DISTINCT + 12 * - 7 + - + 50
----
-134

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2733
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + AVG ( + + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT CAST ( NULL AS REAL ) * + AVG ( + + 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT ALL - 6, COUNT( * ) col0
----
-6
1

skipif mysql # not compatible
query II rowsort label-2734
SELECT ALL - 6, COUNT ( * ) col0
----
-6
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT ALL + CAST( NULL AS SIGNED ) - - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + CAST ( NULL AS INTEGER ) - - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT - + ( - - 24 ) AS col1
----
-24

query I rowsort
SELECT + 26 + + + 42
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - 66 + - ( + - COUNT( * ) )
----
-65

skipif mysql # not compatible
query I rowsort label-2738
SELECT - 66 + - ( + - COUNT ( * ) )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2739
SELECT DISTINCT + - MAX( ALL + - 67 ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT + - MAX ( ALL + - 67 ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( - 78 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT + 87 DIV + 10
----
8

skipif mysql # not compatible
query I rowsort label-2741
SELECT + 87 / + 10
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT + 34 * + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-2742
SELECT + 34 * + + COUNT ( * )
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2743
SELECT + 52 DIV - - 39
----
1

skipif mysql # not compatible
query I rowsort label-2743
SELECT + 52 / - - 39
----
1

query I rowsort
SELECT + + CASE WHEN NOT NULL IS NOT NULL THEN + 6 ELSE NULL END
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT - 0 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2745
SELECT - 0 + - COUNT ( * )
----
-1

query II rowsort
SELECT DISTINCT - 34 AS col2, - 37 AS col0
----
-34
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL COUNT( * ) - - COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL COUNT ( * ) - - COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT ALL - - MIN( DISTINCT - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL - - MIN ( DISTINCT - 38 )
----
-38

query I rowsort
SELECT ALL - - ( - + 10 )
----
-10

query I rowsort
SELECT + - 23 col0
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-2751
SELECT - 80, 22 + - 23 DIV - 20 AS col1
----
-80
23

skipif mysql # not compatible
query II rowsort label-2751
SELECT - 80, 22 + - 23 / - 20 AS col1
----
-80
23

query I rowsort
SELECT DISTINCT - + 49 col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT - - MIN( DISTINCT 32 )
----
32

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - - MIN ( DISTINCT 32 )
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2754
SELECT + CAST( NULL AS DECIMAL ) AS col2, + 78
----
NULL
78

skipif mysql # not compatible
query II rowsort label-2754
SELECT + CAST ( NULL AS REAL ) AS col2, + 78
----
NULL
78

query II rowsort
SELECT ALL 29 - + 41 col0, 40
----
-12
40

query II rowsort
SELECT DISTINCT 76 * - 58, 65 AS col1
----
-4408
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2757
SELECT ALL SUM( DISTINCT - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL SUM ( DISTINCT - 55 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) * - - 80 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) * - - 80 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT DISTINCT COUNT( * ) * - 13 + - COUNT( + - 62 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT COUNT ( * ) * - 13 + - COUNT ( + - 62 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT COUNT( * ) * + - 69
----
-69

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT COUNT ( * ) * + - 69
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-2761
SELECT + COUNT( * ) AS col1, + 63
----
1
63

skipif mysql # not compatible
query II rowsort label-2761
SELECT + COUNT ( * ) AS col1, + 63
----
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT DISTINCT + 92 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT + 92 * + COUNT ( * )
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2763
SELECT ALL 56 AS col0, + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
56
-1

skipif mysql # not compatible
query II rowsort label-2763
SELECT ALL 56 AS col0, + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
56
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2764
SELECT ALL 95 + - 48 + + 72 DIV COUNT( * ) AS col0
----
119

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL 95 + - 48 + + 72 / COUNT ( * ) AS col0
----
119

query I rowsort
SELECT + ( 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT DISTINCT - 18 * COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT - 18 * COUNT ( * )
----
-18

query I rowsort
SELECT ALL - 85 * + 23
----
-1955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT DISTINCT - + CAST( - 3 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT - + CAST ( - 3 AS INTEGER )
----
3

query I rowsort
SELECT ALL - ( - + 43 ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT 11 + COUNT( * ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-2770
SELECT 11 + COUNT ( * ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT + ( COUNT( * ) ) + + - 56 col0
----
-55

skipif mysql # not compatible
query I rowsort label-2771
SELECT + ( COUNT ( * ) ) + + - 56 col0
----
-55

query I rowsort
SELECT ALL - 78 - - 71
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2773
SELECT ALL - CAST( - ( - + 17 ) AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - CAST ( - ( - + 17 ) AS INTEGER )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT DISTINCT 89 DIV + + 56
----
1

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT 89 / + + 56
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL + 12 + + MAX( + 85 ) + + 48 AS col1
----
145

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL + 12 + + MAX ( + 85 ) + + 48 AS col1
----
145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2776
SELECT DISTINCT - NULLIF ( 37, - 29 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT - NULLIF ( 37, - 29 ) * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 89 + + 35
----
124

query I rowsort
SELECT - - 22 col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT - 67 - MAX( ALL - 24 ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-2779
SELECT - 67 - MAX ( ALL - 24 ) col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT + 58 AS col0, + COUNT( * )
----
58
1

skipif mysql # not compatible
query II rowsort label-2780
SELECT + 58 AS col0, + COUNT ( * )
----
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT + 39 * - COUNT( * ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2781
SELECT + 39 * - COUNT ( * ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT - 69 * - + COUNT( * ) + - 25
----
44

skipif mysql # not compatible
query I rowsort label-2782
SELECT - 69 * - + COUNT ( * ) + - 25
----
44

query I rowsort
SELECT ALL 57 + 29
----
86

query II rowsort
SELECT 62 AS col1, ( + 75 )
----
62
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL + MAX( ALL - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL + MAX ( ALL - 2 )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2786
SELECT + AVG ( + + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2786
SELECT + AVG ( + + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + 96 col2
----
96

query I rowsort
SELECT 52 * + - 80
----
-4160

onlyif mysql # DIV for integer division: 
query I rowsort label-2789
SELECT ALL + 90 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL + 90 / 98
----
0

query I rowsort
SELECT - + 44 AS col0
----
-44

query II rowsort
SELECT + 97 AS col0, + ( 96 )
----
97
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2792
SELECT - - COUNT( * ) AS col1, + COUNT( * ) * 98
----
1
98

skipif mysql # not compatible
query II rowsort label-2792
SELECT - - COUNT ( * ) AS col1, + COUNT ( * ) * 98
----
1
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2793
SELECT ALL + 43 + + + 37 + COUNT( + + 26 ) DIV + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + 43 + + + 37 + COUNT ( + + 26 ) / + COUNT ( * )
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2794
SELECT CAST( NULL AS DECIMAL ) + + ( + - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT CAST ( NULL AS REAL ) + + ( + - 66 )
----
NULL

query I rowsort
SELECT ALL 41 + - - 0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL - + 30 * + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - + 30 * + COUNT ( * )
----
-30

query I rowsort
SELECT DISTINCT 83 * - 78
----
-6474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2798
SELECT - + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT - + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2799
SELECT - 76 DIV - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-2799
SELECT - 76 / - COUNT ( * )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2800
SELECT - + 53 DIV + 47
----
-1

skipif mysql # not compatible
query I rowsort label-2800
SELECT - + 53 / + 47
----
-1

query I rowsort
SELECT ALL ( 20 )
----
20

query I rowsort
SELECT + 29 * - 88
----
-2552

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT + 58 DIV - 96 * 16 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT + 58 / - 96 * 16 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2804
SELECT + SUM( - CAST( NULL AS SIGNED ) ) + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) + - 99 AS col2
----
NULL

query I rowsort
SELECT ALL - 71 * - 9 + + 91 AS col1
----
730

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT - 70 + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-2806
SELECT - 70 + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT ALL - ( ( + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL - ( ( + COUNT ( * ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT - CASE WHEN NOT ( - - 79 ) IS NOT NULL THEN 75 END * + - 23 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT - CASE WHEN NOT ( - - 79 ) IS NOT NULL THEN 75 END * + - 23 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - - ( + + 68 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2810
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT - - 61 AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT 59 + + ( + - COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-2812
SELECT 59 + + ( + - COUNT ( * ) )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL COUNT( * ) - + ( ( 81 ) ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL COUNT ( * ) - + ( ( 81 ) ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT COUNT( DISTINCT 41 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2814
SELECT COUNT ( DISTINCT 41 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2815
SELECT 40 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT 40 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT - MAX( ALL 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-2816
SELECT - MAX ( ALL 73 )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT ALL MAX( ALL + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL MAX ( ALL + 29 )
----
29

query I rowsort
SELECT + - 60 + 41 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL COUNT( * ) * - 8 + - - 12 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL COUNT ( * ) * - 8 + - - 12 AS col0
----
4

query I rowsort
SELECT ALL - - 37 * - 73
----
-2701

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT - COUNT( * ) * ( - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - COUNT ( * ) * ( - 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT + ( - COUNT( * ) ) + + 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2822
SELECT + ( - COUNT ( * ) ) + + 0 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2823
SELECT ALL + MIN( 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL + MIN ( 0 ) col0
----
0

query I rowsort
SELECT DISTINCT + + 67 * - - 39
----
2613

query I rowsort
SELECT 64 * - 5 * + - 41 AS col1
----
13120

query I rowsort
SELECT 21 + 97 AS col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2827
SELECT 82 AS col1, - ( - MAX( ALL CAST( NULL AS SIGNED ) ) ) col2
----
82
NULL

skipif mysql # not compatible
query II rowsort label-2827
SELECT 82 AS col1, - ( - MAX ( ALL CAST ( NULL AS INTEGER ) ) ) col2
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + MIN( 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-2828
SELECT + MIN ( 72 ) AS col2
----
72

query II rowsort
SELECT - 75, 41 AS col0
----
-75
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2830
SELECT COUNT( + 59 ) DIV + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2830
SELECT COUNT ( + 59 ) / + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + COUNT( DISTINCT 29 )
----
1

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + COUNT ( DISTINCT 29 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2832
SELECT DISTINCT - 46 * 83 DIV 82
----
-46

skipif mysql # not compatible
query I rowsort label-2832
SELECT DISTINCT - 46 * 83 / 82
----
-46

query I rowsort
SELECT ( - 61 )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2834
SELECT ALL + MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2835
SELECT + - ( - + CAST( NULL AS SIGNED ) ) / - 51 AS col2, 53 AS col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-2835
SELECT + - ( - + CAST ( NULL AS INTEGER ) ) / - 51 AS col2, 53 AS col0
----
NULL
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT DISTINCT COUNT( * ) DIV - 10
----
0

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT COUNT ( * ) / - 10
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT MIN( 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2837
SELECT MIN ( 94 ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2838
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 37 * - COUNT( ALL 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 37 * - COUNT ( ALL 46 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2839
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2840
SELECT 0 * COUNT( * ), + 89 AS col0
----
0
89

skipif mysql # not compatible
query II rowsort label-2840
SELECT 0 * COUNT ( * ), + 89 AS col0
----
0
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT ( + CAST( NULL AS SIGNED ) ) + - + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT ( + CAST ( NULL AS INTEGER ) ) + - + 85 AS col1
----
NULL

query I rowsort
SELECT - ( - + 95 )
----
95

query I rowsort
SELECT 55 * 52
----
2860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2844
SELECT + COUNT( + + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT + COUNT ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT 49 * 40 + - 30 * 29
----
1090

onlyif mysql # aggregate syntax: 
query I rowsort label-2846
SELECT - 2 * COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2846
SELECT - 2 * COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT ALL 41 + - 44
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT + CAST( 40 AS SIGNED ) + + 19 col1
----
59

skipif mysql # not compatible
query I rowsort label-2848
SELECT + CAST ( 40 AS INTEGER ) + + 19 col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT + 81 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-2849
SELECT + 81 * - COUNT ( * )
----
-81

query I rowsort
SELECT DISTINCT + + ( 6 ) AS col2
----
6

query I rowsort
SELECT + 81 * + 71 AS col2
----
5751

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2852
SELECT ALL + COALESCE ( + ( + ( 56 ) ), 21 DIV - COUNT( * ) + 54 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL + COALESCE ( + ( + ( 56 ) ), 21 / - COUNT ( * ) + 54 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + 81 + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-2853
SELECT + 81 + COUNT ( * )
----
82

query I rowsort
SELECT ALL - - 85
----
85

query I rowsort
SELECT ALL - - 99 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL + COUNT( * ) + + 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + COUNT ( * ) + + 19 AS col1
----
20

query I rowsort
SELECT DISTINCT - 79 + - + 46
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL + 62 - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL + 62 - COUNT ( * )
----
61

query II rowsort
SELECT DISTINCT 55 AS col1, 59
----
55
59

query I rowsort
SELECT 44 - + 21
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT - MAX( DISTINCT 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - MAX ( DISTINCT 4 )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL COUNT( * ) * + 27 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL COUNT ( * ) * + 27 AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT - NULLIF ( + COUNT( * ), - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2864
SELECT - NULLIF ( + COUNT ( * ), - COUNT ( * ) ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2865
SELECT + 3 DIV - 2 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2865
SELECT + 3 / - 2 col2
----
-1

query I rowsort
SELECT ALL + - 3 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL CAST( NULL AS SIGNED ) / - ( + 1 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL CAST ( NULL AS INTEGER ) / - ( + 1 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT COUNT( 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2868
SELECT COUNT ( 60 ) AS col0
----
1

query I rowsort
SELECT ALL 5 col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL + 69 + + COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL + 69 + + COUNT ( * ) AS col2
----
70

query I rowsort
SELECT DISTINCT + - 36 col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2872
SELECT - CAST( - 64 AS SIGNED ) + - - 56
----
120

skipif mysql # not compatible
query I rowsort label-2872
SELECT - CAST ( - 64 AS INTEGER ) + - - 56
----
120

query I rowsort
SELECT 34 - + 7 AS col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2874
SELECT ALL + 30 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL + 30 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + 15 + - COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + 15 + - COUNT ( * ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2876
SELECT COUNT( * ), - 39 AS col2
----
1
-39

skipif mysql # not compatible
query II rowsort label-2876
SELECT COUNT ( * ), - 39 AS col2
----
1
-39

query I rowsort
SELECT + ( - 12 ) * 97 col0
----
-1164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT ALL + AVG ( DISTINCT + ( CAST( NULL AS SIGNED ) ) ) + - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL + AVG ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) ) + - 18 AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2879
SELECT ALL - - CAST( NULL AS DECIMAL ) / - 25 AS col0, 85
----
NULL
85

skipif mysql # not compatible
query II rowsort label-2879
SELECT ALL - - CAST ( NULL AS REAL ) / - 25 AS col0, 85
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT 21 + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-2880
SELECT 21 + - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2881
SELECT - COUNT( * ) DIV COALESCE ( 43, COUNT( * ) ) + ( + 8 ) col2
----
8

skipif mysql # not compatible
query I rowsort label-2881
SELECT - COUNT ( * ) / COALESCE ( 43, COUNT ( * ) ) + ( + 8 ) col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT DISTINCT 0 * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT 0 * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT COUNT( * ) * - ( - - 34 ) + - 44 AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-2883
SELECT COUNT ( * ) * - ( - - 34 ) + - 44 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT - COUNT( * ) + + 11
----
10

skipif mysql # not compatible
query I rowsort label-2884
SELECT - COUNT ( * ) + + 11
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL - + COUNT( * ) * + + 40 * + - 43
----
1720

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL - + COUNT ( * ) * + + 40 * + - 43
----
1720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT DISTINCT + CAST( - ( 38 ) AS SIGNED ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + CAST ( - ( 38 ) AS INTEGER ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT - + NULLIF ( - + 56, COUNT( * ) ) + + 63 AS col2
----
119

skipif mysql # not compatible
query I rowsort label-2887
SELECT - + NULLIF ( - + 56, COUNT ( * ) ) + + 63 AS col2
----
119

query I rowsort
SELECT - + 92 + - 77 AS col1
----
-169

query I rowsort
SELECT ( - 20 )
----
-20

query I rowsort
SELECT + ( - + 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT NULLIF ( + + 67, - + COUNT( * ) + + + 1 )
----
67

skipif mysql # not compatible
query I rowsort label-2891
SELECT NULLIF ( + + 67, - + COUNT ( * ) + + + 1 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT DISTINCT - COUNT( - - 38 )
----
-1

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT - COUNT ( - - 38 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT ALL - SUM( - 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL - SUM ( - 8 ) AS col2
----
8

query I rowsort
SELECT ALL 80 * 88
----
7040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2895
SELECT DISTINCT + 55 AS col2, + COALESCE ( MIN( + 14 ), - 65 - + CAST( NULL AS SIGNED ) ) AS col2
----
55
14

skipif mysql # not compatible
query II rowsort label-2895
SELECT DISTINCT + 55 AS col2, + COALESCE ( MIN ( + 14 ), - 65 - + CAST ( NULL AS INTEGER ) ) AS col2
----
55
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2896
SELECT - 79 * MAX( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT - 79 * MAX ( - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 92 * - 13
----
1196

onlyif mysql # aggregate syntax: 
query II rowsort label-2898
SELECT COUNT( 33 ) col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-2898
SELECT COUNT ( 33 ) col2, COUNT ( * )
----
1
1

query I rowsort
SELECT ALL - 18 * + 92
----
-1656

query I rowsort
SELECT 85 * 58 + + 75 * 58 + - 35 AS col1
----
9245

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT + ( - 26 ) * + + ( - COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-2901
SELECT + ( - 26 ) * + + ( - COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL MIN( + - 63 ) * + 31 AS col1
----
-1953

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL MIN ( + - 63 ) * + 31 AS col1
----
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT + MAX( + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-2903
SELECT + MAX ( + 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT - ( + 49 ) + + MAX( ALL - 52 )
----
-101

skipif mysql # not compatible
query I rowsort label-2904
SELECT - ( + 49 ) + + MAX ( ALL - 52 )
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL - - 42 * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - - 42 * COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + + 64 * - 70 + + + SUM( ALL + + 71 )
----
-4409

skipif mysql # not compatible
query I rowsort label-2906
SELECT + + 64 * - 70 + + + SUM ( ALL + + 71 )
----
-4409

query I rowsort
SELECT ALL ( + NULLIF ( + 29, - 63 ) ) col1
----
29

query I rowsort
SELECT - ( + 29 ) col1
----
-29

query I rowsort
SELECT DISTINCT ( 62 )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT ALL CAST( 36 AS SIGNED ) col1
----
36

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL CAST ( 36 AS INTEGER ) col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2911
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 66 * + - ( + + 45 ) col2
----
-2970

query I rowsort
SELECT ( 80 ) * - 86
----
-6880

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT 46 + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-2914
SELECT 46 + COUNT ( * )
----
47

query I rowsort
SELECT ALL + 64 + - + 7
----
57

query I rowsort
SELECT ALL - + 97 AS col2
----
-97

query I rowsort
SELECT 67 * 3 + - ( - 75 ) AS col0
----
276

query I rowsort
SELECT DISTINCT + ( + 31 ) AS col2
----
31

query II rowsort
SELECT 67, - 75 AS col2
----
67
-75

query I rowsort
SELECT ALL 27 + 0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL MAX( ALL 28 ) * + + 58
----
1624

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL MAX ( ALL 28 ) * + + 58
----
1624

query I rowsort
SELECT - + 71 col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT DISTINCT + COALESCE ( SUM( - 62 ), - + COUNT( * ), - - 87 )
----
-62

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + COALESCE ( SUM ( - 62 ), - + COUNT ( * ), - - 87 )
----
-62

query I rowsort
SELECT DISTINCT - ( + + 25 ) col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT DISTINCT - 61 * + COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - 61 * + COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL COUNT( * ) * - - ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL COUNT ( * ) * - - ( - + COUNT ( * ) )
----
-1

query I rowsort
SELECT COALESCE ( - NULLIF ( + 89, + 38 ), - - 48 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT ALL COUNT( * ) * + 70 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL COUNT ( * ) * + 70 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT ALL + SUM( - - ( 10 ) ) AS col1
----
10

skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL + SUM ( - - ( 10 ) ) AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL + COUNT( ALL - 11 ) * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL + COUNT ( ALL - 11 ) * + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT + - 30 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT + - 30 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2932
SELECT ALL COUNT( * ) DIV - 21 - 37 * - 47
----
1739

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL COUNT ( * ) / - 21 - 37 * - 47
----
1739

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT + 10 DIV + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT + 10 / + 89 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2934
SELECT ALL 32 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL 32 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2935
SELECT COUNT( * ) DIV + - 57
----
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT COUNT ( * ) / + - 57
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2936
SELECT DISTINCT 70 - + + COUNT( + 95 ) + + 58 DIV - + 63
----
69

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT 70 - + + COUNT ( + 95 ) + + 58 / - + 63
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT 11 * + - COUNT( * ) + 58 + - 34 * + COUNT( * ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-2937
SELECT 11 * + - COUNT ( * ) + 58 + - 34 * + COUNT ( * ) AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT DISTINCT + COUNT( + + 58 ) + - + COUNT( * ) - 56 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT + COUNT ( + + 58 ) + - + COUNT ( * ) - 56 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-2939
SELECT DISTINCT - COUNT( * ) AS col2, 3
----
-1
3

skipif mysql # not compatible
query II rowsort label-2939
SELECT DISTINCT - COUNT ( * ) AS col2, 3
----
-1
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2940
SELECT CAST( NULL AS DECIMAL ) + - 95, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2940
SELECT CAST ( NULL AS REAL ) + - 95, COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL ( ( - + COUNT( * ) ) ) + + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL ( ( - + COUNT ( * ) ) ) + + COUNT ( * ) AS col0
----
0

query I rowsort
SELECT ALL - 20 * - 79 * 30
----
47400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2943
SELECT + 56 - - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-2943
SELECT + 56 - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
57

query I rowsort
SELECT ALL - ( + 17 ) AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT + 28 * - COALESCE ( + - COUNT( * ), COUNT( * ) )
----
28

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT + 28 * - COALESCE ( + - COUNT ( * ), COUNT ( * ) )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT DISTINCT 23 * - CAST( ( - 34 ) AS SIGNED ) col1
----
782

skipif mysql # not compatible
query I rowsort label-2946
SELECT DISTINCT 23 * - CAST ( ( - 34 ) AS INTEGER ) col1
----
782

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT - COUNT( DISTINCT - 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-2947
SELECT - COUNT ( DISTINCT - 35 )
----
-1

query I rowsort
SELECT DISTINCT 69 + + - 15 col1
----
54

query I rowsort
SELECT ( + + 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT - ( COUNT( * ) ) * 42
----
-42

skipif mysql # not compatible
query I rowsort label-2950
SELECT - ( COUNT ( * ) ) * 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT - NULLIF ( - MAX( - 59 ), - 97 )
----
-59

skipif mysql # not compatible
query I rowsort label-2951
SELECT - NULLIF ( - MAX ( - 59 ), - 97 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT - NULLIF ( COUNT( DISTINCT 24 ), - - ( + 84 ) * AVG ( DISTINCT 88 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2952
SELECT - NULLIF ( COUNT ( DISTINCT 24 ), - - ( + 84 ) * AVG ( DISTINCT 88 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT DISTINCT + COUNT( DISTINCT 59 )
----
1

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT + COUNT ( DISTINCT 59 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT ALL COUNT( * ) * - 62
----
-62

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL COUNT ( * ) * - 62
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT DISTINCT - COUNT( * ) - 19 col0
----
-20

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT - COUNT ( * ) - 19 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT DISTINCT MAX( DISTINCT - - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-2956
SELECT DISTINCT MAX ( DISTINCT - - 22 )
----
22

query I rowsort
SELECT ALL - + ( + - 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL 73 + + ( COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL 73 + + ( COUNT ( * ) )
----
74

query II rowsort
SELECT ALL - 71 AS col0, 34
----
-71
34

query II rowsort
SELECT ALL 78 col2, 42 AS col1
----
78
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2961
SELECT ALL 45 DIV - 12 * - COUNT( * ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL 45 / - 12 * - COUNT ( * ) AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2962
SELECT ALL COUNT( * ), + CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2962
SELECT ALL COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2963
SELECT DISTINCT + - MAX( 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT + - MAX ( 76 )
----
-76

query II rowsort
SELECT ALL - - 92 * 9 + - 86 * 99, 69 AS col0
----
-7686
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT COUNT( ALL + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-2965
SELECT COUNT ( ALL + 22 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2966
SELECT - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + ( + - 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT + MIN( DISTINCT - 82 ) col0
----
-82

skipif mysql # not compatible
query I rowsort label-2968
SELECT + MIN ( DISTINCT - 82 ) col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT - SUM( - ( + 6 ) ) * + 6
----
36

skipif mysql # not compatible
query I rowsort label-2969
SELECT - SUM ( - ( + 6 ) ) * + 6
----
36

query II rowsort
SELECT ALL + 86, 26 AS col2
----
86
26

query I rowsort
SELECT 59 + 71 AS col1
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-2972
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) * COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL + 77 * + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL + 77 * + COUNT ( * )
----
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2974
SELECT ALL + CAST( NULL AS DECIMAL ) + - 82 + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL + CAST ( NULL AS REAL ) + - 82 + + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT DISTINCT + + COUNT( * ) * + - 64 col1
----
-64

skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT + + COUNT ( * ) * + - 64 col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2976
SELECT + COUNT( * ) DIV + 34 - + 74 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-2976
SELECT + COUNT ( * ) / + 34 - + 74 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT MIN( DISTINCT - 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-2977
SELECT MIN ( DISTINCT - 65 )
----
-65

query I rowsort
SELECT ALL 18 * - + 82 + + - 61
----
-1537

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT MIN( DISTINCT 85 ) col0
----
85

skipif mysql # not compatible
query I rowsort label-2979
SELECT MIN ( DISTINCT 85 ) col0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2980
SELECT DISTINCT + 6 + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT + 6 + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2981
SELECT ALL - COUNT( * ) * - 3 * - - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-2981
SELECT ALL - COUNT ( * ) * - 3 * - - COUNT ( * )
----
3

query I rowsort
SELECT - - COALESCE ( + + ( + - ( + 41 ) ), 36 )
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT DISTINCT - CAST( - 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT - CAST ( - 20 AS INTEGER )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2984
SELECT ALL 46 AS col1, + COUNT( * )
----
46
1

skipif mysql # not compatible
query II rowsort label-2984
SELECT ALL 46 AS col1, + COUNT ( * )
----
46
1

query II rowsort
SELECT - + 16, 82 AS col2
----
-16
82

query I rowsort
SELECT + ( 5 )
----
5

query I rowsort
SELECT ALL 90 * + 88
----
7920

query I rowsort
SELECT ALL - - ( + + 87 ) * - 32
----
-2784

query I rowsort
SELECT ALL - 73 * - 16
----
1168

onlyif mysql # aggregate syntax: 
query II rowsort label-2990
SELECT - 2 col0, COUNT( * )
----
-2
1

skipif mysql # not compatible
query II rowsort label-2990
SELECT - 2 col0, COUNT ( * )
----
-2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + 88 + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-2991
SELECT + 88 + + COUNT ( * )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT ALL + 9 + - CAST( NULL AS SIGNED ) * 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL + 9 + - CAST ( NULL AS INTEGER ) * 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT DISTINCT + ( + ( + - ( 95 ) ) ) * + + COUNT( * ) + - + 41 AS col0
----
-136

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT + ( + ( + - ( 95 ) ) ) * + + COUNT ( * ) + - + 41 AS col0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT - 55 + - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-2994
SELECT - 55 + - COUNT ( * ) AS col2
----
-56

query I rowsort
SELECT DISTINCT + + 60 AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2996
SELECT ALL CAST( + + 30 AS SIGNED )
----
30

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL CAST ( + + 30 AS INTEGER )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT - SUM( ALL + + 61 ) col1
----
-61

skipif mysql # not compatible
query I rowsort label-2997
SELECT - SUM ( ALL + + 61 ) col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT + 14 * + + COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2998
SELECT + 14 * + + COUNT ( * ) AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2999
SELECT + CAST( NULL AS SIGNED ) + + + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2999
SELECT + CAST ( NULL AS INTEGER ) + + + 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT - CAST( - 17 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-3000
SELECT - CAST ( - 17 AS INTEGER )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL - COUNT( * ) - 64 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL - COUNT ( * ) - 64 AS col0
----
-65

query I rowsort
SELECT 29 + + 9 AS col0
----
38

query I rowsort
SELECT 19 + - 40 AS col0
----
-21

query I rowsort
SELECT ALL + + 28 + 75 AS col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-3005
SELECT 54 AS col1, - COUNT( * )
----
54
-1

skipif mysql # not compatible
query II rowsort label-3005
SELECT 54 AS col1, - COUNT ( * )
----
54
-1

query I rowsort
SELECT DISTINCT - 79 * - 5
----
395

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT ALL - COUNT( * ) + - ( + - 2 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - COUNT ( * ) + - ( + - 2 ) AS col2
----
1

query I rowsort
SELECT - 77 * - + 94
----
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT + NULLIF ( - ( + 75 ), COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-3009
SELECT + NULLIF ( - ( + 75 ), COUNT ( * ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT + SUM( - ( + + 67 ) ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-3010
SELECT + SUM ( - ( + + 67 ) ) AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT COUNT( - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT COUNT ( - 18 )
----
1

query I rowsort
SELECT DISTINCT ( - - 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT - SUM( DISTINCT + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-3013
SELECT - SUM ( DISTINCT + 27 )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3014
SELECT DISTINCT + MIN( DISTINCT + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT + MIN ( DISTINCT + 33 ) AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT ALL + + 1 DIV + + 84 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + + 1 / + + 84 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT - COUNT( * ) + - + CAST( + - 66 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-3016
SELECT - COUNT ( * ) + - + CAST ( + - 66 AS INTEGER )
----
65

query I rowsort
SELECT ( 60 ) col0
----
60

query I rowsort
SELECT NULLIF ( 50, - + 51 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3019
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - MAX( ALL + 4 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT CAST ( NULL AS REAL ) - - MAX ( ALL + 4 ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( - 5 ) AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - MIN( - - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-3021
SELECT - MIN ( - - 44 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - COUNT( * ) + + 15 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3022
SELECT - COUNT ( * ) + + 15 AS col0
----
14

query I rowsort
SELECT DISTINCT + ( + - 72 ) * + 69 AS col0
----
-4968

query I rowsort
SELECT - 1 + + 88 AS col1
----
87

query I rowsort
SELECT ALL + 47 * 6
----
282

query I rowsort
SELECT ( + + 7 ) AS col1
----
7

query I rowsort
SELECT DISTINCT + 99 col2
----
99

query I rowsort
SELECT - - 23 + + + 95 AS col1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT - MAX( + 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-3029
SELECT - MAX ( + 28 ) AS col0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT ALL + 43 - + 46 / - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL + 43 - + 46 / - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3031
SELECT ( - - 92 ) DIV + - COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-3031
SELECT ( - - 92 ) / + - COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT ALL - - COUNT( * ) - + 89 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3032
SELECT ALL - - COUNT ( * ) - + 89 AS col0
----
-88

query I rowsort
SELECT DISTINCT 24 col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3034
SELECT CAST( NULL AS SIGNED ) * + CAST( + COUNT( * ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3034
SELECT CAST ( NULL AS INTEGER ) * + CAST ( + COUNT ( * ) AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT - 50 * - CAST( + 47 AS SIGNED ) AS col1
----
2350

skipif mysql # not compatible
query I rowsort label-3035
SELECT - 50 * - CAST ( + 47 AS INTEGER ) AS col1
----
2350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3036
SELECT DISTINCT - COUNT( * ) DIV - 19
----
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT - COUNT ( * ) / - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT ALL 70 * COUNT( - 62 ) col1
----
70

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL 70 * COUNT ( - 62 ) col1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3038
SELECT ALL CAST( - + 69 AS SIGNED )
----
-69

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL CAST ( - + 69 AS INTEGER )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3039
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + 81 * + 86
----
6966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3041
SELECT DISTINCT + + COUNT( ALL - CAST( - 4 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT + + COUNT ( ALL - CAST ( - 4 AS INTEGER ) ) AS col2
----
1

query I rowsort
SELECT ALL + + 96 col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3043
SELECT DISTINCT - ( - - 97 ) + - + COUNT( * ) * - COUNT( * ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT - ( - - 97 ) + - + COUNT ( * ) * - COUNT ( * ) AS col0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT DISTINCT + 9 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT + 9 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT + 42 * + 17 * COUNT( * ) + - - 60 AS col2
----
774

skipif mysql # not compatible
query I rowsort label-3045
SELECT + 42 * + 17 * COUNT ( * ) + - - 60 AS col2
----
774

query I rowsort
SELECT DISTINCT - ( - 8 )
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-3047
SELECT 97, COUNT( * ) AS col2
----
97
1

skipif mysql # not compatible
query II rowsort label-3047
SELECT 97, COUNT ( * ) AS col2
----
97
1

query I rowsort
SELECT 92 - - - 5
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3049
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL - 10 * - COUNT( * ) + + 20 + + - COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - 10 * - COUNT ( * ) + + 20 + + - COUNT ( * ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT + 14 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT + 14 / 99
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3052
SELECT ( COUNT( * ) ) AS col0, 94
----
1
94

skipif mysql # not compatible
query II rowsort label-3052
SELECT ( COUNT ( * ) ) AS col0, 94
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT - MAX( ALL - 35 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-3053
SELECT - MAX ( ALL - 35 ) AS col1
----
35

query I rowsort
SELECT - ( + 58 )
----
-58

query I rowsort
SELECT ALL + - 7 AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - 92 * - - COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-3056
SELECT - 92 * - - COUNT ( * ) AS col2
----
-92

query I rowsort
SELECT ( + 78 ) AS col0
----
78

query I rowsort
SELECT - 2 * - 63 * + 12
----
1512

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3059
SELECT + CAST( - + 64 AS SIGNED ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3059
SELECT + CAST ( - + 64 AS INTEGER ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL 84 * - - COUNT( * ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL 84 * - - COUNT ( * ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3061
SELECT ALL 48 * + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL 48 * + COUNT ( * )
----
48

query I rowsort
SELECT 35 + - 37
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT ALL COUNT( * ) - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL COUNT ( * ) - - COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3064
SELECT + 69 * CAST( NULL AS SIGNED ) + 42 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT + 69 * CAST ( NULL AS INTEGER ) + 42 col0
----
NULL

query I rowsort
SELECT 1 + - 78
----
-77

query I rowsort
SELECT ALL + 45 + + 41
----
86

query I rowsort
SELECT 89 * + 75 AS col2
----
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT - MAX( DISTINCT 88 ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3068
SELECT - MAX ( DISTINCT 88 ) AS col1
----
-88

query I rowsort
SELECT DISTINCT - 38 * - 28
----
1064

query I rowsort
SELECT + ( 23 )
----
23

query I rowsort
SELECT ALL 73 * + 19
----
1387

query I rowsort
SELECT 81 + - + 82 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3073
SELECT - 19 DIV - 6 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3073
SELECT - 19 / - 6 AS col1
----
3

query I rowsort
SELECT DISTINCT 58 * + 34 col0
----
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT SUM( + - ( - 63 ) ) * MIN( ALL 9 ) AS col0
----
567

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT SUM ( + - ( - 63 ) ) * MIN ( ALL 9 ) AS col0
----
567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3076
SELECT ALL 21 * - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL 21 * - - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT ALL + 56 AS col1, - 28 AS col0
----
56
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3078
SELECT ALL 54 * + 30 + + + COUNT( * ) AS col1
----
1621

skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL 54 * + 30 + + + COUNT ( * ) AS col1
----
1621

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT + ( COUNT( * ) ) * - 81 * - 96
----
7776

skipif mysql # not compatible
query I rowsort label-3079
SELECT + ( COUNT ( * ) ) * - 81 * - 96
----
7776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3080
SELECT ALL + - COUNT( * ) * - - CAST( 38 AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL + - COUNT ( * ) * - - CAST ( 38 AS INTEGER ) AS col0
----
-38

query I rowsort
SELECT DISTINCT + 86 * - 20 AS col1
----
-1720

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT - COUNT( ALL + NULLIF ( - 24, + 54 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3082
SELECT - COUNT ( ALL + NULLIF ( - 24, + 54 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT ALL - COUNT( * ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT DISTINCT - COUNT( * ) * - + 90
----
90

skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT - COUNT ( * ) * - + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL 84 + ( + COUNT( 70 ) ) + - 53 col0
----
32

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL 84 + ( + COUNT ( 70 ) ) + - 53 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT DISTINCT - 55 * + - COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT - 55 * + - COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT 30 + + COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-3087
SELECT 30 + + COUNT ( * ) AS col0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT CAST( NULL AS SIGNED ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3088
SELECT CAST ( NULL AS INTEGER ) + - 99
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3089
SELECT + ( + - CAST( 73 AS SIGNED ) ) AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3089
SELECT + ( + - CAST ( 73 AS INTEGER ) ) AS col0
----
-73

query I rowsort
SELECT 76 * - + 0
----
0

query I rowsort
SELECT ALL 92 * 17
----
1564

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT - COUNT( DISTINCT + - 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-3092
SELECT - COUNT ( DISTINCT + - 8 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3093
SELECT - NULLIF ( 8, - - ( + + CAST( NULL AS SIGNED ) ) ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3093
SELECT - NULLIF ( 8, - - ( + + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-8

query I rowsort
SELECT DISTINCT ( 47 ) AS col2
----
47

query I rowsort
SELECT ALL + 87 * 4
----
348

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT 36 * COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3096
SELECT 36 * COUNT ( * ) AS col0
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3097
SELECT + CAST( + SUM( 74 ) AS SIGNED ) * - 58
----
-4292

skipif mysql # not compatible
query I rowsort label-3097
SELECT + CAST ( + SUM ( 74 ) AS INTEGER ) * - 58
----
-4292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3098
SELECT ALL COUNT( * ) DIV + MAX( ALL - + 52 )
----
0

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL COUNT ( * ) / + MAX ( ALL - + 52 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT SUM( + 60 ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3099
SELECT SUM ( + 60 ) AS col0
----
60

query I rowsort
SELECT - 65 * 62 * 58 AS col0
----
-233740

query I rowsort
SELECT - NULLIF ( - 44, 50 ) + - 93
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT - - COUNT( * ) DIV 32 + + - 85
----
-85

skipif mysql # not compatible
query I rowsort label-3102
SELECT - - COUNT ( * ) / 32 + + - 85
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT DISTINCT + CAST( 7 AS SIGNED ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT + CAST ( 7 AS INTEGER ) AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3104
SELECT - CAST( NULL AS SIGNED ) col2, 38 * COUNT( * )
----
NULL
38

skipif mysql # not compatible
query II rowsort label-3104
SELECT - CAST ( NULL AS INTEGER ) col2, 38 * COUNT ( * )
----
NULL
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + ( + 10 ) + 79 * COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-3105
SELECT + ( + 10 ) + 79 * COUNT ( * )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3106
SELECT ALL 83 AS col0, CAST( + - 83 AS SIGNED ) AS col2
----
83
-83

skipif mysql # not compatible
query II rowsort label-3106
SELECT ALL 83 AS col0, CAST ( + - 83 AS INTEGER ) AS col2
----
83
-83

query I rowsort
SELECT 94 + - 87
----
7

query II rowsort
SELECT + 98, + 52 AS col2
----
98
52

query I rowsort
SELECT + 55 + - 92
----
-37

query I rowsort
SELECT + 48 * 9
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT - 54 * SUM( DISTINCT + 29 ) AS col2
----
-1566

skipif mysql # not compatible
query I rowsort label-3111
SELECT - 54 * SUM ( DISTINCT + 29 ) AS col2
----
-1566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3112
SELECT ALL + CAST( + 74 AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + CAST ( + 74 AS INTEGER )
----
74

query I rowsort
SELECT ALL ( + 87 ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL ( + + CAST( 97 AS SIGNED ) ) col0
----
97

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL ( + + CAST ( 97 AS INTEGER ) ) col0
----
97

query I rowsort
SELECT - 15 + + - 79 AS col0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT MAX( DISTINCT - - 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3116
SELECT MAX ( DISTINCT - - 12 ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT COUNT( * ) * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-3117
SELECT COUNT ( * ) * - 3
----
-3

query I rowsort
SELECT ALL - 3 * - ( + 27 ) AS col2
----
81

query I rowsort
SELECT ALL + 41 + 72 col2
----
113

query I rowsort
SELECT - COALESCE ( + 10, + 67 ) col1
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT ALL - - 87 DIV + - 83 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - - 87 / + - 83 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3122
SELECT COUNT( * ) AS col1, 41 AS col1
----
1
41

skipif mysql # not compatible
query II rowsort label-3122
SELECT COUNT ( * ) AS col1, 41 AS col1
----
1
41

query I rowsort
SELECT - ( 47 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT - MAX( - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3124
SELECT - MAX ( - 61 )
----
61

query II rowsort
SELECT + 70 AS col1, - ( + - 21 ) col0
----
70
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT - 97 DIV 20 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-3126
SELECT - 97 / 20 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT + COUNT( ALL + 29 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3127
SELECT + COUNT ( ALL + 29 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT + COUNT( * ) * + + 32 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-3128
SELECT + COUNT ( * ) * + + 32 AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3129
SELECT ALL - 13 + - + 25 * + + COUNT( * ) * - + CAST( + + 91 AS SIGNED )
----
2262

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL - 13 + - + 25 * + + COUNT ( * ) * - + CAST ( + + 91 AS INTEGER )
----
2262

onlyif mysql # aggregate syntax: 
query II rowsort label-3130
SELECT DISTINCT SUM( + COALESCE ( - 10, + - 97 ) ) + - + 50, 91 col1
----
-60
91

skipif mysql # not compatible
query II rowsort label-3130
SELECT DISTINCT SUM ( + COALESCE ( - 10, + - 97 ) ) + - + 50, 91 col1
----
-60
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3131
SELECT ALL + + 95 DIV COUNT( * ) + - 33
----
62

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL + + 95 / COUNT ( * ) + - 33
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3132
SELECT DISTINCT 5 DIV COUNT( * ) - - + 61
----
66

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT 5 / COUNT ( * ) - - + 61
----
66

query I rowsort
SELECT 48 * - 77 AS col1
----
-3696

query II rowsort
SELECT 12 AS col0, - 99
----
12
-99

query I rowsort
SELECT 18 + + 99
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT 83 - - + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT 83 - - + COUNT ( * )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT + COUNT( * ) - - + 69 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT + COUNT ( * ) - - + 69 AS col0
----
70

query I rowsort
SELECT DISTINCT - 43 * + 38 AS col1
----
-1634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3139
SELECT ALL COUNT( * ) DIV - 29 * + - 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL COUNT ( * ) / - 29 * + - 71 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT + COUNT( * ) * + 59
----
59

skipif mysql # not compatible
query I rowsort label-3140
SELECT + COUNT ( * ) * + 59
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT COUNT( DISTINCT 16 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3141
SELECT COUNT ( DISTINCT 16 ) col1
----
1

query I rowsort
SELECT ALL - 29 + - 66 + + 14
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3143
SELECT ALL + 15, - COUNT( * ) col2
----
15
-1

skipif mysql # not compatible
query II rowsort label-3143
SELECT ALL + 15, - COUNT ( * ) col2
----
15
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3144
SELECT + CAST( NULL AS SIGNED ) * + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-3144
SELECT + CAST ( NULL AS INTEGER ) * + - 60
----
NULL

query I rowsort
SELECT ALL - 91 * - 55 AS col2
----
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT + 36 - + MIN( DISTINCT - + 81 ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-3146
SELECT + 36 - + MIN ( DISTINCT - + 81 ) AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3147
SELECT DISTINCT + COUNT( * ) * - MAX( DISTINCT + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT + COUNT ( * ) * - MAX ( DISTINCT + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT 99 * + - COUNT( * ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-3148
SELECT 99 * + - COUNT ( * ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT 89 * + COUNT( * ) * - COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-3149
SELECT 89 * + COUNT ( * ) * - COUNT ( * ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL 42 * COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL 42 * COUNT ( * ) AS col1
----
42

query I rowsort
SELECT 63 + - 1 * - - 77
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT DISTINCT - - SUM( ALL + 17 ) * 56 AS col1
----
952

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT - - SUM ( ALL + 17 ) * 56 AS col1
----
952

query I rowsort
SELECT ALL - - NULLIF ( - 72, + 30 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL + - COUNT( * ) * - + 44 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL + - COUNT ( * ) * - + 44 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT - COUNT( DISTINCT - 56 )
----
-1

skipif mysql # not compatible
query I rowsort label-3155
SELECT - COUNT ( DISTINCT - 56 )
----
-1

query I rowsort
SELECT ALL + + ( - 65 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT - - 15 * - COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3157
SELECT - - 15 * - COUNT ( * ) AS col2
----
-15

query II rowsort
SELECT - 18 AS col2, - 33 AS col2
----
-18
-33

query I rowsort
SELECT ALL + 37 * - 56
----
-2072

query I rowsort
SELECT DISTINCT + 64 * 71
----
4544

query I rowsort
SELECT ALL - ( - 26 ) col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL + CAST( NULL AS SIGNED ) - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL + CAST ( NULL AS INTEGER ) - 17 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3163
SELECT 92 * + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3163
SELECT 92 * + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3164
SELECT 98 + - ( 79 ) * + COUNT( * ), - 74 AS col0
----
19
-74

skipif mysql # not compatible
query II rowsort label-3164
SELECT 98 + - ( 79 ) * + COUNT ( * ), - 74 AS col0
----
19
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT COUNT( * ) * - 50 AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-3165
SELECT COUNT ( * ) * - 50 AS col2
----
-50

query I rowsort
SELECT DISTINCT 91 + - 74
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3167
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - MAX( ALL 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-3168
SELECT - MAX ( ALL 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT NULLIF ( 63, COUNT( * ) )
----
63

skipif mysql # not compatible
query I rowsort label-3169
SELECT NULLIF ( 63, COUNT ( * ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT - 44 - + COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3170
SELECT - 44 - + COUNT ( * ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT ( + MAX( DISTINCT - - 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-3171
SELECT ( + MAX ( DISTINCT - - 18 ) )
----
18

query I rowsort
SELECT ( - - 83 ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3173
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) + + 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + + 90 AS col2
----
NULL

query I rowsort
SELECT ALL - 65 + - + 60 AS col1
----
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-3175
SELECT + COUNT( * ), + 79 AS col0
----
1
79

skipif mysql # not compatible
query II rowsort label-3175
SELECT + COUNT ( * ), + 79 AS col0
----
1
79

query II rowsort
SELECT DISTINCT - 10 AS col0, 97 * ( + 35 ) AS col2
----
-10
3395

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3177
SELECT + 40, CAST( NULL AS SIGNED ) AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-3177
SELECT + 40, CAST ( NULL AS INTEGER ) AS col0
----
40
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT ALL - ( - CAST( - CAST( - AVG ( 61 ) AS SIGNED ) AS SIGNED ) ) col1
----
61

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL - ( - CAST ( - CAST ( - AVG ( 61 ) AS INTEGER ) AS INTEGER ) ) col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT + - 47 + - COUNT( * )
----
-48

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT + - 47 + - COUNT ( * )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3180
SELECT ALL + + CAST( - + 98 AS SIGNED ) + + 62 col2
----
-36

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + + CAST ( - + 98 AS INTEGER ) + + 62 col2
----
-36

query I rowsort
SELECT ( 86 ) col1
----
86

query II rowsort
SELECT 54 AS col2, + 69 - + 38
----
54
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ( - COUNT( * ) ) + - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3183
SELECT ( - COUNT ( * ) ) + - COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL - MAX( - 73 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - MAX ( - 73 ) col2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL + COALESCE ( + ( + COUNT( + - 36 ) ), - + 75, + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + COALESCE ( + ( + COUNT ( + - 36 ) ), - + 75, + 37 )
----
1

query I rowsort
SELECT - - 16 * - 54
----
-864

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT ALL + CAST( - - 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + CAST ( - - 4 AS INTEGER )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3188
SELECT - 43 DIV - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3188
SELECT - 43 / - 63 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + MIN( - 42 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-3189
SELECT + MIN ( - 42 ) AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT + MIN( DISTINCT + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-3190
SELECT + MIN ( DISTINCT + 62 )
----
62

query I rowsort
SELECT + 25 - + 57 col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3192
SELECT ( + CAST( NULL AS DECIMAL ) ) * + ( + MIN( DISTINCT 81 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT ( + CAST ( NULL AS REAL ) ) * + ( + MIN ( DISTINCT 81 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3193
SELECT + 92 + 90 - - COUNT( * )
----
183

skipif mysql # not compatible
query I rowsort label-3193
SELECT + 92 + 90 - - COUNT ( * )
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3194
SELECT 81 + - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3194
SELECT 81 + - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT COUNT( ALL 72 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3195
SELECT COUNT ( ALL 72 ) AS col1
----
1

query I rowsort
SELECT + - 85 col1
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3197
SELECT ALL + COUNT( * ) * - 71 + + 34 * + - 24 * - COUNT( * ), + 58 col1
----
745
58

skipif mysql # not compatible
query II rowsort label-3197
SELECT ALL + COUNT ( * ) * - 71 + + 34 * + - 24 * - COUNT ( * ), + 58 col1
----
745
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3198
SELECT - + CAST( + - 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-3198
SELECT - + CAST ( + - 12 AS INTEGER )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT - MIN( + 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-3199
SELECT - MIN ( + 51 )
----
-51

query I rowsort
SELECT + 37 + + 30
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3201
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) col1, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3201
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) col1, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT ALL + 5 * - + ( MAX( + 75 ) ) col2
----
-375

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + 5 * - + ( MAX ( + 75 ) ) col2
----
-375

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT + + 2 * 62 + + 3 - + 56 DIV 1 * 4 + 49 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-3203
SELECT + + 2 * 62 + + 3 - + 56 / 1 * 4 + 49 AS col1
----
-48

onlyif mysql # DIV for integer division: 
query II rowsort label-3204
SELECT - 61 DIV 1, 32 AS col0
----
-61
32

skipif mysql # not compatible
query II rowsort label-3204
SELECT - 61 / 1, 32 AS col0
----
-61
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT + CAST( 99 AS SIGNED ) col2
----
99

skipif mysql # not compatible
query I rowsort label-3205
SELECT + CAST ( 99 AS INTEGER ) col2
----
99

query I rowsort
SELECT ALL 95 - - 69 AS col0
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3207
SELECT - MIN( + NULLIF ( - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT - MIN ( + NULLIF ( - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - + ( - 33 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT - COUNT( DISTINCT 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3209
SELECT - COUNT ( DISTINCT 58 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT MAX( + 51 ) * 33
----
1683

skipif mysql # not compatible
query I rowsort label-3210
SELECT MAX ( + 51 ) * 33
----
1683

query I rowsort
SELECT 40 + - 88
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT DISTINCT COUNT( * ) + - 13 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT COUNT ( * ) + - 13 AS col0
----
-12

query I rowsort
SELECT + ( - + 3 ) AS col2
----
-3

query I rowsort
SELECT ALL + - 41 AS col0
----
-41

query I rowsort
SELECT DISTINCT + 19 + - + 77 AS col2
----
-58

query I rowsort
SELECT + - 81 + + 68
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-3217
SELECT + - 79 DIV - 6 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-3217
SELECT + - 79 / - 6 AS col2
----
13

query I rowsort
SELECT ALL + ( - - 87 ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT + COUNT( * ) - + ( 34 ) AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3219
SELECT + COUNT ( * ) - + ( 34 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT COUNT( * ) AS col0, COUNT( * ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3220
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col1
----
1
1

query I rowsort
SELECT - 87 + + 34 AS col2
----
-53

query II rowsort
SELECT ALL 80 AS col0, - 39
----
80
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3223
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT + 26 * + COUNT( * ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3224
SELECT + 26 * + COUNT ( * ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + COUNT( - + 97 )
----
1

skipif mysql # not compatible
query I rowsort label-3225
SELECT + COUNT ( - + 97 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT COUNT( - ( - 39 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3226
SELECT COUNT ( - ( - 39 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT DISTINCT - - 76 + - NULLIF ( - COUNT( * ), COUNT( * ) ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT - - 76 + - NULLIF ( - COUNT ( * ), COUNT ( * ) ) AS col1
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL + - COUNT( DISTINCT - - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL + - COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL + ( 42 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL + 49 * - - ( - COUNT( * ) ) * COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + 49 * - - ( - COUNT ( * ) ) * COUNT ( * )
----
-49

query I rowsort
SELECT DISTINCT - + 78 + + 49 * - 75 * - - 4
----
-14778

query I rowsort
SELECT ALL + - 11 + ( 15 ) col2
----
4

query I rowsort
SELECT - 84 + 10
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT 15 * - - 79 * COUNT( * ) col2
----
1185

skipif mysql # not compatible
query I rowsort label-3234
SELECT 15 * - - 79 * COUNT ( * ) col2
----
1185

query II rowsort
SELECT 79 AS col1, ( + 97 ) AS col0
----
79
97

query I rowsort
SELECT + 31 * + + 85 AS col1
----
2635

query I rowsort
SELECT - 70 + - 28 AS col1
----
-98

query I rowsort
SELECT DISTINCT ( + - 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3239
SELECT - + CAST( + 28 AS SIGNED ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-3239
SELECT - + CAST ( + 28 AS INTEGER ) AS col1
----
-28

query I rowsort
SELECT - 69 * + - 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3241
SELECT ALL 72 AS col1, COUNT( * )
----
72
1

skipif mysql # not compatible
query II rowsort label-3241
SELECT ALL 72 AS col1, COUNT ( * )
----
72
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3242
SELECT DISTINCT - 5 DIV - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - 5 / - COUNT ( * ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3243
SELECT CAST( NULL AS SIGNED ) * 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT CAST ( NULL AS INTEGER ) * 51 AS col1
----
NULL

query I rowsort
SELECT 39 + - - 66
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-3245
SELECT ALL - ( COUNT( * ) ) AS col2, 57 AS col1
----
-1
57

skipif mysql # not compatible
query II rowsort label-3245
SELECT ALL - ( COUNT ( * ) ) AS col2, 57 AS col1
----
-1
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3246
SELECT + 31 - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT + 31 - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT + 95 + 68 AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL 90 * - ( 44 ) + + COUNT( * )
----
-3959

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL 90 * - ( 44 ) + + COUNT ( * )
----
-3959

query I rowsort
SELECT + ( 13 ) AS col1
----
13

query I rowsort
SELECT DISTINCT + 7 col2
----
7

query I rowsort
SELECT ALL + COALESCE ( + + 31, 66 )
----
31

query I rowsort
SELECT DISTINCT + + 28 col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT DISTINCT + CASE WHEN NOT + CAST( NULL AS SIGNED ) IS NULL THEN NULL ELSE + 26 END col2
----
26

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT + CASE WHEN NOT + CAST ( NULL AS INTEGER ) IS NULL THEN NULL ELSE + 26 END col2
----
26

query I rowsort
SELECT - - 43 + - + 29 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT - - COUNT( * ) + - 52 + 63 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-3255
SELECT - - COUNT ( * ) + - 52 + 63 AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT ALL CAST( - 88 AS SIGNED ) AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL CAST ( - 88 AS INTEGER ) AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT + COUNT( * ) + - 12 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-3257
SELECT + COUNT ( * ) + - 12 AS col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3258
SELECT + - 52 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT + - 52 * - + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 40 AS col2, - 49 AS col1
----
40
-49

query I rowsort
SELECT DISTINCT - - 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT DISTINCT 95 * - 11 * + COUNT( * ) col1
----
-1045

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT 95 * - 11 * + COUNT ( * ) col1
----
-1045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3262
SELECT ALL ( + 31 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL ( + 31 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT CAST( NULL AS SIGNED ) * - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT CAST ( NULL AS INTEGER ) * - 15 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT - COUNT( * ) * - 58
----
58

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - COUNT ( * ) * - 58
----
58

query I rowsort
SELECT - 13 + - 55
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT SUM( - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-3266
SELECT SUM ( - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT MAX( DISTINCT + 69 )
----
69

skipif mysql # not compatible
query I rowsort label-3267
SELECT MAX ( DISTINCT + 69 )
----
69

query I rowsort
SELECT + 7 + - 42 AS col0
----
-35

query I rowsort
SELECT ALL 71 - + 50
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT - + ( - SUM( ALL 80 ) )
----
80

skipif mysql # not compatible
query I rowsort label-3270
SELECT - + ( - SUM ( ALL 80 ) )
----
80

query I rowsort
SELECT + - 73 * + 43
----
-3139

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL + - NULLIF ( 74, COUNT( * ) + - COUNT( * ) )
----
-74

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + - NULLIF ( 74, COUNT ( * ) + - COUNT ( * ) )
----
-74

query I rowsort
SELECT - + 47 + - 4 AS col2
----
-51

query I rowsort
SELECT ( - 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT - COUNT( * ) + 65 col0
----
64

skipif mysql # not compatible
query I rowsort label-3275
SELECT - COUNT ( * ) + 65 col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3276
SELECT COUNT( * ) + 42
----
43

skipif mysql # not compatible
query I rowsort label-3276
SELECT COUNT ( * ) + 42
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL COUNT( * ) + COUNT( * ) - 57
----
-55

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL COUNT ( * ) + COUNT ( * ) - 57
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL - - MIN( ALL + 65 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - - MIN ( ALL + 65 ) AS col2
----
65

query I rowsort
SELECT DISTINCT - ( - 41 ) col1
----
41

query I rowsort
SELECT 84 - + - 37
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3281
SELECT 90 * + 38 * + - COUNT( ALL NULLIF ( 10, CAST( 40 AS DECIMAL ) ) ) AS col2
----
-3420

skipif mysql # not compatible
query I rowsort label-3281
SELECT 90 * + 38 * + - COUNT ( ALL NULLIF ( 10, CAST ( 40 AS REAL ) ) ) AS col2
----
-3420

onlyif mysql # aggregate syntax: 
query II rowsort label-3282
SELECT ALL COUNT( * ) col2, COUNT( * ) * + 60
----
1
60

skipif mysql # not compatible
query II rowsort label-3282
SELECT ALL COUNT ( * ) col2, COUNT ( * ) * + 60
----
1
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3283
SELECT MAX( ALL - 27 ), 80 AS col2
----
-27
80

skipif mysql # not compatible
query II rowsort label-3283
SELECT MAX ( ALL - 27 ), 80 AS col2
----
-27
80

query I rowsort
SELECT DISTINCT + ( - - 31 ) + - 71
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3285
SELECT ALL + 29 * + + 62 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT ALL + 29 * + + 62 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( ( - 13 ) ) AS col1
----
-13

query II rowsort
SELECT + 51 * - + 25 - 98, ( + 98 ) + ( - 57 ) AS col2
----
-1373
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT + CAST( - MAX( + 12 ) AS SIGNED ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-3288
SELECT + CAST ( - MAX ( + 12 ) AS INTEGER ) AS col1
----
-12

query I rowsort
SELECT ALL 75 * - 55 + - 48 AS col1
----
-4173

query I rowsort
SELECT + ( 4 ) AS col0
----
4

query I rowsort
SELECT ALL + + 13 * + 99 - 80
----
1207

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT + 49 * - + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3292
SELECT + 49 * - + COUNT ( * ) AS col1
----
-49

query II rowsort
SELECT 31 AS col0, ( 63 )
----
31
63

query I rowsort
SELECT DISTINCT - ( 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT - + COUNT( - 83 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3295
SELECT - + COUNT ( - 83 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT ALL COALESCE ( - - COUNT( * ), + 4 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL COALESCE ( - - COUNT ( * ), + 4 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3297
SELECT - COUNT( + - 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3297
SELECT - COUNT ( + - 82 ) AS col0
----
-1

query I rowsort
SELECT ALL - 91 + - 98 AS col1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL ( + - 27 ) + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL ( + - 27 ) + COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT COUNT( * ) + + 28 + - SUM( - 89 ) + + + COUNT( * ) * + - 83 + - COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-3300
SELECT COUNT ( * ) + + 28 + - SUM ( - 89 ) + + + COUNT ( * ) * + - 83 + - COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT - ( 0 ) * COUNT( * ) * - + 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3301
SELECT - ( 0 ) * COUNT ( * ) * - + 89 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL COUNT( + - 0 )
----
1

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL COUNT ( + - 0 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3303
SELECT DISTINCT + CAST( + 39 AS SIGNED ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT + CAST ( + 39 AS INTEGER ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT + 19 * COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3304
SELECT + 19 * COUNT ( * ) AS col2
----
19

query II rowsort
SELECT ALL - 59 - - 69 AS col2, 72 col1
----
10
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3306
SELECT - 1 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT - 1 / + 61
----
0

query I rowsort
SELECT DISTINCT - + 7 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT ALL 87 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL 87 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3309
SELECT DISTINCT CAST( + 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT CAST ( + 72 AS INTEGER )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT DISTINCT COUNT( ALL + 77 )
----
1

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT COUNT ( ALL + 77 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3311
SELECT DISTINCT 87 AS col1, + COUNT( * ) * - ( - COUNT( * ) )
----
87
1

skipif mysql # not compatible
query II rowsort label-3311
SELECT DISTINCT 87 AS col1, + COUNT ( * ) * - ( - COUNT ( * ) )
----
87
1

query I rowsort
SELECT DISTINCT + 55 col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT - + MIN( + 66 ) + + 55
----
-11

skipif mysql # not compatible
query I rowsort label-3313
SELECT - + MIN ( + 66 ) + + 55
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL + + 33 * - + COUNT( * ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + + 33 * - + COUNT ( * ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3315
SELECT + - CAST( ( - + 74 ) AS SIGNED ) AS col2
----
74

skipif mysql # not compatible
query I rowsort label-3315
SELECT + - CAST ( ( - + 74 ) AS INTEGER ) AS col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3316
SELECT ( - CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3316
SELECT ( - CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - ( - + 46 ) - + COUNT( * ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3317
SELECT - ( - + 46 ) - + COUNT ( * ) AS col0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3319
SELECT ALL + 42 DIV 83 * - - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL + 42 / 83 * - - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3320
SELECT + + MAX( - ( + 20 ) ) DIV + 46 * + ( + - 77 ) * 80 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3320
SELECT + + MAX ( - ( + 20 ) ) / + 46 * + ( + - 77 ) * 80 AS col2
----
0

query I rowsort
SELECT + ( - - 93 ) AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3322
SELECT ALL + 73 DIV + 5 + + 72
----
86

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL + 73 / + 5 + + 72
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT - + 95 DIV - 80 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3323
SELECT - + 95 / - 80 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * 30 AS col1
----
30

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * 30 AS col1
----
30

query I rowsort
SELECT ALL - ( - + 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT ALL ( COUNT( * ) ) + - 55
----
-54

skipif mysql # not compatible
query I rowsort label-3326
SELECT ALL ( COUNT ( * ) ) + - 55
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3327
SELECT ALL 87 AS col0, + COUNT( * )
----
87
1

skipif mysql # not compatible
query II rowsort label-3327
SELECT ALL 87 AS col0, + COUNT ( * )
----
87
1

query I rowsort
SELECT ALL + + 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - - 6 * - + COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3329
SELECT - - 6 * - + COUNT ( * ) col2
----
-6

query I rowsort
SELECT + ( - 42 )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) / + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) / + 49
----
NULL

query I rowsort
SELECT + 5 + - + 42 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT MIN( + + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3333
SELECT MIN ( + + 59 ) AS col1
----
59

query I rowsort
SELECT - ( - ( - - 59 ) ) AS col0
----
59

query I rowsort
SELECT - + ( 16 ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT ALL + COUNT( * ) * 19
----
19

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL + COUNT ( * ) * 19
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT + 26 * - 56 + + - COUNT( * ) AS col2
----
-1457

skipif mysql # not compatible
query I rowsort label-3337
SELECT + 26 * - 56 + + - COUNT ( * ) AS col2
----
-1457

query I rowsort
SELECT DISTINCT 0 col1
----
0

query I rowsort
SELECT ALL - - ( - + 60 ) * + - 33
----
1980

query I rowsort
SELECT - ( + 79 ) - - + 35
----
-44

query I rowsort
SELECT 81 + - 3
----
78

query I rowsort
SELECT ALL + - 85 * + 37
----
-3145

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT - - ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3343
SELECT - - ( - + COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3344
SELECT 27 * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3344
SELECT 27 * + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + 59 * 21 + - - 15
----
1254

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT DISTINCT + - 75 - - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + - 75 - - COUNT ( * )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL - 13 * COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL - 13 * COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3348
SELECT - + COUNT( * ) DIV 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3348
SELECT - + COUNT ( * ) / 46 AS col1
----
0

query I rowsort
SELECT + - 28 * + 4
----
-112

query I rowsort
SELECT - + ( 28 ) AS col1
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL COUNT( * ) + 14
----
15

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL COUNT ( * ) + 14
----
15

query I rowsort
SELECT + 82 * - 22
----
-1804

query I rowsort
SELECT + ( 97 ) col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3354
SELECT ALL + COUNT( * ) AS col2, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3354
SELECT ALL + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3355
SELECT - MAX( + 36 ) * + 35 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3355
SELECT - MAX ( + 36 ) * + 35 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - + SUM( - 20 ) + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - + SUM ( - 20 ) + + COUNT ( * )
----
21

query I rowsort
SELECT DISTINCT + ( + 7 ) + 15 col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT - 13 + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT - 13 + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT + 41 + + - ( COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-3359
SELECT + 41 + + - ( COUNT ( * ) )
----
40

query I rowsort
SELECT ALL + ( + 20 ) col0
----
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3361
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT - + CAST ( NULL AS REAL ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT ALL + 94 * COUNT( * ) col2
----
94

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + 94 * COUNT ( * ) col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + + ( + MAX( DISTINCT 96 ) )
----
96

skipif mysql # not compatible
query I rowsort label-3363
SELECT + + ( + MAX ( DISTINCT 96 ) )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT ALL - 51 + + - COUNT( * ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-3364
SELECT ALL - 51 + + - COUNT ( * ) col1
----
-52

query I rowsort
SELECT DISTINCT 23 + + 68 + - 85
----
6

query I rowsort
SELECT DISTINCT ( 29 ) AS col0
----
29

query II rowsort
SELECT 45 AS col0, 96 AS col1
----
45
96

query I rowsort
SELECT - ( + 2 ) AS col0
----
-2

query I rowsort
SELECT 81 - + 55
----
26

query I rowsort
SELECT ALL + 35 + 47 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT 71 + - COUNT( * ) * - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-3371
SELECT 71 + - COUNT ( * ) * - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL 52 * + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL 52 * + - COUNT ( * )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT - COUNT( * ) * - 16
----
16

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT - COUNT ( * ) * - 16
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT ALL - 7 AS col1, MIN( + 22 ) AS col1
----
-7
22

skipif mysql # not compatible
query II rowsort label-3374
SELECT ALL - 7 AS col1, MIN ( + 22 ) AS col1
----
-7
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT SUM( ALL - + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-3375
SELECT SUM ( ALL - + 71 )
----
-71

query I rowsort
SELECT ALL 23 * - 39 AS col0
----
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL + - COUNT( * ) * - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL + - COUNT ( * ) * - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL 79 * - 54 + + COUNT( * ) AS col1
----
-4265

skipif mysql # not compatible
query I rowsort label-3378
SELECT ALL 79 * - 54 + + COUNT ( * ) AS col1
----
-4265

query I rowsort
SELECT + 46 - - - 15 * + ( 31 ) AS col0
----
-419

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - - COUNT( ALL + - 96 )
----
1

skipif mysql # not compatible
query I rowsort label-3380
SELECT - - COUNT ( ALL + - 96 )
----
1

query I rowsort
SELECT + 57 + + ( - 28 ) AS col0
----
29

query I rowsort
SELECT ALL 0 * 9 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT + COUNT( ALL 13 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3383
SELECT + COUNT ( ALL 13 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3384
SELECT DISTINCT - 38 AS col1, COUNT( * ) AS col2
----
-38
1

skipif mysql # not compatible
query II rowsort label-3384
SELECT DISTINCT - 38 AS col1, COUNT ( * ) AS col2
----
-38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT COUNT( * ) * 30 + - ( + COUNT( * ) ) - - COUNT( * ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-3385
SELECT COUNT ( * ) * 30 + - ( + COUNT ( * ) ) - - COUNT ( * ) AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3386
SELECT + 5 DIV - ( 10 )
----
0

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 5 / - ( 10 )
----
0

query II rowsort
SELECT - 52 AS col1, - 7 + 6
----
-52
-1

query II rowsort
SELECT - 55 col2, 7 AS col2
----
-55
7

query I rowsort
SELECT + 65 * 35 AS col0
----
2275

onlyif mysql # aggregate syntax: 
query II rowsort label-3390
SELECT + 39 col2, - SUM( 92 )
----
39
-92

skipif mysql # not compatible
query II rowsort label-3390
SELECT + 39 col2, - SUM ( 92 )
----
39
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - COUNT( * ) - - 49
----
48

skipif mysql # not compatible
query I rowsort label-3391
SELECT - COUNT ( * ) - - 49
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3392
SELECT ALL + - ( - - COUNT( * ) ) DIV - ( NULLIF ( 74, COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + - ( - - COUNT ( * ) ) / - ( NULLIF ( 74, COUNT ( * ) ) )
----
0

query I rowsort
SELECT DISTINCT 16 - 28
----
-12

query I rowsort
SELECT ALL + 56 * 47
----
2632

query I rowsort
SELECT 19 * + 90 AS col0
----
1710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 62 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + COUNT( DISTINCT + 71 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3397
SELECT + COUNT ( DISTINCT + 71 ) AS col0
----
1

query I rowsort
SELECT ALL - - 27 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT DISTINCT COUNT( * ) + + - MIN( ALL 51 )
----
-50

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT COUNT ( * ) + + - MIN ( ALL 51 )
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT - ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT - ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3401
SELECT DISTINCT COUNT( * ) DIV - 85
----
0

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT COUNT ( * ) / - 85
----
0

query I rowsort
SELECT 50 * + + 41
----
2050

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT SUM( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-3403
SELECT SUM ( ALL 71 )
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT + CAST( - - ( 55 ) AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-3404
SELECT + CAST ( - - ( 55 ) AS INTEGER )
----
55

query I rowsort
SELECT DISTINCT - + 30 + 49
----
19

query I rowsort
SELECT ALL - + 80 - 91 AS col2
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3407
SELECT ALL - SUM( ALL - + 15 ) * + + CAST( - ( - 31 ) AS SIGNED ) AS col0
----
465

skipif mysql # not compatible
query I rowsort label-3407
SELECT ALL - SUM ( ALL - + 15 ) * + + CAST ( - ( - 31 ) AS INTEGER ) AS col0
----
465

query I rowsort
SELECT - 46 + + 31
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT - ( + 67 ) + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-3409
SELECT - ( + 67 ) + + COUNT ( * )
----
-66

query I rowsort
SELECT + 10 * + 5 AS col2
----
50

query I rowsort
SELECT ( 39 ) AS col0
----
39

query I rowsort
SELECT ALL + + 46 - + 83
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT DISTINCT + MIN( ALL - - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT + MIN ( ALL - - 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT - - COUNT( DISTINCT + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-3414
SELECT - - COUNT ( DISTINCT + 42 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL COUNT( DISTINCT + 87 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL COUNT ( DISTINCT + 87 ) AS col2
----
1

query I rowsort
SELECT + + 54 + - 9
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3417
SELECT DISTINCT 63 + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT 63 + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - 38 - + + 59
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ALL + COUNT( DISTINCT - ( + - 4 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL + COUNT ( DISTINCT - ( + - 4 ) ) col0
----
1

query II rowsort
SELECT - 69 AS col2, 28 AS col2
----
-69
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT MIN( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-3421
SELECT MIN ( + 40 )
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT ALL 63 DIV + 21 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL 63 / + 21 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3423
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( + + 56 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( + + 56 AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL - 74 + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL - 74 + - COUNT ( * )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3425
SELECT COUNT( CAST( NULL AS SIGNED ) ), - 47 col2
----
0
-47

skipif mysql # not compatible
query II rowsort label-3425
SELECT COUNT ( CAST ( NULL AS INTEGER ) ), - 47 col2
----
0
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT DISTINCT - NULLIF ( + COUNT( * ), 78 + - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT - NULLIF ( + COUNT ( * ), 78 + - + COUNT ( * ) )
----
-1

query I rowsort
SELECT 94 * + + 51 AS col1
----
4794

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT COUNT( * ) * 24 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-3428
SELECT COUNT ( * ) * 24 AS col1
----
24

query I rowsort
SELECT ALL - - 61 col2
----
61

query I rowsort
SELECT DISTINCT - - 60 + + 79 - + + 61 AS col1
----
78

query I rowsort
SELECT + 48 + + + 1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT - COUNT( * ) * + 7 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3432
SELECT - COUNT ( * ) * + 7 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3433
SELECT + CAST( NULL AS SIGNED ) / - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3433
SELECT + CAST ( NULL AS INTEGER ) / - + COUNT ( * )
----
NULL

query I rowsort
SELECT ( - + 54 )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3435
SELECT + CAST( NULL AS DECIMAL ) + + - COUNT( - 27 ) + + COUNT( * ) AS col1, 72 * + - 30 AS col1
----
NULL
-2160

skipif mysql # not compatible
query II rowsort label-3435
SELECT + CAST ( NULL AS REAL ) + + - COUNT ( - 27 ) + + COUNT ( * ) AS col1, 72 * + - 30 AS col1
----
NULL
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT 55 * - 17 + COUNT( * ) AS col0
----
-934

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT 55 * - 17 + COUNT ( * ) AS col0
----
-934

query I rowsort
SELECT ALL - 3 + + + 99 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT - SUM( 65 ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-3438
SELECT - SUM ( 65 ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-3439
SELECT COUNT( * ) - + COUNT( * ), + 94 AS col1
----
0
94

skipif mysql # not compatible
query II rowsort label-3439
SELECT COUNT ( * ) - + COUNT ( * ), + 94 AS col1
----
0
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT DISTINCT COUNT( * ) - - 2 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT COUNT ( * ) - - 2 AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3441
SELECT 98 DIV + 54 DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3441
SELECT 98 / + 54 / + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT - ( - 8 ) AS col1
----
8

query I rowsort
SELECT ( 35 ) AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3444
SELECT ALL - + COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - + COUNT ( * ) + + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL COUNT( * ) + - + 40
----
-39

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL COUNT ( * ) + - + 40
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT ALL COUNT( * ) * + + 96
----
96

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL COUNT ( * ) * + + 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT 56 * + - MAX( 35 ) + 83
----
-1877

skipif mysql # not compatible
query I rowsort label-3447
SELECT 56 * + - MAX ( 35 ) + 83
----
-1877

query II rowsort
SELECT ALL 36, + ( 75 ) AS col0
----
36
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3449
SELECT ALL 94, + COUNT( * ) AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-3449
SELECT ALL 94, + COUNT ( * ) AS col1
----
94
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3450
SELECT ALL 23 DIV + + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL 23 / + + 60 AS col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3451
SELECT ALL + - ( + - CAST( NULL AS DECIMAL ) ) / + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + - ( + - CAST ( NULL AS REAL ) ) / + 18
----
NULL

query I rowsort
SELECT COALESCE ( + 61, - 25 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3453
SELECT ALL COUNT( * ) * - 63 * CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL COUNT ( * ) * - 63 * CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 98 * + ( + 13 ) + + 67 AS col0
----
1341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT DISTINCT 28 + + - CAST( - + 91 AS SIGNED )
----
119

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT 28 + + - CAST ( - + 91 AS INTEGER )
----
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3456
SELECT - COUNT( * ) AS col1, - 98 - - CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3456
SELECT - COUNT ( * ) AS col1, - 98 - - CAST ( NULL AS INTEGER )
----
-1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL CAST( + ( - - 4 ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL CAST ( + ( - - 4 ) AS INTEGER )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3458
SELECT DISTINCT - COALESCE ( + SUM( ALL 57 ), - + 84 ) * + 19 + SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT - COALESCE ( + SUM ( ALL 57 ), - + 84 ) * + 19 + SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3459
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + - NULLIF ( 42, + 61 * + 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + - NULLIF ( 42, + 61 * + 39 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT 1 / - + CAST( NULL AS SIGNED ) / 90
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT 1 / - + CAST ( NULL AS INTEGER ) / 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT + 70 * - + 22 + - COUNT( * )
----
-1541

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT + 70 * - + 22 + - COUNT ( * )
----
-1541

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3462
SELECT CAST( NULL AS DECIMAL ) * + 25 + - ( + 0 ) * - 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT CAST ( NULL AS REAL ) * + 25 + - ( + 0 ) * - 80 AS col2
----
NULL

query I rowsort
SELECT ALL + 35 + + 60
----
95

query I rowsort
SELECT DISTINCT - 87 * 88 AS col2
----
-7656

query I rowsort
SELECT ALL - ( - - 88 ) AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT MIN( DISTINCT - - 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-3466
SELECT MIN ( DISTINCT - - 18 ) AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT 23 * + MAX( ALL + COALESCE ( + 78, 43, + 55 ) )
----
1794

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT 23 * + MAX ( ALL + COALESCE ( + 78, 43, + 55 ) )
----
1794

onlyif mysql # aggregate syntax: 
query II rowsort label-3468
SELECT ALL + 71 AS col1, - SUM( ALL - ( 60 ) )
----
71
60

skipif mysql # not compatible
query II rowsort label-3468
SELECT ALL + 71 AS col1, - SUM ( ALL - ( 60 ) )
----
71
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3469
SELECT ALL COUNT( * ) AS col1, + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3469
SELECT ALL COUNT ( * ) AS col1, + CAST ( NULL AS INTEGER )
----
1
NULL

query I rowsort
SELECT ALL + ( - 8 ) col1
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT - - 60, - 63 * + + COUNT( * ) AS col0
----
60
-63

skipif mysql # not compatible
query II rowsort label-3471
SELECT - - 60, - 63 * + + COUNT ( * ) AS col0
----
60
-63

query I rowsort
SELECT ALL + 49 * + + 42 AS col0
----
2058

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT COUNT( * ) * + 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-3473
SELECT COUNT ( * ) * + 71 AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL COUNT( 39 )
----
1

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL COUNT ( 39 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT 36 * + SUM( - 5 ) col0
----
-180

skipif mysql # not compatible
query I rowsort label-3475
SELECT 36 * + SUM ( - 5 ) col0
----
-180

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3476
SELECT ALL - MAX( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT + 93 + + + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3477
SELECT + 93 + + + COUNT ( * ) AS col0
----
94

query I rowsort
SELECT - 80 * + 64
----
-5120

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT + + COUNT( DISTINCT - - 8 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + + COUNT ( DISTINCT - - 8 ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT CAST( - ( - COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3480
SELECT CAST ( - ( - COUNT ( * ) ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT DISTINCT ( - MAX( 75 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT ( - MAX ( 75 ) )
----
-75

query I rowsort
SELECT + 29 + - 68 AS col2
----
-39

query I rowsort
SELECT - 10 + 51 AS col0
----
41

query I rowsort
SELECT ( 40 ) AS col2
----
40

query I rowsort
SELECT DISTINCT 31 * 88
----
2728

query I rowsort
SELECT 45 + - 1 * - ( 89 + - ( 73 ) ) AS col2
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3487
SELECT ALL COUNT( DISTINCT 67 ) DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL COUNT ( DISTINCT 67 ) / 43
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3488
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + 43
----
NULL

query I rowsort
SELECT 67 + 45 * + 38 AS col0
----
1777

query I rowsort
SELECT 56 * 11
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT - 71 * - COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3491
SELECT - 71 * - COUNT ( * )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT - + MAX( 24 ) * 36 + 69
----
-795

skipif mysql # not compatible
query I rowsort label-3492
SELECT - + MAX ( 24 ) * 36 + 69
----
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT + 37 * COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3493
SELECT + 37 * COUNT ( * ) AS col2
----
37

query I rowsort
SELECT 75 + + 9 * + 21
----
264

query I rowsort
SELECT - 17 * + 16 AS col0
----
-272

query I rowsort
SELECT 24 - - 80 col0
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT - MIN( ALL + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-3497
SELECT - MIN ( ALL + 33 )
----
-33

query I rowsort
SELECT 50 * - 99
----
-4950

query I rowsort
SELECT DISTINCT + - NULLIF ( + 92, + 34 )
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3500
SELECT MAX( ALL - CAST( + 60 AS SIGNED ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-3500
SELECT MAX ( ALL - CAST ( + 60 AS INTEGER ) ) AS col1
----
-60

query I rowsort
SELECT - ( - 37 ) - + - 88 AS col1
----
125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3502
SELECT ALL 89 DIV 69 - + MIN( DISTINCT - 61 ) DIV 72 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL 89 / 69 - + MIN ( DISTINCT - 61 ) / 72 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3503
SELECT + CAST( NULL AS SIGNED ), SUM( ALL 63 ) AS col0
----
NULL
63

skipif mysql # not compatible
query II rowsort label-3503
SELECT + CAST ( NULL AS INTEGER ), SUM ( ALL 63 ) AS col0
----
NULL
63

query I rowsort
SELECT - 80 * - 36 * - 68 - - + 97 AS col0
----
-195743

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT DISTINCT 74 DIV + - 55
----
-1

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT 74 / + - 55
----
-1

query I rowsort
SELECT DISTINCT 96 * + 70 * - + 95
----
-638400

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT SUM( DISTINCT - + 96 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-3507
SELECT SUM ( DISTINCT - + 96 ) AS col1
----
-96

query I rowsort
SELECT - - 19 AS col2
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3509
SELECT ALL COUNT( * ) DIV COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL COUNT ( * ) / COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3510
SELECT ALL - MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL - MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT - 54 + + COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-3511
SELECT - 54 + + COUNT ( * )
----
-53

query I rowsort
SELECT + 20 * - 78
----
-1560

onlyif mysql # aggregate syntax: 
query I rowsort label-3513
SELECT ALL + 65 * + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3513
SELECT ALL + 65 * + COUNT ( * ) AS col2
----
65

query I rowsort
SELECT - - 87 * + + 3
----
261

onlyif mysql # aggregate syntax: 
query II rowsort label-3515
SELECT DISTINCT + 33 col0, COUNT( * ) AS col2
----
33
1

skipif mysql # not compatible
query II rowsort label-3515
SELECT DISTINCT + 33 col0, COUNT ( * ) AS col2
----
33
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT - - CASE + 50 WHEN + COUNT( * ) THEN 90 END + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT - - CASE + 50 WHEN + COUNT ( * ) THEN 90 END + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT - COUNT( * ) * - 7 * - + 93
----
-651

skipif mysql # not compatible
query I rowsort label-3517
SELECT - COUNT ( * ) * - 7 * - + 93
----
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL 10 * + - COUNT( * ) + - ( + 59 )
----
-69

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL 10 * + - COUNT ( * ) + - ( + 59 )
----
-69

query I rowsort
SELECT - + ( 4 ) col1
----
-4

query I rowsort
SELECT ALL ( 46 )
----
46

query I rowsort
SELECT DISTINCT ( + 60 ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL - COUNT( * ) + 72
----
71

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL - COUNT ( * ) + 72
----
71

query I rowsort
SELECT ALL 34 * 19 AS col0
----
646

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3524
SELECT ALL + CAST( NULL AS SIGNED ) * + + 87 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 87 * - 25
----
NULL

query I rowsort
SELECT - NULLIF ( - 90, 8 ) AS col2
----
90

query I rowsort
SELECT - 74 * 23 AS col0
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT - + 31 * + + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-3527
SELECT - + 31 * + + COUNT ( * )
----
-31

query I rowsort
SELECT - + 76 AS col1
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT ALL CAST( CAST( + ( + + 6 ) AS SIGNED ) AS SIGNED ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-3530
SELECT ALL CAST ( CAST ( + ( + + 6 ) AS INTEGER ) AS INTEGER ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT + + COUNT( ALL - 44 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3531
SELECT + + COUNT ( ALL - 44 ) AS col1
----
1

query I rowsort
SELECT ALL - - 47 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT COUNT( * ) * - 3 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-3533
SELECT COUNT ( * ) * - 3 AS col0
----
-3

query I rowsort
SELECT ALL - ( + 46 ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3535
SELECT ALL + - COUNT( * ), + COUNT( * ) AS col0
----
-1
1

skipif mysql # not compatible
query II rowsort label-3535
SELECT ALL + - COUNT ( * ), + COUNT ( * ) AS col0
----
-1
1

query I rowsort
SELECT ALL + + 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + - COUNT( + 58 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + - COUNT ( + 58 ) col0
----
-1

query I rowsort
SELECT NULLIF ( 17, - 58 * ( - 13 ) ) AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL MAX( DISTINCT + 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL MAX ( DISTINCT + 55 ) AS col0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3540
SELECT 58 + CAST( 98 AS SIGNED ) AS col1
----
156

skipif mysql # not compatible
query I rowsort label-3540
SELECT 58 + CAST ( 98 AS INTEGER ) AS col1
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3541
SELECT DISTINCT + - 98 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + - 98 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT DISTINCT + CAST( NULL AS SIGNED ) / ( - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / ( - 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT 55 + + ( + - COUNT( * ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3543
SELECT 55 + + ( + - COUNT ( * ) ) AS col1
----
54

query I rowsort
SELECT + 31 * + - 15 AS col1
----
-465

query I rowsort
SELECT - 74 col2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3546
SELECT - 97 DIV - COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-3546
SELECT - 97 / - COUNT ( * ) AS col2
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3547
SELECT DISTINCT 40 DIV + 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT 40 / + 61 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3548
SELECT MAX( 86 ), + COUNT( * ) * + COUNT( * ) AS col0
----
86
1

skipif mysql # not compatible
query II rowsort label-3548
SELECT MAX ( 86 ), + COUNT ( * ) * + COUNT ( * ) AS col0
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT + NULLIF ( 35, - COUNT( * ) * 70 ) col0
----
35

skipif mysql # not compatible
query I rowsort label-3549
SELECT + NULLIF ( 35, - COUNT ( * ) * 70 ) col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - - MAX( DISTINCT + 24 ) * - + 27 AS col1
----
-648

skipif mysql # not compatible
query I rowsort label-3550
SELECT - - MAX ( DISTINCT + 24 ) * - + 27 AS col1
----
-648

query I rowsort
SELECT + ( + 98 ) AS col1
----
98

query I rowsort
SELECT + - 31 * + 40
----
-1240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3553
SELECT ALL ( - CAST( - - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3553
SELECT ALL ( - CAST ( - - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT + 43 * COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-3554
SELECT + 43 * COUNT ( * ) AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3555
SELECT - 9 AS col1, - CAST( NULL AS SIGNED ) * - + 33 AS col2
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-3555
SELECT - 9 AS col1, - CAST ( NULL AS INTEGER ) * - + 33 AS col2
----
-9
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3556
SELECT ALL MIN( ALL - ( + 42 ) ) + - 28 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL MIN ( ALL - ( + 42 ) ) + - 28 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT CAST( NULL AS SIGNED ) + + + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3557
SELECT CAST ( NULL AS INTEGER ) + + + 31 AS col0
----
NULL

query II rowsort
SELECT 32, 90 AS col1
----
32
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL COUNT( * ) + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT - 68 + - 38 AS col1
----
-106

query I rowsort
SELECT + - ( 36 )
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT ALL + - CAST( COUNT( * ) AS SIGNED ) * 5 * + - 92
----
460

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + - CAST ( COUNT ( * ) AS INTEGER ) * 5 * + - 92
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT + MIN( - - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-3563
SELECT + MIN ( - - 97 )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3564
SELECT DISTINCT - COUNT( * ) - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT - COUNT ( * ) - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT + 51 * - - SUM( DISTINCT + ( - 27 ) ) - 18 + COALESCE ( 24, + 63 ) * 62
----
93

skipif mysql # not compatible
query I rowsort label-3565
SELECT + 51 * - - SUM ( DISTINCT + ( - 27 ) ) - 18 + COALESCE ( 24, + 63 ) * 62
----
93

query II rowsort
SELECT ALL + 77, - 45 AS col2
----
77
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3567
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) - + 86 + - + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3567
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) - + 86 + - + 42 AS col1
----
NULL

query I rowsort
SELECT - ( 52 ) AS col1
----
-52

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3569
SELECT - MIN( ALL + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT - MIN ( ALL + CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3570
SELECT - ( + ( CAST( - 22 AS SIGNED ) ) ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-3570
SELECT - ( + ( CAST ( - 22 AS INTEGER ) ) ) AS col1
----
22

query I rowsort
SELECT DISTINCT - 38 + + + 88 col0
----
50

query I rowsort
SELECT DISTINCT - + 20
----
-20

query I rowsort
SELECT DISTINCT + 8 * + + 36 * + 88 AS col0
----
25344

query I rowsort
SELECT - ( 14 ) AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL + MAX( ALL - 3 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL + MAX ( ALL - 3 ) AS col1
----
-3

query II rowsort
SELECT + + 90 AS col0, 54 AS col2
----
90
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT + SUM( - + 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-3577
SELECT + SUM ( - + 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + SUM( - + 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3578
SELECT + SUM ( - + 70 ) AS col2
----
-70

query I rowsort
SELECT + ( + 83 ) AS col2
----
83

query I rowsort
SELECT + + 63 + + 66 AS col1
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3581
SELECT + ( COUNT( * ) ) - - - 20 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT + ( COUNT ( * ) ) - - - 20 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 64 * + ( - 83 ) AS col0
----
-5312

query I rowsort
SELECT DISTINCT - ( + 63 )
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3584
SELECT 8 DIV ( - ( COUNT( * ) ) ) * + - 0 * + 86
----
0

skipif mysql # not compatible
query I rowsort label-3584
SELECT 8 / ( - ( COUNT ( * ) ) ) * + - 0 * + 86
----
0

query I rowsort
SELECT DISTINCT + 49 * - 20 * + 82 AS col2
----
-80360

query I rowsort
SELECT DISTINCT - 76 * + - 51 AS col2
----
3876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3587
SELECT DISTINCT - 87 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT - 87 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 98 + - 38
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - ( + COUNT( - 74 ) ) * 99 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3589
SELECT - ( + COUNT ( - 74 ) ) * 99 AS col1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3590
SELECT + ( - MAX( DISTINCT - - 97 ) ) AS col2, 41
----
-97
41

skipif mysql # not compatible
query II rowsort label-3590
SELECT + ( - MAX ( DISTINCT - - 97 ) ) AS col2, 41
----
-97
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT SUM( ALL 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-3591
SELECT SUM ( ALL 63 ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3592
SELECT + AVG ( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT + AVG ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3593
SELECT DISTINCT - MAX( - 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT - MAX ( - 64 ) AS col0
----
64

query I rowsort
SELECT DISTINCT + ( - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT + ( + 80 ) - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-3595
SELECT + ( + 80 ) - COUNT ( * )
----
79

query I rowsort
SELECT ( 0 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - ( - COUNT( + 30 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3597
SELECT - ( - COUNT ( + 30 ) ) col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL + CAST( + - 24 AS SIGNED ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL + CAST ( + - 24 AS INTEGER ) AS col1
----
-24

query I rowsort
SELECT + ( + + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL - + COUNT( DISTINCT - + 5 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - + COUNT ( DISTINCT - + 5 ) AS col2
----
-1

query I rowsort
SELECT - ( + 75 ) * 23 + + - 39 AS col1
----
-1764

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT CAST( NULL AS SIGNED ) + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT CAST ( NULL AS INTEGER ) + 39
----
NULL

query I rowsort
SELECT DISTINCT + 30 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT DISTINCT COUNT( * ) - 55 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT COUNT ( * ) - 55 AS col2
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT 23 AS col2, - COUNT( * ) + - 46 * + + 89 * + 71
----
23
-290675

skipif mysql # not compatible
query II rowsort label-3605
SELECT 23 AS col2, - COUNT ( * ) + - 46 * + + 89 * + 71
----
23
-290675

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT 60 + - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-3606
SELECT 60 + - COUNT ( * ) AS col1
----
59

query I rowsort
SELECT + ( - 64 ) col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT ALL - - MIN( ALL - 10 ) * - 96 AS col0
----
960

skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL - - MIN ( ALL - 10 ) * - 96 AS col0
----
960

onlyif mysql # aggregate syntax: 
query II rowsort label-3609
SELECT - 25 AS col0, ( - COUNT( * ) )
----
-25
-1

skipif mysql # not compatible
query II rowsort label-3609
SELECT - 25 AS col0, ( - COUNT ( * ) )
----
-25
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT DISTINCT 74 * COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT 74 * COUNT ( * ) col2
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3611
SELECT + 19 * 36 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3611
SELECT + 19 * 36 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3612
SELECT + + AVG ( ALL - + CAST( NULL AS SIGNED ) ) * - + 3 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-3612
SELECT + + AVG ( ALL - + CAST ( NULL AS INTEGER ) ) * - + 3 + - 91
----
NULL

query II rowsort
SELECT - 13 AS col0, - 80 col0
----
-13
-80

query I rowsort
SELECT - NULLIF ( 73, 84 ) AS col0
----
-73

query I rowsort
SELECT + 96 * 82
----
7872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3616
SELECT + - CAST( - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3616
SELECT + - CAST ( - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT + + COUNT( * ) * - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3617
SELECT + + COUNT ( * ) * - COUNT ( * ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3618
SELECT CAST( + 38 AS SIGNED ) col2
----
38

skipif mysql # not compatible
query I rowsort label-3618
SELECT CAST ( + 38 AS INTEGER ) col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3619
SELECT + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT + - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 58 + + ( + + 7 ) AS col0
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3621
SELECT ALL 80 col0, CAST( NULL AS DECIMAL ) col2
----
80
NULL

skipif mysql # not compatible
query II rowsort label-3621
SELECT ALL 80 col0, CAST ( NULL AS REAL ) col2
----
80
NULL

query II rowsort
SELECT DISTINCT 97 AS col0, 41 AS col1
----
97
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3623
SELECT ( MIN( - + 60 ) ) col2, 1
----
-60
1

skipif mysql # not compatible
query II rowsort label-3623
SELECT ( MIN ( - + 60 ) ) col2, 1
----
-60
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT MAX( ( - 40 ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3624
SELECT MAX ( ( - 40 ) ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + MAX( ALL + - 69 ) - 53 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-3625
SELECT + MAX ( ALL + - 69 ) - 53 AS col1
----
-122

query I rowsort
SELECT ALL - ( + + 40 )
----
-40

query I rowsort
SELECT ALL - + 33 * + 11
----
-363

query I rowsort
SELECT ALL + + 30 col1
----
30

query I rowsort
SELECT ALL + ( + + 41 )
----
41

query I rowsort
SELECT + 51 * + + ( + 39 ) AS col1
----
1989

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + MAX( + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-3631
SELECT + MAX ( + 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT MIN( ALL + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-3632
SELECT MIN ( ALL + 49 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT ALL 43 + 27 DIV + - ( 14 ) + 75 col0
----
117

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL 43 + 27 / + - ( 14 ) + 75 col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - ( - COALESCE ( - - COUNT( * ), - - 75 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3634
SELECT - ( - COALESCE ( - - COUNT ( * ), - - 75 ) )
----
1

query I rowsort
SELECT ALL 54 * - + 10 AS col1
----
-540

query I rowsort
SELECT ALL COALESCE ( - ( 3 ), 36 ) AS col2
----
-3

query I rowsort
SELECT ALL + 36 * + 73
----
2628

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL + COUNT( * ) * - - 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + COUNT ( * ) * - - 48 AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL - ( + MAX( DISTINCT + - 19 ) )
----
19

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL - ( + MAX ( DISTINCT + - 19 ) )
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3640
SELECT ALL + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT NULLIF ( + + 95, + - ( - COUNT( * ) ) )
----
95

skipif mysql # not compatible
query I rowsort label-3641
SELECT NULLIF ( + + 95, + - ( - COUNT ( * ) ) )
----
95

query I rowsort
SELECT - ( 11 ) col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT COUNT( * ) * 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-3643
SELECT COUNT ( * ) * 48 AS col0
----
48

query I rowsort
SELECT - + 55 AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL - COUNT( DISTINCT - - 75 )
----
-1

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - COUNT ( DISTINCT - - 75 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT - MAX( ALL - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-3646
SELECT - MAX ( ALL - 11 )
----
11

query I rowsort
SELECT + ( + - 3 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT ALL + 31 AS col2, COUNT( * )
----
31
1

skipif mysql # not compatible
query II rowsort label-3648
SELECT ALL + 31 AS col2, COUNT ( * )
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL + COUNT( + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL + COUNT ( + 66 )
----
1

query I rowsort
SELECT ALL + ( 17 ) AS col1
----
17

query I rowsort
SELECT DISTINCT - - 56 + + 82
----
138

query I rowsort
SELECT DISTINCT - 23 * 22 AS col2
----
-506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3653
SELECT ALL 96 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL 96 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3654
SELECT CAST( 72 AS SIGNED ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-3654
SELECT CAST ( 72 AS INTEGER ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3655
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 90 + + + 77
----
167

query I rowsort
SELECT ALL - 75 * 62
----
-4650

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT DISTINCT ( COUNT( * ) ) AS col2, - 8
----
1
-8

skipif mysql # not compatible
query II rowsort label-3658
SELECT DISTINCT ( COUNT ( * ) ) AS col2, - 8
----
1
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT COUNT( * ) * - 45
----
-45

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT COUNT ( * ) * - 45
----
-45

query I rowsort
SELECT - 55 * 78
----
-4290

query I rowsort
SELECT ALL ( + 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT + ( COUNT( * ) ) AS col2, - 52
----
1
-52

skipif mysql # not compatible
query II rowsort label-3662
SELECT + ( COUNT ( * ) ) AS col2, - 52
----
1
-52

query I rowsort
SELECT COALESCE ( 37, ( + - 97 ) )
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT ALL ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT - COUNT( ALL 25 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3665
SELECT - COUNT ( ALL 25 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT 25 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-3666
SELECT 25 / + 79
----
0

query I rowsort
SELECT 15 + 86
----
101

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3668
SELECT + ( - - COUNT( * ) ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3668
SELECT + ( - - COUNT ( * ) ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3669
SELECT ALL - + 81, ( + - MIN( - + 7 ) ) AS col2
----
-81
7

skipif mysql # not compatible
query II rowsort label-3669
SELECT ALL - + 81, ( + - MIN ( - + 7 ) ) AS col2
----
-81
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT 80 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT 80 * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT - COUNT( * ) * 89 col2
----
-89

skipif mysql # not compatible
query I rowsort label-3671
SELECT - COUNT ( * ) * 89 col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3672
SELECT ALL + SUM( ALL + ( + - 73 ) )
----
-73

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + SUM ( ALL + ( + - 73 ) )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT DISTINCT - + NULLIF ( - COUNT( * ), 99 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT - + NULLIF ( - COUNT ( * ), 99 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT - MAX( ALL - ( + - 60 ) ) * COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-3674
SELECT - MAX ( ALL - ( + - 60 ) ) * COUNT ( * )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT + CAST( 94 AS SIGNED ) * + 59 AS col1
----
5546

skipif mysql # not compatible
query I rowsort label-3675
SELECT + CAST ( 94 AS INTEGER ) * + 59 AS col1
----
5546

query I rowsort
SELECT ALL 74 * 20
----
1480

onlyif mysql # aggregate syntax: 
query II rowsort label-3677
SELECT + COUNT( * ) * + + 41, 35 AS col2
----
41
35

skipif mysql # not compatible
query II rowsort label-3677
SELECT + COUNT ( * ) * + + 41, 35 AS col2
----
41
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + MAX( ( - ( - 70 ) ) ) * 50 AS col1
----
3500

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + MAX ( ( - ( - 70 ) ) ) * 50 AS col1
----
3500

query I rowsort
SELECT ALL + 94 * + - 17 col0
----
-1598

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT + NULLIF ( - + COUNT( * ), + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-3680
SELECT + NULLIF ( - + COUNT ( * ), + 99 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT - CAST( NULL AS SIGNED ) * + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3681
SELECT - CAST ( NULL AS INTEGER ) * + 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT + COUNT( * ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-3682
SELECT + COUNT ( * ) + + 25
----
26

query I rowsort
SELECT 85 * + - 31
----
-2635

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT COUNT( * ) * + 34 col1
----
34

skipif mysql # not compatible
query I rowsort label-3684
SELECT COUNT ( * ) * + 34 col1
----
34

query I rowsort
SELECT 10 + - 42 * + - 54
----
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT ALL - SUM( ALL - 79 ) col2
----
79

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL - SUM ( ALL - 79 ) col2
----
79

query I rowsort
SELECT DISTINCT - ( 38 ) AS col2
----
-38

query I rowsort
SELECT DISTINCT 35 * - 39
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL MIN( DISTINCT - 5 ) col0
----
-5

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL MIN ( DISTINCT - 5 ) col0
----
-5

query I rowsort
SELECT - 63 + 2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3691
SELECT ALL COUNT( * ) DIV - 45 + COUNT( * ) * 70 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL COUNT ( * ) / - 45 + COUNT ( * ) * 70 AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - COUNT( * ) + 45 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-3692
SELECT - COUNT ( * ) + 45 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL + + CAST( - AVG ( DISTINCT - 3 ) AS SIGNED ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL + + CAST ( - AVG ( DISTINCT - 3 ) AS INTEGER ) AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT DISTINCT + 56 DIV + + 54
----
1

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT + 56 / + + 54
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3695
SELECT - - CAST( 35 AS SIGNED ) col0
----
35

skipif mysql # not compatible
query I rowsort label-3695
SELECT - - CAST ( 35 AS INTEGER ) col0
----
35

query II rowsort
SELECT 33, - 6 AS col0
----
33
-6

query I rowsort
SELECT ALL - ( + 45 ) AS col2
----
-45

query I rowsort
SELECT ALL - ( - ( + 2 ) )
----
2

query I rowsort
SELECT + 48 + + 68
----
116

query I rowsort
SELECT ( + - 66 ) * 55
----
-3630

query I rowsort
SELECT 88 + + - 63
----
25

query I rowsort
SELECT DISTINCT + - 40 AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT ALL + CAST( NULL AS SIGNED ) * 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + CAST ( NULL AS INTEGER ) * 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT - + 15 * ( + COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-3704
SELECT - + 15 * ( + COUNT ( * ) )
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3705
SELECT 77 AS col2, CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3705
SELECT 77 AS col2, CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col0
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT - COALESCE ( SUM( 30 ), - + COUNT( * ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3706
SELECT - COALESCE ( SUM ( 30 ), - + COUNT ( * ) ) AS col0
----
-30

query I rowsort
SELECT + 14 * - 38 AS col1
----
-532

query I rowsort
SELECT - ( - 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT ALL MAX( - 54 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL MAX ( - 54 ) col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT - - COUNT( * ) DIV - 41
----
0

skipif mysql # not compatible
query I rowsort label-3710
SELECT - - COUNT ( * ) / - 41
----
0

query I rowsort
SELECT DISTINCT + + 79 col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT DISTINCT + SUM( ALL + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-3712
SELECT DISTINCT + SUM ( ALL + 35 )
----
35

query I rowsort
SELECT - 27 * + 4 AS col1
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT - 44 / + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT - 44 / + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 87 + + - 28
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT MIN( ALL - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT MIN ( ALL - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT ALL + COUNT( - + 40 ) * - 82
----
-82

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL + COUNT ( - + 40 ) * - 82
----
-82

query I rowsort
SELECT ( + 42 ) AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3719
SELECT + + 23, CAST( NULL AS SIGNED ) AS col1
----
23
NULL

skipif mysql # not compatible
query II rowsort label-3719
SELECT + + 23, CAST ( NULL AS INTEGER ) AS col1
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3720
SELECT COUNT( * ) * 23 - - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT COUNT ( * ) * 23 - - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT 2 - ( - COUNT( * ) ) * 48
----
50

skipif mysql # not compatible
query I rowsort label-3721
SELECT 2 - ( - COUNT ( * ) ) * 48
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT MIN( ALL + - 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-3722
SELECT MIN ( ALL + - 87 )
----
-87

query I rowsort
SELECT ALL 90 + + + 76 AS col2
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT + CAST( NULL AS SIGNED ) / - + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT + CAST ( NULL AS INTEGER ) / - + 86 AS col1
----
NULL

query I rowsort
SELECT - 19 + + 47 AS col1
----
28

query I rowsort
SELECT ( - - ( - - 8 ) ) AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT + MIN( - 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-3727
SELECT + MIN ( - 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT COUNT( DISTINCT 70 )
----
1

skipif mysql # not compatible
query I rowsort label-3728
SELECT COUNT ( DISTINCT 70 )
----
1

query I rowsort
SELECT DISTINCT 95 * 52
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT ALL - - ( - + 74 ) - + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL - - ( - + 74 ) - + - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3731
SELECT DISTINCT - AVG ( DISTINCT CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT DISTINCT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT ALL CAST( + 68 AS SIGNED ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL CAST ( + 68 AS INTEGER ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT + + MAX( 28 ) + + 84 AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3733
SELECT + + MAX ( 28 ) + + 84 AS col1
----
112

query I rowsort
SELECT DISTINCT + 69 + + 20 AS col2
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-3735
SELECT DISTINCT 46 AS col1, COUNT( * ) AS col2
----
46
1

skipif mysql # not compatible
query II rowsort label-3735
SELECT DISTINCT 46 AS col1, COUNT ( * ) AS col2
----
46
1

query I rowsort
SELECT ALL - ( - + 49 )
----
49

query I rowsort
SELECT DISTINCT - ( - + 23 ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT + COUNT( * ) * - - COUNT( - ( - 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3738
SELECT + COUNT ( * ) * - - COUNT ( - ( - 90 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT NULLIF ( - 47, - MIN( + - 1 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-3739
SELECT NULLIF ( - 47, - MIN ( + - 1 ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT - 22 * + COUNT( * ) + + NULLIF ( - + COUNT( * ), - ( COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT - 22 * + COUNT ( * ) + + NULLIF ( - + COUNT ( * ), - ( COUNT ( * ) ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - 74 * + 97 * - COUNT( + + 22 )
----
7178

skipif mysql # not compatible
query I rowsort label-3741
SELECT - 74 * + 97 * - COUNT ( + + 22 )
----
7178

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT + COUNT( * ) * + - CASE + 21 WHEN + + COUNT( ALL 2 ) THEN MAX( ALL + 49 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3742
SELECT + COUNT ( * ) * + - CASE + 21 WHEN + + COUNT ( ALL 2 ) THEN MAX ( ALL + 49 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + ( + 93 ) AS col1
----
93

query II rowsort
SELECT + + 6, 40 AS col1
----
6
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + 6 - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + 6 - COUNT ( * )
----
5

query I rowsort
SELECT ALL - 34 * + + 63 AS col1
----
-2142

query I rowsort
SELECT 41 - + + ( - 17 )
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT DISTINCT - CAST( - 98 AS SIGNED ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT - CAST ( - 98 AS INTEGER ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT DISTINCT - + MIN( - + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - + MIN ( - + 41 ) AS col1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3750
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT 37 + + CAST( NULL AS SIGNED ) - + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT 37 + + CAST ( NULL AS INTEGER ) - + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT DISTINCT - CASE + - 78 WHEN 41 + - COUNT( * ) THEN NULL ELSE - 33 END AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT - CASE + - 78 WHEN 41 + - COUNT ( * ) THEN NULL ELSE - 33 END AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT + - ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT + - ( + COUNT ( * ) ) AS col1
----
-1

query II rowsort
SELECT 77 AS col1, - 42
----
77
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL ( + 91 ) + - 4 * COUNT( * ) + + + 50
----
137

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL ( + 91 ) + - 4 * COUNT ( * ) + + + 50
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-3756
SELECT + COUNT( * ) AS col2, 87 AS col2
----
1
87

skipif mysql # not compatible
query II rowsort label-3756
SELECT + COUNT ( * ) AS col2, 87 AS col2
----
1
87

query I rowsort
SELECT - - 81 col0
----
81

query I rowsort
SELECT - 77 * 12 AS col1
----
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT - CAST( 95 AS SIGNED ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-3759
SELECT - CAST ( 95 AS INTEGER ) AS col0
----
-95

query I rowsort
SELECT DISTINCT + ( + 53 ) col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL - SUM( - - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - SUM ( - - 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT ALL - MIN( + 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - MIN ( + 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL MIN( + 60 ) col2
----
60

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL MIN ( + 60 ) col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - + ( + MAX( ALL 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT - + ( + MAX ( ALL 0 ) ) AS col0
----
0

query I rowsort
SELECT - 24 * + + 47 col0
----
-1128

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL + SUM( DISTINCT + + 95 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL + SUM ( DISTINCT + + 95 ) AS col0
----
95

query I rowsort
SELECT - - 16 * - - 0
----
0

query I rowsort
SELECT - 62 * - ( + 13 )
----
806

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + 8 * - MAX( ALL 98 ) col2
----
-784

skipif mysql # not compatible
query I rowsort label-3769
SELECT + 8 * - MAX ( ALL 98 ) col2
----
-784

query I rowsort
SELECT ALL 54 * + 99 AS col0
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT + COALESCE ( + COUNT( * ), - 61 ) - - + 36 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-3771
SELECT + COALESCE ( + COUNT ( * ), - 61 ) - - + 36 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT COUNT( DISTINCT + - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3772
SELECT COUNT ( DISTINCT + - 61 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT - 38 - - COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3773
SELECT - 38 - - COUNT ( * ) AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT ALL 95 * - CAST( - MAX( - 79 ) AS SIGNED )
----
-7505

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL 95 * - CAST ( - MAX ( - 79 ) AS INTEGER )
----
-7505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3775
SELECT - - ( + + CAST( - 21 AS SIGNED ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3775
SELECT - - ( + + CAST ( - 21 AS INTEGER ) ) AS col1
----
-21

query I rowsort
SELECT ALL - NULLIF ( + 45, - + AVG ( + 71 ) )
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT COUNT( DISTINCT 30 ) * - - 79 AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3777
SELECT COUNT ( DISTINCT 30 ) * - - 79 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3778
SELECT CAST( - 8 AS SIGNED ) AS col1, + 61
----
-8
61

skipif mysql # not compatible
query II rowsort label-3778
SELECT CAST ( - 8 AS INTEGER ) AS col1, + 61
----
-8
61

query I rowsort
SELECT ALL + 99 + + 25 AS col0
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT - MIN( 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-3780
SELECT - MIN ( 95 )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT ALL - COUNT( + 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - COUNT ( + 99 )
----
-1

query I rowsort
SELECT ALL - - ( + + 32 ) - 90
----
-58

query I rowsort
SELECT - + 56 * + - 61
----
3416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3784
SELECT + 61 + - - NULLIF ( - 84, + 91 / + SUM( CAST( NULL AS SIGNED ) ) ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-3784
SELECT + 61 + - - NULLIF ( - 84, + 91 / + SUM ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - MIN( ALL + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-3786
SELECT - MIN ( ALL + 97 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3787
SELECT + CAST( 84 AS SIGNED ), + 84
----
84
84

skipif mysql # not compatible
query II rowsort label-3787
SELECT + CAST ( 84 AS INTEGER ), + 84
----
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3788
SELECT ( - MAX( ALL - + 7 ) )
----
7

skipif mysql # not compatible
query I rowsort label-3788
SELECT ( - MAX ( ALL - + 7 ) )
----
7

query I rowsort
SELECT ALL + ( ( - 73 ) )
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT - - CAST( - 17 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-3790
SELECT - - CAST ( - 17 AS INTEGER )
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3791
SELECT DISTINCT + + COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT + + COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT ( - 59 ) DIV + COUNT( * ) * + - COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-3792
SELECT ( - 59 ) / + COUNT ( * ) * + - COUNT ( * )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT ALL - MAX( ALL 90 )
----
-90

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL - MAX ( ALL 90 )
----
-90

query I rowsort
SELECT ALL - ( 0 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT ALL - COUNT( * ) - 51
----
-52

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - COUNT ( * ) - 51
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL + + MIN( - + 27 ) * + - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL + + MIN ( - + 27 ) * + - COUNT ( * )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT 3 * - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3797
SELECT 3 * - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL + - ( + + 7 ) * + COUNT( * ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL + - ( + + 7 ) * + COUNT ( * ) AS col0
----
-7

query I rowsort
SELECT ALL + - 56 AS col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT + + SUM( + + 2 ) + COUNT( * ) + + 74 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT + + SUM ( + + 2 ) + COUNT ( * ) + + 74 AS col0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-3801
SELECT + COUNT( * ) + - COUNT( * ), - COUNT( * ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-3801
SELECT + COUNT ( * ) + - COUNT ( * ), - COUNT ( * ) AS col1
----
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - COUNT( * ) - + - 34 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-3802
SELECT - COUNT ( * ) - + - 34 AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3803
SELECT ALL + CAST( NULL AS SIGNED ), 1 + - - 94 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-3803
SELECT ALL + CAST ( NULL AS INTEGER ), 1 + - - 94 AS col2
----
NULL
95

query I rowsort
SELECT - ( 76 ) * + + ( + - 64 ) AS col2
----
4864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3805
SELECT - COUNT( ALL - + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3805
SELECT - COUNT ( ALL - + CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT ALL SUM( + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-3806
SELECT ALL SUM ( + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3807
SELECT ALL 0 DIV + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL 0 / + COUNT ( * ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3808
SELECT ALL - 63 DIV - 9
----
7

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - 63 / - 9
----
7

query I rowsort
SELECT DISTINCT 33 * + 16 AS col0
----
528

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT ALL - COALESCE ( + 29, + COUNT( * ) )
----
-29

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL - COALESCE ( + 29, + COUNT ( * ) )
----
-29

query I rowsort
SELECT DISTINCT - ( + ( 61 ) )
----
-61

query I rowsort
SELECT DISTINCT 43 - - 57
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT ALL - COUNT( * ) AS col2, + 63 AS col0
----
-1
63

skipif mysql # not compatible
query II rowsort label-3813
SELECT ALL - COUNT ( * ) AS col2, + 63 AS col0
----
-1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT MIN( ALL - 43 ) AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-3814
SELECT MIN ( ALL - 43 ) AS col1
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3815
SELECT ALL - 45 AS col2, COUNT( * )
----
-45
1

skipif mysql # not compatible
query II rowsort label-3815
SELECT ALL - 45 AS col2, COUNT ( * )
----
-45
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT DISTINCT - COUNT( + 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - COUNT ( + 18 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT 27 AS col0, 82 * - COUNT( * )
----
27
-82

skipif mysql # not compatible
query II rowsort label-3817
SELECT 27 AS col0, 82 * - COUNT ( * )
----
27
-82

query I rowsort
SELECT ALL + 30 + - 17 AS col1
----
13

query I rowsort
SELECT DISTINCT - 39 + + 94 AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT DISTINCT - 28 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - 28 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT + COUNT( DISTINCT 63 ) - + 64 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT + COUNT ( DISTINCT 63 ) - + 64 AS col1
----
-63

query II rowsort
SELECT ALL + 30 AS col0, - 20
----
30
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT SUM( DISTINCT ( + - 97 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-3823
SELECT SUM ( DISTINCT ( + - 97 ) ) AS col1
----
-97

query I rowsort
SELECT + 76 * 7
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT MAX( + - 15 ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-3825
SELECT MAX ( + - 15 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT - COUNT( * ) + - 47
----
-48

skipif mysql # not compatible
query I rowsort label-3826
SELECT - COUNT ( * ) + - 47
----
-48

query I rowsort
SELECT - - 37 + 38 + + - 28
----
47

query I rowsort
SELECT NULLIF ( + 11, - - 82 ) * 5
----
55

query I rowsort
SELECT + 19 * + 31 AS col1
----
589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT - COUNT( * ) DIV + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3830
SELECT - COUNT ( * ) / + COUNT ( * )
----
-1

query I rowsort
SELECT ALL + ( + + 48 ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT ALL ( - 60 ) * - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL ( - 60 ) * - COUNT ( * )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT MAX( - - 38 ) * - - COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-3833
SELECT MAX ( - - 38 ) * - - COUNT ( * ) AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3835
SELECT ALL COUNT( * ) DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL COUNT ( * ) / + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT DISTINCT - COUNT( ALL + 41 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3836
SELECT DISTINCT - COUNT ( ALL + 41 ) AS col2
----
-1

query I rowsort
SELECT ALL - - ( + 86 )
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3838
SELECT ALL - CAST( NULL AS DECIMAL ) * + + ( ( - 86 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL - CAST ( NULL AS REAL ) * + + ( ( - 86 ) )
----
NULL

query I rowsort
SELECT 94 + + 76
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT ALL 25 / - 31 * - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL 25 / - 31 * - - CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + ( + - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT DISTINCT ( + + MAX( + - 15 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT ( + + MAX ( + - 15 ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL MIN( - - ( 71 ) )
----
71

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL MIN ( - - ( 71 ) )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL 84 * - - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL 84 * - - COUNT ( * ) AS col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3845
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3845
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT CAST( + 53 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-3846
SELECT CAST ( + 53 AS INTEGER ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3847
SELECT + + COUNT( * ) DIV - COUNT( * ) + + 62
----
61

skipif mysql # not compatible
query I rowsort label-3847
SELECT + + COUNT ( * ) / - COUNT ( * ) + + 62
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT DISTINCT - 11 + + + COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT - 11 + + + COUNT ( * ) AS col2
----
-10

query I rowsort
SELECT ALL - ( - 50 ) + - ( ( - + 52 ) ) col1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT DISTINCT + COUNT( * ) - - 42
----
43

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT + COUNT ( * ) - - 42
----
43

query I rowsort
SELECT DISTINCT - 43 + - 66 AS col0
----
-109

query I rowsort
SELECT DISTINCT - - ( + 92 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT + MAX( ALL - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-3853
SELECT + MAX ( ALL - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT DISTINCT COUNT( * ) * + ( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT COUNT ( * ) * + ( - 26 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT ALL MAX( + ( + 57 ) )
----
57

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL MAX ( + ( + 57 ) )
----
57

query II rowsort
SELECT 73 AS col0, - CASE + 77 WHEN - 72 THEN - 32 END
----
73
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT - - 47 / - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT - - 47 / - + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + - ( - - 50 )
----
-50

query I rowsort
SELECT + - 79 col1
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3860
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

query II rowsort
SELECT ALL + 72 + + 44 AS col2, - 35
----
116
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3862
SELECT - MIN( ALL - CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT - MIN ( ALL - CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT + 5 - - - 58
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT ALL + MAX( ALL 76 ) * - 16 + 0
----
-1216

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + MAX ( ALL 76 ) * - 16 + 0
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT COUNT( + ( + + 76 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3865
SELECT COUNT ( + ( + + 76 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT + MAX( + 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3866
SELECT + MAX ( + 55 )
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL - 10 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL - 10 - + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + + 89, + - 91 )
----
-89

query I rowsort
SELECT DISTINCT + 12 * - 59
----
-708

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL - ( + MIN( - 68 ) ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - ( + MIN ( - 68 ) ) AS col0
----
68

query I rowsort
SELECT DISTINCT ( - 62 ) AS col0
----
-62

query II rowsort
SELECT - 79, - ( + + 76 ) AS col1
----
-79
-76

query I rowsort
SELECT + 50 * 61 AS col0
----
3050

query I rowsort
SELECT ( 76 ) AS col0
----
76

query I rowsort
SELECT ALL + 27 col0
----
27

query I rowsort
SELECT DISTINCT + ( 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT + SUM( ALL + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-3877
SELECT + SUM ( ALL + 77 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT + SUM( - + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-3878
SELECT + SUM ( - + 77 )
----
-77

query I rowsort
SELECT ALL - ( 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT + 35 * - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-3880
SELECT + 35 * - COUNT ( * )
----
-35

query I rowsort
SELECT - - ( + + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL + MAX( + NULLIF ( - - 70, + 13 ) ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL + MAX ( + NULLIF ( - - 70, + 13 ) ) AS col2
----
70

query I rowsort
SELECT 7 * - 40 AS col1
----
-280

query I rowsort
SELECT DISTINCT - ( - 67 )
----
67

query I rowsort
SELECT ALL 2 - 83 AS col1
----
-81

query II rowsort
SELECT ALL 77, 74 col0
----
77
74

query I rowsort
SELECT ( - 68 )
----
-68

query II rowsort
SELECT - + 92, 12 AS col2
----
-92
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT + ( SUM( + ( 62 ) ) ) * - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-3889
SELECT + ( SUM ( + ( 62 ) ) ) * - COUNT ( * )
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-3890
SELECT - 35 AS col1, + 55 * - COUNT( * ) AS col0
----
-35
-55

skipif mysql # not compatible
query II rowsort label-3890
SELECT - 35 AS col1, + 55 * - COUNT ( * ) AS col0
----
-35
-55

query I rowsort
SELECT + + 40 col0
----
40

query I rowsort
SELECT 66 * - 75
----
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL + COUNT( * ) + + 65 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL + COUNT ( * ) + + 65 AS col2
----
66

query I rowsort
SELECT 17 - - - 29
----
-12

query II rowsort
SELECT DISTINCT 22 col2, 58
----
22
58

query I rowsort
SELECT + + ( 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3897
SELECT - COUNT( - 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3897
SELECT - COUNT ( - 55 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3898
SELECT DISTINCT 83 - 24 + - + CAST( NULL AS DECIMAL ) / - - 7 AS col2, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3898
SELECT DISTINCT 83 - 24 + - + CAST ( NULL AS REAL ) / - - 7 AS col2, - COUNT ( * ) AS col1
----
NULL
-1

query I rowsort
SELECT - - 40 * + 10 AS col2
----
400

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT - COUNT( * ) * + 18
----
-18

skipif mysql # not compatible
query I rowsort label-3900
SELECT - COUNT ( * ) * + 18
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT + NULLIF ( + - COUNT( * ), 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-3901
SELECT + NULLIF ( + - COUNT ( * ), 59 )
----
-1

query I rowsort
SELECT - ( - + 9 ) AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3903
SELECT DISTINCT CAST( - - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT CAST ( - - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT + 64 * - 48 * - MAX( ALL ( 41 ) ) AS col1
----
125952

skipif mysql # not compatible
query I rowsort label-3904
SELECT + 64 * - 48 * - MAX ( ALL ( 41 ) ) AS col1
----
125952

query I rowsort
SELECT - ( 65 ) col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + NULLIF ( + COUNT( * ), 96 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3906
SELECT + NULLIF ( + COUNT ( * ), 96 ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT + COUNT( * ) * COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - 92 + - COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-3908
SELECT ALL - 92 + - COUNT ( * ) AS col1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3909
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), - 56 + - ( 63 ) ) + - COUNT( * ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), - 56 + - ( 63 ) ) + - COUNT ( * ) * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT COUNT( * ) + 13 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT COUNT ( * ) + 13 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT ALL 36 - + - COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL 36 - + - COUNT ( * ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT DISTINCT COUNT( ALL - - 33 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3912
SELECT DISTINCT COUNT ( ALL - - 33 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - ( SUM( ALL + 40 ) ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-3913
SELECT - ( SUM ( ALL + 40 ) ) AS col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3914
SELECT ALL CAST( - + 27 AS SIGNED ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL CAST ( - + 27 AS INTEGER ) AS col1
----
-27

query I rowsort
SELECT ( + 5 ) AS col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT + 88 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-3916
SELECT + 88 / 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT + NULLIF ( COUNT( 67 ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT + NULLIF ( COUNT ( 67 ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT 22 * - MIN( ALL - 9 )
----
198

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT 22 * - MIN ( ALL - 9 )
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + - 12 * + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-3919
SELECT + - 12 * + COUNT ( * )
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3920
SELECT DISTINCT - 67, - 91 + + 19 - ( + MAX( + CAST( NULL AS SIGNED ) ) ) AS col2
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-3920
SELECT DISTINCT - 67, - 91 + + 19 - ( + MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-67
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3921
SELECT ALL - COUNT( * ) DIV - 28 + + COUNT( * ) - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL - COUNT ( * ) / - 28 + + COUNT ( * ) - + COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3922
SELECT + 82 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT + 82 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 94 ) AS col2
----
94

query I rowsort
SELECT 55 + 39 AS col0
----
94

query I rowsort
SELECT - 60 + + + ( + 53 ) AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT ALL + 58 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL + 58 / - 96 AS col0
----
0

query I rowsort
SELECT 47 * + 16 col1
----
752

query II rowsort
SELECT DISTINCT 37 AS col1, 73
----
37
73

query II rowsort
SELECT DISTINCT + 85 AS col1, 73
----
85
73

query I rowsort
SELECT ALL + 77 + + 27 col2
----
104

query I rowsort
SELECT ALL ( + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT - ( + ( - + COUNT( * ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3932
SELECT - ( + ( - + COUNT ( * ) ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT - MAX( ALL - 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3933
SELECT - MAX ( ALL - 5 ) AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3934
SELECT ALL CAST( NULL AS SIGNED ) - - + COUNT( * ) / - 93 * - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3934
SELECT ALL CAST ( NULL AS INTEGER ) - - + COUNT ( * ) / - 93 * - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL COUNT( * ) - 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL COUNT ( * ) - 34 AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT DISTINCT - 51 * 40 - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT - 51 * 40 - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + ( 93 )
----
93

query I rowsort
SELECT DISTINCT ( + 32 ) AS col0
----
32

query I rowsort
SELECT 50 * + - 66 AS col1
----
-3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT DISTINCT 77 * + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT 77 * + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3941
SELECT 7 DIV + - 91 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT 7 / + - 91 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT - COUNT( * ) * - - 6 + + - 43 * - + MIN( 91 ) AS col0
----
3907

skipif mysql # not compatible
query I rowsort label-3942
SELECT - COUNT ( * ) * - - 6 + + - 43 * - + MIN ( 91 ) AS col0
----
3907

onlyif mysql # aggregate syntax: 
query II rowsort label-3943
SELECT ALL + + 42 + + - 55 * - - 51 AS col2, COUNT( * )
----
-2763
1

skipif mysql # not compatible
query II rowsort label-3943
SELECT ALL + + 42 + + - 55 * - - 51 AS col2, COUNT ( * )
----
-2763
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT ALL - CASE - 18 WHEN - 42 THEN NULL ELSE + 72 END + COUNT( * ) * 93
----
21

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL - CASE - 18 WHEN - 42 THEN NULL ELSE + 72 END + COUNT ( * ) * 93
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT DISTINCT - MIN( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-3945
SELECT DISTINCT - MIN ( - 72 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT ALL - 4 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL - 4 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + + ( - - 12 ) * 67
----
804

query I rowsort
SELECT + 35 + + + ( - + 70 ) AS col0
----
-35

query I rowsort
SELECT ALL + 23 - + 20
----
3

query II rowsort
SELECT ALL 92, - 51 AS col2
----
92
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL MAX( DISTINCT - ( + 27 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL MAX ( DISTINCT - ( + 27 ) )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3952
SELECT - COALESCE ( + COUNT( * ), + 67 ), 19 AS col1
----
-1
19

skipif mysql # not compatible
query II rowsort label-3952
SELECT - COALESCE ( + COUNT ( * ), + 67 ), 19 AS col1
----
-1
19

query I rowsort
SELECT - + 90 col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT - - 13 * + - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-3954
SELECT - - 13 * + - COUNT ( * )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT ALL + + COUNT( DISTINCT + 36 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + + COUNT ( DISTINCT + 36 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 84 * - + 71 + + + 56
----
-5908

query I rowsort
SELECT ALL - 59 * + + 11 AS col0
----
-649

query I rowsort
SELECT ALL + 96 * 55 + + 3
----
5283

query I rowsort
SELECT ALL - + 41 col0
----
-41

query I rowsort
SELECT ALL 0 + 68
----
68

query I rowsort
SELECT DISTINCT + 28 + - - 90 AS col2
----
118

query I rowsort
SELECT ALL - 77 + - - 72
----
-5

query II rowsort
SELECT 10, 72 AS col2
----
10
72

query I rowsort
SELECT ALL - ( - 39 )
----
39

query I rowsort
SELECT 24 * + + 87
----
2088

query I rowsort
SELECT COALESCE ( ( + 85 ), 92 ) col2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3967
SELECT DISTINCT 1, 22 * - - CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3967
SELECT DISTINCT 1, 22 * - - CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT + 6 + + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-3968
SELECT + 6 + + COUNT ( * ) AS col1
----
7

query I rowsort
SELECT - - 40 * 61
----
2440

query I rowsort
SELECT - - 26 col1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3971
SELECT MIN( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3971
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3972
SELECT CAST( + 29 AS SIGNED )
----
29

skipif mysql # not compatible
query I rowsort label-3972
SELECT CAST ( + 29 AS INTEGER )
----
29

query I rowsort
SELECT 59 * - 20 + - + 37 AS col1
----
-1217

query I rowsort
SELECT DISTINCT + 45 + - 68
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3975
SELECT DISTINCT - CAST( + + COUNT( DISTINCT 19 ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT - CAST ( + + COUNT ( DISTINCT 19 ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT + COUNT( * ) + + 68 DIV + 32 col0
----
3

skipif mysql # not compatible
query I rowsort label-3976
SELECT + COUNT ( * ) + + 68 / + 32 col0
----
3

query I rowsort
SELECT 88 * 80
----
7040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3978
SELECT ALL - 51 * CAST( - 34 AS SIGNED )
----
1734

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL - 51 * CAST ( - 34 AS INTEGER )
----
1734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3979
SELECT CAST( + COUNT( * ) AS SIGNED ) - - 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-3979
SELECT CAST ( + COUNT ( * ) AS INTEGER ) - - 55 AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT + + 2 - CAST( + COUNT( * ) AS SIGNED ) * - 44
----
46

skipif mysql # not compatible
query I rowsort label-3980
SELECT + + 2 - CAST ( + COUNT ( * ) AS INTEGER ) * - 44
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3981
SELECT - COUNT( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT - COUNT ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT DISTINCT + 83 DIV + 76 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3982
SELECT DISTINCT + 83 / + 76 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL COUNT( + 84 )
----
1

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL COUNT ( + 84 )
----
1

query I rowsort
SELECT ALL 99 * - + 32 AS col1
----
-3168

query I rowsort
SELECT - ( - 3 ) AS col0
----
3

query I rowsort
SELECT ALL + + ( + - 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT DISTINCT + + MIN( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT + + MIN ( + 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3988
SELECT + ( + MAX( DISTINCT CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT + ( + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) )
----
NULL

query II rowsort
SELECT + 89 col0, 11 col0
----
89
11

query I rowsort
SELECT - - 29 * + - 67
----
-1943

query I rowsort
SELECT ALL + 24 * 58 col2
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT ( + COUNT( * ) ) * + + 94 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3992
SELECT ( + COUNT ( * ) ) * + + 94 AS col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + COUNT( - 71 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3993
SELECT + COUNT ( - 71 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL - ( - - 87 ) + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL - ( - - 87 ) + - COUNT ( * )
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT - 99 DIV 38
----
-2

skipif mysql # not compatible
query I rowsort label-3995
SELECT - 99 / 38
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT 35 * - 53 + - COUNT( * )
----
-1856

skipif mysql # not compatible
query I rowsort label-3996
SELECT 35 * - 53 + - COUNT ( * )
----
-1856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) * - + 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) * - + 64 AS col1
----
64

query II rowsort
SELECT ALL 32 AS col1, - 88 AS col2
----
32
-88

query I rowsort
SELECT - NULLIF ( 36, 5 ) col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4000
SELECT - - 4 AS col1, CAST( - 54 AS DECIMAL ) * - 24 * + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) col2
----
4
NULL

skipif mysql # not compatible
query II rowsort label-4000
SELECT - - 4 AS col1, CAST ( - 54 AS REAL ) * - 24 * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) col2
----
4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + COUNT( * ) - + 57 + + 41 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-4001
SELECT + COUNT ( * ) - + 57 + + 41 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-4002
SELECT COUNT( - - 4 ) AS col2, + 97
----
1
97

skipif mysql # not compatible
query II rowsort label-4002
SELECT COUNT ( - - 4 ) AS col2, + 97
----
1
97

query I rowsort
SELECT + 45 + + 86 AS col1
----
131

query I rowsort
SELECT - ( + - 52 ) AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) * 12 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) * 12 AS col2
----
-12

query II rowsort
SELECT 68 * - - 61 AS col1, 51 AS col2
----
4148
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT ALL - COALESCE ( - + 54, + CAST( NULL AS SIGNED ) ) AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL - COALESCE ( - + 54, + CAST ( NULL AS INTEGER ) ) AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4008
SELECT ( - - COUNT( * ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT ( - - COUNT ( * ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 58 + 89 col0
----
147

query I rowsort
SELECT + 70 + 60 col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT ALL COUNT( * ) * - COUNT( * ) - - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL COUNT ( * ) * - COUNT ( * ) - - COUNT ( * )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT ALL - 7 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - 7 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT + COUNT( * ) * ( - 72 ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-4013
SELECT + COUNT ( * ) * ( - 72 ) col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4014
SELECT DISTINCT - COUNT( * ) + + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4014
SELECT DISTINCT - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - - 42 AS col1
----
42

query I rowsort
SELECT ALL ( + + 65 ) AS col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT ALL + CAST( 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + CAST ( 68 AS INTEGER )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT CAST( 63 AS SIGNED )
----
63

skipif mysql # not compatible
query I rowsort label-4018
SELECT CAST ( 63 AS INTEGER )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT 52 + + + MAX( DISTINCT - + 15 ) * COUNT( * ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-4019
SELECT 52 + + + MAX ( DISTINCT - + 15 ) * COUNT ( * ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4020
SELECT ALL + CAST( NULL AS SIGNED ) + - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL + CAST ( NULL AS INTEGER ) + - 24 AS col2
----
NULL

query I rowsort
SELECT 77 * + - COALESCE ( - 18, - 88 ) AS col2
----
1386

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL + 42 * + 63 * + ( COUNT( * ) )
----
2646

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + 42 * + 63 * + ( COUNT ( * ) )
----
2646

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT + COUNT( * ) * - 99 * - 51 AS col1
----
5049

skipif mysql # not compatible
query I rowsort label-4023
SELECT + COUNT ( * ) * - 99 * - 51 AS col1
----
5049

query I rowsort
SELECT ALL 88 + 9
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT 12 * - COUNT( * ) * ( + 36 ) * + COUNT( * )
----
-432

skipif mysql # not compatible
query I rowsort label-4025
SELECT 12 * - COUNT ( * ) * ( + 36 ) * + COUNT ( * )
----
-432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4026
SELECT + - CAST( - 1 AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4026
SELECT + - CAST ( - 1 AS INTEGER ) AS col0
----
1

query II rowsort
SELECT DISTINCT + + 86, - 29 AS col2
----
86
-29

query I rowsort
SELECT - 73 * - 99
----
7227

query I rowsort
SELECT ALL + + ( 14 ) AS col1
----
14

query I rowsort
SELECT ALL + + 24 * + 88
----
2112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4031
SELECT DISTINCT - 17, + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4031
SELECT DISTINCT - 17, + CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2
----
-17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT DISTINCT + AVG ( + 78 ) / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT + AVG ( + 78 ) / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT + MAX( ALL - + 43 )
----
-43

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT + MAX ( ALL - + 43 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - + SUM( ALL - 33 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-4034
SELECT - + SUM ( ALL - 33 ) AS col2
----
33

query I rowsort
SELECT + 33 + 55 - 90
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT + COUNT( * ) - - 8 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + COUNT ( * ) - - 8 AS col1
----
9

query I rowsort
SELECT ALL - 73 * 85
----
-6205

query I rowsort
SELECT ( 74 ) AS col1
----
74

query II rowsort
SELECT + - 2 AS col0, + 68 + 34 AS col0
----
-2
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT + COUNT( * ) * - 3 * + COALESCE ( - MIN( + 17 ), 16 ) - + 94 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4040
SELECT + COUNT ( * ) * - 3 * + COALESCE ( - MIN ( + 17 ), 16 ) - + 94 AS col0
----
-43

query I rowsort
SELECT DISTINCT 17 * + 86 * 14
----
20468

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT + COUNT( * ) * + + 99 + + 49 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-4042
SELECT + COUNT ( * ) * + + 99 + + 49 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT ALL 76 * + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL 76 * + COUNT ( * )
----
76

query I rowsort
SELECT - 33 - - 0 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT COUNT( - + 53 )
----
1

skipif mysql # not compatible
query I rowsort label-4045
SELECT COUNT ( - + 53 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + 2 * - ( - + COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-4046
SELECT + 2 * - ( - + COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4047
SELECT - SUM( - - CAST( NULL AS SIGNED ) ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4047
SELECT - SUM ( - - CAST ( NULL AS INTEGER ) ) + + 21
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT - SUM( + NULLIF ( - COALESCE ( - 47, - 58 ), - - 64 + - CAST( NULL AS SIGNED ) ) ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-4048
SELECT - SUM ( + NULLIF ( - COALESCE ( - 47, - 58 ), - - 64 + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-47

query I rowsort
SELECT + NULLIF ( 89, 79 ) AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4050
SELECT ALL - COUNT( * ) DIV - 3
----
0

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL - COUNT ( * ) / - 3
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT ALL - 5 + + SUM( - 87 ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL - 5 + + SUM ( - 87 ) col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT COUNT( * ) * - 72 AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4052
SELECT COUNT ( * ) * - 72 AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL - 46 * - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL - 46 * - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT DISTINCT + - 34 * - 72
----
2448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT + NULLIF ( CAST( NULL AS SIGNED ), + MAX( ALL + - CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT + NULLIF ( CAST ( NULL AS INTEGER ), + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT ALL - SUM( + 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - SUM ( + 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT + 47 * + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-4057
SELECT + 47 * + COUNT ( * )
----
47

query I rowsort
SELECT NULLIF ( + - 19, 19 ) AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4059
SELECT DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT - - 71 DIV + 22 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4060
SELECT - - 71 / + 22 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT DISTINCT + 44 + - + COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + 44 + - + COUNT ( * ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT ALL COUNT( * ) * ( - 66 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL COUNT ( * ) * ( - 66 ) AS col0
----
-66

query I rowsort
SELECT DISTINCT + - 53 AS col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + COUNT( * ) + 3 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-4064
SELECT + COUNT ( * ) + 3 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT - CAST( - 92 AS SIGNED ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - CAST ( - 92 AS INTEGER ) AS col0
----
92

query I rowsort
SELECT ( 30 ) * - + 23
----
-690

query I rowsort
SELECT 49 + 9 col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT MIN( ALL - 55 ) + + 28
----
-27

skipif mysql # not compatible
query I rowsort label-4068
SELECT MIN ( ALL - 55 ) + + 28
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT 94 + 28 - + + COUNT( * )
----
121

skipif mysql # not compatible
query I rowsort label-4069
SELECT 94 + 28 - + + COUNT ( * )
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT + 92 DIV - + 78 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4070
SELECT + 92 / - + 78 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4071
SELECT + 56 DIV + - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4071
SELECT + 56 / + - COUNT ( * ) AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4072
SELECT ALL + 43 DIV COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + 43 / COUNT ( * )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT DISTINCT + + CAST( + 61 AS SIGNED )
----
61

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + + CAST ( + 61 AS INTEGER )
----
61

query I rowsort
SELECT DISTINCT + + 29 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4075
SELECT + COUNT( * ) * + - 48 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4075
SELECT + COUNT ( * ) * + - 48 AS col2
----
-48

query I rowsort
SELECT - ( + 39 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - SUM( - ( - 78 ) ) + 3 - 19
----
-94

skipif mysql # not compatible
query I rowsort label-4077
SELECT - SUM ( - ( - 78 ) ) + 3 - 19
----
-94

query II rowsort
SELECT 41 AS col1, - 91 * + 1 col1
----
41
-91

query I rowsort
SELECT DISTINCT + 14 + + - 11 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + - ( COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4080
SELECT + - ( COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT 59 * + 61
----
3599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT DISTINCT - 80 + + CAST( 7 AS SIGNED ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - 80 + + CAST ( 7 AS INTEGER ) AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL 81 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL 81 * - COUNT ( * )
----
-81

query I rowsort
SELECT 45 * 36 * + 57 AS col2
----
92340

query I rowsort
SELECT - 69 * 10 AS col0
----
-690

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT MIN( + ( - - 44 ) )
----
44

skipif mysql # not compatible
query I rowsort label-4086
SELECT MIN ( + ( - - 44 ) )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT 90 * COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4087
SELECT 90 * COUNT ( * )
----
90

query I rowsort
SELECT - 1 + + + 54 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT - MIN( ALL + + 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-4089
SELECT - MIN ( ALL + + 24 )
----
-24

query I rowsort
SELECT - + 49 * 1 AS col2
----
-49

query I rowsort
SELECT ALL - 10 * + - 2 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - SUM( DISTINCT + 53 ) col0
----
-53

skipif mysql # not compatible
query I rowsort label-4092
SELECT - SUM ( DISTINCT + 53 ) col0
----
-53

query I rowsort
SELECT DISTINCT NULLIF ( - 19, - 37 ) AS col2
----
-19

query I rowsort
SELECT DISTINCT + ( + 90 )
----
90

query I rowsort
SELECT + ( 76 ) AS col1
----
76

query I rowsort
SELECT + ( + 16 ) AS col1
----
16

query I rowsort
SELECT ( + + 67 ) AS col1
----
67

query I rowsort
SELECT 83 * + 61 col1
----
5063

query I rowsort
SELECT ALL - - 77 AS col1
----
77

query II rowsort
SELECT DISTINCT 5 AS col2, + 56 * + 54
----
5
3024

query I rowsort
SELECT ( + 6 ) * - + 39
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT - ( 62 ) DIV - + COUNT( * ) col2
----
62

skipif mysql # not compatible
query I rowsort label-4102
SELECT - ( 62 ) / - + COUNT ( * ) col2
----
62

query I rowsort
SELECT - ( - 27 ) - + 75 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT + 11 + + + COUNT( * ) + - 29 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4104
SELECT + 11 + + + COUNT ( * ) + - 29 AS col1
----
-17

query I rowsort
SELECT ALL ( + 75 ) col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT DISTINCT CAST( + + 19 AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT CAST ( + + 19 AS INTEGER ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL MIN( ALL + 91 )
----
91

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL MIN ( ALL + 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT + ( COUNT( * ) ) + 68
----
69

skipif mysql # not compatible
query I rowsort label-4108
SELECT + ( COUNT ( * ) ) + 68
----
69

query I rowsort
SELECT ALL + ( 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT ALL COUNT( * ) + + ( - ( + + 50 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-4110
SELECT ALL COUNT ( * ) + + ( - ( + + 50 ) )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT ALL + COUNT( * ) + - 77 * - + CAST( + 74 AS SIGNED )
----
5699

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL + COUNT ( * ) + - 77 * - + CAST ( + 74 AS INTEGER )
----
5699

query I rowsort
SELECT ALL - 45 + 42 AS col0
----
-3

query I rowsort
SELECT ( 95 ) + - 88
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL - 28 + + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - 28 + + COUNT ( * ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT DISTINCT SUM( - ( - 26 ) )
----
26

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT SUM ( - ( - 26 ) )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4116
SELECT ALL - CAST( ( COUNT( * ) ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - CAST ( ( COUNT ( * ) ) AS INTEGER )
----
-1

query I rowsort
SELECT DISTINCT 76 + 14 col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT DISTINCT 40 + - COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT 40 + - COUNT ( * ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - NULLIF ( 18, + 39 + COUNT( * ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4119
SELECT - NULLIF ( 18, + 39 + COUNT ( * ) ) AS col2
----
-18

query I rowsort
SELECT DISTINCT 4 + + 9
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT - COALESCE ( - 48, 4 * CAST( - COUNT( * ) AS SIGNED ) )
----
48

skipif mysql # not compatible
query I rowsort label-4121
SELECT - COALESCE ( - 48, 4 * CAST ( - COUNT ( * ) AS INTEGER ) )
----
48

query I rowsort
SELECT ALL - 96 + 63
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL + + ( + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL + + ( + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT - CAST( - 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-4124
SELECT - CAST ( - 23 AS INTEGER )
----
23

query I rowsort
SELECT ALL + - 20 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT DISTINCT + COUNT( * ) * - 31
----
-31

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + COUNT ( * ) * - 31
----
-31

query I rowsort
SELECT ALL ( - - 54 ) - - 82 AS col2
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + COUNT( ALL + 99 ) * 49
----
49

skipif mysql # not compatible
query I rowsort label-4128
SELECT + COUNT ( ALL + 99 ) * 49
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4129
SELECT ALL 22 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL 22 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 80 + - - 4
----
84

query I rowsort
SELECT 18 - - 88 AS col2
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT DISTINCT 86 AS col2, + COUNT( * )
----
86
1

skipif mysql # not compatible
query II rowsort label-4132
SELECT DISTINCT 86 AS col2, + COUNT ( * )
----
86
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT ALL - SUM( ALL 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL - SUM ( ALL 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - SUM( - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4134
SELECT - SUM ( - 70 )
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4135
SELECT ALL - COUNT( * ) DIV SUM( ( 11 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL - COUNT ( * ) / SUM ( ( 11 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * 30 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * 30 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4137
SELECT ALL COUNT( * ) * + 79 DIV - - COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL COUNT ( * ) * + 79 / - - COUNT ( * ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT SUM( - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4138
SELECT SUM ( - 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT ALL + COUNT( * ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL + COUNT ( * ) + + 76
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT + + 37 * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4140
SELECT + + 37 * COUNT ( * )
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4141
SELECT DISTINCT 16 * + SUM( - + CAST( NULL AS SIGNED ) ) - - + 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT 16 * + SUM ( - + CAST ( NULL AS INTEGER ) ) - - + 76 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4142
SELECT - MIN( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4143
SELECT - ( + MIN( ALL CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT - ( + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - 64 * 77 AS col1
----
-4928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT ALL + CAST( + + 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL + CAST ( + + 40 AS INTEGER )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4146
SELECT + CAST( NULL AS SIGNED ) / + 43 * - - 67 + - - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT + CAST ( NULL AS INTEGER ) / + 43 * - - 67 + - - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT CAST( + 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-4147
SELECT CAST ( + 80 AS INTEGER )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL ( + 49 ) * - - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL ( + 49 ) * - - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4149
SELECT DISTINCT + 95 DIV - COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT + 95 / - COUNT ( * ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT 70 + + + COUNT( * ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-4150
SELECT 70 + + + COUNT ( * ) AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT - MIN( DISTINCT - 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT - MIN ( DISTINCT - 70 ) AS col0
----
70

query I rowsort
SELECT DISTINCT - 88 * - - 60 * + 7 AS col2
----
-36960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4153
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT + COUNT( + - 65 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4154
SELECT + COUNT ( + - 65 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT COUNT( * ) * - 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT COUNT ( * ) * - 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT - NULLIF ( + COUNT( * ), + 81 * + COUNT( * ) + 92 * + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4156
SELECT - NULLIF ( + COUNT ( * ), + 81 * + COUNT ( * ) + 92 * + COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL + COALESCE ( + 81, - 64 + 6 )
----
81

query I rowsort
SELECT DISTINCT - 32 * - 7 + - 52
----
172

query I rowsort
SELECT - + 98 * - 98
----
9604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4160
SELECT - NULLIF ( + 64, MIN( DISTINCT - 86 ) / CAST( NULL AS SIGNED ) )
----
-64

skipif mysql # not compatible
query I rowsort label-4160
SELECT - NULLIF ( + 64, MIN ( DISTINCT - 86 ) / CAST ( NULL AS INTEGER ) )
----
-64

query I rowsort
SELECT DISTINCT ( + 45 ) AS col1
----
45

query I rowsort
SELECT - NULLIF ( + 62, 74 )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT + 50 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT + 50 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( + 53 )
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4165
SELECT DISTINCT - 30 * - CAST( NULL AS DECIMAL ) + - - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT - 30 * - CAST ( NULL AS REAL ) + - - 21
----
NULL

query I rowsort
SELECT ( 65 ) AS col0
----
65

query I rowsort
SELECT 43 - + 97 col0
----
-54

query I rowsort
SELECT ALL 44 - + 64 AS col0
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT 12 DIV - 43 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4169
SELECT 12 / - 43 - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4170
SELECT ALL 8 DIV + COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL 8 / + COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + - ( - COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4171
SELECT + - ( - COUNT ( * ) ) col0
----
1

query I rowsort
SELECT ALL + 27 + + 23
----
50

query I rowsort
SELECT 71 * - 13
----
-923

query I rowsort
SELECT ( + 53 ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4175
SELECT MIN( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4175
SELECT MIN ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4176
SELECT + CAST( - ( 49 ) AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-4176
SELECT + CAST ( - ( 49 ) AS INTEGER )
----
-49

query II rowsort
SELECT ALL - 34 AS col0, + 63 * + 88 AS col1
----
-34
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + MAX( ALL - 48 ) + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-4178
SELECT + MAX ( ALL - 48 ) + - COUNT ( * )
----
-49

query I rowsort
SELECT + 91 - + 29 AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4180
SELECT DISTINCT + CAST( + + 72 AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + CAST ( + + 72 AS INTEGER ) AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4181
SELECT ALL CAST( - 83 AS SIGNED ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL CAST ( - 83 AS INTEGER ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL MIN( - 82 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL MIN ( - 82 ) col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + ( + - 66 ) + - COUNT( * ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-4183
SELECT + ( + - 66 ) + - COUNT ( * ) col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT ALL MIN( ALL 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL MIN ( ALL 4 )
----
4

query I rowsort
SELECT ALL 79 + + 34
----
113

query I rowsort
SELECT DISTINCT - - 37 AS col0
----
37

query I rowsort
SELECT 12 * + 1
----
12

query I rowsort
SELECT + 2 * 51
----
102

query I rowsort
SELECT ( 92 ) * 98 AS col1
----
9016

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL - 91 + + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL - 91 + + COUNT ( * )
----
-90

query I rowsort
SELECT - 44 + - 55 AS col1
----
-99

query I rowsort
SELECT - - 26 * 52 AS col2
----
1352

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT + MIN( DISTINCT + - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT + MIN ( DISTINCT + - 26 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4194
SELECT + COUNT( * ) col2, CAST( NULL AS SIGNED ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4194
SELECT + COUNT ( * ) col2, CAST ( NULL AS INTEGER ) AS col0
----
1
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4195
SELECT ALL 69 * + CAST( NULL AS SIGNED ) / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL 69 * + CAST ( NULL AS INTEGER ) / + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + + ( - 72 ) * + 47 AS col1
----
-3384

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - SUM( DISTINCT - 49 ) + - 90
----
-41

skipif mysql # not compatible
query I rowsort label-4197
SELECT - SUM ( DISTINCT - 49 ) + - 90
----
-41

query I rowsort
SELECT DISTINCT 61 * 84 * 82 AS col1
----
420168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4199
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4200
SELECT ALL - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4201
SELECT ALL CAST( NULL AS SIGNED ) * - + 11 * 65 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL CAST ( NULL AS INTEGER ) * - + 11 * 65 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT DISTINCT COUNT( * ) + 16
----
17

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT COUNT ( * ) + 16
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4203
SELECT AVG ( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT MAX( + CAST( NULL AS SIGNED ) ) + + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) + + - 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT ALL - 36 * COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - 36 * COUNT ( * )
----
-36

query I rowsort
SELECT 6 + + - 18 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT COUNT( + 30 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4207
SELECT COUNT ( + 30 ) col1
----
1

query I rowsort
SELECT - - 98 * - + 13
----
-1274

query I rowsort
SELECT + ( + 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT - ( ( + + COUNT( DISTINCT - - 13 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4210
SELECT - ( ( + + COUNT ( DISTINCT - - 13 ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT - ( SUM( + 40 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-4211
SELECT - ( SUM ( + 40 ) )
----
-40

query I rowsort
SELECT - ( + - 23 )
----
23

query I rowsort
SELECT + 91 * - + 5
----
-455

query I rowsort
SELECT + ( - 34 ) AS col1
----
-34

query I rowsort
SELECT ALL + - 25 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT + + COUNT( * ) * 66
----
66

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT + + COUNT ( * ) * 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT COUNT( - - 61 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4217
SELECT COUNT ( - - 61 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT 12 * + COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4218
SELECT 12 * + COUNT ( * ) AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4219
SELECT DISTINCT 84 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT 84 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL - 18 + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL - 18 + - COUNT ( * )
----
-19

query I rowsort
SELECT DISTINCT 18 - 32 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT + 6 * - MAX( ALL + 9 )
----
-54

skipif mysql # not compatible
query I rowsort label-4222
SELECT + 6 * - MAX ( ALL + 9 )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + - MIN( + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4223
SELECT + - MIN ( + 1 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL - ( - SUM( + ( - 7 ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - ( - SUM ( + ( - 7 ) ) )
----
-7

query II rowsort
SELECT 71 AS col2, - 60 AS col2
----
71
-60

query I rowsort
SELECT DISTINCT 86 + 41 AS col0
----
127

query II rowsort
SELECT DISTINCT 2 AS col1, - 63
----
2
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - COUNT( + 11 )
----
-1

skipif mysql # not compatible
query I rowsort label-4228
SELECT - COUNT ( + 11 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT - - 50 + - CAST( NULL AS SIGNED ) + + AVG ( ALL + 3 ) * + + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-4229
SELECT - - 50 + - CAST ( NULL AS INTEGER ) + + AVG ( ALL + 3 ) * + + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT - 64 * + - COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4230
SELECT - 64 * + - COUNT ( * ) AS col2
----
64

query I rowsort
SELECT + + ( + 15 ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT + MAX( 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4232
SELECT + MAX ( 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4233
SELECT ALL ( + COUNT( * ) ) DIV 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL ( + COUNT ( * ) ) / 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL + 73 * 26 * COUNT( * ) + + - COUNT( * ) col0
----
1897

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + 73 * 26 * COUNT ( * ) + + - COUNT ( * ) col0
----
1897

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4235
SELECT - CAST( + - 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4235
SELECT - CAST ( + - 96 AS INTEGER ) AS col0
----
96

query I rowsort
SELECT - NULLIF ( 22, 93 )
----
-22

query II rowsort
SELECT + - COALESCE ( - - 47, - ( + 11 ) ), - 74 col0
----
-47
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-4238
SELECT DISTINCT - 82 + ( 62 ) DIV - - 23
----
-80

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT - 82 + ( 62 ) / - - 23
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT ALL - CAST( - 44 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL - CAST ( - 44 AS INTEGER )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT + COUNT( * ) + 32 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4240
SELECT + COUNT ( * ) + 32 AS col1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT - 82 DIV + 16
----
-5

skipif mysql # not compatible
query I rowsort label-4241
SELECT - 82 / + 16
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT 54 * COUNT( * ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-4242
SELECT 54 * COUNT ( * ) AS col0
----
54

query II rowsort
SELECT 24 AS col2, - 7 AS col0
----
24
-7

query II rowsort
SELECT 16 AS col2, 86
----
16
86

query II rowsort
SELECT 63 AS col2, - 37
----
63
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4246
SELECT ALL 75 DIV COUNT( * ) col2
----
75

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL 75 / COUNT ( * ) col2
----
75

query I rowsort
SELECT + ( 90 ) AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT COALESCE ( - 70, - - COUNT( * ) )
----
-70

skipif mysql # not compatible
query I rowsort label-4248
SELECT COALESCE ( - 70, - - COUNT ( * ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT + COALESCE ( + COUNT( * ), - 75, - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-4249
SELECT + COALESCE ( + COUNT ( * ), - 75, - 23 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - - COUNT( * ) + - + 47 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4250
SELECT - - COUNT ( * ) + - + 47 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4251
SELECT - COUNT( * ) DIV CAST( - 60 AS SIGNED ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT - COUNT ( * ) / CAST ( - 60 AS INTEGER ) col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4252
SELECT + COALESCE ( - - 81, - 53 ) + - COUNT( * ) DIV - + 46
----
81

skipif mysql # not compatible
query I rowsort label-4252
SELECT + COALESCE ( - - 81, - 53 ) + - COUNT ( * ) / - + 46
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) * - 21 AS col1
----
1
-21

skipif mysql # not compatible
query II rowsort label-4253
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) * - 21 AS col1
----
1
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 20
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT ALL 79 DIV COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL 79 / COUNT ( * )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT ALL - SUM( ALL - + 27 ) - - 20 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL - SUM ( ALL - + 27 ) - - 20 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - SUM( - - 69 ) + + - COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-4257
SELECT - SUM ( - - 69 ) + + - COUNT ( * ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4258
SELECT ALL + COUNT( * ) * - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4259
SELECT + 16 DIV + CAST( + 98 AS SIGNED ) + ( + + 59 ) AS col2
----
59

skipif mysql # not compatible
query I rowsort label-4259
SELECT + 16 / + CAST ( + 98 AS INTEGER ) + ( + + 59 ) AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT DISTINCT + COUNT( + - 18 ) * 29 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT + COUNT ( + - 18 ) * 29 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL + COUNT( ALL 75 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL + COUNT ( ALL 75 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT DISTINCT - + COUNT( * ) DIV - ( - ( 20 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT - + COUNT ( * ) / - ( - ( 20 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT ALL COUNT( * ) + + 27
----
28

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL COUNT ( * ) + + 27
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-4264
SELECT DISTINCT 94, COUNT( * ) AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-4264
SELECT DISTINCT 94, COUNT ( * ) AS col0
----
94
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL MIN( ALL + 55 ) + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL MIN ( ALL + 55 ) + + COUNT ( * )
----
56

query I rowsort
SELECT ( + + 48 ) AS col2
----
48

query I rowsort
SELECT DISTINCT + - 71 AS col1
----
-71

query II rowsort
SELECT ALL + ( - - 34 ), 17 AS col2
----
34
17

query II rowsort
SELECT ALL + 39, 10 AS col0
----
39
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT + 25 + - MAX( + 45 )
----
-20

skipif mysql # not compatible
query I rowsort label-4270
SELECT + 25 + - MAX ( + 45 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4271
SELECT - - CAST( NULL AS SIGNED ) + + 85 + + 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT - - CAST ( NULL AS INTEGER ) + + 85 + + 18 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4272
SELECT ALL CAST( - 50 AS SIGNED ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL CAST ( - 50 AS INTEGER ) AS col0
----
-50

query I rowsort
SELECT + 33 - 63 * - + 76
----
4821

query I rowsort
SELECT ALL - ( - 23 )
----
23

query I rowsort
SELECT + - COALESCE ( + + 35, - 17 + + + 96 )
----
-35

query I rowsort
SELECT DISTINCT - 51 + + 85 AS col0
----
34

query I rowsort
SELECT DISTINCT - 57 * + 38
----
-2166

query II rowsort
SELECT - 28 AS col2, - 14 AS col0
----
-28
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT 94 DIV 84
----
1

skipif mysql # not compatible
query I rowsort label-4279
SELECT 94 / 84
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - COUNT( * ) * - 13 + + - COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-4280
SELECT - COUNT ( * ) * - 13 + + - COUNT ( * )
----
12

query I rowsort
SELECT 69 + - - 95 AS col1
----
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT - COALESCE ( - 79, COUNT( * ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4282
SELECT - COALESCE ( - 79, COUNT ( * ) ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT + + 14 * + + 85 + COUNT( * ) AS col0
----
1191

skipif mysql # not compatible
query I rowsort label-4284
SELECT + + 14 * + + 85 + COUNT ( * ) AS col0
----
1191

query I rowsort
SELECT ALL + 14 col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT ALL SUM( + 53 )
----
53

skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL SUM ( + 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT - - COUNT( * ) + MAX( - 75 ) col0
----
-74

skipif mysql # not compatible
query I rowsort label-4287
SELECT - - COUNT ( * ) + MAX ( - 75 ) col0
----
-74

query I rowsort
SELECT ALL + + 88 col2
----
88

query I rowsort
SELECT - 62 + 45
----
-17

query I rowsort
SELECT DISTINCT 72 * 99
----
7128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT - CAST( - 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-4291
SELECT - CAST ( - 40 AS INTEGER )
----
40

query I rowsort
SELECT - 12 + + + 11
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT 62 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT 62 / + 89
----
0

query I rowsort
SELECT ALL - 52 col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4295
SELECT ALL - 68 DIV COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL - 68 / COUNT ( * ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL - ( + - 75 ) * + COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - ( + - 75 ) * + COUNT ( * ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4297
SELECT + COALESCE ( + + 7, SUM( - + CAST( NULL AS SIGNED ) ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4297
SELECT + COALESCE ( + + 7, SUM ( - + CAST ( NULL AS INTEGER ) ) ) AS col2
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT + 15 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT + 15 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( - 2, + 5 )
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4300
SELECT - - CAST( NULL AS DECIMAL ) + - + 42 + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT - - CAST ( NULL AS REAL ) + - + 42 + - 45 AS col0
----
NULL

query I rowsort
SELECT 7 + - - 82 col0
----
89

query I rowsort
SELECT 28 + + 30 AS col1
----
58

query I rowsort
SELECT - - ( 1 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT ALL - + MIN( + 80 ) * + 36 AS col2
----
-2880

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - + MIN ( + 80 ) * + 36 AS col2
----
-2880

query I rowsort
SELECT + 94 - - 84 AS col0
----
178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT - AVG ( ( - + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT - AVG ( ( - + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4307
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) - 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) - 42 AS col2
----
NULL

query I rowsort
SELECT - ( + ( - - 84 ) ) AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4309
SELECT - COUNT( * ) DIV - COALESCE ( - 21, + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT - COUNT ( * ) / - COALESCE ( - 21, + - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4310
SELECT + ( 72 ) AS col0, COUNT( * ) col2
----
72
1

skipif mysql # not compatible
query II rowsort label-4310
SELECT + ( 72 ) AS col0, COUNT ( * ) col2
----
72
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT COUNT( * ) AS col0, + 99 * + 95 + 91
----
1
9496

skipif mysql # not compatible
query II rowsort label-4311
SELECT COUNT ( * ) AS col0, + 99 * + 95 + 91
----
1
9496

query I rowsort
SELECT - 96 - - 14
----
-82

query I rowsort
SELECT - 13 * + 16 * + - 29
----
6032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT + COUNT( * ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT - MIN( 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4315
SELECT - MIN ( 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT ALL + 13 + - COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + 13 + - COUNT ( * ) AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT + CAST( NULL AS SIGNED ) * - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT + CAST ( NULL AS INTEGER ) * - 24 AS col2
----
NULL

query I rowsort
SELECT - 27 * + ( - + 35 ) AS col0
----
945

query II rowsort
SELECT ALL - 38 AS col2, + 57
----
-38
57

query I rowsort
SELECT DISTINCT + 92 * + 96
----
8832

query I rowsort
SELECT DISTINCT - + 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT 17 - - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-4322
SELECT 17 - - COUNT ( * )
----
18

query I rowsort
SELECT ALL - 40 * - + 13 AS col2
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT - 13 AS col1, + COUNT( * ) col0
----
-13
1

skipif mysql # not compatible
query II rowsort label-4324
SELECT - 13 AS col1, + COUNT ( * ) col0
----
-13
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT - 30 + + NULLIF ( + - CAST( NULL AS SIGNED ), 74 / CAST( NULL AS SIGNED ) ) * - 17 + - - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4325
SELECT - 30 + + NULLIF ( + - CAST ( NULL AS INTEGER ), 74 / CAST ( NULL AS INTEGER ) ) * - 17 + - - 22
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS SIGNED ) + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + 53 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 19 ) AS col1
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT DISTINCT + CAST( 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT + CAST ( 20 AS INTEGER )
----
20

query I rowsort
SELECT - ( 4 ) col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT ALL + CASE + MIN( + + 6 ) WHEN - - 94 * 26 THEN NULL ELSE + ( 6 ) + + 5 END
----
11

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + CASE + MIN ( + + 6 ) WHEN - - 94 * 26 THEN NULL ELSE + ( 6 ) + + 5 END
----
11

onlyif mysql # aggregate syntax: 
query III rowsort label-4331
SELECT DISTINCT - ( - COUNT( * ) ), COUNT( * ), + 65 AS col1
----
1
1
65

skipif mysql # not compatible
query III rowsort label-4331
SELECT DISTINCT - ( - COUNT ( * ) ), COUNT ( * ), + 65 AS col1
----
1
1
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4332
SELECT 26 AS col0, COUNT( * ) AS col1
----
26
1

skipif mysql # not compatible
query II rowsort label-4332
SELECT 26 AS col0, COUNT ( * ) AS col1
----
26
1

query I rowsort
SELECT ALL - ( - - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT 82 * + - COUNT( + 10 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4334
SELECT 82 * + - COUNT ( + 10 ) AS col1
----
-82

query I rowsort
SELECT ALL + 21 * + 16
----
336

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4336
SELECT ALL SUM( DISTINCT 8 ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL SUM ( DISTINCT 8 ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - ( + 6 ) AS col1
----
-6

query I rowsort
SELECT ALL 2 * - 75 AS col1
----
-150

query I rowsort
SELECT + ( - 53 ) AS col0
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT ALL + COUNT( * ) AS col2, 64
----
1
64

skipif mysql # not compatible
query II rowsort label-4340
SELECT ALL + COUNT ( * ) AS col2, 64
----
1
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT CAST( + 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-4341
SELECT CAST ( + 6 AS INTEGER )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT - 11 * COUNT( * ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-4342
SELECT - 11 * COUNT ( * ) AS col0
----
-11

query I rowsort
SELECT ALL ( ( + 72 ) )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4344
SELECT 1 - 25 DIV COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-4344
SELECT 1 - 25 / COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4345
SELECT ALL - MIN( DISTINCT 85 ) DIV - 44 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - MIN ( DISTINCT 85 ) / - 44 AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4346
SELECT ALL - 62 DIV - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL - 62 / - COUNT ( * )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT ALL + 39 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT ALL + 39 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT DISTINCT + COUNT( * ) DIV 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT + COUNT ( * ) / 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT COUNT( * ) * + 4 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4349
SELECT COUNT ( * ) * + 4 AS col1
----
4

query I rowsort
SELECT ALL + + 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT + MIN( - + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT + MIN ( - + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT + 55 - + 68
----
-13

query I rowsort
SELECT ALL + 8 + - 36 AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT + CAST( 76 AS SIGNED ) + - 84 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4354
SELECT + CAST ( 76 AS INTEGER ) + - 84 AS col1
----
-8

query I rowsort
SELECT - 1 - - ( + 67 )
----
66

query I rowsort
SELECT DISTINCT + 91 + + + 98 AS col0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT DISTINCT + 18 * - + MAX( + 6 ) col0
----
-108

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT + 18 * - + MAX ( + 6 ) col0
----
-108

query II rowsort
SELECT ALL + 55, + 53 AS col1
----
55
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT DISTINCT COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4360
SELECT ALL COUNT( * ) - + CAST( NULL AS DECIMAL ) AS col0, 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-4360
SELECT ALL COUNT ( * ) - + CAST ( NULL AS REAL ) AS col0, 84
----
NULL
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL - - COUNT( 88 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL - - COUNT ( 88 ) AS col1
----
1

query I rowsort
SELECT 39 - + - 46 AS col1
----
85

query I rowsort
SELECT 1 * - ( 90 ) AS col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4364
SELECT COUNT( * ) * + CAST( + 83 AS SIGNED )
----
83

skipif mysql # not compatible
query I rowsort label-4364
SELECT COUNT ( * ) * + CAST ( + 83 AS INTEGER )
----
83

query I rowsort
SELECT 36 - - 54 col0
----
90

query I rowsort
SELECT ALL - - 3 AS col2
----
3

query I rowsort
SELECT ALL - 40 col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT 91 + - - 49 DIV + + 6 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-4368
SELECT 91 + - - 49 / + + 6 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT ALL + ( + MAX( ALL + 30 ) ) - - - 69 - - - CAST( NULL AS SIGNED ) / - - 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL + ( + MAX ( ALL + 30 ) ) - - - 69 - - - CAST ( NULL AS INTEGER ) / - - 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT DISTINCT 23 * + SUM( DISTINCT - 84 )
----
-1932

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT 23 * + SUM ( DISTINCT - 84 )
----
-1932

onlyif mysql # aggregate syntax: 
query II rowsort label-4371
SELECT DISTINCT + COUNT( * ) + 9 AS col2, + 66 + - COUNT( * )
----
10
65

skipif mysql # not compatible
query II rowsort label-4371
SELECT DISTINCT + COUNT ( * ) + 9 AS col2, + 66 + - COUNT ( * )
----
10
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT ALL + - COALESCE ( 24, - - COUNT( * ) * 89 ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL + - COALESCE ( 24, - - COUNT ( * ) * 89 ) AS col1
----
-24

query I rowsort
SELECT NULLIF ( - - 68, + + 76 ) * + 94 + 70 AS col1
----
6462

query I rowsort
SELECT ALL + 78 + + 64
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4375
SELECT + CAST( NULL AS SIGNED ) * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-4375
SELECT + CAST ( NULL AS INTEGER ) * - 22
----
NULL

query I rowsort
SELECT ALL ( + + 83 )
----
83

query I rowsort
SELECT DISTINCT - 11 col0
----
-11

query I rowsort
SELECT DISTINCT + 84 * - 30
----
-2520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4379
SELECT ALL - COUNT( * ) / + + CAST( NULL AS SIGNED ) / - COUNT( * ) / - + 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - COUNT ( * ) / + + CAST ( NULL AS INTEGER ) / - COUNT ( * ) / - + 14 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4380
SELECT COUNT( * ) AS col2, 90
----
1
90

skipif mysql # not compatible
query II rowsort label-4380
SELECT COUNT ( * ) AS col2, 90
----
1
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT - ( 73 ) + - 61 + COUNT( * )
----
-133

skipif mysql # not compatible
query I rowsort label-4381
SELECT - ( 73 ) + - 61 + COUNT ( * )
----
-133

query I rowsort
SELECT + + 43 col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4383
SELECT ALL COALESCE ( + SUM( 97 ), + + 9 + COUNT( * ) ) AS col1, - 11
----
97
-11

skipif mysql # not compatible
query II rowsort label-4383
SELECT ALL COALESCE ( + SUM ( 97 ), + + 9 + COUNT ( * ) ) AS col1, - 11
----
97
-11

query I rowsort
SELECT - - 57 * + 51
----
2907

query II rowsort
SELECT ALL + 81 AS col1, 7 col2
----
81
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT - MAX( DISTINCT + 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-4386
SELECT - MAX ( DISTINCT + 73 )
----
-73

query I rowsort
SELECT + 13 * - - 54 * - 20 col2
----
-14040

query I rowsort
SELECT + ( + - 36 ) AS col0
----
-36

query I rowsort
SELECT + 77 * - 58
----
-4466

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT DISTINCT + SUM( DISTINCT - 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT + SUM ( DISTINCT - 33 )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT ALL - COUNT( * ) * 2 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL - COUNT ( * ) * 2 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL 25 * + + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL 25 * + + COUNT ( * )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4393
SELECT + COUNT( * ) + ( 66 )
----
67

skipif mysql # not compatible
query I rowsort label-4393
SELECT + COUNT ( * ) + ( 66 )
----
67

query I rowsort
SELECT 70 * - 11 AS col1
----
-770

query I rowsort
SELECT DISTINCT - + ( - - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT + 90 + + 32 + COUNT( * ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-4396
SELECT + 90 + + 32 + COUNT ( * ) AS col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT + 7 * - 88 * - COUNT( * ) * 94
----
57904

skipif mysql # not compatible
query I rowsort label-4397
SELECT + 7 * - 88 * - COUNT ( * ) * 94
----
57904

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT - - 96 + + - SUM( DISTINCT - 30 )
----
126

skipif mysql # not compatible
query I rowsort label-4398
SELECT - - 96 + + - SUM ( DISTINCT - 30 )
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL + - MAX( - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + - MAX ( - 61 )
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4400
SELECT + NULLIF ( - - 7, + CAST( NULL AS SIGNED ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-4400
SELECT + NULLIF ( - - 7, + CAST ( NULL AS INTEGER ) ) AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT + - COUNT( ALL + 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT + - COUNT ( ALL + 18 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT - COALESCE ( 9, - COUNT( * ) - - COUNT( * ) )
----
-9

skipif mysql # not compatible
query I rowsort label-4402
SELECT - COALESCE ( 9, - COUNT ( * ) - - COUNT ( * ) )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT MAX( DISTINCT 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4403
SELECT MAX ( DISTINCT 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4404
SELECT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT - CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4405
SELECT DISTINCT CAST( - ( 89 ) AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT CAST ( - ( 89 ) AS INTEGER )
----
-89

query I rowsort
SELECT - ( + 0 )
----
0

query I rowsort
SELECT ALL 59 + 3 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT SUM( ALL ( - 95 ) ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-4408
SELECT SUM ( ALL ( - 95 ) ) AS col1
----
-95

query I rowsort
SELECT ALL - + 9 AS col1
----
-9

query I rowsort
SELECT ALL + 16 + - 2
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT 88 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT 88 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4412
SELECT - CAST( NULL AS DECIMAL ) + + COUNT( ALL + - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT - CAST ( NULL AS REAL ) + + COUNT ( ALL + - 80 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4413
SELECT DISTINCT - 18, COUNT( * ) AS col1
----
-18
1

skipif mysql # not compatible
query II rowsort label-4413
SELECT DISTINCT - 18, COUNT ( * ) AS col1
----
-18
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4414
SELECT CAST( NULL AS SIGNED ) AS col0, 50 + - NULLIF ( + - COUNT( * ), - 76 ) * + + COUNT( * )
----
NULL
51

skipif mysql # not compatible
query II rowsort label-4414
SELECT CAST ( NULL AS INTEGER ) AS col0, 50 + - NULLIF ( + - COUNT ( * ), - 76 ) * + + COUNT ( * )
----
NULL
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4415
SELECT ALL - 67 AS col1, - COUNT( * )
----
-67
-1

skipif mysql # not compatible
query II rowsort label-4415
SELECT ALL - 67 AS col1, - COUNT ( * )
----
-67
-1

query I rowsort
SELECT ALL + 13 * 32
----
416

query I rowsort
SELECT DISTINCT + 19 * + 89 AS col0
----
1691

query I rowsort
SELECT ALL - 27 * + ( - 66 )
----
1782

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT DISTINCT COUNT( * ) * - 98 col1
----
-98

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT COUNT ( * ) * - 98 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT COUNT( ALL 80 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4420
SELECT COUNT ( ALL 80 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4421
SELECT + CAST( - + 90 AS SIGNED )
----
-90

skipif mysql # not compatible
query I rowsort label-4421
SELECT + CAST ( - + 90 AS INTEGER )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - - COUNT( * ) + + 26 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-4422
SELECT - - COUNT ( * ) + + 26 AS col0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL - NULLIF ( - 21, + + CAST( COUNT( * ) AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - NULLIF ( - 21, + + CAST ( COUNT ( * ) AS INTEGER ) )
----
21

query I rowsort
SELECT - ( 77 ) AS col2
----
-77

query I rowsort
SELECT DISTINCT + ( 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT DISTINCT + SUM( + + 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-4426
SELECT DISTINCT + SUM ( + + 94 ) AS col2
----
94

query I rowsort
SELECT ALL + ( + 68 ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4428
SELECT NULLIF ( CAST( NULL AS SIGNED ), - COUNT( * ) ) - - - CAST( NULL AS SIGNED ) * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT NULLIF ( CAST ( NULL AS INTEGER ), - COUNT ( * ) ) - - - CAST ( NULL AS INTEGER ) * + + 52
----
NULL

query I rowsort
SELECT DISTINCT - 44 + + 5
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL - 25 * + 32 * + MAX( - 94 ) AS col1
----
75200

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - 25 * + 32 * + MAX ( - 94 ) AS col1
----
75200

query I rowsort
SELECT DISTINCT - NULLIF ( + 78, + - 29 ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4432
SELECT ALL - CAST( - MIN( 26 ) AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - CAST ( - MIN ( 26 ) AS INTEGER )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4433
SELECT COUNT( * ) DIV + - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT COUNT ( * ) / + - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL - + ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL - + ( + COUNT ( * ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4435
SELECT ALL COUNT( * ) DIV - ( - 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL COUNT ( * ) / - ( - 50 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT ALL SUM( DISTINCT + 19 ) + 73 + 33
----
125

skipif mysql # not compatible
query I rowsort label-4436
SELECT ALL SUM ( DISTINCT + 19 ) + 73 + 33
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4437
SELECT + SUM( - + 56 ) * + + CAST( - + 91 AS SIGNED ) AS col2
----
5096

skipif mysql # not compatible
query I rowsort label-4437
SELECT + SUM ( - + 56 ) * + + CAST ( - + 91 AS INTEGER ) AS col2
----
5096

query I rowsort
SELECT - 41 * + 28 AS col1
----
-1148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4439
SELECT - + COUNT( * ) + - + CAST( NULL AS SIGNED ) col0, 0 + + 19
----
NULL
19

skipif mysql # not compatible
query II rowsort label-4439
SELECT - + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) col0, 0 + + 19
----
NULL
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT + ( - COUNT( * ) ) + 74 col1
----
73

skipif mysql # not compatible
query I rowsort label-4441
SELECT + ( - COUNT ( * ) ) + 74 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT DISTINCT COUNT( * ) * + 59 col0
----
59

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT COUNT ( * ) * + 59 col0
----
59

query I rowsort
SELECT ( - + 44 ) AS col0
----
-44

query I rowsort
SELECT - NULLIF ( + ( - - ( + 86 ) ), + + 59 + 82 )
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4445
SELECT ALL + + 24 * - ( - MIN( DISTINCT ( - CAST( 4 AS SIGNED ) ) ) ) + - 9
----
-105

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL + + 24 * - ( - MIN ( DISTINCT ( - CAST ( 4 AS INTEGER ) ) ) ) + - 9
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT - COUNT( * ) + - 3 * COUNT( * ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT - COUNT ( * ) + - 3 * COUNT ( * ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT ALL - 16 - - - ( COUNT( * ) ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - 16 - - - ( COUNT ( * ) ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT MAX( + 81 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-4448
SELECT MAX ( + 81 ) col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT ALL + COUNT( * ) + - 81 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL + COUNT ( * ) + - 81 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT 36 - COUNT( * ) + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4450
SELECT 36 - COUNT ( * ) + COUNT ( * )
----
36

query I rowsort
SELECT 23 + 49
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL - - COUNT( * ) * - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - - COUNT ( * ) * - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4453
SELECT 0 DIV 11
----
0

skipif mysql # not compatible
query I rowsort label-4453
SELECT 0 / 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT DISTINCT - COUNT( * ) * + + 99 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT - COUNT ( * ) * + + 99 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT + 49 + - - COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-4455
SELECT + 49 + - - COUNT ( * ) AS col0
----
50

query II rowsort
SELECT DISTINCT 81 AS col2, 97
----
81
97

query I rowsort
SELECT - ( + 71 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT ALL + + AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL + + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4459
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ), + 88 col1
----
NULL
88

skipif mysql # not compatible
query II rowsort label-4459
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ), + 88 col1
----
NULL
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT - CAST( - - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-4460
SELECT - CAST ( - - 10 AS INTEGER )
----
-10

query I rowsort
SELECT - ( - - 36 ) col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT ALL - SUM( DISTINCT 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - SUM ( DISTINCT 80 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + MAX( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-4463
SELECT + MAX ( 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT ALL + CAST( - 32 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL + CAST ( - 32 AS INTEGER )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT + ( CAST( - - 17 AS SIGNED ) ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-4465
SELECT + ( CAST ( - - 17 AS INTEGER ) ) AS col2
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4466
SELECT ALL CAST( NULL AS SIGNED ) * + - COUNT( * ) / ( + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / ( + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT ALL + CAST( NULL AS SIGNED ) + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL + CAST ( NULL AS INTEGER ) + 56
----
NULL

query I rowsort
SELECT DISTINCT - 99 + - + 84
----
-183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4469
SELECT DISTINCT - ( COUNT( * ) ) * - ( + 58 ) DIV + + 59
----
0

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT - ( COUNT ( * ) ) * - ( + 58 ) / + + 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT ( + 49 ) + + COUNT( * ) + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-4470
SELECT ( + 49 ) + + COUNT ( * ) + - COUNT ( * )
----
49

query I rowsort
SELECT 52 * - 73
----
-3796

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT ALL 92 col2, MIN( ALL - 66 ) AS col2
----
92
-66

skipif mysql # not compatible
query II rowsort label-4472
SELECT ALL 92 col2, MIN ( ALL - 66 ) AS col2
----
92
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + COUNT( * ) * + - ( - 95 ) - MIN( + 71 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-4473
SELECT + COUNT ( * ) * + - ( - 95 ) - MIN ( + 71 ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4474
SELECT - + 5 AS col2, COUNT( * )
----
-5
1

skipif mysql # not compatible
query II rowsort label-4474
SELECT - + 5 AS col2, COUNT ( * )
----
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT MAX( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-4475
SELECT MAX ( - 78 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL - 33 DIV + 27 - + 75
----
-76

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - 33 / + 27 - + 75
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4477
SELECT CAST( 92 AS SIGNED ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4477
SELECT CAST ( 92 AS INTEGER ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT CAST( - ( 2 ) AS SIGNED ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-4478
SELECT CAST ( - ( 2 ) AS INTEGER ) col0
----
-2

query I rowsort
SELECT + 18 * 98 * + + 95
----
167580

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT + ( + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4480
SELECT + ( + COUNT ( * ) ) col0
----
1

query I rowsort
SELECT - 97 + + 94 + + + 68 * - 46 AS col1
----
-3131

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT COUNT( - 69 ) - - + 5 * + 72
----
361

skipif mysql # not compatible
query I rowsort label-4482
SELECT COUNT ( - 69 ) - - + 5 * + 72
----
361

query I rowsort
SELECT ALL + 24 + + ( + 85 )
----
109

query I rowsort
SELECT ALL 5 + + + 63 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT ALL NULLIF ( COUNT( * ), + + COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL NULLIF ( COUNT ( * ), + + COUNT ( * ) ) col1
----
NULL

query I rowsort
SELECT - ( + - 8 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT CAST( NULL AS SIGNED ) / + 78 / - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-4487
SELECT CAST ( NULL AS INTEGER ) / + 78 / - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT - MIN( 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-4488
SELECT - MIN ( 51 ) AS col2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT 87 * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4489
SELECT 87 * + COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT - 2 - + COUNT( * ) + + + 37
----
34

skipif mysql # not compatible
query I rowsort label-4490
SELECT - 2 - + COUNT ( * ) + + + 37
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT ALL + ( COUNT( * ) ), ( 55 ) AS col0
----
1
55

skipif mysql # not compatible
query II rowsort label-4491
SELECT ALL + ( COUNT ( * ) ), ( 55 ) AS col0
----
1
55

query II rowsort
SELECT ALL 19, 65 AS col2
----
19
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + 94 * - COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-4493
SELECT + 94 * - COUNT ( * ) AS col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT + CAST( + 47 AS SIGNED )
----
47

skipif mysql # not compatible
query I rowsort label-4494
SELECT + CAST ( + 47 AS INTEGER )
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4495
SELECT ALL - + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - 75 * - 50 + + 60 col1
----
3810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT DISTINCT CAST( 57 AS SIGNED ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT CAST ( 57 AS INTEGER ) AS col2
----
57

query I rowsort
SELECT ALL 82 * - + 1
----
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4499
SELECT 76 - - 60 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT 76 - - 60 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + + SUM( + + 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4500
SELECT + + SUM ( + + 80 ) AS col0
----
80

query I rowsort
SELECT ALL + 62 * + 52
----
3224

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT 78 + + COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-4502
SELECT 78 + + COUNT ( * )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4503
SELECT + CAST( NULL AS SIGNED ) * + 84 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT + CAST ( NULL AS INTEGER ) * + 84 col2
----
NULL

query I rowsort
SELECT + 29 + + 10 * 48
----
509

query I rowsort
SELECT + 56 + 81 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT DISTINCT - NULLIF ( + 1, + 56 + + 94 + - ( - AVG ( DISTINCT 15 ) ) * - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT - NULLIF ( + 1, + 56 + + 94 + - ( - AVG ( DISTINCT 15 ) ) * - COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT ALL 17 + - - 86 AS col0
----
103

query I rowsort
SELECT 14 - + 65
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4509
SELECT DISTINCT - + CAST( + COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4509
SELECT DISTINCT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ALL 30 + - + COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL 30 + - + COUNT ( * ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4511
SELECT ALL COUNT( ALL + 96 )
----
1

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL COUNT ( ALL + 96 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT 88 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT 88 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - 77 * NULLIF ( + + 97, NULLIF ( + 95, - + COUNT( * ) ) )
----
-7469

skipif mysql # not compatible
query I rowsort label-4513
SELECT - 77 * NULLIF ( + + 97, NULLIF ( + 95, - + COUNT ( * ) ) )
----
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT + SUM( 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4514
SELECT + SUM ( 50 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + COUNT( + 93 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4515
SELECT + COUNT ( + 93 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + + 37 - 96 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT DISTINCT SUM( - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT SUM ( - 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT - + COUNT( * ) - - + 17
----
16

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT - + COUNT ( * ) - - + 17
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4519
SELECT - 23, COUNT( * ) AS col0
----
-23
1

skipif mysql # not compatible
query II rowsort label-4519
SELECT - 23, COUNT ( * ) AS col0
----
-23
1

query I rowsort
SELECT ALL + ( - 4 ) AS col1
----
-4

query I rowsort
SELECT DISTINCT + + 89 AS col1
----
89

query I rowsort
SELECT + 93 * ( + - 80 ) col2
----
-7440

onlyif mysql # DIV for integer division: 
query I rowsort label-4523
SELECT ALL + 70 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL + 70 / - 78
----
0

query I rowsort
SELECT ALL 87 - + ( - 50 )
----
137

query I rowsort
SELECT + ( - 66 ) AS col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT DISTINCT - COUNT( * ) + - 64 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT - COUNT ( * ) + - 64 AS col0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT - CAST( NULL AS SIGNED ) + + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT - CAST ( NULL AS INTEGER ) + + 29 AS col1
----
NULL

query I rowsort
SELECT + ( 96 ) * 59 AS col1
----
5664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4529
SELECT ALL 78 DIV - ( + COUNT( * ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4529
SELECT ALL 78 / - ( + COUNT ( * ) ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4530
SELECT DISTINCT COUNT( * ) * + 27 * + CAST( - + 86 AS SIGNED ) AS col2
----
-2322

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT COUNT ( * ) * + 27 * + CAST ( - + 86 AS INTEGER ) AS col2
----
-2322

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT DISTINCT + COALESCE ( 38, 75, + 56 + - NULLIF ( COUNT( * ), - ( 31 ) ) ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT + COALESCE ( 38, 75, + 56 + - NULLIF ( COUNT ( * ), - ( 31 ) ) ) AS col2
----
38

query I rowsort
SELECT - - 19 + 59 col1
----
78

query I rowsort
SELECT - 79 * - 56 AS col1
----
4424

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT ALL CAST( - 23 AS SIGNED ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL CAST ( - 23 AS INTEGER ) AS col1
----
-23

query II rowsort
SELECT ALL 12 AS col2, + 76
----
12
76

query I rowsort
SELECT ALL + 32 + + 11 AS col2
----
43

query I rowsort
SELECT 49 * + - 10 AS col0
----
-490

onlyif mysql # DIV for integer division: 
query II rowsort label-4538
SELECT - 83 AS col0, - 76 DIV 64 AS col1
----
-83
-1

skipif mysql # not compatible
query II rowsort label-4538
SELECT - 83 AS col0, - 76 / 64 AS col1
----
-83
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT DISTINCT + 15 + + COUNT( * ) AS col0, - 72
----
16
-72

skipif mysql # not compatible
query II rowsort label-4539
SELECT DISTINCT + 15 + + COUNT ( * ) AS col0, - 72
----
16
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT + 78 * - COUNT( * ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-4540
SELECT + 78 * - COUNT ( * ) AS col2
----
-78

query I rowsort
SELECT + CASE WHEN NOT - 39 IS NOT NULL THEN - 27 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - ( + - COUNT( * ) ) + + + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-4542
SELECT - ( + - COUNT ( * ) ) + + + 95 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT - SUM( ALL - + 46 )
----
46

skipif mysql # not compatible
query I rowsort label-4543
SELECT - SUM ( ALL - + 46 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL + 75 * - + ( - + ( + COUNT( * ) ) ) + + - 14 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + 75 * - + ( - + ( + COUNT ( * ) ) ) + + - 14 AS col0
----
61

query I rowsort
SELECT + 81 + - 7
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT + 34 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT + 34 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4547
SELECT DISTINCT + COUNT( ALL - + CAST( + 30 AS DECIMAL ) )
----
1

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT + COUNT ( ALL - + CAST ( + 30 AS REAL ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL + 65 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL + 65 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4549
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT ALL ( + 30 ) + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4550
SELECT ALL ( + 30 ) + + COUNT ( * )
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4551
SELECT - ( + CAST( NULL AS DECIMAL ) ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT - ( + CAST ( NULL AS REAL ) ) - - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 75 + ( - - 17 )
----
92

query I rowsort
SELECT DISTINCT - ( + - 92 ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT COUNT( * ) - - + 72
----
73

skipif mysql # not compatible
query I rowsort label-4554
SELECT COUNT ( * ) - - + 72
----
73

query I rowsort
SELECT ALL + 8 * 34 col1
----
272

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT - 11 DIV 59
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT - 11 / 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT MAX( ALL 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4557
SELECT MAX ( ALL 98 ) AS col1
----
98

query I rowsort
SELECT - + 53 + - 68
----
-121

query I rowsort
SELECT - + 52 + 10
----
-42

query I rowsort
SELECT + ( + - 64 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT + MIN( - - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-4561
SELECT + MIN ( - - 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT + CAST( 87 AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-4562
SELECT + CAST ( 87 AS INTEGER )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT SUM( DISTINCT - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT SUM ( DISTINCT - 98 ) AS col1
----
-98

query I rowsort
SELECT 94 + + ( 99 )
----
193

query I rowsort
SELECT DISTINCT - ( - ( + 36 ) ) AS col1
----
36

query I rowsort
SELECT ALL + 84 + + + 89 col0
----
173

query I rowsort
SELECT ALL 40 * + - 91 col0
----
-3640

onlyif mysql # aggregate syntax: 
query II rowsort label-4568
SELECT + + COUNT( * ) AS col0, 24
----
1
24

skipif mysql # not compatible
query II rowsort label-4568
SELECT + + COUNT ( * ) AS col0, 24
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT ALL COUNT( * ) - + 30
----
-29

skipif mysql # not compatible
query I rowsort label-4569
SELECT ALL COUNT ( * ) - + 30
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL - ( MIN( + 30 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL - ( MIN ( + 30 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT + SUM( DISTINCT 35 ) + + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-4571
SELECT + SUM ( DISTINCT 35 ) + + + COUNT ( * )
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4572
SELECT - + CAST( NULL AS SIGNED ) + COUNT( DISTINCT + 54 ) + - - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT - + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT + 54 ) + - - 0 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT + - 59 + - 15 + 87 DIV + - 83 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-4573
SELECT + - 59 + - 15 + 87 / + - 83 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL SUM( DISTINCT - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL SUM ( DISTINCT - 93 )
----
-93

query I rowsort
SELECT DISTINCT 76 + - 46 AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT NULLIF ( NULLIF ( + + 86, + COUNT( * ) ), - 89 + - 2 * COUNT( * ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-4576
SELECT NULLIF ( NULLIF ( + + 86, + COUNT ( * ) ), - 89 + - 2 * COUNT ( * ) ) AS col0
----
86

query I rowsort
SELECT ALL + - ( - 61 ) AS col2
----
61

query I rowsort
SELECT - ( - 6 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT ALL + 97 + + 35 * COUNT( * )
----
132

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL + 97 + + 35 * COUNT ( * )
----
132

query I rowsort
SELECT - ( 52 ) + + 36
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4581
SELECT - COUNT( * ) col1, CAST( NULL AS SIGNED ) + COUNT( * )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4581
SELECT - COUNT ( * ) col1, CAST ( NULL AS INTEGER ) + COUNT ( * )
----
-1
NULL

query I rowsort
SELECT ALL ( - 94 ) AS col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4583
SELECT ALL COUNT( * ) + 72 col1, COUNT( * ) AS col0
----
73
1

skipif mysql # not compatible
query II rowsort label-4583
SELECT ALL COUNT ( * ) + 72 col1, COUNT ( * ) AS col0
----
73
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4584
SELECT DISTINCT - - 35, CAST( ( + 89 ) AS SIGNED ) col2
----
35
89

skipif mysql # not compatible
query II rowsort label-4584
SELECT DISTINCT - - 35, CAST ( ( + 89 ) AS INTEGER ) col2
----
35
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4585
SELECT ALL - - CAST( + MIN( ALL - 48 ) AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4585
SELECT ALL - - CAST ( + MIN ( ALL - 48 ) AS INTEGER ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT COUNT( * ) + 0 col1
----
1

skipif mysql # not compatible
query I rowsort label-4587
SELECT COUNT ( * ) + 0 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT DISTINCT + ( + - 54 ) - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT + ( + - 54 ) - COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4589
SELECT ALL - COUNT( * ) * 6 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - COUNT ( * ) * 6 / + 46
----
0

query I rowsort
SELECT DISTINCT 53 * + - 3
----
-159

query II rowsort
SELECT DISTINCT 70 AS col1, - 12 AS col2
----
70
-12

query I rowsort
SELECT + - ( - 80 )
----
80

query I rowsort
SELECT ALL 48 * - + 58 AS col1
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT + COUNT( + ( 45 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4594
SELECT + COUNT ( + ( 45 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT + COUNT( DISTINCT + 0 )
----
1

skipif mysql # not compatible
query I rowsort label-4595
SELECT + COUNT ( DISTINCT + 0 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4596
SELECT + 58 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT + 58 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT - - COUNT( * ) + + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT - - COUNT ( * ) + + 7 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT + MAX( + 57 ) col1
----
57

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT + MAX ( + 57 ) col1
----
57

query I rowsort
SELECT DISTINCT + 52 * + 98 col2
----
5096

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4600
SELECT - MAX( DISTINCT - + 4 ) - + + COUNT( * ), - CAST( NULL AS DECIMAL ) AS col1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-4600
SELECT - MAX ( DISTINCT - + 4 ) - + + COUNT ( * ), - CAST ( NULL AS REAL ) AS col1
----
3
NULL

query I rowsort
SELECT 84 + + 9
----
93

query I rowsort
SELECT DISTINCT ( 99 ) AS col2
----
99

query II rowsort
SELECT ALL - 67 AS col2, + ( + 23 )
----
-67
23

query I rowsort
SELECT ALL - 76 + + + 60 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL - COUNT( * ) * - 98 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - COUNT ( * ) * - 98 AS col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4606
SELECT ALL + COUNT( * ), - 57 AS col0
----
1
-57

skipif mysql # not compatible
query II rowsort label-4606
SELECT ALL + COUNT ( * ), - 57 AS col0
----
1
-57

query I rowsort
SELECT 78 * + 64
----
4992

query I rowsort
SELECT + 81 - + 95 + 65 col2
----
51

query I rowsort
SELECT + 70 + + 71 + - 73 AS col2
----
68

query I rowsort
SELECT - + 82 * - 79 AS col0
----
6478

query I rowsort
SELECT - + 46 * - 79 AS col2
----
3634

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT + MIN( + + 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4612
SELECT + MIN ( + + 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - - 19 + + COUNT( * ) + - 0 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-4613
SELECT - - 19 + + COUNT ( * ) + - 0 AS col1
----
20

query I rowsort
SELECT ( + 82 ) AS col1
----
82

query II rowsort
SELECT - 37 + 77 * - 35, - 97 AS col0
----
-2732
-97

query I rowsort
SELECT ALL - ( ( 12 ) ) AS col0
----
-12

query I rowsort
SELECT DISTINCT + 57 * - 97
----
-5529

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT ALL + MAX( 74 ) * + 69 + + COUNT( * )
----
5107

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL + MAX ( 74 ) * + 69 + + COUNT ( * )
----
5107

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT - COUNT( ALL - 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-4619
SELECT - COUNT ( ALL - 61 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4620
SELECT 63 DIV + + COUNT( * )
----
63

skipif mysql # not compatible
query I rowsort label-4620
SELECT 63 / + + COUNT ( * )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT ALL + 51 * COUNT( * ) * + - 92 AS col1
----
-4692

skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL + 51 * COUNT ( * ) * + - 92 AS col1
----
-4692

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4622
SELECT COUNT( ALL - 70 ) * CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4622
SELECT COUNT ( ALL - 70 ) * CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL + 19 * 8
----
152

query I rowsort
SELECT ALL - 78 + - 13
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT - SUM( DISTINCT - 42 ) * - ( - COUNT( * ) )
----
42

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT - SUM ( DISTINCT - 42 ) * - ( - COUNT ( * ) )
----
42

query I rowsort
SELECT ALL 59 - 78 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4627
SELECT - MAX( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4627
SELECT - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4628
SELECT - ( - + 17 ) col0, COUNT( * ) AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-4628
SELECT - ( - + 17 ) col0, COUNT ( * ) AS col2
----
17
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT - COUNT( * ) + - 64
----
-65

skipif mysql # not compatible
query I rowsort label-4629
SELECT - COUNT ( * ) + - 64
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-4630
SELECT ALL + COUNT( * ) AS col0, - 67
----
1
-67

skipif mysql # not compatible
query II rowsort label-4630
SELECT ALL + COUNT ( * ) AS col0, - 67
----
1
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4631
SELECT - 95 * + - COUNT( * ) DIV + - COUNT( * ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-4631
SELECT - 95 * + - COUNT ( * ) / + - COUNT ( * ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL - COUNT( * ) * 63 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL - COUNT ( * ) * 63 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL - 23 * COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL - 23 * COUNT ( * ) AS col2
----
-23

query I rowsort
SELECT + ( 81 ) + - - 89 AS col0
----
170

query I rowsort
SELECT + 39 + 11 AS col2
----
50

query I rowsort
SELECT + ( - + 84 ) * - - ( 91 ) AS col1
----
-7644

onlyif mysql # aggregate syntax: 
query II rowsort label-4637
SELECT ALL 73, COUNT( * ) col1
----
73
1

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL 73, COUNT ( * ) col1
----
73
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL - - MAX( ( 43 ) )
----
43

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL - - MAX ( ( 43 ) )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4639
SELECT 50 + + CAST( NULL AS SIGNED ), 46 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-4639
SELECT 50 + + CAST ( NULL AS INTEGER ), 46 AS col2
----
NULL
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4640
SELECT ( 72 ) DIV MIN( ALL - + 8 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4640
SELECT ( 72 ) / MIN ( ALL - + 8 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT MIN( DISTINCT 5 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT MIN ( DISTINCT 5 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - 12 + - - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-4642
SELECT - 12 + - - COUNT ( * )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT ALL + 70 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL + 70 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT - - COUNT( * ) * - 39 AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-4644
SELECT - - COUNT ( * ) * - 39 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4645
SELECT DISTINCT + 23, + MAX( - 45 ) AS col1
----
23
-45

skipif mysql # not compatible
query II rowsort label-4645
SELECT DISTINCT + 23, + MAX ( - 45 ) AS col1
----
23
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4646
SELECT + 70 + - 38 * + - 80 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4646
SELECT + 70 + - 38 * + - 80 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT MIN( ALL - + 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-4647
SELECT MIN ( ALL - + 22 )
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4648
SELECT ALL + 93 + - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL + 93 + - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4649
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2, + 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-4649
SELECT ALL + CAST ( NULL AS REAL ) AS col2, + 8
----
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL MAX( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL MAX ( - 95 )
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4651
SELECT DISTINCT - - 4 + - 33 DIV + 34 + + 2 + + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4651
SELECT DISTINCT - - 4 + - 33 / + 34 + + 2 + + COUNT ( * ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT 56 * - SUM( - 58 ) AS col0
----
3248

skipif mysql # not compatible
query I rowsort label-4652
SELECT 56 * - SUM ( - 58 ) AS col0
----
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT 0 DIV + ( + 36 )
----
0

skipif mysql # not compatible
query I rowsort label-4653
SELECT 0 / + ( + 36 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT 6 * + COUNT( * ) * - - 70
----
420

skipif mysql # not compatible
query I rowsort label-4654
SELECT 6 * + COUNT ( * ) * - - 70
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4655
SELECT COUNT( * ) DIV 4
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT COUNT ( * ) / 4
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4656
SELECT ALL + COUNT( * ) DIV - 34
----
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL + COUNT ( * ) / - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + COUNT( * ) * - 5 + + 90 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-4657
SELECT + COUNT ( * ) * - 5 + + 90 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL 36 * + ( - + ( COUNT( * ) ) ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL 36 * + ( - + ( COUNT ( * ) ) ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT - ( + + COUNT( * ) ) AS col2, 63
----
-1
63

skipif mysql # not compatible
query II rowsort label-4659
SELECT - ( + + COUNT ( * ) ) AS col2, 63
----
-1
63

query I rowsort
SELECT - ( - + 49 )
----
49

query I rowsort
SELECT - - ( 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT - + MAX( - + 30 )
----
30

skipif mysql # not compatible
query I rowsort label-4662
SELECT - + MAX ( - + 30 )
----
30

query I rowsort
SELECT - - ( - + 63 )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT + MAX( + 73 )
----
73

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + MAX ( + 73 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT COUNT( * ) * 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT COUNT ( * ) * 21 AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4666
SELECT + CAST( + 31 AS SIGNED ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4666
SELECT + CAST ( + 31 AS INTEGER ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT + - COUNT( * ) * 58 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4667
SELECT + - COUNT ( * ) * 58 AS col0
----
-58

query I rowsort
SELECT DISTINCT + - 41 AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4669
SELECT ALL + CAST( NULL AS SIGNED ) * - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + CAST ( NULL AS INTEGER ) * - 97 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 90 - + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-4670
SELECT 90 - + - COUNT ( * )
----
91

query I rowsort
SELECT 54 * + + 38
----
2052

onlyif mysql # aggregate syntax: 
query II rowsort label-4672
SELECT ALL 76, COUNT( * ) AS col2
----
76
1

skipif mysql # not compatible
query II rowsort label-4672
SELECT ALL 76, COUNT ( * ) AS col2
----
76
1

query I rowsort
SELECT ( 62 ) + + 3 AS col2
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT DISTINCT 33 AS col0, - COUNT( * )
----
33
-1

skipif mysql # not compatible
query II rowsort label-4674
SELECT DISTINCT 33 AS col0, - COUNT ( * )
----
33
-1

query I rowsort
SELECT ALL - ( + 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT - 72 * COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4676
SELECT - 72 * COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT ALL - + ( + 47 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL - - COUNT( DISTINCT 14 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - - COUNT ( DISTINCT 14 ) AS col1
----
1

query I rowsort
SELECT + - 25 + + 91
----
66

query I rowsort
SELECT ALL + 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + + COUNT( DISTINCT + + 19 ) * 74 col0
----
74

skipif mysql # not compatible
query I rowsort label-4681
SELECT + + COUNT ( DISTINCT + + 19 ) * 74 col0
----
74

query I rowsort
SELECT + ( + ( + + ( + - 72 ) ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - - COUNT( * ) * - MIN( + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-4683
SELECT - - COUNT ( * ) * - MIN ( + 33 )
----
-33

query I rowsort
SELECT - ( + ( 60 ) ) * + + 3 - + 91
----
-271

query I rowsort
SELECT ALL - - ( + 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL + - COUNT( * ) + + 62 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + - COUNT ( * ) + + 62 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT DISTINCT + 71 + + 64 * + COUNT( * ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT + 71 + + 64 * + COUNT ( * ) AS col0
----
135

query I rowsort
SELECT ALL - ( - + 25 ) AS col1
----
25

query I rowsort
SELECT DISTINCT - + ( - + 98 )
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4690
SELECT 74 * - - COUNT( * ) AS col0, 44 AS col0
----
74
44

skipif mysql # not compatible
query II rowsort label-4690
SELECT 74 * - - COUNT ( * ) AS col0, 44 AS col0
----
74
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4691
SELECT ALL + 67 - + COUNT( * ) + 25 AS col2, - 93 - - 35 + + + 90
----
91
32

skipif mysql # not compatible
query II rowsort label-4691
SELECT ALL + 67 - + COUNT ( * ) + 25 AS col2, - 93 - - 35 + + + 90
----
91
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT COUNT( * ) + - + 44 AS col1
----
-43

skipif mysql # not compatible
query I rowsort label-4692
SELECT COUNT ( * ) + - + 44 AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4693
SELECT ALL COUNT( * ), ( + CAST( NULL AS SIGNED ) ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4693
SELECT ALL COUNT ( * ), ( + CAST ( NULL AS INTEGER ) ) AS col1
----
1
NULL

query I rowsort
SELECT DISTINCT - ( + 66 ) AS col0
----
-66

query II rowsort
SELECT + 68 col0, + 41
----
68
41

query I rowsort
SELECT ALL 93 * + 74 AS col2
----
6882

query II rowsort
SELECT ALL 0 AS col1, 86 + - 89 AS col1
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT + COUNT( * ) * COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-4698
SELECT + COUNT ( * ) * COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT + + 18 + + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-4699
SELECT + + 18 + + COUNT ( * )
----
19

query II rowsort
SELECT - 41 AS col0, 13 AS col1
----
-41
13

query I rowsort
SELECT ( 49 )
----
49

query I rowsort
SELECT ALL + ( - 76 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT - COUNT( * ) * + COUNT( * ) + - - 17 + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4703
SELECT - COUNT ( * ) * + COUNT ( * ) + - - 17 + COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4704
SELECT - 69 + - 9 AS col0, COUNT( * ) col1
----
-78
1

skipif mysql # not compatible
query II rowsort label-4704
SELECT - 69 + - 9 AS col0, COUNT ( * ) col1
----
-78
1

query II rowsort
SELECT - 87 + 83 AS col0, 11
----
-4
11

query I rowsort
SELECT - + 85 AS col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT 44 DIV - 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT 44 / - 54 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ( + 16 ) + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-4708
SELECT ( + 16 ) + - COUNT ( * )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT DISTINCT - SUM( ALL + ( + 35 ) ) col2
----
-35

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT - SUM ( ALL + ( + 35 ) ) col2
----
-35

query II rowsort
SELECT ALL - ( 77 ), 59 AS col0
----
-77
59

query I rowsort
SELECT DISTINCT 82 + - - 70 AS col1
----
152

query I rowsort
SELECT + 87 * 19 + 44
----
1697

query I rowsort
SELECT ( + - 88 ) col0
----
-88

query I rowsort
SELECT ALL 70 + - 88 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL + COUNT( * ) + COUNT( * ) + + - 55 AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL + COUNT ( * ) + COUNT ( * ) + + - 55 AS col2
----
-53

query I rowsort
SELECT 13 * - ( + 61 ) AS col0
----
-793

query I rowsort
SELECT 3 * - + 0
----
0

query I rowsort
SELECT + 10 * - 3 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT ALL + COUNT( * ) - - + 84 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + COUNT ( * ) - - + 84 AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT 9 * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT 9 * - COUNT ( * )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4721
SELECT ALL CAST( - - 50 AS SIGNED ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL CAST ( - - 50 AS INTEGER ) AS col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4722
SELECT + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT DISTINCT - COUNT( * ) / - CAST( NULL AS SIGNED ) + - COUNT( * ) * + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 61 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4724
SELECT + COUNT( * ) * - COUNT( * ) * + COUNT( * ) + 47 DIV + 58
----
-1

skipif mysql # not compatible
query I rowsort label-4724
SELECT + COUNT ( * ) * - COUNT ( * ) * + COUNT ( * ) + 47 / + 58
----
-1

query I rowsort
SELECT 97 + + 98
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - 95 + - COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-4726
SELECT - 95 + - COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT - + ( + 69 ) AS col1
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4728
SELECT ALL 94 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL 94 * CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT - 49, 59 AS col2
----
-49
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT DISTINCT - COUNT( * ) + + COUNT( - 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT - COUNT ( * ) + + COUNT ( - 24 ) AS col2
----
0

query I rowsort
SELECT ALL + 28 - - 90
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4732
SELECT + COUNT( * ) DIV - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4732
SELECT + COUNT ( * ) / - - COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4733
SELECT + CAST( NULL AS SIGNED ) / 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4733
SELECT + CAST ( NULL AS INTEGER ) / 93 AS col1
----
NULL

query I rowsort
SELECT - 86 - + ( + 67 ) AS col0
----
-153

query I rowsort
SELECT - + 61 + - 84
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT + COUNT( - 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4736
SELECT + COUNT ( - 74 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT SUM( 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT SUM ( 88 )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4738
SELECT DISTINCT + ( - CAST( NULL AS SIGNED ) ) * ( - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) * ( - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT - COUNT( * ) + + 26 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-4739
SELECT - COUNT ( * ) + + 26 AS col1
----
25

query I rowsort
SELECT ALL + 61 + - 65 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT ALL - ( + MIN( DISTINCT 65 ) ) * COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL - ( + MIN ( DISTINCT 65 ) ) * COUNT ( * )
----
-65

query I rowsort
SELECT + + ( - 26 ) AS col1
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4743
SELECT ALL - AVG ( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL - AVG ( ALL CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL + - 49 + + 87
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT + 82 + + COUNT( * ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-4745
SELECT + 82 + + COUNT ( * ) AS col2
----
83

query I rowsort
SELECT DISTINCT 83 + - 19 AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4747
SELECT + 34 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT + 34 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4748
SELECT ALL + MIN( + 53 ) AS col1, COUNT( * ) AS col0
----
53
1

skipif mysql # not compatible
query II rowsort label-4748
SELECT ALL + MIN ( + 53 ) AS col1, COUNT ( * ) AS col0
----
53
1

query I rowsort
SELECT ( + 86 ) AS col2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4750
SELECT ALL + 67 AS col0, - CAST( NULL AS SIGNED )
----
67
NULL

skipif mysql # not compatible
query II rowsort label-4750
SELECT ALL + 67 AS col0, - CAST ( NULL AS INTEGER )
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT + NULLIF ( + 69, + COUNT( * ) )
----
69

skipif mysql # not compatible
query I rowsort label-4751
SELECT + NULLIF ( + 69, + COUNT ( * ) )
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT ALL + + AVG ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL + + AVG ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - - 76 + ( 13 ) AS col1
----
89

query I rowsort
SELECT ALL - 65 * 13
----
-845

query I rowsort
SELECT - - 26 + 77 AS col0
----
103

query I rowsort
SELECT ALL - 21 * + 68 AS col0
----
-1428

onlyif mysql # aggregate syntax: 
query II rowsort label-4757
SELECT - 10 AS col0, + COUNT( * )
----
-10
1

skipif mysql # not compatible
query II rowsort label-4757
SELECT - 10 AS col0, + COUNT ( * )
----
-10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL ( + COUNT( * ) ) * + 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL ( + COUNT ( * ) ) * + 22 AS col0
----
22

query I rowsort
SELECT DISTINCT - 62 * + 71
----
-4402

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT MIN( ALL + - 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-4760
SELECT MIN ( ALL + - 74 )
----
-74

query I rowsort
SELECT 11 * + + 35
----
385

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT + COUNT( * ) * 70 col0
----
70

skipif mysql # not compatible
query I rowsort label-4762
SELECT + COUNT ( * ) * 70 col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT MAX( + - 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-4763
SELECT MAX ( + - 44 ) AS col0
----
-44

query I rowsort
SELECT ALL 86 + - 64 col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4765
SELECT + COUNT( * ) * - - CAST( NULL AS SIGNED ) * + - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * + - 82
----
NULL

query I rowsort
SELECT ALL 90 * + 87 AS col1
----
7830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT + 99 DIV - COUNT( * ) + - 56 * 37 AS col1
----
-2171

skipif mysql # not compatible
query I rowsort label-4767
SELECT + 99 / - COUNT ( * ) + - 56 * 37 AS col1
----
-2171

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT ALL + 23 DIV 3 + 85 DIV - 24 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL + 23 / 3 + 85 / - 24 AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT 58 * 79 + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4769
SELECT 58 * 79 + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT 32 * + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-4770
SELECT 32 * + COUNT ( * )
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4771
SELECT - 55 DIV - 5 + 27 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-4771
SELECT - 55 / - 5 + 27 AS col2
----
38

query I rowsort
SELECT DISTINCT + 9 - 26 AS col1
----
-17

query I rowsort
SELECT ALL + 27 - + - 39
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT 67 * + 90 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4774
SELECT 67 * + 90 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL MIN( DISTINCT 88 )
----
88

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL MIN ( DISTINCT 88 )
----
88

query I rowsort
SELECT ALL 85 + - 76
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4777
SELECT + COUNT( + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-4777
SELECT + COUNT ( + 87 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT + 18 DIV - COUNT( + 50 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-4778
SELECT + 18 / - COUNT ( + 50 ) AS col2
----
-18

query I rowsort
SELECT + 70 - + + 78 col2
----
-8

query I rowsort
SELECT ALL 28 * + - 20
----
-560

query I rowsort
SELECT ALL + COALESCE ( + - 20, + 27 )
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4782
SELECT ( CAST( - 30 AS SIGNED ) ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-4782
SELECT ( CAST ( - 30 AS INTEGER ) ) AS col1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4783
SELECT ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT + COUNT( * ) * + COALESCE ( + 15, - ( 24 ) ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-4784
SELECT + COUNT ( * ) * + COALESCE ( + 15, - ( 24 ) ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT DISTINCT + COUNT( 73 ) + - - 85 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4785
SELECT DISTINCT + COUNT ( 73 ) + - - 85 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4786
SELECT 50 DIV + + 40 col2, 22 * - 71 * - COUNT( * ) col2
----
1
1562

skipif mysql # not compatible
query II rowsort label-4786
SELECT 50 / + + 40 col2, 22 * - 71 * - COUNT ( * ) col2
----
1
1562

query I rowsort
SELECT ALL ( - 50 )
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-4788
SELECT DISTINCT + 50 DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + 50 / - + 87
----
0

query I rowsort
SELECT ALL 84 + - 62
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL MAX( ALL - 74 ) col2
----
-74

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL MAX ( ALL - 74 ) col2
----
-74

query I rowsort
SELECT 47 * + ( + NULLIF ( + 23, - 41 ) ) col2
----
1081

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT + NULLIF ( + 69, + COUNT( * ) ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT + NULLIF ( + 69, + COUNT ( * ) ) AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT + CAST( NULL AS SIGNED ) + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4793
SELECT + CAST ( NULL AS INTEGER ) + 14 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT SUM( ALL + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4794
SELECT SUM ( ALL + 75 )
----
75

query II rowsort
SELECT - 10 * 49 AS col1, 33 AS col1
----
-490
33

query I rowsort
SELECT + ( ( + 95 ) )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT ALL 55 DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL 55 / 95 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT ALL + SUM( DISTINCT + + 28 ) col0
----
28

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + SUM ( DISTINCT + + 28 ) col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT - - MIN( DISTINCT - - 78 )
----
78

skipif mysql # not compatible
query I rowsort label-4799
SELECT - - MIN ( DISTINCT - - 78 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT - 59 + + - CAST( - - ( - 53 ) AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4800
SELECT - 59 + + - CAST ( - - ( - 53 ) AS INTEGER ) AS col2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4801
SELECT DISTINCT CAST( + ( ( + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT CAST ( + ( ( + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( + 16 )
----
-16

query I rowsort
SELECT - 97 + 49
----
-48

query I rowsort
SELECT + 79 + + 70 AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - COALESCE ( - 71, - COUNT( * ) * 1 )
----
71

skipif mysql # not compatible
query I rowsort label-4805
SELECT - COALESCE ( - 71, - COUNT ( * ) * 1 )
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4806
SELECT COUNT( * ) DIV - + 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT COUNT ( * ) / - + 99 AS col0
----
0

query I rowsort
SELECT DISTINCT 37 col1
----
37

query I rowsort
SELECT DISTINCT - 71 * + + 87 AS col2
----
-6177

query I rowsort
SELECT ALL 73 * - + 57 AS col2
----
-4161

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL - COUNT( - 37 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - COUNT ( - 37 ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT ALL 64 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL 64 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + - 32 + - 91
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT + SUM( DISTINCT + 60 )
----
60

skipif mysql # not compatible
query I rowsort label-4813
SELECT + SUM ( DISTINCT + 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4814
SELECT AVG ( DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT AVG ( DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT DISTINCT COUNT( + 90 )
----
1

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT COUNT ( + 90 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT + 37 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4816
SELECT + 37 / - 65 AS col0
----
0

query I rowsort
SELECT + ( 78 ) AS col2
----
78

query I rowsort
SELECT - 49 * - 78 AS col2
----
3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT DISTINCT AVG ( CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT - 83 * + 11
----
-913

query II rowsort
SELECT 14 AS col1, - 80 AS col0
----
14
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4822
SELECT ALL - MAX( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL - MAX ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4823
SELECT ALL COUNT( * ) AS col2, - CAST( 92 AS SIGNED ) AS col2
----
1
-92

skipif mysql # not compatible
query II rowsort label-4823
SELECT ALL COUNT ( * ) AS col2, - CAST ( 92 AS INTEGER ) AS col2
----
1
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT ALL - 29 col2, COUNT( * ) + - - 38
----
-29
39

skipif mysql # not compatible
query II rowsort label-4824
SELECT ALL - 29 col2, COUNT ( * ) + - - 38
----
-29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT DISTINCT + - MAX( DISTINCT + - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT + - MAX ( DISTINCT + - 63 )
----
63

query I rowsort
SELECT DISTINCT + 1 * + 49 * + 34
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT ALL + 57 - + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + 57 - + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT ALL COUNT( * ) * 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL COUNT ( * ) * 68 AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT + 21 DIV + ( - + NULLIF ( + + 14, 23 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4829
SELECT + 21 / + ( - + NULLIF ( + + 14, 23 ) )
----
-1

query I rowsort
SELECT ALL + ( - 41 ) AS col0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4831
SELECT - CAST( + 9 AS SIGNED ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-4831
SELECT - CAST ( + 9 AS INTEGER ) AS col1
----
-9

query I rowsort
SELECT ALL - 60 + 76 AS col1
----
16

query I rowsort
SELECT 29 * + + 4
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4834
SELECT DISTINCT MIN( + + 25 ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT MIN ( + + 25 ) / 90
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT DISTINCT COUNT( ALL + + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT DISTINCT + ( + 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT ALL + COUNT( * ) DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL + COUNT ( * ) / 62 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4838
SELECT SUM( + CAST( NULL AS SIGNED ) ) * - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) * - 40
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT DISTINCT - ( + COUNT( * ) ) AS col0, SUM( DISTINCT + 67 ) + - 35
----
-1
32

skipif mysql # not compatible
query II rowsort label-4839
SELECT DISTINCT - ( + COUNT ( * ) ) AS col0, SUM ( DISTINCT + 67 ) + - 35
----
-1
32

query I rowsort
SELECT ALL + + 6 AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT ALL + + CAST( NULL AS SIGNED ) + - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL + + CAST ( NULL AS INTEGER ) + - 76 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4842
SELECT ALL 14 DIV + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL 14 / + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT DISTINCT 43 * + + 25 * - COUNT( * )
----
-1075

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT 43 * + + 25 * - COUNT ( * )
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT ALL + + MIN( DISTINCT - + 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + + MIN ( DISTINCT - + 70 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4845
SELECT ALL + + CAST( ( + COUNT( * ) ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL + + CAST ( ( + COUNT ( * ) ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - + ( + COUNT( * ) ) * + ( - 75 )
----
75

skipif mysql # not compatible
query I rowsort label-4846
SELECT - + ( + COUNT ( * ) ) * + ( - 75 )
----
75

query I rowsort
SELECT DISTINCT ( + ( 65 ) )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4848
SELECT ALL CAST( + ( 10 ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL CAST ( + ( 10 ) AS INTEGER )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( + 73 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( + 73 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - ( + 37 )
----
-37

query I rowsort
SELECT ( - 32 ) * - ( - - 39 ) AS col2
----
1248

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4852
SELECT ALL 63 AS col2, CAST( NULL AS SIGNED )
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4852
SELECT ALL 63 AS col2, CAST ( NULL AS INTEGER )
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL + COUNT( * ) * - 59
----
-59

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL + COUNT ( * ) * - 59
----
-59

query I rowsort
SELECT ALL + - 20 * + 25 AS col0
----
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT DISTINCT + COUNT( ALL + 65 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-4855
SELECT DISTINCT + COUNT ( ALL + 65 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT CAST( + + 53 AS SIGNED ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4856
SELECT CAST ( + + 53 AS INTEGER ) AS col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4857
SELECT ALL + + ( COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL + + ( COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT 89 DIV + ( - - 60 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4858
SELECT 89 / + ( - - 60 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT 24 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4859
SELECT 24 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL SUM( - - 63 )
----
63

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL SUM ( - - 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT + MIN( DISTINCT 70 ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + MIN ( DISTINCT 70 ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4862
SELECT + 66 DIV + 26 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4862
SELECT + 66 / + 26 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL COUNT( + - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL COUNT ( + - 46 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT + COUNT( * ) * - + 91
----
-91

skipif mysql # not compatible
query I rowsort label-4864
SELECT + COUNT ( * ) * - + 91
----
-91

query I rowsort
SELECT ALL + 93 * 99 * + 95 - 77 AS col0
----
874588

query I rowsort
SELECT - ( + 24 ) col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL COUNT( * ) * - ( - 40 ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL COUNT ( * ) * - ( - 40 ) AS col0
----
40

query I rowsort
SELECT ( - 57 ) AS col0
----
-57

query II rowsort
SELECT ALL + 66 col2, 0 + + 76 * + 78
----
66
5928

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT + COALESCE ( 73, COUNT( * ) * - ( SUM( DISTINCT - 51 ) ) )
----
73

skipif mysql # not compatible
query I rowsort label-4870
SELECT + COALESCE ( 73, COUNT ( * ) * - ( SUM ( DISTINCT - 51 ) ) )
----
73

query I rowsort
SELECT ALL ( + + 85 ) * 16 AS col0
----
1360

query I rowsort
SELECT + 7 * + - 79 * 20 col2
----
-11060

query I rowsort
SELECT + - 36 col0
----
-36

query I rowsort
SELECT 84 * - 11
----
-924

query I rowsort
SELECT 76 + - + 75
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT ALL CAST( - 54 AS SIGNED ) + - 6
----
-60

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL CAST ( - 54 AS INTEGER ) + - 6
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-4877
SELECT + 97 + - + 54 AS col1, + 99 + + COUNT( * )
----
43
100

skipif mysql # not compatible
query II rowsort label-4877
SELECT + 97 + - + 54 AS col1, + 99 + + COUNT ( * )
----
43
100

query I rowsort
SELECT + + 98 col0
----
98

query I rowsort
SELECT - ( - + 40 )
----
40

query I rowsort
SELECT - 20 - + - 74 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL + MAX( DISTINCT - - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL + MAX ( DISTINCT - - 59 ) AS col0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4882
SELECT - CAST( + - 62 AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-4882
SELECT - CAST ( + - 62 AS INTEGER ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT DISTINCT CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT CAST ( 0 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL 43 - - - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL 43 - - - COUNT ( * )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT - 73 * + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-4885
SELECT - 73 * + COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT - SUM( 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-4886
SELECT - SUM ( 3 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4887
SELECT CAST( NULL AS SIGNED ) * - - ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4887
SELECT CAST ( NULL AS INTEGER ) * - - ( 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col1
----
1

query I rowsort
SELECT DISTINCT 99 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT COUNT( 29 )
----
1

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT COUNT ( 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT + COUNT( * ) * + 39 + 13 + + 8 * + 46 AS col0
----
420

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT + COUNT ( * ) * + 39 + 13 + + 8 * + 46 AS col0
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT DISTINCT COUNT( * ) DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT COUNT ( * ) / + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT 80 + - COUNT( * ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT 80 + - COUNT ( * ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-4894
SELECT - - 82 AS col1, 76 * - + SUM( ALL + + 44 ) AS col1
----
82
-3344

skipif mysql # not compatible
query II rowsort label-4894
SELECT - - 82 AS col1, 76 * - + SUM ( ALL + + 44 ) AS col1
----
82
-3344

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT - + 69 * + + 64 DIV - + 32 + + 47 * 52
----
2582

skipif mysql # not compatible
query I rowsort label-4895
SELECT - + 69 * + + 64 / - + 32 + + 47 * 52
----
2582

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT 25 * + COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT 25 * + COUNT ( * ) AS col2
----
25

query I rowsort
SELECT - ( 42 ) col1
----
-42

query I rowsort
SELECT ALL + + 6 * + + 10 AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4899
SELECT CAST( NULL AS SIGNED ) * + 41 * 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT CAST ( NULL AS INTEGER ) * + 41 * 8 AS col0
----
NULL

query I rowsort
SELECT ALL - 85 + + 44 AS col2
----
-41

query I rowsort
SELECT 12 * - 10 * + + 87 + ( 99 )
----
-10341

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT MAX( + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-4902
SELECT MAX ( + 96 )
----
96

query I rowsort
SELECT + 43 * 70
----
3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4904
SELECT - 89 DIV - COUNT( * ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4904
SELECT - 89 / - COUNT ( * ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT - COUNT( * ) * 26 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - COUNT ( * ) * 26 AS col0
----
-26

query I rowsort
SELECT - + 36 * + 19
----
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT DISTINCT - COUNT( * ) * + ( - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT - COUNT ( * ) * + ( - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT COUNT( * ) col1, 0 + + MAX( ALL + - 72 ) AS col2
----
1
-72

skipif mysql # not compatible
query II rowsort label-4908
SELECT COUNT ( * ) col1, 0 + + MAX ( ALL + - 72 ) AS col2
----
1
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4909
SELECT + COUNT( * ) DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT + COUNT ( * ) / + 50
----
0

query I rowsort
SELECT ALL + + 97 + - - 58
----
155

query I rowsort
SELECT 89 * 19
----
1691

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL - 87 + + 5 + COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - 87 + + 5 + COUNT ( * ) AS col2
----
-81

query I rowsort
SELECT ALL 32 * + 8 * 31 AS col1
----
7936

onlyif mysql # aggregate syntax: 
query II rowsort label-4914
SELECT DISTINCT 26 - - COUNT( * ) - COUNT( * ), 50 AS col2
----
26
50

skipif mysql # not compatible
query II rowsort label-4914
SELECT DISTINCT 26 - - COUNT ( * ) - COUNT ( * ), 50 AS col2
----
26
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4915
SELECT ALL CAST( - - 10 AS SIGNED ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL CAST ( - - 10 AS INTEGER ) AS col2
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4916
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col2, + 32
----
1
32

skipif mysql # not compatible
query II rowsort label-4916
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col2, + 32
----
1
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4917
SELECT 42 AS col2, COUNT( * ) + - + 95 AS col1
----
42
-94

skipif mysql # not compatible
query II rowsort label-4917
SELECT 42 AS col2, COUNT ( * ) + - + 95 AS col1
----
42
-94

query I rowsort
SELECT ALL - NULLIF ( - 28, + 16 * + 37 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4919
SELECT 15 AS col1, COUNT( + CAST( + 88 AS SIGNED ) ) AS col1
----
15
1

skipif mysql # not compatible
query II rowsort label-4919
SELECT 15 AS col1, COUNT ( + CAST ( + 88 AS INTEGER ) ) AS col1
----
15
1

query I rowsort
SELECT DISTINCT - 18 * 20 col0
----
-360

query I rowsort
SELECT ALL - 9 * - 69 col2
----
621

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL + 1 + ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + 1 + ( - COUNT ( * ) )
----
0

query I rowsort
SELECT DISTINCT - + 11 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT DISTINCT - ( + 60 ) * - CAST( 16 AS SIGNED )
----
960

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT - ( + 60 ) * - CAST ( 16 AS INTEGER )
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - COUNT( * ) + - 20 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4925
SELECT - COUNT ( * ) + - 20 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT DISTINCT + - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT + - ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT MAX( DISTINCT - - 49 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4927
SELECT MAX ( DISTINCT - - 49 ) AS col2
----
49

query I rowsort
SELECT ALL 78 + - 88
----
-10

query II rowsort
SELECT - ( - - 25 ) col2, 12 AS col2
----
-25
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT - + 42 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-4930
SELECT - + 42 / 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT DISTINCT + COALESCE ( + 50, - COUNT( * ) ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + COALESCE ( + 50, - COUNT ( * ) ) AS col1
----
50

query I rowsort
SELECT - ( - 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT SUM( ALL - + 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-4933
SELECT SUM ( ALL - + 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT DISTINCT + 58 + + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT + 58 + + - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4935
SELECT - MAX( ALL + + 0 ) DIV - 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4935
SELECT - MAX ( ALL + + 0 ) / - 17 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT ALL 55 + - AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL 55 + - AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 20 + 67 AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT - CAST( NULL AS SIGNED ) * - 15 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT - CAST ( NULL AS INTEGER ) * - 15 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT DISTINCT COUNT( ALL + 68 )
----
1

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT COUNT ( ALL + 68 )
----
1

query I rowsort
SELECT ( + + 65 ) AS col2
----
65

query I rowsort
SELECT DISTINCT + ( + 74 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT DISTINCT + COALESCE ( + 50, 43 + + 60, - COUNT( * ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT + COALESCE ( + 50, 43 + + 60, - COUNT ( * ) ) AS col2
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT ALL + 46 + - CAST( 70 AS SIGNED ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL + 46 + - CAST ( 70 AS INTEGER ) AS col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL - MIN( DISTINCT + + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL - MIN ( DISTINCT + + 59 )
----
-59

query I rowsort
SELECT 23 * 75 AS col2
----
1725

query I rowsort
SELECT DISTINCT ( - 15 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT MIN( DISTINCT - + 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4947
SELECT MIN ( DISTINCT - + 72 ) AS col1
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-4948
SELECT ALL + 39 DIV + 10 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL + 39 / + 10 AS col1
----
3

query I rowsort
SELECT DISTINCT - 7 col1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4950
SELECT DISTINCT 38 DIV 48
----
0

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT 38 / 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT - COUNT( 48 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4951
SELECT - COUNT ( 48 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT - 85 DIV 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT - 85 / 96 AS col0
----
0

query I rowsort
SELECT ALL 44 * 76 + + 82
----
3426

query I rowsort
SELECT ALL - + 67 * 37 AS col0
----
-2479

query I rowsort
SELECT + 39 * 18
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL + NULLIF ( + MIN( ALL 43 ), - 80 + + 20 )
----
43

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL + NULLIF ( + MIN ( ALL 43 ), - 80 + + 20 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT + 57 - COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-4957
SELECT + 57 - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT SUM( + 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-4958
SELECT SUM ( + 55 ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT + 7 - MIN( ( + 69 ) ) col0
----
-62

skipif mysql # not compatible
query I rowsort label-4959
SELECT + 7 - MIN ( ( + 69 ) ) col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT + 53 * COUNT( * ) * COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-4960
SELECT + 53 * COUNT ( * ) * COUNT ( * ) AS col0
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4961
SELECT - CAST( + + 65 AS SIGNED ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-4961
SELECT - CAST ( + + 65 AS INTEGER ) AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT - + MIN( ALL 29 ) + - 62 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4962
SELECT - + MIN ( ALL 29 ) + - 62 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - COUNT( * ) + + ( + + 20 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - COUNT ( * ) + + ( + + 20 ) AS col2
----
19

query I rowsort
SELECT 59 + - 2 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL 88 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL 88 * - COUNT ( * )
----
-88

query I rowsort
SELECT ALL - 4 * - - 7
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT DISTINCT + - COUNT( * ) * - + 50 * COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT + - COUNT ( * ) * - + 50 * COUNT ( * )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT MAX( ALL + 71 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-4968
SELECT MAX ( ALL + 71 ) col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT COUNT( + 26 )
----
1

skipif mysql # not compatible
query I rowsort label-4969
SELECT COUNT ( + 26 )
----
1

query I rowsort
SELECT - 55 + - 1 AS col1
----
-56

query I rowsort
SELECT ALL + 94 col0
----
94

query I rowsort
SELECT + ( + - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT 21 * + 38 + COUNT( * ) AS col0
----
799

skipif mysql # not compatible
query I rowsort label-4973
SELECT 21 * + 38 + COUNT ( * ) AS col0
----
799

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT CASE - + 7 WHEN COUNT( * ) THEN NULL ELSE + - COUNT( * ) * + 1 END
----
-1

skipif mysql # not compatible
query I rowsort label-4974
SELECT CASE - + 7 WHEN COUNT ( * ) THEN NULL ELSE + - COUNT ( * ) * + 1 END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 61
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4976
SELECT 42 + - - 81, COUNT( * ) AS col0
----
123
1

skipif mysql # not compatible
query II rowsort label-4976
SELECT 42 + - - 81, COUNT ( * ) AS col0
----
123
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT - COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT - COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT 83 + 93 AS col1
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT - 13 * COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT - 13 * COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT MAX( ALL + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-4980
SELECT MAX ( ALL + 93 ) AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4981
SELECT ALL + COUNT( * ) DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL + COUNT ( * ) / 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT 91 * - + COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT 91 * - + COUNT ( * ) AS col2
----
-91

query I rowsort
SELECT DISTINCT 55 * + - ( + 89 )
----
-4895

query I rowsort
SELECT ( + 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL + COUNT( ALL - 85 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + COUNT ( ALL - 85 ) AS col2
----
1

query I rowsort
SELECT + ( + - 25 ) AS col2
----
-25

query I rowsort
SELECT ( + - 52 )
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4988
SELECT - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4988
SELECT - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - CASE WHEN NULL NOT BETWEEN ( NULL ) AND 53 THEN - - 50 WHEN NULL IS NULL THEN NULL END / + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT + 44 * + ( - COUNT( DISTINCT - 93 ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-4990
SELECT + 44 * + ( - COUNT ( DISTINCT - 93 ) ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-4991
SELECT ALL - COUNT( * ) AS col0, + COUNT( * ) * + - COUNT( * ) * - + ( - + 12 ) + + - ( + 51 ) AS col1
----
-1
-63

skipif mysql # not compatible
query II rowsort label-4991
SELECT ALL - COUNT ( * ) AS col0, + COUNT ( * ) * + - COUNT ( * ) * - + ( - + 12 ) + + - ( + 51 ) AS col1
----
-1
-63

query I rowsort
SELECT - + ( 82 )
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT DISTINCT 32 * + 13 AS col2, - COUNT( * )
----
416
-1

skipif mysql # not compatible
query II rowsort label-4993
SELECT DISTINCT 32 * + 13 AS col2, - COUNT ( * )
----
416
-1

query I rowsort
SELECT ALL 89 * - - ( + - 7 ) AS col2
----
-623

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT SUM( ALL + 96 )
----
96

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT SUM ( ALL + 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4996
SELECT DISTINCT + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - ( + - 25 ) AS col0
----
25

query I rowsort
SELECT - ( 49 ) col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT ALL 83 - - - COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-4999
SELECT ALL 83 - - - COUNT ( * ) AS col0
----
82

query I rowsort
SELECT - ( + + 74 )
----
-74

query I rowsort
SELECT NULLIF ( + 70, + - 60 ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT COUNT( * ) * - 34 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5002
SELECT COUNT ( * ) * - 34 AS col0
----
-34

query I rowsort
SELECT ALL 70 + + + 34
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT COUNT( * ) * 38 AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5004
SELECT COUNT ( * ) * 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL - + SUM( DISTINCT + 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - + SUM ( DISTINCT + 42 ) AS col2
----
-42

query I rowsort
SELECT DISTINCT - + ( - + 35 ) AS col2
----
35

query I rowsort
SELECT 86 * + 55 col0
----
4730

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL COUNT( + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL COUNT ( + 18 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT + COUNT( * ) + 23 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + COUNT ( * ) + 23 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT - - MAX( DISTINCT 58 )
----
58

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - - MAX ( DISTINCT 58 )
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL 79 * - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL 79 * - COUNT ( * )
----
-79

query I rowsort
SELECT - 89 + - ( + 87 ) AS col1
----
-176

query I rowsort
SELECT + ( + - 82 )
----
-82

query I rowsort
SELECT + + 78 - - 99
----
177

query I rowsort
SELECT ALL + ( 11 ) AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL ( - - CAST ( NULL AS INTEGER ) ) * 10
----
NULL

query I rowsort
SELECT + ( + - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT + ( - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5018
SELECT + ( - COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT ALL - ( + - 86 ) AS col0
----
86

query I rowsort
SELECT 24 * + + 90
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL - MAX( ALL + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL - MAX ( ALL + 50 )
----
-50

query I rowsort
SELECT ALL + 63 * + 84
----
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL MIN( - 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL MIN ( - 7 ) AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT ALL COUNT( * ) + 93
----
94

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL COUNT ( * ) + 93
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-5025
SELECT - + 95 AS col2, - 77 DIV - 23 AS col2
----
-95
3

skipif mysql # not compatible
query II rowsort label-5025
SELECT - + 95 AS col2, - 77 / - 23 AS col2
----
-95
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT + COUNT( * ) - - 14
----
15

skipif mysql # not compatible
query I rowsort label-5026
SELECT + COUNT ( * ) - - 14
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL - SUM( ALL + 19 )
----
-19

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - SUM ( ALL + 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5028
SELECT DISTINCT - COUNT( * ) * + - 51 col2
----
51

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT - COUNT ( * ) * + - 51 col2
----
51

query I rowsort
SELECT DISTINCT - 57 + + 50
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT 96 - + + COUNT( * ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT 96 - + + COUNT ( * ) AS col0
----
95

query II rowsort
SELECT ALL 74 AS col2, + 2
----
74
2

query I rowsort
SELECT + 25 + - 14 * + 5
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5033
SELECT ALL 31 - - COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL 31 - - COUNT ( * )
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5034
SELECT DISTINCT + + 38 DIV + COUNT( * ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT + + 38 / + COUNT ( * ) AS col0
----
38

query I rowsort
SELECT 67 * + 66 + + 38 col0
----
4460

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + COUNT( * ) - + 12 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5036
SELECT + COUNT ( * ) - + 12 AS col2
----
-11

query I rowsort
SELECT + ( - + 85 )
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5038
SELECT DISTINCT + CAST( + CAST( - 96 AS SIGNED ) AS SIGNED ) + - COUNT( * ) col1
----
-97

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT + CAST ( + CAST ( - 96 AS INTEGER ) AS INTEGER ) + - COUNT ( * ) col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5039
SELECT ALL CAST( NULL AS SIGNED ) AS col2, 7 + - COUNT( * ) * - COUNT( * )
----
NULL
8

skipif mysql # not compatible
query II rowsort label-5039
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, 7 + - COUNT ( * ) * - COUNT ( * )
----
NULL
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5040
SELECT CAST( NULL AS SIGNED ) + + + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT CAST ( NULL AS INTEGER ) + + + 28 AS col1
----
NULL

query I rowsort
SELECT + 41 + + - 30
----
11

query I rowsort
SELECT 59 + - + 8
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT 71 + + COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5043
SELECT 71 + + COUNT ( * ) AS col0
----
72

query I rowsort
SELECT ALL + 72 + 4 AS col2
----
76

query I rowsort
SELECT ALL - NULLIF ( - + 98, - 86 ) * + + 18 AS col0
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL + COUNT( - + 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL + COUNT ( - + 0 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5047
SELECT + SUM( - + 2 ) + + - CAST( + 13 AS DECIMAL ) + - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT + SUM ( - + 2 ) + + - CAST ( + 13 AS REAL ) + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT DISTINCT 31 * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT 31 * - COUNT ( * )
----
-31

query I rowsort
SELECT ALL + + 34 - - + 25 + + - 12
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - - 9 + + - COUNT( * ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-5050
SELECT - - 9 + + - COUNT ( * ) AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5051
SELECT ALL COUNT( * ) DIV + 66
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL COUNT ( * ) / + 66
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5052
SELECT COUNT( * ) DIV + - ( - + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5052
SELECT COUNT ( * ) / + - ( - + COUNT ( * ) ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5053
SELECT 85 DIV + 31
----
2

skipif mysql # not compatible
query I rowsort label-5053
SELECT 85 / + 31
----
2

query I rowsort
SELECT ALL - 73 - + 20 AS col2
----
-93

query II rowsort
SELECT - 23 * + + 42 AS col1, - 91 AS col2
----
-966
-91

query I rowsort
SELECT ALL 2 * - 64 AS col1
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT SUM( ALL + ( 89 ) )
----
89

skipif mysql # not compatible
query I rowsort label-5057
SELECT SUM ( ALL + ( 89 ) )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5058
SELECT ALL ( - COUNT( * ) ) * - 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5058
SELECT ALL ( - COUNT ( * ) ) * - 14 AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5059
SELECT ALL + 4 DIV - 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL + 4 / - 45 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT + COALESCE ( + MIN( + - 54 ), + 10 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5060
SELECT + COALESCE ( + MIN ( + - 54 ), + 10 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT ALL + ( - - COUNT( DISTINCT 76 ) ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5061
SELECT ALL + ( - - COUNT ( DISTINCT 76 ) ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - - ( 33 ) * + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-5062
SELECT - - ( 33 ) * + COUNT ( * )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5063
SELECT DISTINCT + CAST( - 90 AS SIGNED ) AS col0, + 35
----
-90
35

skipif mysql # not compatible
query II rowsort label-5063
SELECT DISTINCT + CAST ( - 90 AS INTEGER ) AS col0, + 35
----
-90
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT - MAX( DISTINCT + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-5064
SELECT - MAX ( DISTINCT + 48 ) AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT ALL - 65 DIV + 39
----
-1

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL - 65 / + 39
----
-1

query I rowsort
SELECT + ( + - 29 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT + MIN( - ( - 18 ) )
----
18

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT + MIN ( - ( - 18 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT DISTINCT SUM( - COALESCE ( - 41, 4 ) ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT SUM ( - COALESCE ( - 41, 4 ) ) AS col2
----
41

query I rowsort
SELECT - ( - 84 ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT DISTINCT + ( COUNT( * ) ) * + 22 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + ( COUNT ( * ) ) * + 22 AS col2
----
22

query I rowsort
SELECT DISTINCT - 4 * - 40
----
160

onlyif mysql # DIV for integer division: 
query I rowsort label-5072
SELECT 3 DIV - + 53
----
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT 3 / - + 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT - 83 DIV + 4 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5073
SELECT - 83 / + 4 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT ALL - 11 * - - COUNT( * ) * 8 AS col0
----
-88

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL - 11 * - - COUNT ( * ) * 8 AS col0
----
-88

query I rowsort
SELECT ALL - - 0 AS col0
----
0

query I rowsort
SELECT - ( + 5 ) AS col0
----
-5

query I rowsort
SELECT ( - + 69 )
----
-69

query I rowsort
SELECT ALL + - 1 * - + 42
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5079
SELECT - 74 * + - 83 + COUNT( * )
----
6143

skipif mysql # not compatible
query I rowsort label-5079
SELECT - 74 * + - 83 + COUNT ( * )
----
6143

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT - SUM( - - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5080
SELECT - SUM ( - - 11 ) AS col0
----
-11

query I rowsort
SELECT + ( - - 7 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5082
SELECT DISTINCT - 92 DIV + CAST( + 37 AS SIGNED ) - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT - 92 / + CAST ( + 37 AS INTEGER ) - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT - COUNT( * ) * - + 38 * + + 39
----
1482

skipif mysql # not compatible
query I rowsort label-5083
SELECT - COUNT ( * ) * - + 38 * + + 39
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT - MAX( DISTINCT - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - MAX ( DISTINCT - 91 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5085
SELECT NULLIF ( - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) ) * 27 + - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) ) * 27 + - - COUNT ( * )
----
NULL

query I rowsort
SELECT 19 + + 58
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL + SUM( 54 ) + + - 91 AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL + SUM ( 54 ) + + - 91 AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL + COUNT( * ) * 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL + COUNT ( * ) * 98 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5089
SELECT ALL - - SUM( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT 48 - + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5090
SELECT 48 - + COUNT ( * ) AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL COUNT( + + 76 )
----
1

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL COUNT ( + + 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT NULLIF ( COUNT( * ), + 37 )
----
1

skipif mysql # not compatible
query I rowsort label-5092
SELECT NULLIF ( COUNT ( * ), + 37 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5093
SELECT ALL + + CAST( - ( - CAST( NULL AS DECIMAL ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL + + CAST ( - ( - CAST ( NULL AS REAL ) ) AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 72 AS col0, 2 AS col0
----
72
2

query I rowsort
SELECT + 0 + + 42 AS col1
----
42

query I rowsort
SELECT + 76 + 16 AS col0
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5097
SELECT + MAX( ALL 78 ) DIV + - 73
----
-1

skipif mysql # not compatible
query I rowsort label-5097
SELECT + MAX ( ALL 78 ) / + - 73
----
-1

query I rowsort
SELECT NULLIF ( + 13, + 79 ) AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT 37 + - 82 DIV 93
----
37

skipif mysql # not compatible
query I rowsort label-5099
SELECT 37 + - 82 / 93
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT - 62 * + MIN( DISTINCT + 79 )
----
-4898

skipif mysql # not compatible
query I rowsort label-5100
SELECT - 62 * + MIN ( DISTINCT + 79 )
----
-4898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT ALL + CAST( NULL AS SIGNED ) * ( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL + CAST ( NULL AS INTEGER ) * ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 2 * 55 + - + 36 AS col1
----
74

query II rowsort
SELECT 21 col0, - 88 AS col1
----
21
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT ALL MAX( + - ( 39 ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL MAX ( + - ( 39 ) ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + COUNT( * ) + COUNT( * ) * + + 61 col2
----
62

skipif mysql # not compatible
query I rowsort label-5105
SELECT + COUNT ( * ) + COUNT ( * ) * + + 61 col2
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT - MAX( ALL 98 ) AS col0, 5 AS col2
----
-98
5

skipif mysql # not compatible
query II rowsort label-5106
SELECT - MAX ( ALL 98 ) AS col0, 5 AS col2
----
-98
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5107
SELECT 57 DIV SUM( ALL + 16 )
----
3

skipif mysql # not compatible
query I rowsort label-5107
SELECT 57 / SUM ( ALL + 16 )
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5108
SELECT 47 DIV + + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-5108
SELECT 47 / + + COUNT ( * ) AS col1
----
47

query I rowsort
SELECT 53 * + + 29 AS col0
----
1537

query I rowsort
SELECT ALL 98 * + 17
----
1666

query I rowsort
SELECT ALL - 26 * + 60 AS col1
----
-1560

onlyif mysql # DIV for integer division: 
query I rowsort label-5112
SELECT - 99 DIV - + 9 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5112
SELECT - 99 / - + 9 AS col1
----
11

query I rowsort
SELECT 96 * + + 16
----
1536

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5114
SELECT DISTINCT - MAX( ALL CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT - MAX ( ALL CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5115
SELECT ALL - 72 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - 72 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT + MIN( + - 85 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5116
SELECT + MIN ( + - 85 ) AS col2
----
-85

query II rowsort
SELECT + 2 AS col0, - 93 - - 31 AS col0
----
2
-62

query II rowsort
SELECT + 33 AS col2, + 44 col1
----
33
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL + MIN( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL + MIN ( + 43 )
----
43

query I rowsort
SELECT ALL + + 70 AS col1
----
70

query I rowsort
SELECT - - 86 * 99 AS col0
----
8514

query I rowsort
SELECT DISTINCT ( + - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5123
SELECT DISTINCT 59, ( - + COUNT( * ) ) - COUNT( * ) AS col0
----
59
-2

skipif mysql # not compatible
query II rowsort label-5123
SELECT DISTINCT 59, ( - + COUNT ( * ) ) - COUNT ( * ) AS col0
----
59
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - MIN( + 49 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5124
SELECT - MIN ( + 49 ) AS col1
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5125
SELECT ALL CAST( + COALESCE ( + 4, - COUNT( * ) ) AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL CAST ( + COALESCE ( + 4, - COUNT ( * ) ) AS INTEGER )
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5126
SELECT ALL 76 DIV + + 72
----
1

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL 76 / + + 72
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT CAST( - 53 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-5127
SELECT CAST ( - 53 AS INTEGER )
----
-53

query I rowsort
SELECT + 10 + + 4 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT CASE COUNT( * ) WHEN + 47 THEN - 61 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT CASE COUNT ( * ) WHEN + 47 THEN - 61 END + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( 39 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5131
SELECT ALL + 57 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + 57 / - 71
----
0

query I rowsort
SELECT 16 * + 63
----
1008

query I rowsort
SELECT 87 - - 8
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL - - ( - - MIN( ALL 93 ) ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - - ( - - MIN ( ALL 93 ) ) AS col2
----
93

query I rowsort
SELECT DISTINCT - - 23 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT - SUM( - - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-5136
SELECT - SUM ( - - 23 ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT 1 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT 1 / + 35
----
0

query I rowsort
SELECT ALL + 54 * 52 AS col1
----
2808

query I rowsort
SELECT - - ( - - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT + MIN( DISTINCT + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5140
SELECT + MIN ( DISTINCT + 22 )
----
22

query II rowsort
SELECT - 70, 46 AS col1
----
-70
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT - + CAST( NULL AS SIGNED ) - - 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT - + CAST ( NULL AS INTEGER ) - - 43 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT - COUNT( + 59 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5143
SELECT - COUNT ( + 59 ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT COUNT( * ) - - + 76
----
77

skipif mysql # not compatible
query I rowsort label-5144
SELECT COUNT ( * ) - - + 76
----
77

query I rowsort
SELECT DISTINCT - + ( + 34 ) col0
----
-34

query I rowsort
SELECT 12 * + 83
----
996

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT DISTINCT + 32 * + COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT + 32 * + COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL + 49 + + ( COUNT( * ) )
----
50

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL + 49 + + ( COUNT ( * ) )
----
50

query I rowsort
SELECT ALL - + 70 * + + 42 AS col0
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT - 98 * + COUNT( * ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-5150
SELECT - 98 * + COUNT ( * ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL CASE - COUNT( * ) WHEN 93 THEN - 49 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL CASE - COUNT ( * ) WHEN 93 THEN - 49 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL + COUNT( * ) + 97 col0
----
98

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL + COUNT ( * ) + 97 col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - ( COUNT( * ) ) * + 64 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-5153
SELECT - ( COUNT ( * ) ) * + 64 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT 25 + 54 * + ( MIN( - 24 ) ) AS col0
----
-1271

skipif mysql # not compatible
query I rowsort label-5154
SELECT 25 + 54 * + ( MIN ( - 24 ) ) AS col0
----
-1271

query I rowsort
SELECT - COALESCE ( - 77, 66 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT MIN( DISTINCT - 1 ) + - 77 * + 8 AS col0
----
-617

skipif mysql # not compatible
query I rowsort label-5156
SELECT MIN ( DISTINCT - 1 ) + - 77 * + 8 AS col0
----
-617

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT SUM( 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-5157
SELECT SUM ( 68 ) AS col1
----
68

query I rowsort
SELECT 43 * 54 + - 22
----
2300

onlyif mysql # aggregate syntax: 
query II rowsort label-5159
SELECT DISTINCT 1 AS col0, ( + - COUNT( * ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-5159
SELECT DISTINCT 1 AS col0, ( + - COUNT ( * ) )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL COUNT( 86 )
----
1

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL COUNT ( 86 )
----
1

query I rowsort
SELECT ALL 64 + 48
----
112

query I rowsort
SELECT DISTINCT + 1 + + 94
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT DISTINCT + COUNT( + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT + COUNT ( + 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5164
SELECT + + COUNT( * ), - 23 + - + COUNT( * ) col0
----
1
-24

skipif mysql # not compatible
query II rowsort label-5164
SELECT + + COUNT ( * ), - 23 + - + COUNT ( * ) col0
----
1
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5165
SELECT - 74 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT - 74 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5166
SELECT ALL + ( + 5 ) DIV - 29 * ( 61 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL + ( + 5 ) / - 29 * ( 61 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + - 21 + - + 47 AS col0
----
-68

query I rowsort
SELECT DISTINCT - - 28 AS col1
----
28

query I rowsort
SELECT DISTINCT - 14 col0
----
-14

query I rowsort
SELECT ALL - 91 col1
----
-91

query I rowsort
SELECT ALL - 87 + 51 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + + MIN( DISTINCT + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-5172
SELECT + + MIN ( DISTINCT + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT 51 * COUNT( * ) * + 90
----
4590

skipif mysql # not compatible
query I rowsort label-5173
SELECT 51 * COUNT ( * ) * + 90
----
4590

query II rowsort
SELECT ALL 14 AS col2, 17 AS col2
----
14
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5175
SELECT DISTINCT AVG ( - ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT DISTINCT AVG ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT 66 * + + 14
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT ALL - ( 72 ) * - - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - ( 72 ) * - - COUNT ( * )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT DISTINCT - 0 * - 57 * + MIN( + 24 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT - 0 * - 57 * + MIN ( + 24 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5179
SELECT DISTINCT + + COUNT( ALL + 94 )
----
1

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + + COUNT ( ALL + 94 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT + COUNT( DISTINCT + 63 ) - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5180
SELECT + COUNT ( DISTINCT + 63 ) - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT + 57 - ( + 17 ) AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT - ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT - ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT ALL - MAX( 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL - MAX ( 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT + SUM( - + 90 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-5184
SELECT + SUM ( - + 90 ) AS col1
----
-90

query I rowsort
SELECT - ( 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL - MAX( DISTINCT - - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - MAX ( DISTINCT - - 62 ) AS col1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT + CAST( NULL AS SIGNED ) * 84 + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5187
SELECT + CAST ( NULL AS INTEGER ) * 84 + + 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT 70 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT 70 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - ( 94 ) col2
----
-94

query I rowsort
SELECT ALL ( + 82 )
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5191
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 29 / 55 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 29 / 55 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT COUNT( * ) * + - 16
----
-16

skipif mysql # not compatible
query I rowsort label-5192
SELECT COUNT ( * ) * + - 16
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT + MIN( ALL - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5193
SELECT + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL + COUNT( * ) + + 3 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL + COUNT ( * ) + + 3 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ( - 19 ) * - COUNT( * ) + 50 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-5195
SELECT ( - 19 ) * - COUNT ( * ) + 50 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL + COUNT( * ) * + 95 AS col1
----
95

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + COUNT ( * ) * + 95 AS col1
----
95

query I rowsort
SELECT DISTINCT + 16 * - 16 AS col0
----
-256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5198
SELECT - - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5198
SELECT - - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT - + COUNT( * ) - COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5199
SELECT - + COUNT ( * ) - COUNT ( * ) AS col0
----
-2

query II rowsort
SELECT ALL + 24 AS col0, - 83 * + 17 AS col0
----
24
-1411

query I rowsort
SELECT + ( - 62 ) AS col0
----
-62

query II rowsort
SELECT ALL - 52 AS col0, + 77
----
-52
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL MAX( ALL + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL MAX ( ALL + 15 ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT MAX( DISTINCT + + 91 ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-5204
SELECT MAX ( DISTINCT + + 91 ) AS col1
----
91

query I rowsort
SELECT + - 75 * + - 84
----
6300

query I rowsort
SELECT 10 * - 9
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT - 96 * COUNT( * ) col2
----
-96

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT - 96 * COUNT ( * ) col2
----
-96

query I rowsort
SELECT + ( - 75 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT NULLIF ( COUNT( * ), - - CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5209
SELECT NULLIF ( COUNT ( * ), - - CAST ( NULL AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT ALL - - ( + 82 )
----
82

query I rowsort
SELECT ALL 6 + + + 82 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT 5 DIV + - 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT 5 / + - 86 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT + ( - COUNT( * ) ) + + 81 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5213
SELECT + ( - COUNT ( * ) ) + + 81 AS col1
----
80

query I rowsort
SELECT ALL + ( - 7 )
----
-7

query I rowsort
SELECT - 94 + - - 46
----
-48

query I rowsort
SELECT DISTINCT + + 86 AS col1
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-5217
SELECT 37 AS col1, - 34 - + COUNT( * )
----
37
-35

skipif mysql # not compatible
query II rowsort label-5217
SELECT 37 AS col1, - 34 - + COUNT ( * )
----
37
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-5218
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-5218
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-5219
SELECT + 92 + + COUNT ( * )
----
93

query I rowsort
SELECT ALL ( - 92 ) * + 2 AS col2
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - + COUNT( * ) * 28
----
-28

skipif mysql # not compatible
query I rowsort label-5221
SELECT - + COUNT ( * ) * 28
----
-28

query I rowsort
SELECT ALL 33 * + 43
----
1419

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL + COUNT( * ) + + 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + COUNT ( * ) + + 78 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL - + SUM( DISTINCT 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL - + SUM ( DISTINCT 61 )
----
-61

query I rowsort
SELECT ALL + ( - + 20 ) * 41 AS col2
----
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT + + MAX( - - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5226
SELECT + + MAX ( - - 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT + - COUNT( * ) * 13 * + - 53
----
689

skipif mysql # not compatible
query I rowsort label-5227
SELECT + - COUNT ( * ) * 13 * + - 53
----
689

query I rowsort
SELECT + - ( 10 )
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-5229
SELECT DISTINCT 70 DIV - 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT 70 / - 84 col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5230
SELECT ALL - CAST( NULL AS DECIMAL ) * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - CAST ( NULL AS REAL ) * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 5 * + - ( ( ( 41 ) ) ) col1
----
-205

query I rowsort
SELECT - 52 * + + 99 AS col2
----
-5148

query I rowsort
SELECT ALL 98 + - - 28 col0
----
126

query I rowsort
SELECT ALL - 24 - + + 2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT + 56 DIV + - ( + 90 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT + 56 / + - ( + 90 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT MAX( ALL - 95 ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-5236
SELECT MAX ( ALL - 95 ) AS col2
----
-95

query II rowsort
SELECT + 9 * + + 72, - 59 AS col2
----
648
-59

query I rowsort
SELECT 23 * 17
----
391

query I rowsort
SELECT - + 46 AS col0
----
-46

query I rowsort
SELECT 79 * 25
----
1975

query I rowsort
SELECT + 15 * 40
----
600

query I rowsort
SELECT ALL - ( - 95 ) AS col2
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5243
SELECT DISTINCT + COALESCE ( + - COUNT( ALL - CAST( NULL AS SIGNED ) ), 62 )
----
0

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT + COALESCE ( + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ), 62 )
----
0

query I rowsort
SELECT 17 - + 59
----
-42

query I rowsort
SELECT ALL - ( 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT SUM( - 78 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5246
SELECT SUM ( - 78 ) AS col1
----
-78

query I rowsort
SELECT DISTINCT - 61 * + 83
----
-5063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT - ( CAST( - COUNT( * ) AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5248
SELECT - ( CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0
----
1

query II rowsort
SELECT + ( 37 ) AS col0, + 74 AS col1
----
37
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT + 51 - - COUNT( * ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5250
SELECT + 51 - - COUNT ( * ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5251
SELECT + ( - 27 ) col2, COUNT( * ) * - - MIN( DISTINCT - 9 )
----
-27
-9

skipif mysql # not compatible
query II rowsort label-5251
SELECT + ( - 27 ) col2, COUNT ( * ) * - - MIN ( DISTINCT - 9 )
----
-27
-9

query I rowsort
SELECT - - ( 52 )
----
52

query I rowsort
SELECT ALL 0 + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT MIN( DISTINCT - 83 ) * + - ( + 8 ) AS col1
----
664

skipif mysql # not compatible
query I rowsort label-5254
SELECT MIN ( DISTINCT - 83 ) * + - ( + 8 ) AS col1
----
664

query I rowsort
SELECT 58 * 70 AS col1
----
4060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5256
SELECT ALL - AVG ( DISTINCT - ( + - CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL - AVG ( DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 78 + - 90
----
-12

query I rowsort
SELECT ( 19 ) col2
----
19

query I rowsort
SELECT - + 63 AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5261
SELECT CAST( NULL AS SIGNED ) - + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5261
SELECT CAST ( NULL AS INTEGER ) - + 41
----
NULL

query I rowsort
SELECT ALL + + 51 AS col1
----
51

query I rowsort
SELECT DISTINCT + + ( ( 9 ) )
----
9

query I rowsort
SELECT + 41 + - 33 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5265
SELECT - MIN( - + ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT - MIN ( - + ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT DISTINCT MIN( ALL + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT MIN ( ALL + 68 ) AS col2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5267
SELECT + 15 DIV - 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT + 15 / - 16 AS col1
----
0

query I rowsort
SELECT - + 17 * 36
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT - - COUNT( * ) * - 19 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-5269
SELECT - - COUNT ( * ) * - 19 AS col0
----
-19

query I rowsort
SELECT DISTINCT ( - ( + - 11 ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT ALL - COALESCE ( - 20, COUNT( * ) ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL - COALESCE ( - 20, COUNT ( * ) ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5272
SELECT + + CAST( + 27 AS SIGNED ), CAST( NULL AS SIGNED ) AS col2
----
27
NULL

skipif mysql # not compatible
query II rowsort label-5272
SELECT + + CAST ( + 27 AS INTEGER ), CAST ( NULL AS INTEGER ) AS col2
----
27
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT DISTINCT COUNT( * ) + + 45
----
46

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT COUNT ( * ) + + 45
----
46

query I rowsort
SELECT ALL - COALESCE ( - - 35, + 7 )
----
-35

query I rowsort
SELECT 96 * - 45
----
-4320

onlyif mysql # aggregate syntax: 
query II rowsort label-5276
SELECT ALL + 85 * + SUM( ALL - + 39 ), 58 AS col2
----
-3315
58

skipif mysql # not compatible
query II rowsort label-5276
SELECT ALL + 85 * + SUM ( ALL - + 39 ), 58 AS col2
----
-3315
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5277
SELECT COUNT( * ) * 9 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5277
SELECT COUNT ( * ) * 9 AS col2
----
9

query I rowsort
SELECT ( - 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT SUM( DISTINCT - 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-5279
SELECT SUM ( DISTINCT - 79 ) AS col1
----
-79

query I rowsort
SELECT ALL 56 - - 17
----
73

query I rowsort
SELECT ALL + - 60 AS col0
----
-60

query I rowsort
SELECT + ( + 10 )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5283
SELECT + 32 DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5283
SELECT + 32 / + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT - MAX( DISTINCT + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-5284
SELECT - MAX ( DISTINCT + 11 )
----
-11

query I rowsort
SELECT ALL + 41 + - 78 AS col1
----
-37

query I rowsort
SELECT + 45 + ( 79 ) col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL MIN( ALL 97 )
----
97

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL MIN ( ALL 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT SUM( DISTINCT - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-5288
SELECT SUM ( DISTINCT - 92 ) AS col1
----
-92

query I rowsort
SELECT + - 78 - ( + 40 )
----
-118

query I rowsort
SELECT DISTINCT 98 * + - 20 AS col1
----
-1960

query I rowsort
SELECT ALL 81 * - 76 * - 6 AS col0
----
36936

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT - + 68 - + COUNT( * ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5292
SELECT - + 68 - + COUNT ( * ) AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5293
SELECT ALL - CAST( NULL AS SIGNED ) col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5293
SELECT ALL - CAST ( NULL AS INTEGER ) col0, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5294
SELECT - CAST( NULL AS SIGNED ) * - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT - CAST ( NULL AS INTEGER ) * - 37 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5295
SELECT ALL - ( + + 52 ) AS col0, - CAST( NULL AS DECIMAL )
----
-52
NULL

skipif mysql # not compatible
query II rowsort label-5295
SELECT ALL - ( + + 52 ) AS col0, - CAST ( NULL AS REAL )
----
-52
NULL

query I rowsort
SELECT DISTINCT - + 64 AS col0
----
-64

query I rowsort
SELECT ALL + 34 * 1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT + COUNT( * ) - + - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5298
SELECT + COUNT ( * ) - + - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5299
SELECT ALL + 35 * COUNT( * ) col1
----
35

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + 35 * COUNT ( * ) col1
----
35

query I rowsort
SELECT DISTINCT 73 * + - 33
----
-2409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5301
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5301
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - 33 + 13
----
-20

query I rowsort
SELECT NULLIF ( + 89, 28 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL + CASE 43 WHEN - 60 THEN - - 24 + 46 + - COUNT( * ) * + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + CASE 43 WHEN - 60 THEN - - 24 + 46 + - COUNT ( * ) * + 95 END
----
NULL

query I rowsort
SELECT - 76 * - 3
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL COUNT( 22 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL COUNT ( 22 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT + - ( - COUNT( * ) ) * NULLIF ( + 88, + 64 / + - 83 + - + SUM( DISTINCT + 84 ) * - 74 ) col0
----
88

skipif mysql # not compatible
query I rowsort label-5307
SELECT + - ( - COUNT ( * ) ) * NULLIF ( + 88, + 64 / + - 83 + - + SUM ( DISTINCT + 84 ) * - 74 ) col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + MIN( ALL + 94 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5308
SELECT + MIN ( ALL + 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT - + COUNT( * ) + - ( + - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5309
SELECT - + COUNT ( * ) + - ( + - COUNT ( * ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL - 86 * + + COUNT( * ) AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL - 86 * + + COUNT ( * ) AS col2
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT COUNT( * ) + + + COUNT( - + 88 ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5311
SELECT COUNT ( * ) + + + COUNT ( - + 88 ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT 30 * - + CAST( - 8 AS SIGNED ) AS col2
----
240

skipif mysql # not compatible
query I rowsort label-5312
SELECT 30 * - + CAST ( - 8 AS INTEGER ) AS col2
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT MIN( ALL + + 31 ) + + ( COUNT( * ) ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5313
SELECT MIN ( ALL + + 31 ) + + ( COUNT ( * ) ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL 62 * COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL 62 * COUNT ( * )
----
62

query I rowsort
SELECT DISTINCT - ( - - 78 ) col2
----
-78

query I rowsort
SELECT ALL 2 + - 88
----
-86

query I rowsort
SELECT DISTINCT + + 85 + - 14
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL + COUNT( ALL - 48 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + COUNT ( ALL - 48 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT MAX( - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-5319
SELECT MAX ( - 6 )
----
-6

query II rowsort
SELECT 22 AS col2, 68
----
22
68

query I rowsort
SELECT ALL + 25 + + 61
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT - COUNT( + 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5322
SELECT - COUNT ( + 55 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT ALL 68, COUNT( + + 11 ) AS col2
----
68
1

skipif mysql # not compatible
query II rowsort label-5324
SELECT ALL 68, COUNT ( + + 11 ) AS col2
----
68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT - 79 + - COUNT( * ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5325
SELECT - 79 + - COUNT ( * ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5326
SELECT DISTINCT - MAX( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - MAX ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5327
SELECT ALL - 7 DIV + COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL - 7 / + COUNT ( * ) AS col1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT DISTINCT 81 + CAST( 62 AS SIGNED ) * 48 AS col0
----
3057

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT 81 + CAST ( 62 AS INTEGER ) * 48 AS col0
----
3057

query I rowsort
SELECT 74 * 9 AS col1
----
666

query I rowsort
SELECT + 36 * - 52
----
-1872

query I rowsort
SELECT + - 13 + - 66 AS col0
----
-79

query I rowsort
SELECT ALL - 34 * + 83
----
-2822

onlyif mysql # DIV for integer division: 
query I rowsort label-5333
SELECT + 67 + - - 57 DIV 27
----
69

skipif mysql # not compatible
query I rowsort label-5333
SELECT + 67 + - - 57 / 27
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT + 81 + + COUNT( * ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5334
SELECT + 81 + + COUNT ( * ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + 89 * + COUNT( * ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5335
SELECT + 89 * + COUNT ( * ) AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5336
SELECT DISTINCT 61 * - - ( + 14 ) * COUNT( * ) + - + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT 61 * - - ( + 14 ) * COUNT ( * ) + - + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 33 AS col0
----
NULL

query I rowsort
SELECT 90 * + 91 col1
----
8190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5338
SELECT + 53 + - - ( + + NULLIF ( COUNT( * ), 91 + - 80 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT + 53 + - - ( + + NULLIF ( COUNT ( * ), 91 + - 80 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5339
SELECT DISTINCT + 78 DIV + 87 col2
----
0

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT + 78 / + 87 col2
----
0

query I rowsort
SELECT NULLIF ( + 69, - ( + 95 ) ) col2
----
69

query I rowsort
SELECT - ( - 72 ) AS col2
----
72

query I rowsort
SELECT ALL 4 + + + 33 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL - COUNT( * ) + + 40
----
39

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - COUNT ( * ) + + 40
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5344
SELECT DISTINCT SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 44 * + 15
----
660

query I rowsort
SELECT - + 84 * + - 80
----
6720

onlyif mysql # DIV for integer division: 
query I rowsort label-5347
SELECT ALL - 68 DIV + - 66
----
1

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL - 68 / + - 66
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT DISTINCT 98 * COUNT( * ) + - + 17
----
81

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT 98 * COUNT ( * ) + - + 17
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT 25 * + - COUNT( * ) + + 27 col0
----
2

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT 25 * + - COUNT ( * ) + + 27 col0
----
2

query II rowsort
SELECT ALL - 38 AS col1, - 63
----
-38
-63

query I rowsort
SELECT ALL + 17 + - 64
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT COUNT( * ) + 30
----
31

skipif mysql # not compatible
query I rowsort label-5352
SELECT COUNT ( * ) + 30
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT 49 * COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-5353
SELECT 49 * COUNT ( * )
----
49

query I rowsort
SELECT ALL - 58 * 29
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-5355
SELECT DISTINCT SUM( + 93 ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT SUM ( + 93 ) AS col1
----
93

query I rowsort
SELECT ALL NULLIF ( - 18, - 2 )
----
-18

query I rowsort
SELECT - - 44 + 41 * + 73 AS col2
----
3037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT DISTINCT - 39 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT - 39 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT ALL + MAX( - + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-5359
SELECT ALL + MAX ( - + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT + + COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5360
SELECT + + COUNT ( * ) + COUNT ( * )
----
2

query I rowsort
SELECT 99 + + 13 AS col0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL - COUNT( ALL 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL - COUNT ( ALL 85 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT - CAST( + AVG ( DISTINCT - 52 ) AS SIGNED ) col2
----
52

skipif mysql # not compatible
query I rowsort label-5363
SELECT - CAST ( + AVG ( DISTINCT - 52 ) AS INTEGER ) col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5364
SELECT 88 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5364
SELECT 88 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 19 col0
----
-19

query I rowsort
SELECT ( + 46 ) * - 91
----
-4186

onlyif mysql # DIV for integer division: 
query I rowsort label-5367
SELECT ALL 80 DIV - 62
----
-1

skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL 80 / - 62
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT ALL + COUNT( * ) * + + 64
----
64

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL + COUNT ( * ) * + + 64
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5369
SELECT DISTINCT - AVG ( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT - AVG ( ALL CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT ALL 94 - + 10 DIV - 68
----
94

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL 94 - + 10 / - 68
----
94

query I rowsort
SELECT + 86 * + - 49 AS col1
----
-4214

query I rowsort
SELECT + 40 + - + ( + 81 )
----
-41

query I rowsort
SELECT ( 81 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT DISTINCT - 88 * - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT - 88 * - COUNT ( * )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5375
SELECT DISTINCT - + 93 DIV + 76 * + CAST( - ( + + COUNT( * ) ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT - + 93 / + 76 * + CAST ( - ( + + COUNT ( * ) ) AS INTEGER )
----
1

query I rowsort
SELECT ALL ( + 90 ) + + - 56 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT + COUNT( * ) - + 75 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5377
SELECT + COUNT ( * ) - + 75 AS col0
----
-74

query I rowsort
SELECT DISTINCT 68 + - 27
----
41

query I rowsort
SELECT ALL + 0 * - - 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5380
SELECT DISTINCT + COUNT( * ) AS col1, 5 * - COUNT( * ) AS col2
----
1
-5

skipif mysql # not compatible
query II rowsort label-5380
SELECT DISTINCT + COUNT ( * ) AS col1, 5 * - COUNT ( * ) AS col2
----
1
-5

query I rowsort
SELECT 24 + 83 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT 42 + + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-5382
SELECT 42 + + COUNT ( * )
----
43

query I rowsort
SELECT ALL + 45 * - ( + 69 )
----
-3105

query I rowsort
SELECT DISTINCT 72 + - - 50 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - COUNT( ALL + - ( + ( - 45 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5385
SELECT - COUNT ( ALL + - ( + ( - 45 ) ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT - COUNT( * ) + - 89 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5386
SELECT - COUNT ( * ) + - 89 AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL 8 * + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL 8 * + COUNT ( * )
----
8

query I rowsort
SELECT ALL + ( + - 36 )
----
-36

query I rowsort
SELECT ALL - 47 * 1
----
-47

query I rowsort
SELECT ALL 43 * - + 41 AS col1
----
-1763

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT 17 DIV - 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5391
SELECT 17 / - 68 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT - 37 - - 11 DIV + MIN( + 43 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5392
SELECT - 37 - - 11 / + MIN ( + 43 ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT COUNT( * ) + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) col2
----
2

query I rowsort
SELECT ALL + 7 * 9 AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5395
SELECT 78 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5395
SELECT 78 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT + ( - 17 ) * COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5396
SELECT + ( - 17 ) * COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5397
SELECT DISTINCT - COUNT( * ) DIV 84 AS col2, + 52
----
0
52

skipif mysql # not compatible
query II rowsort label-5397
SELECT DISTINCT - COUNT ( * ) / 84 AS col2, + 52
----
0
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT ALL ( - SUM( + 62 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-5398
SELECT ALL ( - SUM ( + 62 ) )
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5399
SELECT DISTINCT - COUNT( * ) DIV 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT - COUNT ( * ) / 32 AS col1
----
0

query I rowsort
SELECT ( COALESCE ( + 67, 41 ) )
----
67

query I rowsort
SELECT - ( - + 34 ) * - 76 + - 68 col2
----
-2652

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT MIN( DISTINCT + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5402
SELECT MIN ( DISTINCT + 34 ) AS col0
----
34

query I rowsort
SELECT - + ( + - 6 )
----
6

query I rowsort
SELECT ALL COALESCE ( 45, - 71, - 42 ) + 2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT 43 * ( + + COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT 43 * ( + + COUNT ( * ) )
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5406
SELECT + 59 * 31 * CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT + 59 * 31 * CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5407
SELECT 81 DIV + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-5407
SELECT 81 / + COUNT ( * )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT 88 * + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-5408
SELECT 88 * + COUNT ( * )
----
88

query I rowsort
SELECT ALL - ( - - 8 ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT COUNT( * ) - + 63 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5410
SELECT COUNT ( * ) - + 63 + + COUNT ( * )
----
-61

query I rowsort
SELECT 2 * + + 34 AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT DISTINCT - 94 * - COUNT( * ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT - 94 * - COUNT ( * ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT - COUNT( * ) * - 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-5413
SELECT - COUNT ( * ) * - 82 AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT + 77 * 3 DIV - 20
----
-11

skipif mysql # not compatible
query I rowsort label-5414
SELECT + 77 * 3 / - 20
----
-11

query I rowsort
SELECT DISTINCT 68 * + 85 AS col1
----
5780

query I rowsort
SELECT ( + - 1 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT - + 83 * - + 37 * + + COUNT( * )
----
3071

skipif mysql # not compatible
query I rowsort label-5417
SELECT - + 83 * - + 37 * + + COUNT ( * )
----
3071

onlyif mysql # DIV for integer division: 
query I rowsort label-5418
SELECT - - ( - 63 ) DIV + 7 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5418
SELECT - - ( - 63 ) / + 7 AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT + ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - + COALESCE ( - - 82, + NULLIF ( - 60, - 41 ), + CAST( NULL AS SIGNED ) - - 16, - COUNT( * ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT + ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - + COALESCE ( - - 82, + NULLIF ( - 60, - 41 ), + CAST ( NULL AS INTEGER ) - - 16, - COUNT ( * ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL SUM( ALL - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL SUM ( ALL - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT + ( - ( + COUNT( * ) ) ) * - - 80
----
-80

skipif mysql # not compatible
query I rowsort label-5421
SELECT + ( - ( + COUNT ( * ) ) ) * - - 80
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL + SUM( - + 5 ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL + SUM ( - + 5 ) col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT ALL - 39 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - 39 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT + COUNT( * ) * + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT + COUNT ( * ) * + 91 AS col2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5425
SELECT 78, + CAST( NULL AS SIGNED ) col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5425
SELECT 78, + CAST ( NULL AS INTEGER ) col0
----
78
NULL

query I rowsort
SELECT ( - 96 ) - - + 19 AS col1
----
-77

query I rowsort
SELECT DISTINCT - - 2 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT - - SUM( - - 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5428
SELECT - - SUM ( - - 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT - COUNT( ALL ( 87 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5429
SELECT - COUNT ( ALL ( 87 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT DISTINCT - 90 + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - 90 + - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT SUM( 67 )
----
67

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT SUM ( 67 )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT COALESCE ( + + 91, - + COUNT( * ) ) AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5432
SELECT COALESCE ( + + 91, - + COUNT ( * ) ) AS col0
----
91

query I rowsort
SELECT + - 70 col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT + + COUNT( * ) * + COUNT( - - 23 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5434
SELECT + + COUNT ( * ) * + COUNT ( - - 23 ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT - 60 - - COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5435
SELECT - 60 - - COUNT ( * ) AS col1
----
-59

query I rowsort
SELECT ALL + + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT DISTINCT - + COUNT( * ) * + 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT - + COUNT ( * ) * + 20 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5438
SELECT - - 75 DIV + + 18
----
4

skipif mysql # not compatible
query I rowsort label-5438
SELECT - - 75 / + + 18
----
4

query I rowsort
SELECT + ( + ( - 30 ) ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT + SUM( + 20 ) AS col1
----
20

skipif mysql # not compatible
query I rowsort label-5440
SELECT + SUM ( + 20 ) AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL + COUNT( * ) * + ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL + COUNT ( * ) * + ( - COUNT ( * ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT ALL + COUNT( * ) + + COUNT( - CAST( NULL AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL + COUNT ( * ) + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5443
SELECT ALL CAST( NULL AS SIGNED ) * + 45 + + 93, - 3 col2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5443
SELECT ALL CAST ( NULL AS INTEGER ) * + 45 + + 93, - 3 col2
----
NULL
-3

query I rowsort
SELECT ALL + ( - 37 ) + + 39 col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( 36 ) col0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT ALL - AVG ( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT ALL - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT DISTINCT + 73 * - ( + + CAST( + 38 AS SIGNED ) ) AS col1
----
-2774

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT + 73 * - ( + + CAST ( + 38 AS INTEGER ) ) AS col1
----
-2774

query I rowsort
SELECT ALL - + 76 * 65
----
-4940

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT 22 * - + COUNT( * ) - + 5
----
-27

skipif mysql # not compatible
query I rowsort label-5450
SELECT 22 * - + COUNT ( * ) - + 5
----
-27

query I rowsort
SELECT DISTINCT 79 * - ( 76 ) col2
----
-6004

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - - COUNT( * ) * 97
----
97

skipif mysql # not compatible
query I rowsort label-5452
SELECT - - COUNT ( * ) * 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT + COUNT( * ) * + 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5453
SELECT + COUNT ( * ) * + 80 AS col0
----
80

query I rowsort
SELECT + - 22 col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5455
SELECT ALL - - ( + ( CAST( NULL AS SIGNED ) ) ) - - + ( + SUM( DISTINCT - + 19 ) ) * + ( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL - - ( + ( CAST ( NULL AS INTEGER ) ) ) - - + ( + SUM ( DISTINCT - + 19 ) ) * + ( 91 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT 53, 16 - COUNT( * ) AS col1
----
53
15

skipif mysql # not compatible
query II rowsort label-5456
SELECT 53, 16 - COUNT ( * ) AS col1
----
53
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT ALL - 61 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - 61 / 90
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT + 29 * + CAST( - 30 AS SIGNED )
----
-870

skipif mysql # not compatible
query I rowsort label-5458
SELECT + 29 * + CAST ( - 30 AS INTEGER )
----
-870

query I rowsort
SELECT + 73 * + + ( 98 )
----
7154

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - ( - MAX( DISTINCT + - 73 ) ) * 27 AS col0
----
-1971

skipif mysql # not compatible
query I rowsort label-5460
SELECT - ( - MAX ( DISTINCT + - 73 ) ) * 27 AS col0
----
-1971

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL - 66 * + COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL - 66 * + COUNT ( * ) AS col2
----
-66

query I rowsort
SELECT - 13 - + - 38
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5463
SELECT ALL CAST( NULLIF ( + 4, 92 ) AS SIGNED ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL CAST ( NULLIF ( + 4, 92 ) AS INTEGER ) AS col0
----
4

query I rowsort
SELECT - 32 + 57
----
25

query I rowsort
SELECT + ( + - 80 ) AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT - - COUNT( * ) + + MAX( + 46 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-5466
SELECT - - COUNT ( * ) + + MAX ( + 46 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - COUNT( DISTINCT - + 8 )
----
-1

skipif mysql # not compatible
query I rowsort label-5467
SELECT - COUNT ( DISTINCT - + 8 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL + - 18 + - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL + - 18 + - COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT 74 * COUNT( * ) * 93 AS col1
----
6882

skipif mysql # not compatible
query I rowsort label-5469
SELECT 74 * COUNT ( * ) * 93 AS col1
----
6882

query I rowsort
SELECT DISTINCT - COALESCE ( + 60, 69 ) AS col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT ALL + COUNT( * ) - 27 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + COUNT ( * ) - 27 AS col1
----
-26

query II rowsort
SELECT ALL 40, - 42 AS col2
----
40
-42

query I rowsort
SELECT + ( - + 28 ) AS col0
----
-28

query I rowsort
SELECT ALL + ( + 17 )
----
17

query I rowsort
SELECT + ( ( + 18 ) )
----
18

query I rowsort
SELECT + ( - + 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL MIN( ALL - - 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL MIN ( ALL - - 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT MIN( + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-5478
SELECT MIN ( + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL + - 76 + - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL + - 76 + - COUNT ( * ) AS col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5480
SELECT ALL - CAST( - - 67 AS SIGNED ) AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-5480
SELECT ALL - CAST ( - - 67 AS INTEGER ) AS col1
----
-67

query I rowsort
SELECT DISTINCT - 29 * - 51
----
1479

query I rowsort
SELECT ALL - 85 + - - 67
----
-18

query I rowsort
SELECT ( 6 ) + + 54 AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT 3 DIV MIN( ALL - 13 )
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT 3 / MIN ( ALL - 13 )
----
0

query I rowsort
SELECT 45 * - 85
----
-3825

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT ALL + 98 DIV + 35 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL + 98 / + 35 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5487
SELECT DISTINCT - 21 + + - COUNT( + - 83 ) + - CAST( 89 AS SIGNED ) col0
----
-111

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT - 21 + + - COUNT ( + - 83 ) + - CAST ( 89 AS INTEGER ) col0
----
-111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5488
SELECT - 8, COUNT( * ) DIV + 81 AS col2
----
-8
0

skipif mysql # not compatible
query II rowsort label-5488
SELECT - 8, COUNT ( * ) / + 81 AS col2
----
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL - + 68 - - COUNT( * ) col1
----
-67

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL - + 68 - - COUNT ( * ) col1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + SUM( - 86 ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-5490
SELECT + SUM ( - 86 ) col0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5491
SELECT DISTINCT + 70 DIV NULLIF ( - ( + SUM( - 21 ) ), COUNT( * ) + + 28 )
----
3

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT + 70 / NULLIF ( - ( + SUM ( - 21 ) ), COUNT ( * ) + + 28 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT DISTINCT + MIN( + 76 ) * + + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-5492
SELECT DISTINCT + MIN ( + 76 ) * + + COUNT ( * )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT ALL SUM( + 99 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL SUM ( + 99 ) AS col1
----
99

query I rowsort
SELECT 9 - - 13 AS col2
----
22

query I rowsort
SELECT + - 36 + - 44
----
-80

query I rowsort
SELECT - + 32 AS col0
----
-32

query I rowsort
SELECT ( - + 99 ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL COUNT( * ) * - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL COUNT ( * ) * - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL + MAX( DISTINCT 2 )
----
2

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL + MAX ( DISTINCT 2 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT + 0 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5500
SELECT + 0 + + COUNT ( * )
----
1

query I rowsort
SELECT + 94 + + - 39 AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5502
SELECT CAST( + 67 AS SIGNED ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-5502
SELECT CAST ( + 67 AS INTEGER ) AS col2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT CAST( + - 55 AS SIGNED ) + + + 31 AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-5503
SELECT CAST ( + - 55 AS INTEGER ) + + + 31 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5504
SELECT CAST( NULL AS DECIMAL ) + + - 84 * - COUNT( * ) - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT CAST ( NULL AS REAL ) + + - 84 * - COUNT ( * ) - + + COUNT ( * )
----
NULL

query II rowsort
SELECT - 83 AS col1, - 72 AS col0
----
-83
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT DISTINCT - COUNT( - - 87 ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT - COUNT ( - - 87 ) + 15
----
14

query I rowsort
SELECT ALL + 67 - + + 46 col0
----
21

query I rowsort
SELECT DISTINCT - - ( 68 ) col2
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5509
SELECT ALL COUNT( * ) AS col2, 9 AS col0
----
1
9

skipif mysql # not compatible
query II rowsort label-5509
SELECT ALL COUNT ( * ) AS col2, 9 AS col0
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT - MIN( ALL + 24 ) * 95 AS col0
----
-2280

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT - MIN ( ALL + 24 ) * 95 AS col0
----
-2280

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + MIN( + + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-5511
SELECT + MIN ( + + 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - MIN( ALL + - 67 )
----
67

skipif mysql # not compatible
query I rowsort label-5512
SELECT - MIN ( ALL + - 67 )
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT - CAST( NULL AS SIGNED ) + - ( + 85 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT - CAST ( NULL AS INTEGER ) + - ( + 85 ) AS col0
----
NULL

query I rowsort
SELECT + 37 + - 38 * - 30 AS col0
----
1177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5515
SELECT CAST( + ( + - 11 ) AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-5515
SELECT CAST ( + ( + - 11 ) AS INTEGER )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT - COUNT( * ) * - 71 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-5516
SELECT - COUNT ( * ) * - 71 AS col1
----
71

query I rowsort
SELECT DISTINCT + + 64 AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5518
SELECT ALL 38 DIV - COALESCE ( COUNT( * ), COUNT( * ) + - 97 ) + 54
----
16

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL 38 / - COALESCE ( COUNT ( * ), COUNT ( * ) + - 97 ) + 54
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT - - 14 * - 16 * COALESCE ( + 54, - + COUNT( * ), - - COUNT( * ) + + - 17 )
----
-12096

skipif mysql # not compatible
query I rowsort label-5519
SELECT - - 14 * - 16 * COALESCE ( + 54, - + COUNT ( * ), - - COUNT ( * ) + + - 17 )
----
-12096

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT + 20 + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-5520
SELECT + 20 + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT ALL + COUNT( * ) - ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + COUNT ( * ) - ( COUNT ( * ) )
----
0

query I rowsort
SELECT 63 + - 72
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT + COALESCE ( - + MIN( + 67 ), - 99 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5523
SELECT + COALESCE ( - + MIN ( + 67 ), - 99 ) AS col0
----
-67

query II rowsort
SELECT ALL 71 AS col0, + 39 + + 38 AS col1
----
71
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5525
SELECT DISTINCT - ( + + 71 ) DIV + COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT - ( + + 71 ) / + COUNT ( * ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - SUM( ALL - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-5526
SELECT - SUM ( ALL - 87 )
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-5527
SELECT DISTINCT - + 69 AS col2, COUNT( - - 57 ) AS col2
----
-69
1

skipif mysql # not compatible
query II rowsort label-5527
SELECT DISTINCT - + 69 AS col2, COUNT ( - - 57 ) AS col2
----
-69
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT + 77 * - COUNT( * ) + - - 11 AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-5528
SELECT + 77 * - COUNT ( * ) + - - 11 AS col1
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-5529
SELECT - + 59 * 80 DIV - - 54, + 0 AS col0
----
-87
0

skipif mysql # not compatible
query II rowsort label-5529
SELECT - + 59 * 80 / - - 54, + 0 AS col0
----
-87
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5530
SELECT - + COUNT( * ) + - ( + - CAST( NULL AS SIGNED ) ) + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-5530
SELECT - + COUNT ( * ) + - ( + - CAST ( NULL AS INTEGER ) ) + - 11
----
NULL

query I rowsort
SELECT DISTINCT + - 10 AS col1
----
-10

query I rowsort
SELECT DISTINCT + - 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT COUNT( ALL 23 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5533
SELECT COUNT ( ALL 23 ) col1
----
1

query I rowsort
SELECT - ( + + 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT ALL + 19 - COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL + 19 - COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT 48 + + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-5536
SELECT 48 + + + COUNT ( * )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT + 80 + + CAST( - 76 AS SIGNED ) col1
----
4

skipif mysql # not compatible
query I rowsort label-5537
SELECT + 80 + + CAST ( - 76 AS INTEGER ) col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT + COALESCE ( + CAST( + 14 AS SIGNED ), + COUNT( * ) ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT + COALESCE ( + CAST ( + 14 AS INTEGER ), + COUNT ( * ) ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT NULLIF ( - 49, + + COUNT( * ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-5539
SELECT NULLIF ( - 49, + + COUNT ( * ) ) AS col2
----
-49

query I rowsort
SELECT ALL + + 79 AS col1
----
79

query I rowsort
SELECT + + 92 + + ( - 99 ) col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5542
SELECT DISTINCT 26 - - 23 + + COUNT( * ) DIV - + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT 26 - - 23 + + COUNT ( * ) / - + COUNT ( * )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL CAST( - 13 AS SIGNED )
----
-13

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL CAST ( - 13 AS INTEGER )
----
-13

query II rowsort
SELECT + ( + - 67 ), + 53 AS col0
----
-67
53

query I rowsort
SELECT ALL 47 * - - 53
----
2491

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT ALL - COUNT( * ) * + - 67 col0
----
67

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL - COUNT ( * ) * + - 67 col0
----
67

query I rowsort
SELECT 76 * - 55
----
-4180

query I rowsort
SELECT 82 + - 31 + + 94 AS col2
----
145

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT 66 DIV - - 67
----
0

skipif mysql # not compatible
query I rowsort label-5549
SELECT 66 / - - 67
----
0

query I rowsort
SELECT DISTINCT - 11 * + 20 * + 67
----
-14740

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT 1 * - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-5551
SELECT 1 * - COUNT ( * ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT 91 * - + COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5552
SELECT 91 * - + COUNT ( * ) AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5553
SELECT 93 * + + 2 + - AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT 93 * + + 2 + - AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT COUNT( DISTINCT + 58 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5554
SELECT COUNT ( DISTINCT + 58 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT ALL - COUNT( * ) * 29
----
-29

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL - COUNT ( * ) * 29
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT ALL + SUM( + + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL + SUM ( + + 97 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5557
SELECT ALL + COUNT( * ) DIV + - 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + COUNT ( * ) / + - 3 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5558
SELECT DISTINCT - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT - CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query II rowsort
SELECT 51 AS col1, 89 col1
----
51
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT + MIN( DISTINCT + 39 ) + + 78 AS col0
----
117

skipif mysql # not compatible
query I rowsort label-5560
SELECT + MIN ( DISTINCT + 39 ) + + 78 AS col0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT - 16 + COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-5561
SELECT - 16 + COUNT ( * ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL + MAX( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL + MAX ( 15 )
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5563
SELECT DISTINCT 23 * 66 + + COUNT( * ) DIV 33 AS col0
----
1518

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT 23 * 66 + + COUNT ( * ) / 33 AS col0
----
1518

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL - + MAX( ALL 18 ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - + MAX ( ALL 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT 5 * - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-5565
SELECT 5 * - COUNT ( * )
----
-5

query I rowsort
SELECT ALL - - 35 col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5567
SELECT ALL + COUNT( * ) + + 38 - COALESCE ( + 54, COUNT( * ), - COUNT( * ) - 22 ) * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + COUNT ( * ) + + 38 - COALESCE ( + 54, COUNT ( * ), - COUNT ( * ) - 22 ) * CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 7 + + 36 AS col0
----
43

query I rowsort
SELECT 35 * 29
----
1015

query I rowsort
SELECT - - ( 36 ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT ALL - COUNT( * ) * COUNT( 26 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL - COUNT ( * ) * COUNT ( 26 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT 43 * COUNT( * ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5572
SELECT 43 * COUNT ( * ) AS col1
----
43

query I rowsort
SELECT ALL - - ( - - 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT 69 * + 57 * + COUNT( * )
----
3933

skipif mysql # not compatible
query I rowsort label-5574
SELECT 69 * + 57 * + COUNT ( * )
----
3933

query I rowsort
SELECT + ( + + 0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL 33 * - COUNT( * )
----
-33

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL 33 * - COUNT ( * )
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-5577
SELECT 10 AS col1, COUNT( * ) * COUNT( * ) AS col1
----
10
1

skipif mysql # not compatible
query II rowsort label-5577
SELECT 10 AS col1, COUNT ( * ) * COUNT ( * ) AS col1
----
10
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5578
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + 7 )
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT ALL + CAST( + 83 AS SIGNED ) col0
----
83

skipif mysql # not compatible
query I rowsort label-5579
SELECT ALL + CAST ( + 83 AS INTEGER ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT MAX( 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5580
SELECT MAX ( 60 )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT SUM( + ( 4 ) ) col0
----
4

skipif mysql # not compatible
query I rowsort label-5581
SELECT SUM ( + ( 4 ) ) col0
----
4

query I rowsort
SELECT ALL - + 86 - - + 53 AS col1
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5583
SELECT DISTINCT + 89 * CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT + 89 * CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL + NULLIF ( COUNT( * ), - 96 * - - 57 )
----
1

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL + NULLIF ( COUNT ( * ), - 96 * - - 57 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT ALL - CAST( - - 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL - CAST ( - - 19 AS INTEGER )
----
-19

query II rowsort
SELECT 26 AS col2, 41 * - - 19 + + 92
----
26
871

onlyif mysql # DIV for integer division: 
query I rowsort label-5587
SELECT DISTINCT 8 DIV + + 62
----
0

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT 8 / + + 62
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-5588
SELECT + 25 * - COUNT( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN( ALL 72 ) ) + - 23 AS col1
----
-25
60
15

skipif mysql # not compatible
query III rowsort label-5588
SELECT + 25 * - COUNT ( * ) col1, 60, - NULLIF ( - 38, + + 53 * + MIN ( ALL 72 ) ) + - 23 AS col1
----
-25
60
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT NULLIF ( + 26, + CAST( + 43 AS SIGNED ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5589
SELECT NULLIF ( + 26, + CAST ( + 43 AS INTEGER ) ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT COALESCE ( + 54, - COUNT( * ) )
----
54

skipif mysql # not compatible
query I rowsort label-5590
SELECT COALESCE ( + 54, - COUNT ( * ) )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5591
SELECT ALL + COALESCE ( COUNT( * ), - - 54 DIV - 11 )
----
1

skipif mysql # not compatible
query I rowsort label-5591
SELECT ALL + COALESCE ( COUNT ( * ), - - 54 / - 11 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT ALL CAST( + - 10 AS SIGNED ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL CAST ( + - 10 AS INTEGER ) AS col2
----
-10

query II rowsort
SELECT - 91 col1, 81 AS col0
----
-91
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT + COUNT( * ) - 34
----
-33

skipif mysql # not compatible
query I rowsort label-5594
SELECT + COUNT ( * ) - 34
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT ALL CAST( NULL AS SIGNED ) / - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL CAST ( NULL AS INTEGER ) / - 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ( COUNT( DISTINCT ( + - 61 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-5596
SELECT ( COUNT ( DISTINCT ( + - 61 ) ) )
----
1

query I rowsort
SELECT + - NULLIF ( - + 49, - ( + 41 ) )
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5598
SELECT ALL + CAST( NULL AS SIGNED ) * - 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL + CAST ( NULL AS INTEGER ) * - 8 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5599
SELECT DISTINCT - - CAST( + + 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - - CAST ( + + 4 AS INTEGER )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL 54 * + COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL 54 * + COUNT ( * )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5601
SELECT + + CAST( 85 AS SIGNED ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-5601
SELECT + + CAST ( 85 AS INTEGER ) AS col2
----
85

query I rowsort
SELECT ALL + + 61 col0
----
61

query I rowsort
SELECT - NULLIF ( + 69, 53 )
----
-69

query I rowsort
SELECT COALESCE ( + + 44, - ( + 46 ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT ALL CAST( + 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL CAST ( + 68 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT + COUNT( * ) * 62
----
62

skipif mysql # not compatible
query I rowsort label-5606
SELECT + COUNT ( * ) * 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT ALL 87 + 77 - COUNT( * )
----
163

skipif mysql # not compatible
query I rowsort label-5607
SELECT ALL 87 + 77 - COUNT ( * )
----
163

query I rowsort
SELECT ALL - + 66 col1
----
-66

query I rowsort
SELECT ALL + 23 + + 43
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT MIN( ALL - 79 ) * + + 9 * + COUNT( * )
----
-711

skipif mysql # not compatible
query I rowsort label-5610
SELECT MIN ( ALL - 79 ) * + + 9 * + COUNT ( * )
----
-711

query I rowsort
SELECT ALL - + 12 AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT CAST( NULL AS SIGNED ) + + CAST( + 27 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT CAST ( NULL AS INTEGER ) + + CAST ( + 27 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5613
SELECT ALL + 9 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + 9 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 69 * - 14 col2
----
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL ( + COUNT( * ) ) * COUNT( * ) - + + 10
----
-9

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL ( + COUNT ( * ) ) * COUNT ( * ) - + + 10
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT MIN( + 42 )
----
42

skipif mysql # not compatible
query I rowsort label-5616
SELECT MIN ( + 42 )
----
42

query I rowsort
SELECT DISTINCT + 61 * - 75
----
-4575

query I rowsort
SELECT + ( - 10 ) col0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT + - 53 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT DISTINCT 58 * + - COUNT( * ) + + COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT 58 * + - COUNT ( * ) + + COUNT ( * ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL MAX( DISTINCT + 75 )
----
75

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL MAX ( DISTINCT + 75 )
----
75

query I rowsort
SELECT - ( - - 78 ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT SUM( ALL - 99 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-5624
SELECT SUM ( ALL - 99 ) col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-5625
SELECT DISTINCT COUNT( * ) AS col2, 21 * + 98 col0
----
1
2058

skipif mysql # not compatible
query II rowsort label-5625
SELECT DISTINCT COUNT ( * ) AS col2, 21 * + 98 col0
----
1
2058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT - CAST( - 89 AS SIGNED ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-5626
SELECT - CAST ( - 89 AS INTEGER ) AS col1
----
89

query I rowsort
SELECT DISTINCT - 23 * - ( - + 9 ) AS col0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT ALL 25 + - 27 + + - ( - 6 ) * - CAST( 82 AS SIGNED ) AS col0
----
-494

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL 25 + - 27 + + - ( - 6 ) * - CAST ( 82 AS INTEGER ) AS col0
----
-494

query I rowsort
SELECT ALL + 5 + - 32 col1
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT 60 DIV + 81
----
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT 60 / + 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT + 88 - - - COUNT( * ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT + 88 - - - COUNT ( * ) AS col0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT ALL - CAST( + ( 81 ) AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - CAST ( + ( 81 ) AS INTEGER )
----
-81

query I rowsort
SELECT ( + 72 ) col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL + SUM( ALL - + 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL + SUM ( ALL - + 26 ) AS col1
----
-26

query I rowsort
SELECT ALL 56 + 30 - 51 AS col1
----
35

query I rowsort
SELECT ALL + 74 * + + 9
----
666

query I rowsort
SELECT DISTINCT 56 + + + 96 col1
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5638
SELECT - 70 * COALESCE ( + + CAST( NULL AS SIGNED ), - - COUNT( * ) / + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT - 70 * COALESCE ( + + CAST ( NULL AS INTEGER ), - - COUNT ( * ) / + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT + ( 8 ) AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - - COUNT( * ) + 54 + + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-5640
SELECT - - COUNT ( * ) + 54 + + + COUNT ( * )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT + ( + COUNT( * ) ) + - ( - + 75 ) * - COUNT( * ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-5641
SELECT + ( + COUNT ( * ) ) + - ( - + 75 ) * - COUNT ( * ) AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT CAST( - 20 AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-5642
SELECT CAST ( - 20 AS INTEGER )
----
-20

query I rowsort
SELECT - 46 * - 25 * + 47 AS col1
----
54050

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT + COUNT( * ) + - 16 * ( COUNT( * ) )
----
-15

skipif mysql # not compatible
query I rowsort label-5644
SELECT + COUNT ( * ) + - 16 * ( COUNT ( * ) )
----
-15

query II rowsort
SELECT ALL 55 AS col2, + 19 AS col0
----
55
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT + CAST( NULL AS SIGNED ) + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT + CAST ( NULL AS INTEGER ) + 33 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL - - MAX( ALL - - 60 )
----
60

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL - - MAX ( ALL - - 60 )
----
60

query I rowsort
SELECT ALL - 13 + + + 10
----
-3

query I rowsort
SELECT + COALESCE ( + 92, + - 30 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL SUM( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL SUM ( 97 )
----
97

query I rowsort
SELECT ALL - ( 43 ) AS col0
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT - ( - - CAST( NULL AS SIGNED ) ) * + - 90 * + 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT - ( - - CAST ( NULL AS INTEGER ) ) * + - 90 * + 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL SUM( DISTINCT + - 89 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL SUM ( DISTINCT + - 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT DISTINCT - 53 + + SUM( - 43 ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT - 53 + + SUM ( - 43 ) AS col2
----
-96

query I rowsort
SELECT ALL + ( - 59 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5656
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT COUNT( 40 )
----
1

skipif mysql # not compatible
query I rowsort label-5657
SELECT COUNT ( 40 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5658
SELECT DISTINCT + 21 DIV + CAST( - AVG ( - 47 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + 21 / + CAST ( - AVG ( - 47 ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT 51 AS col2, - MAX( - 23 ) AS col2
----
51
23

skipif mysql # not compatible
query II rowsort label-5659
SELECT 51 AS col2, - MAX ( - 23 ) AS col2
----
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT + MAX( ALL 3 )
----
3

skipif mysql # not compatible
query I rowsort label-5660
SELECT + MAX ( ALL 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT COUNT( * ) + - 75
----
-74

skipif mysql # not compatible
query I rowsort label-5661
SELECT COUNT ( * ) + - 75
----
-74

query I rowsort
SELECT 26 + - 76
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL - COUNT( * ) + - ( + MIN( - 77 ) ) + 76 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL - COUNT ( * ) + - ( + MIN ( - 77 ) ) + 76 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT ALL 10 + + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL 10 + + COUNT ( * )
----
11

query I rowsort
SELECT 98 + 70
----
168

query I rowsort
SELECT + NULLIF ( - 27, + + 82 ) AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5667
SELECT - 29 + - SUM( DISTINCT + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT - 29 + - SUM ( DISTINCT + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5668
SELECT ALL + + ( + + ( + NULLIF ( + + CAST( NULL AS SIGNED ), - 40 ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL + + ( + + ( + NULLIF ( + + CAST ( NULL AS INTEGER ), - 40 ) ) ) AS col0
----
NULL

query I rowsort
SELECT + + 61 - - 72 col2
----
133

query II rowsort
SELECT ALL + 6 AS col2, + 88 + + - 16 AS col1
----
6
72

query I rowsort
SELECT + 5 * 48
----
240

query I rowsort
SELECT ALL + 34 + - - 99
----
133

query II rowsort
SELECT - - 42, 64 AS col2
----
42
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5674
SELECT + 81 DIV - - 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5674
SELECT + 81 / - - 40 AS col0
----
2

query I rowsort
SELECT + 20 + - - 96
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 73 + 36 AS col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT ALL COUNT( * ) * 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL COUNT ( * ) * 43 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5679
SELECT MIN( DISTINCT + 16 ) col2, CAST( - COUNT( * ) AS SIGNED ) col2
----
16
-1

skipif mysql # not compatible
query II rowsort label-5679
SELECT MIN ( DISTINCT + 16 ) col2, CAST ( - COUNT ( * ) AS INTEGER ) col2
----
16
-1

query I rowsort
SELECT 36 * 32
----
1152

query I rowsort
SELECT ALL 87 - + 35 AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT ALL 64 col2, COUNT( * )
----
64
1

skipif mysql # not compatible
query II rowsort label-5682
SELECT ALL 64 col2, COUNT ( * )
----
64
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT - 0 DIV 54 + - 82 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5683
SELECT - 0 / 54 + - 82 AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT - MIN( - - 51 ) * + 84
----
-4284

skipif mysql # not compatible
query I rowsort label-5684
SELECT - MIN ( - - 51 ) * + 84
----
-4284

query I rowsort
SELECT + ( + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT ALL + ( - - 46 ) + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + ( - - 46 ) + COUNT ( * )
----
47

query I rowsort
SELECT + ( - 91 )
----
-91

query I rowsort
SELECT ALL 79 * + 39
----
3081

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5689
SELECT ALL + - ( - NULLIF ( + CAST( NULL AS DECIMAL ), - COUNT( * ) ) ) * - ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL + - ( - NULLIF ( + CAST ( NULL AS REAL ), - COUNT ( * ) ) ) * - ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT COUNT( * ) - - - COUNT( * ) - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5690
SELECT COUNT ( * ) - - - COUNT ( * ) - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT + 73 * + 23 + + COUNT( * )
----
1680

skipif mysql # not compatible
query I rowsort label-5691
SELECT + 73 * + 23 + + COUNT ( * )
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT ALL COALESCE ( - - COUNT( * ), 64 ) * 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL COALESCE ( - - COUNT ( * ), 64 ) * 32 AS col2
----
32

query I rowsort
SELECT ALL - + ( 10 ) AS col0
----
-10

query I rowsort
SELECT 71 + + ( - 86 ) + 99 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT 96 * + COUNT( * ) AS col2
----
96

skipif mysql # not compatible
query I rowsort label-5695
SELECT 96 * + COUNT ( * ) AS col2
----
96

query I rowsort
SELECT ALL + - 68 col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT + COUNT( * ) * 37
----
37

skipif mysql # not compatible
query I rowsort label-5697
SELECT + COUNT ( * ) * 37
----
37

query I rowsort
SELECT ALL + - 82 + - 96 AS col2
----
-178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT - MAX( DISTINCT - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5700
SELECT - ( - 50 ) DIV COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5700
SELECT - ( - 50 ) / COUNT ( * ) AS col1
----
50

query I rowsort
SELECT + 0 + 92 AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT + ( COUNT( * ) ) + - MAX( DISTINCT + 50 )
----
-49

skipif mysql # not compatible
query I rowsort label-5702
SELECT + ( COUNT ( * ) ) + - MAX ( DISTINCT + 50 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5703
SELECT ALL MIN( - CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL MIN ( - CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5704
SELECT ALL - CAST( NULL AS DECIMAL ) * - 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL - CAST ( NULL AS REAL ) * - 19 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT - ( SUM( ALL - + 15 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5705
SELECT - ( SUM ( ALL - + 15 ) ) AS col1
----
15

query I rowsort
SELECT + 42 * 33
----
1386

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT ALL - 68 DIV 5
----
-13

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL - 68 / 5
----
-13

query I rowsort
SELECT DISTINCT + 14 - - 99
----
113

query II rowsort
SELECT 5 AS col1, 7 AS col2
----
5
7

query I rowsort
SELECT ( - + 12 )
----
-12

query I rowsort
SELECT + 40 * + + 4 AS col0
----
160

query I rowsort
SELECT ALL 93 + + 20
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5713
SELECT - + 88 DIV + SUM( + 42 )
----
-2

skipif mysql # not compatible
query I rowsort label-5713
SELECT - + 88 / + SUM ( + 42 )
----
-2

query I rowsort
SELECT + + 39 * - 37
----
-1443

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT DISTINCT - 14 - - + COUNT( * ) + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT - 14 - - + COUNT ( * ) + COUNT ( * ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT - ( COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5716
SELECT - ( COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT SUM( - 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5717
SELECT SUM ( - 33 ) AS col0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5718
SELECT - 85 * - ( - CAST( NULL AS SIGNED ) ) / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5718
SELECT - 85 * - ( - CAST ( NULL AS INTEGER ) ) / 49
----
NULL

query I rowsort
SELECT + ( 61 ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-5720
SELECT - - COUNT( * ), - CASE - COUNT( * ) WHEN - + COUNT( * ) THEN NULL ELSE COUNT( * ) / + COUNT( * ) END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5720
SELECT - - COUNT ( * ), - CASE - COUNT ( * ) WHEN - + COUNT ( * ) THEN NULL ELSE COUNT ( * ) / + COUNT ( * ) END AS col2
----
1
NULL

query I rowsort
SELECT ALL - COALESCE ( + 55, + 98 + + - 0 * + 21, 55 )
----
-55

query I rowsort
SELECT DISTINCT - ( + + 76 ) AS col2
----
-76

query I rowsort
SELECT ALL - 44 * 44 + 99 AS col1
----
-1837

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5724
SELECT ALL 94 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT ALL 94 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT ALL COUNT( * ) * + - 94
----
-94

skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL COUNT ( * ) * + - 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL + SUM( - ( ( - 44 ) ) )
----
44

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL + SUM ( - ( ( - 44 ) ) )
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5727
SELECT - + COALESCE ( 26, + 49 ) AS col2, - COUNT( * )
----
-26
-1

skipif mysql # not compatible
query II rowsort label-5727
SELECT - + COALESCE ( 26, + 49 ) AS col2, - COUNT ( * )
----
-26
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT DISTINCT COUNT( ALL - + 93 )
----
1

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT COUNT ( ALL - + 93 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT COALESCE ( COUNT( * ), 69 ) + + + 34
----
35

skipif mysql # not compatible
query I rowsort label-5729
SELECT COALESCE ( COUNT ( * ), 69 ) + + + 34
----
35

query I rowsort
SELECT DISTINCT - - 8 col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5731
SELECT + ( + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) / + MAX( - + 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT + ( + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) / + MAX ( - + 32 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5732
SELECT DISTINCT + COUNT( * ) * 99 * COUNT( * ) + + 67 + COUNT( * ) DIV - COUNT( * ) AS col0
----
165

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT + COUNT ( * ) * 99 * COUNT ( * ) + + 67 + COUNT ( * ) / - COUNT ( * ) AS col0
----
165

query I rowsort
SELECT 24 * 10 AS col0
----
240

query I rowsort
SELECT 39 * + + 24
----
936

onlyif mysql # aggregate syntax: 
query II rowsort label-5735
SELECT COUNT( * ) AS col0, + 95 + 7
----
1
102

skipif mysql # not compatible
query II rowsort label-5735
SELECT COUNT ( * ) AS col0, + 95 + 7
----
1
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5736
SELECT ALL 76 * + CAST( NULL AS SIGNED ), - COUNT( * ) AS col2
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-5736
SELECT ALL 76 * + CAST ( NULL AS INTEGER ), - COUNT ( * ) AS col2
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5737
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT + 40 + + 73
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT - - COUNT( - 11 ) + - 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5739
SELECT - - COUNT ( - 11 ) + - 61 AS col2
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5740
SELECT ALL + 55 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL + 55 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - ( + ( 82 ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT COUNT( + 43 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5742
SELECT COUNT ( + 43 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT MIN( - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-5743
SELECT MIN ( - 3 )
----
-3

query I rowsort
SELECT + 10 * - 30 AS col2
----
-300

query I rowsort
SELECT DISTINCT - - 11 * - 31
----
-341

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5746
SELECT DISTINCT - - CAST( NULL AS SIGNED ), 23 + + 46 AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-5746
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), 23 + + 46 AS col2
----
NULL
69

query I rowsort
SELECT DISTINCT - ( - 64 ) AS col1
----
64

query I rowsort
SELECT 63 + + - 6 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT + 39 + - MIN( - 65 )
----
104

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + 39 + - MIN ( - 65 )
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5750
SELECT 30 DIV + + COUNT( DISTINCT - 12 )
----
30

skipif mysql # not compatible
query I rowsort label-5750
SELECT 30 / + + COUNT ( DISTINCT - 12 )
----
30

query I rowsort
SELECT 17 * 41 * - - 5
----
3485

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT - 33 DIV - - 81 + 49
----
49

skipif mysql # not compatible
query I rowsort label-5752
SELECT - 33 / - - 81 + 49
----
49

query I rowsort
SELECT - 51 * - 26 + + 65 + + 47
----
1438

query I rowsort
SELECT - - 44 col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5755
SELECT ALL - 16 + - 58 AS col1, SUM( 20 )
----
-74
20

skipif mysql # not compatible
query II rowsort label-5755
SELECT ALL - 16 + - 58 AS col1, SUM ( 20 )
----
-74
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT DISTINCT + COUNT( ALL - 61 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT + COUNT ( ALL - 61 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT CASE + COUNT( * ) WHEN + - 90 THEN - COUNT( * ) ELSE COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5757
SELECT CASE + COUNT ( * ) WHEN + - 90 THEN - COUNT ( * ) ELSE COUNT ( * ) END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT + 70 - + COUNT( * ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-5758
SELECT + 70 - + COUNT ( * ) AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT ALL MIN( DISTINCT 75 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL MIN ( DISTINCT 75 ) AS col2
----
75

query I rowsort
SELECT DISTINCT - + 4 * + - 24 AS col0
----
96

query I rowsort
SELECT - - 0 * 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL - + 45 * + COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - + 45 * + COUNT ( * )
----
-45

query I rowsort
SELECT ( 95 ) AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5764
SELECT DISTINCT COUNT( * ) DIV - - 75
----
0

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT COUNT ( * ) / - - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT COUNT( * ) * + 71 * + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-5765
SELECT COUNT ( * ) * + 71 * + COUNT ( * )
----
71

query I rowsort
SELECT 79 * ( 22 ) AS col0
----
1738

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT COALESCE ( 27, 42, + COUNT( * ) ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5767
SELECT COALESCE ( 27, 42, + COUNT ( * ) ) AS col2
----
27

query I rowsort
SELECT DISTINCT + - 20 col0
----
-20

query I rowsort
SELECT DISTINCT 40 + 86
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT + CAST( 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5770
SELECT + CAST ( 26 AS INTEGER ) AS col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT ALL CAST( NULL AS SIGNED ) / 86 + + 36 * - 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL CAST ( NULL AS INTEGER ) / 86 + + 36 * - 6 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 67 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT MAX( DISTINCT 44 ) AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5773
SELECT MAX ( DISTINCT 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL + COUNT( ALL - + 82 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + COUNT ( ALL - + 82 ) AS col2
----
1

query I rowsort
SELECT 93 + - 40 + + 92
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT ALL 46 * MIN( + + 43 ) col1
----
1978

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL 46 * MIN ( + + 43 ) col1
----
1978

onlyif mysql # aggregate syntax: 
query II rowsort label-5777
SELECT 43 AS col1, - COUNT( * ) AS col0
----
43
-1

skipif mysql # not compatible
query II rowsort label-5777
SELECT 43 AS col1, - COUNT ( * ) AS col0
----
43
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT 18 - - - CAST( NULL AS SIGNED ) * + ( - 82 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT 18 - - - CAST ( NULL AS INTEGER ) * + ( - 82 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT ALL MIN( DISTINCT - ( 90 ) )
----
-90

skipif mysql # not compatible
query I rowsort label-5779
SELECT ALL MIN ( DISTINCT - ( 90 ) )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5780
SELECT + 5 + 31 * - + ( + CAST( NULL AS SIGNED ) ) * 95 + - ( + COUNT( * ) ) / + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT + 5 + 31 * - + ( + CAST ( NULL AS INTEGER ) ) * 95 + - ( + COUNT ( * ) ) / + 12
----
NULL

query I rowsort
SELECT - ( - 56 ) col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT + COUNT( * ) * + 39 col0
----
39

skipif mysql # not compatible
query I rowsort label-5782
SELECT + COUNT ( * ) * + 39 col0
----
39

query II rowsort
SELECT - ( + 29 ) AS col2, ( + + 53 )
----
-29
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5784
SELECT + COUNT( * ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT + COUNT ( * ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT 82 * - COUNT( * ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT 82 * - COUNT ( * ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL SUM( + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL SUM ( + 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5787
SELECT - 81 + + CAST( + + COALESCE ( - 1, + 36, - COUNT( * ) * + 57, 48 ) AS SIGNED ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-5787
SELECT - 81 + + CAST ( + + COALESCE ( - 1, + 36, - COUNT ( * ) * + 57, 48 ) AS INTEGER ) col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT DISTINCT SUM( 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5788
SELECT DISTINCT SUM ( 32 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL COALESCE ( + ( + + MIN( 10 ) ), - COUNT( * ) + 20 * - COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL COALESCE ( + ( + + MIN ( 10 ) ), - COUNT ( * ) + 20 * - COUNT ( * ) ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT - 38 * + COUNT( * ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-5790
SELECT - 38 * + COUNT ( * ) AS col1
----
-38

query II rowsort
SELECT ALL 29 col0, 44
----
29
44

query I rowsort
SELECT + 21 * + 53 * - - 48
----
53424

query I rowsort
SELECT ALL ( - 45 ) * 76 AS col2
----
-3420

query I rowsort
SELECT 94 + - - 79 AS col1
----
173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5795
SELECT - COUNT( * ) + ( + CASE + + 0 WHEN - - 3 THEN NULL ELSE - COUNT( * ) - - 71 + CAST( NULL AS SIGNED ) END ) * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT - COUNT ( * ) + ( + CASE + + 0 WHEN - - 3 THEN NULL ELSE - COUNT ( * ) - - 71 + CAST ( NULL AS INTEGER ) END ) * + 6
----
NULL

query I rowsort
SELECT DISTINCT - 42 * 92
----
-3864

query I rowsort
SELECT ALL - 25 * - 16
----
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5798
SELECT ALL - CAST( 33 AS SIGNED ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-5798
SELECT ALL - CAST ( 33 AS INTEGER ) AS col0
----
-33

query I rowsort
SELECT ALL + COALESCE ( 58, 10 ) AS col0
----
58

query I rowsort
SELECT - ( 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT - - MIN( DISTINCT + + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-5801
SELECT - - MIN ( DISTINCT + + 86 )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT ALL ( - 60 ) - - - 65 DIV - 38 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL ( - 60 ) - - - 65 / - 38 AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5803
SELECT - 92 * COUNT( * ) DIV - - 13
----
-7

skipif mysql # not compatible
query I rowsort label-5803
SELECT - 92 * COUNT ( * ) / - - 13
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5804
SELECT ALL COUNT( * ) * 47 col1
----
47

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL COUNT ( * ) * 47 col1
----
47

query I rowsort
SELECT ALL NULLIF ( - 91, 19 ) AS col1
----
-91

query I rowsort
SELECT - 22 * - + 84 + + 53
----
1901

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT + 86 DIV - 75 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5807
SELECT + 86 / - 75 AS col0
----
-1

query I rowsort
SELECT ( 79 ) AS col2
----
79

query I rowsort
SELECT - ( + 41 )
----
-41

query II rowsort
SELECT 56, - 3 AS col2
----
56
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5811
SELECT ALL - CAST( - 14 AS SIGNED ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL - CAST ( - 14 AS INTEGER ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT COUNT( * ) + - ( + 55 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-5812
SELECT COUNT ( * ) + - ( + 55 ) AS col2
----
-54

query I rowsort
SELECT DISTINCT - 61 + + - 25 AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT 21 DIV + 58 * 29
----
0

skipif mysql # not compatible
query I rowsort label-5814
SELECT 21 / + 58 * 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT + COUNT( + 46 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5815
SELECT + COUNT ( + 46 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT ALL + - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL + - ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + COUNT( DISTINCT 69 ) * - + COUNT( * ) - + 18
----
-19

skipif mysql # not compatible
query I rowsort label-5817
SELECT + COUNT ( DISTINCT 69 ) * - + COUNT ( * ) - + 18
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT ALL + COUNT( * ) * + - ( + 97 ) * - 33 AS col0
----
3201

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL + COUNT ( * ) * + - ( + 97 ) * - 33 AS col0
----
3201

query I rowsort
SELECT 62 * + - 53 AS col2
----
-3286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT DISTINCT 79 * CAST( - 89 AS SIGNED ) AS col1
----
-7031

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT 79 * CAST ( - 89 AS INTEGER ) AS col1
----
-7031

query I rowsort
SELECT ALL + 48 + - + 4 AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT + SUM( + 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5822
SELECT + SUM ( + 23 ) AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT + - SUM( DISTINCT + 9 ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5823
SELECT + - SUM ( DISTINCT + 9 ) AS col1
----
-9

query I rowsort
SELECT ALL 38 + - 10 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT + COUNT( ALL 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5825
SELECT + COUNT ( ALL 65 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5826
SELECT 78, ( - - COUNT( * ) ) AS col0
----
78
1

skipif mysql # not compatible
query II rowsort label-5826
SELECT 78, ( - - COUNT ( * ) ) AS col0
----
78
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT DISTINCT + 6 * - - COUNT( * ) * - 41 - - 27 DIV 54 AS col0
----
-246

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT + 6 * - - COUNT ( * ) * - 41 - - 27 / 54 AS col0
----
-246

query I rowsort
SELECT ALL + - CASE 95 WHEN - 39 THEN 33 ELSE + 72 END AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT SUM( DISTINCT + NULLIF ( 95, + 98 ) ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5829
SELECT SUM ( DISTINCT + NULLIF ( 95, + 98 ) ) AS col2
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5830
SELECT + 10 DIV - 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT + 10 / - 89 AS col1
----
0

query I rowsort
SELECT + ( + 86 ) - + 91
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT DISTINCT 27 + + SUM( DISTINCT + - 39 )
----
-12

skipif mysql # not compatible
query I rowsort label-5832
SELECT DISTINCT 27 + + SUM ( DISTINCT + - 39 )
----
-12

query I rowsort
SELECT + 91 * 72
----
6552

query I rowsort
SELECT - ( - 75 ) AS col0
----
75

query I rowsort
SELECT 46 + - 77
----
-31

query I rowsort
SELECT 71 * - + 17 col0
----
-1207

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT 81 DIV 95
----
0

skipif mysql # not compatible
query I rowsort label-5837
SELECT 81 / 95
----
0

query I rowsort
SELECT ALL - 55 col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5839
SELECT + 68 + - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5839
SELECT + 68 + - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL + 44 col1
----
44

query I rowsort
SELECT - + ( - + 6 )
----
6

query I rowsort
SELECT DISTINCT - 86 + + 84
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5843
SELECT DISTINCT + 22 AS col2, COUNT( - CAST( NULL AS SIGNED ) ) col0
----
22
0

skipif mysql # not compatible
query II rowsort label-5843
SELECT DISTINCT + 22 AS col2, COUNT ( - CAST ( NULL AS INTEGER ) ) col0
----
22
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT DISTINCT + MIN( + 96 ) col2
----
96

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT + MIN ( + 96 ) col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5845
SELECT + CAST( - + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT + CAST ( - + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT ( + - COUNT( * ) ), + COUNT( * ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-5846
SELECT ( + - COUNT ( * ) ), + COUNT ( * ) AS col1
----
-1
1

query I rowsort
SELECT ( + - 50 ) AS col2
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5848
SELECT DISTINCT - CAST( - ( 73 ) AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT - CAST ( - ( 73 ) AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT 84 + + MAX( - ( + - 38 ) )
----
122

skipif mysql # not compatible
query I rowsort label-5849
SELECT 84 + + MAX ( - ( + - 38 ) )
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-5850
SELECT COUNT( * ) + - 61, - COUNT( * ) AS col2
----
-60
-1

skipif mysql # not compatible
query II rowsort label-5850
SELECT COUNT ( * ) + - 61, - COUNT ( * ) AS col2
----
-60
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT SUM( + + 81 ) + - SUM( 97 )
----
-16

skipif mysql # not compatible
query I rowsort label-5851
SELECT SUM ( + + 81 ) + - SUM ( 97 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT 2 / - 7 - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT 2 / - 7 - + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT DISTINCT 57, COUNT( - 94 ) AS col1
----
57
1

skipif mysql # not compatible
query II rowsort label-5853
SELECT DISTINCT 57, COUNT ( - 94 ) AS col1
----
57
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT DISTINCT SUM( DISTINCT + 66 )
----
66

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT SUM ( DISTINCT + 66 )
----
66

query I rowsort
SELECT ( 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT + COUNT( * ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5856
SELECT + COUNT ( * ) + + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5857
SELECT CAST( + 16 AS SIGNED ) AS col0, 91
----
16
91

skipif mysql # not compatible
query II rowsort label-5857
SELECT CAST ( + 16 AS INTEGER ) AS col0, 91
----
16
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT - MAX( + 63 ) + - - 62 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5858
SELECT - MAX ( + 63 ) + - - 62 AS col1
----
-1

query I rowsort
SELECT DISTINCT + + ( - 9 ) AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT + - 64 + - COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5860
SELECT + - 64 + - COUNT ( * ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - - COUNT( * ) + 23 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-5861
SELECT - - COUNT ( * ) + 23 AS col0
----
24

query I rowsort
SELECT DISTINCT + - 35 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5863
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT ALL + COUNT( * ) * + 58
----
58

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL + COUNT ( * ) * + 58
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT 12 * - - 75 + COUNT( * ) AS col1
----
901

skipif mysql # not compatible
query I rowsort label-5865
SELECT 12 * - - 75 + COUNT ( * ) AS col1
----
901

query I rowsort
SELECT - 0 + 21 AS col1
----
21

query I rowsort
SELECT DISTINCT - 92 + 8 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT ALL + COUNT( * ) + - 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5868
SELECT ALL + COUNT ( * ) + - 9 AS col2
----
-8

query I rowsort
SELECT 24 * 7
----
168

query I rowsort
SELECT ALL - ( - 35 ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT + 0 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5871
SELECT + 0 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5872
SELECT + 22 DIV + + COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-5872
SELECT + 22 / + + COUNT ( * ) AS col2
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT MAX( + 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-5873
SELECT MAX ( + 60 ) AS col2
----
60

query I rowsort
SELECT - ( - 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT + COUNT( * ) + + 91 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-5875
SELECT + COUNT ( * ) + + 91 AS col2
----
92

query I rowsort
SELECT - 46 - 34
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-5877
SELECT + 71, 54 + - COUNT( * ) AS col2
----
71
53

skipif mysql # not compatible
query II rowsort label-5877
SELECT + 71, 54 + - COUNT ( * ) AS col2
----
71
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL - MAX( DISTINCT - 70 )
----
70

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - MAX ( DISTINCT - 70 )
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5879
SELECT ALL + CAST( NULL AS DECIMAL ) * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL + CAST ( NULL AS REAL ) * + 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL + CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

query II rowsort
SELECT 37 AS col2, 54 AS col1
----
37
54

query I rowsort
SELECT ( + 48 ) col1
----
48

query I rowsort
SELECT + 83 * - + 58 col1
----
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL - + COUNT( * ) * - 85 + + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL - + COUNT ( * ) * - 85 + + COUNT ( * )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5885
SELECT CAST( COUNT( DISTINCT 22 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5885
SELECT CAST ( COUNT ( DISTINCT 22 ) AS INTEGER )
----
1

query I rowsort
SELECT + 42 * - 16 + - 11 AS col2
----
-683

query I rowsort
SELECT + + 87 + + ( - 39 )
----
48

query I rowsort
SELECT - 42 - + 99
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT COUNT( * ) - + 12 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5889
SELECT COUNT ( * ) - + 12 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT + COUNT( * ) * + - 16
----
-16

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT + COUNT ( * ) * + - 16
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT 84 * - COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-5891
SELECT 84 * - COUNT ( * ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5892
SELECT ALL - - 94 + COUNT( ALL + 62 ) * - 83 AS col1
----
11

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - - 94 + COUNT ( ALL + 62 ) * - 83 AS col1
----
11

query I rowsort
SELECT - ( + 10 )
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5894
SELECT - CAST( NULL AS SIGNED ), 79 AS col1
----
NULL
79

skipif mysql # not compatible
query II rowsort label-5894
SELECT - CAST ( NULL AS INTEGER ), 79 AS col1
----
NULL
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT + + SUM( DISTINCT + 80 )
----
80

skipif mysql # not compatible
query I rowsort label-5895
SELECT + + SUM ( DISTINCT + 80 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT - MIN( ALL - + ( - - 80 ) )
----
80

skipif mysql # not compatible
query I rowsort label-5896
SELECT - MIN ( ALL - + ( - - 80 ) )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT - MIN( - 54 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-5897
SELECT - MIN ( - 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT 77 * + MIN( DISTINCT 69 )
----
5313

skipif mysql # not compatible
query I rowsort label-5898
SELECT 77 * + MIN ( DISTINCT 69 )
----
5313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5899
SELECT COUNT( * ) * 24 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5899
SELECT COUNT ( * ) * 24 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 41 * + 83 AS col2
----
-3403

query II rowsort
SELECT + - 54 AS col1, ( - - 80 ) AS col2
----
-54
80

query I rowsort
SELECT 84 + + + 95 AS col0
----
179

query I rowsort
SELECT 93 + - + 48
----
45

query I rowsort
SELECT 18 * 52
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT - 84 * - COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5905
SELECT - 84 * - COUNT ( * ) AS col2
----
84

query I rowsort
SELECT ALL - 14 + - 55 AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT DISTINCT + 42 DIV ( - - 26 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT + 42 / ( - - 26 ) AS col2
----
1

query II rowsort
SELECT 72 AS col1, 79
----
72
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5909
SELECT - 12 col2, - CAST( NULL AS SIGNED ) col2
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-5909
SELECT - 12 col2, - CAST ( NULL AS INTEGER ) col2
----
-12
NULL

query I rowsort
SELECT ALL 10 * + 75
----
750

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT + COUNT( ALL - 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT + COUNT ( ALL - 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT MAX( ALL - + 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-5912
SELECT MAX ( ALL - + 92 )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT - 17 + + COUNT( * ) + + 45 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5913
SELECT - 17 + + COUNT ( * ) + + 45 AS col1
----
29

query I rowsort
SELECT - 44 * + - 53 + 67
----
2399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5915
SELECT DISTINCT + 34 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT DISTINCT + 34 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + 97 + - - 46
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT - SUM( ALL - 90 ) col2
----
90

skipif mysql # not compatible
query I rowsort label-5917
SELECT - SUM ( ALL - 90 ) col2
----
90

query I rowsort
SELECT - ( - - 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT ALL - COUNT( * ) - + 53 * + 90 AS col0
----
-4771

skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL - COUNT ( * ) - + 53 * + 90 AS col0
----
-4771

query I rowsort
SELECT DISTINCT 50 * 38
----
1900

onlyif mysql # aggregate syntax: 
query II rowsort label-5921
SELECT ALL + ( + 36 ), COUNT( * ) AS col2
----
36
1

skipif mysql # not compatible
query II rowsort label-5921
SELECT ALL + ( + 36 ), COUNT ( * ) AS col2
----
36
1

query I rowsort
SELECT + - 85 * - - 82
----
-6970

query I rowsort
SELECT - + ( + 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5924
SELECT ALL + COUNT( * ) DIV - ( MAX( DISTINCT + 61 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL + COUNT ( * ) / - ( MAX ( DISTINCT + 61 ) )
----
0

query II rowsort
SELECT ALL + 68 AS col2, 76 AS col1
----
68
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5926
SELECT + CAST( NULL AS SIGNED ) AS col0, + NULLIF ( 91, + - 30 + 25 )
----
NULL
91

skipif mysql # not compatible
query II rowsort label-5926
SELECT + CAST ( NULL AS INTEGER ) AS col0, + NULLIF ( 91, + - 30 + 25 )
----
NULL
91

query I rowsort
SELECT ALL + - 41 AS col2
----
-41

query I rowsort
SELECT ALL + 33 * 74
----
2442

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5929
SELECT COUNT( * ) - 84 DIV 38
----
-1

skipif mysql # not compatible
query I rowsort label-5929
SELECT COUNT ( * ) - 84 / 38
----
-1

query I rowsort
SELECT DISTINCT - 13 col2
----
-13

query I rowsort
SELECT DISTINCT 95 col1
----
95

query I rowsort
SELECT 25 * 61 AS col2
----
1525

query I rowsort
SELECT + 45 * + 94
----
4230

onlyif mysql # aggregate syntax: 
query II rowsort label-5934
SELECT ALL 1 AS col1, 50 + + COUNT( * )
----
1
51

skipif mysql # not compatible
query II rowsort label-5934
SELECT ALL 1 AS col1, 50 + + COUNT ( * )
----
1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT ALL COUNT( + + ( 83 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL COUNT ( + + ( 83 ) )
----
1

query I rowsort
SELECT - ( - 1 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - 95 * + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 95 * + COUNT ( * )
----
-95

query I rowsort
SELECT DISTINCT + - COALESCE ( + 61, - 80, + 89 * - 89 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ALL + 86 * + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + 86 * + COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5940
SELECT ALL CAST( + 40 AS SIGNED ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL CAST ( + 40 AS INTEGER ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT - ( - SUM( 63 ) ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-5941
SELECT - ( - SUM ( 63 ) ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT COUNT( * ) * - 15 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT COUNT ( * ) * - 15 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5943
SELECT DISTINCT COUNT( * ) * - 0, 73 AS col2
----
0
73

skipif mysql # not compatible
query II rowsort label-5943
SELECT DISTINCT COUNT ( * ) * - 0, 73 AS col2
----
0
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5944
SELECT COUNT( * ) DIV - 44 col2
----
0

skipif mysql # not compatible
query I rowsort label-5944
SELECT COUNT ( * ) / - 44 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5945
SELECT DISTINCT - CAST( - - 51 AS SIGNED ) col1
----
-51

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT - CAST ( - - 51 AS INTEGER ) col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT MAX( ALL + + 68 ) + NULLIF ( 6, + COUNT( * ) )
----
74

skipif mysql # not compatible
query I rowsort label-5946
SELECT MAX ( ALL + + 68 ) + NULLIF ( 6, + COUNT ( * ) )
----
74

query I rowsort
SELECT ALL 78 * - 55
----
-4290

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL - COUNT( * ) - + 22
----
-23

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - COUNT ( * ) - + 22
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL SUM( DISTINCT - + ( - 35 ) ) col2
----
35

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL SUM ( DISTINCT - + ( - 35 ) ) col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5950
SELECT ALL COUNT( * ) DIV + ( 80 )
----
0

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL COUNT ( * ) / + ( 80 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT + 36 col1, + COUNT( * ) - - 78 col0
----
36
79

skipif mysql # not compatible
query II rowsort label-5951
SELECT + 36 col1, + COUNT ( * ) - - 78 col0
----
36
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5952
SELECT ALL - CAST( - 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - CAST ( - 68 AS INTEGER )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT ALL - CAST( NULL AS SIGNED ) + - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL - CAST ( NULL AS INTEGER ) + - 45 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT ALL + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT ALL - 7 * + 60 DIV - 29
----
14

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL - 7 * + 60 / - 29
----
14

query I rowsort
SELECT ALL + - 15 AS col2
----
-15

query I rowsort
SELECT ALL - 81 * - 97 AS col1
----
7857

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT - 59 + - COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-5958
SELECT - 59 + - COUNT ( * )
----
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT DISTINCT + CAST( ( - 80 ) AS SIGNED ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + CAST ( ( - 80 ) AS INTEGER ) AS col0
----
-80

query I rowsort
SELECT ALL 55 * - 79
----
-4345

query I rowsort
SELECT 65 + - 67 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT - + NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT - + NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT - SUM( 92 ) - - 25 col1
----
-67

skipif mysql # not compatible
query I rowsort label-5963
SELECT - SUM ( 92 ) - - 25 col1
----
-67

query I rowsort
SELECT DISTINCT + 79 + 43
----
122

query I rowsort
SELECT 60 - + 50
----
10

query I rowsort
SELECT 76 + - 3
----
73

query I rowsort
SELECT ALL + 1 + + - 53 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-5968
SELECT ALL + NULLIF ( - ( - COUNT( * ) ), 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL + NULLIF ( - ( - COUNT ( * ) ), 29 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5969
SELECT ALL - COUNT( * ) DIV - - 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - COUNT ( * ) / - - 6 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + COUNT( * ) * - + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5970
SELECT + COUNT ( * ) * - + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5971
SELECT CAST( + - COUNT( + 90 ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5971
SELECT CAST ( + - COUNT ( + 90 ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT + + 62 * 25 * + COUNT( * ) - + COUNT( * )
----
1549

skipif mysql # not compatible
query I rowsort label-5972
SELECT + + 62 * 25 * + COUNT ( * ) - + COUNT ( * )
----
1549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5973
SELECT + CAST( NULL AS SIGNED ) + + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT + CAST ( NULL AS INTEGER ) + + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT COUNT( * ) + - - 99
----
100

skipif mysql # not compatible
query I rowsort label-5974
SELECT COUNT ( * ) + - - 99
----
100

query II rowsort
SELECT ALL 1, + 2 AS col0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5976
SELECT DISTINCT - COUNT( * ) * + - 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT - COUNT ( * ) * + - 16 AS col2
----
16

query I rowsort
SELECT - 2 + - - 10 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL - SUM( + - 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL - SUM ( + - 96 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5979
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ), + 2 AS col2
----
-1
2

skipif mysql # not compatible
query II rowsort label-5979
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ), + 2 AS col2
----
-1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT DISTINCT - COUNT( * ) + - - 28 * + COUNT( * ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT - COUNT ( * ) + - - 28 * + COUNT ( * ) AS col2
----
27

query I rowsort
SELECT - 19 + + - 80 AS col0
----
-99

query I rowsort
SELECT DISTINCT + + 55 AS col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT DISTINCT + + ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT + + ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT DISTINCT SUM( + + 50 )
----
50

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT SUM ( + + 50 )
----
50

query I rowsort
SELECT + 47 * ( + ( - 28 ) ) AS col1
----
-1316

query II rowsort
SELECT ALL - + 21, + ( 30 ) col2
----
-21
30

query I rowsort
SELECT DISTINCT - 64 + + 20 AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5988
SELECT + - CAST( + - 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-5988
SELECT + - CAST ( + - 4 AS INTEGER )
----
4

query I rowsort
SELECT 79 * 20 * 45
----
71100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT ALL - 83 * + COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-5991
SELECT ALL - 83 * + COUNT ( * )
----
-83

query I rowsort
SELECT + ( ( - 67 ) )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL + 56 * + - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL + 56 * + - COUNT ( * )
----
-56

query I rowsort
SELECT + 18 - 99 AS col2
----
-81

query II rowsort
SELECT - 68, 22 AS col2
----
-68
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT + SUM( DISTINCT - - 95 ) * - + ( + 91 )
----
-8645

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT + SUM ( DISTINCT - - 95 ) * - + ( + 91 )
----
-8645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5997
SELECT ALL + CAST( + 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + CAST ( + 21 AS INTEGER )
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5998
SELECT ALL - CAST( NULL AS DECIMAL ) * + + 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL - CAST ( NULL AS REAL ) * + + 54 col0
----
NULL

query I rowsort
SELECT ALL - 88 + + + 67 AS col1
----
-21

query I rowsort
SELECT DISTINCT - + 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6001
SELECT - + 88 col1, COUNT( * ) + - + 37
----
-88
-36

skipif mysql # not compatible
query II rowsort label-6001
SELECT - + 88 col1, COUNT ( * ) + - + 37
----
-88
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT - CAST( + 11 AS SIGNED ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6002
SELECT - CAST ( + 11 AS INTEGER ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT - COUNT( * ) + - MIN( + - 43 )
----
42

skipif mysql # not compatible
query I rowsort label-6003
SELECT - COUNT ( * ) + - MIN ( + - 43 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6004
SELECT + 44 DIV + COUNT( * ) DIV - COUNT( * ) AS col0, - 34 col0
----
-44
-34

skipif mysql # not compatible
query II rowsort label-6004
SELECT + 44 / + COUNT ( * ) / - COUNT ( * ) AS col0, - 34 col0
----
-44
-34

query I rowsort
SELECT ALL 26 + + 50 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6006
SELECT + 90 + - CAST( - 39 AS SIGNED )
----
129

skipif mysql # not compatible
query I rowsort label-6006
SELECT + 90 + - CAST ( - 39 AS INTEGER )
----
129

query I rowsort
SELECT + 54 + + 20 + - 22
----
52

query I rowsort
SELECT ALL ( + 64 ) * 85 AS col1
----
5440

query I rowsort
SELECT ALL + ( + 53 ) col2
----
53

query I rowsort
SELECT + 88 * - 78
----
-6864

onlyif mysql # aggregate syntax: 
query II rowsort label-6011
SELECT + - COUNT( * ) AS col0, + 95 AS col0
----
-1
95

skipif mysql # not compatible
query II rowsort label-6011
SELECT + - COUNT ( * ) AS col0, + 95 AS col0
----
-1
95

query I rowsort
SELECT ALL + + 49 col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT - + CAST( NULL AS SIGNED ) - - - 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6013
SELECT - + CAST ( NULL AS INTEGER ) - - - 46 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6014
SELECT DISTINCT 0 * + MAX( DISTINCT - CAST( - 55 AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT 0 * + MAX ( DISTINCT - CAST ( - 55 AS INTEGER ) ) AS col2
----
0

query I rowsort
SELECT 54 + 92 AS col2
----
146

onlyif mysql # aggregate syntax: 
query II rowsort label-6016
SELECT - 79 + - COUNT( * ) AS col0, - COUNT( 6 ) AS col0
----
-80
-1

skipif mysql # not compatible
query II rowsort label-6016
SELECT - 79 + - COUNT ( * ) AS col0, - COUNT ( 6 ) AS col0
----
-80
-1

query I rowsort
SELECT ALL + 59 - - 29
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT + 48 * COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + 48 * COUNT ( * )
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT ALL + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL + COUNT( 25 )
----
1

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL + COUNT ( 25 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL COUNT( * ) + + 79 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL COUNT ( * ) + + 79 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT + 55 * + - COUNT( - - 57 ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-6023
SELECT + 55 * + - COUNT ( - - 57 ) col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT ALL - COUNT( * ) * - 90 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6024
SELECT ALL - COUNT ( * ) * - 90 AS col1
----
90

query I rowsort
SELECT ALL 51 * 25 AS col1
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT ( - COUNT( DISTINCT + 34 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT ( - COUNT ( DISTINCT + 34 ) )
----
-1

query I rowsort
SELECT - 99 - + 23 AS col1
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6028
SELECT CAST( + + 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-6028
SELECT CAST ( + + 24 AS INTEGER )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT DISTINCT + MIN( - 32 )
----
-32

skipif mysql # not compatible
query I rowsort label-6029
SELECT DISTINCT + MIN ( - 32 )
----
-32

query I rowsort
SELECT ALL - - 58 AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT MIN( 17 ) + + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6031
SELECT MIN ( 17 ) + + COUNT ( * )
----
18

query II rowsort
SELECT + 92 AS col2, - 82 col1
----
92
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-6033
SELECT ALL COUNT( * ) AS col0, - ( COUNT( * ) )
----
1
-1

skipif mysql # not compatible
query II rowsort label-6033
SELECT ALL COUNT ( * ) AS col0, - ( COUNT ( * ) )
----
1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT DISTINCT 85 * + COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT 85 * + COUNT ( * )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + + 96, 19 AS col0
----
96
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6037
SELECT + ( + COALESCE ( - 63, - ( + CAST( - 8 AS SIGNED ) ) ) ) * - SUM( DISTINCT 46 ) col1
----
2898

skipif mysql # not compatible
query I rowsort label-6037
SELECT + ( + COALESCE ( - 63, - ( + CAST ( - 8 AS INTEGER ) ) ) ) * - SUM ( DISTINCT 46 ) col1
----
2898

query I rowsort
SELECT + ( + 56 ) AS col2
----
56

query I rowsort
SELECT ( + + 8 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6040
SELECT - CAST( - + 11 AS SIGNED ) * - + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT - CAST ( - + 11 AS INTEGER ) * - + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT + COALESCE ( + 92, + MIN( ALL 53 ) ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-6041
SELECT + COALESCE ( + 92, + MIN ( ALL 53 ) ) AS col2
----
92

query I rowsort
SELECT ALL - + 73 * - - 97 * - 97 AS col1
----
686857

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT + CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT ALL - - MIN( ALL + 1 ) + + + 11 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL - - MIN ( ALL + 1 ) + + + 11 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT ALL - ( + 82 ) AS col0, + COUNT( * ) AS col1
----
-82
1

skipif mysql # not compatible
query II rowsort label-6045
SELECT ALL - ( + 82 ) AS col0, + COUNT ( * ) AS col1
----
-82
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + NULLIF ( - 44, + COUNT( * ) ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + NULLIF ( - 44, + COUNT ( * ) ) AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL MIN( ALL + - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL MIN ( ALL + - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-6048
SELECT ALL - 53 AS col2, MAX( ( - 96 ) ) AS col0
----
-53
-96

skipif mysql # not compatible
query II rowsort label-6048
SELECT ALL - 53 AS col2, MAX ( ( - 96 ) ) AS col0
----
-53
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6049
SELECT DISTINCT - COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT + + 70 DIV - + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6050
SELECT + + 70 / - + 92 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT + MAX( + + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-6051
SELECT + MAX ( + + 24 ) AS col1
----
24

query I rowsort
SELECT ( - + 87 ) col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ( + COUNT( ALL + - 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6053
SELECT ( + COUNT ( ALL + - 27 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6054
SELECT + CAST( NULL AS SIGNED ), - COUNT( * ) col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6054
SELECT + CAST ( NULL AS INTEGER ), - COUNT ( * ) col1
----
NULL
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT - CAST( - - 5 AS SIGNED )
----
-5

skipif mysql # not compatible
query I rowsort label-6055
SELECT - CAST ( - - 5 AS INTEGER )
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT DISTINCT + COUNT( * ) col0, 40 AS col1
----
1
40

skipif mysql # not compatible
query II rowsort label-6056
SELECT DISTINCT + COUNT ( * ) col0, 40 AS col1
----
1
40

query I rowsort
SELECT - ( 20 ) col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT 7 - - COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-6058
SELECT 7 - - COUNT ( * )
----
8

query I rowsort
SELECT ALL - + 11 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL + 68 + COUNT( * ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + 68 + COUNT ( * ) AS col0
----
69

query I rowsort
SELECT DISTINCT - 23 * - + 82 AS col1
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT - 92 * COUNT( * ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-6062
SELECT - 92 * COUNT ( * ) col0
----
-92

query I rowsort
SELECT - 99 * + - 49 - 3
----
4848

query I rowsort
SELECT DISTINCT - + 84 col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL - 26 * + COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL - 26 * + COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT ALL 91 + - 4 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6067
SELECT - COUNT( CAST( - + 6 AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6067
SELECT - COUNT ( CAST ( - + 6 AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT ALL COUNT( ALL + 39 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6068
SELECT ALL COUNT ( ALL + 39 ) col2
----
1

query I rowsort
SELECT - 83 * + 5 AS col0
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-6070
SELECT DISTINCT COUNT( + 12 )
----
1

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT COUNT ( + 12 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT + 49 DIV 42
----
1

skipif mysql # not compatible
query I rowsort label-6071
SELECT + 49 / 42
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT - CAST( 50 AS SIGNED )
----
-50

skipif mysql # not compatible
query I rowsort label-6072
SELECT - CAST ( 50 AS INTEGER )
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6073
SELECT ALL CAST( NULL AS SIGNED ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL CAST ( NULL AS INTEGER ) - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 13 * - 47
----
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT - ( + ( - COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6075
SELECT - ( + ( - COUNT ( * ) ) ) AS col2
----
1

query I rowsort
SELECT + 59 * 93 AS col1
----
5487

onlyif mysql # aggregate syntax: 
query II rowsort label-6077
SELECT COUNT( * ) * + 14 AS col1, + COUNT( * ) AS col0
----
14
1

skipif mysql # not compatible
query II rowsort label-6077
SELECT COUNT ( * ) * + 14 AS col1, + COUNT ( * ) AS col0
----
14
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6078
SELECT ALL + NULLIF ( - 96, - 23 ) DIV COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + NULLIF ( - 96, - 23 ) / COUNT ( * )
----
-96

query I rowsort
SELECT ALL + 70 + 55
----
125

query I rowsort
SELECT DISTINCT ( 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL + SUM( ALL + 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + SUM ( ALL + 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT ALL - 14 * 72 + ( + MIN( ALL + + 88 ) )
----
-920

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL - 14 * 72 + ( + MIN ( ALL + + 88 ) )
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT ALL - COUNT( * ) + + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6083
SELECT ALL - COUNT ( * ) + + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-6084
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT DISTINCT + ( - + 93 ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT 79 * - - 28 + COUNT( * )
----
2213

skipif mysql # not compatible
query I rowsort label-6086
SELECT 79 * - - 28 + COUNT ( * )
----
2213

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT + COUNT( * ) + + COUNT( * ) - + ( + + 36 )
----
-34

skipif mysql # not compatible
query I rowsort label-6087
SELECT + COUNT ( * ) + + COUNT ( * ) - + ( + + 36 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6088
SELECT + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT DISTINCT - 8 * - ( CAST( + 47 AS SIGNED ) ) AS col0
----
376

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT - 8 * - ( CAST ( + 47 AS INTEGER ) ) AS col0
----
376

query I rowsort
SELECT ALL + 64 * + 6
----
384

onlyif mysql # aggregate syntax: 
query II rowsort label-6091
SELECT 60 * ( COUNT( * ) ), + 62 AS col1
----
60
62

skipif mysql # not compatible
query II rowsort label-6091
SELECT 60 * ( COUNT ( * ) ), + 62 AS col1
----
60
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL + ( + + COUNT( * ) ) * 98 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL + ( + + COUNT ( * ) ) * 98 AS col0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6093
SELECT DISTINCT - ( CAST( + COUNT( * ) AS SIGNED ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT - ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6094
SELECT ALL - 53 DIV SUM( ALL 47 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - 53 / SUM ( ALL 47 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT - CAST( NULL AS SIGNED ) * + 29 * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT - CAST ( NULL AS INTEGER ) * + 29 * - 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6096
SELECT DISTINCT + + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6097
SELECT - - 88 DIV + COUNT( * ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-6097
SELECT - - 88 / + COUNT ( * ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL - - COUNT( * ) * + - ( COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL - - COUNT ( * ) * + - ( COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT - COALESCE ( 9, 18 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT + 48 + - COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-6100
SELECT + 48 + - COUNT ( * )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6101
SELECT ALL - - CAST( NULL AS SIGNED ), 92 AS col0
----
NULL
92

skipif mysql # not compatible
query II rowsort label-6101
SELECT ALL - - CAST ( NULL AS INTEGER ), 92 AS col0
----
NULL
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6102
SELECT ALL - - COUNT( * ) AS col1, - 91
----
1
-91

skipif mysql # not compatible
query II rowsort label-6102
SELECT ALL - - COUNT ( * ) AS col1, - 91
----
1
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL + 39 * + + COUNT( * ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL + 39 * + + COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT DISTINCT - ( + 58 ) AS col0, COUNT( * ) AS col2
----
-58
1

skipif mysql # not compatible
query II rowsort label-6104
SELECT DISTINCT - ( + 58 ) AS col0, COUNT ( * ) AS col2
----
-58
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6105
SELECT DISTINCT - + CAST( - MIN( ALL + 33 ) AS SIGNED ) col2
----
33

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT - + CAST ( - MIN ( ALL + 33 ) AS INTEGER ) col2
----
33

query I rowsort
SELECT ALL + 9 + 19 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT - SUM( DISTINCT 84 ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-6107
SELECT - SUM ( DISTINCT 84 ) AS col2
----
-84

query I rowsort
SELECT ALL + + 29 * + - 90
----
-2610

query I rowsort
SELECT DISTINCT 48 * + 19
----
912

query I rowsort
SELECT + ( + 12 ) col0
----
12

query I rowsort
SELECT ALL 89 * 35
----
3115

onlyif mysql # aggregate syntax: 
query I rowsort label-6112
SELECT DISTINCT + ( + 7 ) + COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-6112
SELECT DISTINCT + ( + 7 ) + COUNT ( * ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6113
SELECT - + ( - - MAX( ALL + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT - + ( - - MAX ( ALL + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + - 86 col0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-6115
SELECT DISTINCT + - COUNT( * ) AS col0, ( 80 )
----
-1
80

skipif mysql # not compatible
query II rowsort label-6115
SELECT DISTINCT + - COUNT ( * ) AS col0, ( 80 )
----
-1
80

query II rowsort
SELECT ALL ( + 15 ) + - - 15, - 85 AS col0
----
30
-85

query I rowsort
SELECT ALL - 64 * ( + NULLIF ( - + 76, + 80 ) ) AS col0
----
4864

onlyif mysql # aggregate syntax: 
query II rowsort label-6118
SELECT - - MAX( ALL + 35 ) AS col1, COUNT( * ) AS col1
----
35
1

skipif mysql # not compatible
query II rowsort label-6118
SELECT - - MAX ( ALL + 35 ) AS col1, COUNT ( * ) AS col1
----
35
1

query I rowsort
SELECT ALL - - 82 * + 67 AS col2
----
5494

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT + MIN( + - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + MIN ( + - 63 ) AS col2
----
-63

query I rowsort
SELECT ALL - 26 + + 60
----
34

query I rowsort
SELECT ALL 59 + - ( - - ( + 95 ) )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6123
SELECT DISTINCT COUNT( * ) + 45 DIV + ( 21 )
----
3

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT COUNT ( * ) + 45 / + ( 21 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT COUNT( ALL 51 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6124
SELECT COUNT ( ALL 51 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL + COUNT( + + 13 )
----
1

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL + COUNT ( + + 13 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL + MIN( ALL - + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL + MIN ( ALL - + 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT ALL + SUM( + + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL + SUM ( + + 81 )
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6128
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6129
SELECT - - 43 * 96 * + + 82 / - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT - - 43 * 96 * + + 82 / - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 53 * - 99 * 61
----
-320067

query I rowsort
SELECT ALL 65 * ( 93 )
----
6045

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT - + MIN( ALL 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6132
SELECT - + MIN ( ALL 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT + 97 * + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-6133
SELECT + 97 * + COUNT ( * )
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-6134
SELECT ALL - 69 AS col2, 93 DIV - + 30 + - 62 * + + 87 AS col1
----
-69
-5397

skipif mysql # not compatible
query II rowsort label-6134
SELECT ALL - 69 AS col2, 93 / - + 30 + - 62 * + + 87 AS col1
----
-69
-5397

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT DISTINCT - ( + MIN( - 7 ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6135
SELECT DISTINCT - ( + MIN ( - 7 ) ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT - COUNT( 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - COUNT ( 85 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT 23 + + 66 - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-6137
SELECT 23 + + 66 - COUNT ( * )
----
88

query I rowsort
SELECT ALL 68 col2
----
68

query I rowsort
SELECT 30 + 94
----
124

query I rowsort
SELECT DISTINCT + - ( + 96 )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT + 88 * - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-6141
SELECT + 88 * - COUNT ( * )
----
-88

query I rowsort
SELECT - - 7 * - 76
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT COUNT( DISTINCT 64 )
----
1

skipif mysql # not compatible
query I rowsort label-6143
SELECT COUNT ( DISTINCT 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT ALL COUNT( * ) + + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-6144
SELECT ALL COUNT ( * ) + + 70 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6145
SELECT + MAX( + 42 ) + - SUM( ALL 27 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6145
SELECT + MAX ( + 42 ) + - SUM ( ALL 27 ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT + 64 + + - ( - COUNT( * ) )
----
65

skipif mysql # not compatible
query I rowsort label-6146
SELECT + 64 + + - ( - COUNT ( * ) )
----
65

query I rowsort
SELECT - 48 + + 28 AS col1
----
-20

query I rowsort
SELECT DISTINCT - 23 - + + 74 AS col0
----
-97

query I rowsort
SELECT ALL + 32 * + 19 AS col0
----
608

query I rowsort
SELECT DISTINCT - 56 + + 42 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT COUNT( * ) + - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-6151
SELECT COUNT ( * ) + - 83 AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6152
SELECT DISTINCT 94 DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT 94 / 32
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT COUNT( - 52 ) - - 23 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6153
SELECT COUNT ( - 52 ) - - 23 AS col2
----
24

query I rowsort
SELECT DISTINCT 51 * - 20 AS col2
----
-1020

onlyif mysql # aggregate syntax: 
query I rowsort label-6155
SELECT + 34 * + COUNT( * ) + 20
----
54

skipif mysql # not compatible
query I rowsort label-6155
SELECT + 34 * + COUNT ( * ) + 20
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL - MAX( - 80 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - MAX ( - 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + MAX( DISTINCT 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-6157
SELECT + MAX ( DISTINCT 5 ) AS col0
----
5

query I rowsort
SELECT ALL - 69 + + 82 AS col2
----
13

query I rowsort
SELECT DISTINCT + 24 + CASE 67 WHEN 38 THEN + 21 END AS col2
----
NULL

query I rowsort
SELECT 23 * - 89
----
-2047

query I rowsort
SELECT ALL + 61 * 20 AS col2
----
1220

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT - - 76 DIV + 50
----
1

skipif mysql # not compatible
query I rowsort label-6162
SELECT - - 76 / + 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT + - COUNT( * ) + + COUNT( * ) * - 57
----
-58

skipif mysql # not compatible
query I rowsort label-6163
SELECT + - COUNT ( * ) + + COUNT ( * ) * - 57
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT + 95 - + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT +